juju/client/_client1.py
async def AdoptResources(self, model_tag=None, source_controller_version=None):
        '''
        AdoptResources asks the cloud provider to update the controller
        tags for a model's resources. This prevents the resources from
        being destroyed if the source controller is destroyed after the
        model is migrated away.

        model_tag : str
        source_controller_version : Number
        Returns -> None
        '''
        if model_tag is not None and not isinstance(model_tag, (bytes, str)):
            raise Exception("Expected model_tag to be a str, received: {}".format(type(model_tag)))

        if source_controller_version is not None and not isinstance(source_controller_version, (dict, Number)):
            raise Exception("Expected source_controller_version to be a Number, received: {}".format(type(source_controller_version)))

        # map input types to rpc msg
        _params = dict()
        msg = dict(type='MigrationTarget',
                   request='AdoptResources',
                   version=1,
                   params=_params)
        _params['model-tag'] = model_tag
        _params['source-controller-version'] = source_controller_version
        reply = await self.rpc(msg)
        return reply

        AdoptResources asks the cloud provider to update the controller
        tags for a model's resources. This prevents the resources from
        being destroyed if the source controller is destroyed after the
        model is migrated away.

        model_tag : str
        source_controller_version : Number
        Returns -> None
        
AdoptResources asks the cloud provider to update the controller
tags for a model's resources. This prevents the resources from
being destroyed if the source controller is destroyed after the
model is migrated away.

model_tag : str
source_controller_version : Number
Returns -> None
AdoptResources asks the cloud provider to update the controller tags for a model ' s resources . This prevents the resources from being destroyed if the source controller is destroyed after the model is migrated away . model_tag : str source_controller_version : Number Returns - > None
async def AdoptResources(self, model_tag=None, source_controller_version=None):
        if model_tag is not None and not isinstance(model_tag, (bytes, str)):
            raise Exception("Expected model_tag to be a str, received: {}".format(type(model_tag)))
        if source_controller_version is not None and not isinstance(source_controller_version, (dict, Number)):
            raise Exception("Expected source_controller_version to be a Number, received: {}".format(type(source_controller_version)))
        _params = dict()
        msg = dict(type='MigrationTarget',
                   request='AdoptResources',
                   version=1,
                   params=_params)
        _params['model-tag'] = model_tag
        _params['source-controller-version'] = source_controller_version
        reply = await self.rpc(msg)
        return reply
async def AdoptResources ( self , model_tag = None , source_controller_version = None ) : if model_tag is not None and not isinstance ( model_tag , ( bytes , str ) ) : raise Exception ( "Expected model_tag to be a str, received: {}" . format ( type ( model_tag ) ) ) if source_controller_version is not None and not isinstance ( source_controller_version , ( dict , Number ) ) : raise Exception ( "Expected source_controller_version to be a Number, received: {}" . format ( type ( source_controller_version ) ) ) _params = dict ( ) msg = dict ( type = 'MigrationTarget' , request = 'AdoptResources' , version = 1 , params = _params ) _params [ 'model-tag' ] = model_tag _params [ 'source-controller-version' ] = source_controller_version reply = await self . rpc ( msg ) return reply
AdoptResources asks the cloud provider to update the controller
tags for a model's resources.
AdoptResources asks the cloud provider to update the controller tags for a model ' s resources .
'''
        AdoptResources asks the cloud provider to update the controller
        tags for a model's resources. This prevents the resources from
        being destroyed if the source controller is destroyed after the
        model is migrated away.

        model_tag : str
        source_controller_version : Number
        Returns -> None
        ''' # map input types to rpc msg
self
model_tag
source_controller_version