juju/client/_client1.py
async def Import(self, bytes_=None, charms=None, resources=None, tools=None):
        '''
        Import takes a serialized Juju model, deserializes it, and
        recreates it in the receiving controller.

        bytes_ : typing.Sequence[int]
        charms : typing.Sequence[str]
        resources : typing.Sequence[~SerializedModelResource]
        tools : typing.Sequence[~SerializedModelTools]
        Returns -> None
        '''
        if bytes_ is not None and not isinstance(bytes_, (bytes, str, list)):
            raise Exception("Expected bytes_ to be a Sequence, received: {}".format(type(bytes_)))

        if charms is not None and not isinstance(charms, (bytes, str, list)):
            raise Exception("Expected charms to be a Sequence, received: {}".format(type(charms)))

        if resources is not None and not isinstance(resources, (bytes, str, list)):
            raise Exception("Expected resources to be a Sequence, received: {}".format(type(resources)))

        if tools is not None and not isinstance(tools, (bytes, str, list)):
            raise Exception("Expected tools to be a Sequence, received: {}".format(type(tools)))

        # map input types to rpc msg
        _params = dict()
        msg = dict(type='MigrationTarget',
                   request='Import',
                   version=1,
                   params=_params)
        _params['bytes'] = bytes_
        _params['charms'] = charms
        _params['resources'] = resources
        _params['tools'] = tools
        reply = await self.rpc(msg)
        return reply

        Import takes a serialized Juju model, deserializes it, and
        recreates it in the receiving controller.

        bytes_ : typing.Sequence[int]
        charms : typing.Sequence[str]
        resources : typing.Sequence[~SerializedModelResource]
        tools : typing.Sequence[~SerializedModelTools]
        Returns -> None
        
Import takes a serialized Juju model, deserializes it, and
recreates it in the receiving controller.


Import takes a serialized Juju model deserializes it and recreates it in the receiving controller .
async def Import(self, bytes_=None, charms=None, resources=None, tools=None):
        if bytes_ is not None and not isinstance(bytes_, (bytes, str, list)):
            raise Exception("Expected bytes_ to be a Sequence, received: {}".format(type(bytes_)))
        if charms is not None and not isinstance(charms, (bytes, str, list)):
            raise Exception("Expected charms to be a Sequence, received: {}".format(type(charms)))
        if resources is not None and not isinstance(resources, (bytes, str, list)):
            raise Exception("Expected resources to be a Sequence, received: {}".format(type(resources)))
        if tools is not None and not isinstance(tools, (bytes, str, list)):
            raise Exception("Expected tools to be a Sequence, received: {}".format(type(tools)))
        _params = dict()
        msg = dict(type='MigrationTarget',
                   request='Import',
                   version=1,
                   params=_params)
        _params['bytes'] = bytes_
        _params['charms'] = charms
        _params['resources'] = resources
        _params['tools'] = tools
        reply = await self.rpc(msg)
        return reply
async def Import ( self , bytes_ = None , charms = None , resources = None , tools = None ) : if bytes_ is not None and not isinstance ( bytes_ , ( bytes , str , list ) ) : raise Exception ( "Expected bytes_ to be a Sequence, received: {}" . format ( type ( bytes_ ) ) ) if charms is not None and not isinstance ( charms , ( bytes , str , list ) ) : raise Exception ( "Expected charms to be a Sequence, received: {}" . format ( type ( charms ) ) ) if resources is not None and not isinstance ( resources , ( bytes , str , list ) ) : raise Exception ( "Expected resources to be a Sequence, received: {}" . format ( type ( resources ) ) ) if tools is not None and not isinstance ( tools , ( bytes , str , list ) ) : raise Exception ( "Expected tools to be a Sequence, received: {}" . format ( type ( tools ) ) ) _params = dict ( ) msg = dict ( type = 'MigrationTarget' , request = 'Import' , version = 1 , params = _params ) _params [ 'bytes' ] = bytes_ _params [ 'charms' ] = charms _params [ 'resources' ] = resources _params [ 'tools' ] = tools reply = await self . rpc ( msg ) return reply
Import takes a serialized Juju model, deserializes it, and
recreates it in the receiving controller.
Import takes a serialized Juju model deserializes it and recreates it in the receiving controller .
'''
        Import takes a serialized Juju model, deserializes it, and
        recreates it in the receiving controller.

        bytes_ : typing.Sequence[int]
        charms : typing.Sequence[str]
        resources : typing.Sequence[~SerializedModelResource]
        tools : typing.Sequence[~SerializedModelTools]
        Returns -> None
        ''' # map input types to rpc msg
self
bytes_
charms
resources
tools