juju/client/_client1.py
async def Prechecks(self, agent_version=None, controller_agent_version=None, name=None, owner_tag=None, uuid=None):
        '''
        Prechecks ensure that the target controller is ready to accept a
        model migration.

        agent_version : Number
        controller_agent_version : Number
        name : str
        owner_tag : str
        uuid : str
        Returns -> None
        '''
        if agent_version is not None and not isinstance(agent_version, (dict, Number)):
            raise Exception("Expected agent_version to be a Number, received: {}".format(type(agent_version)))

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

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

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

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

        # map input types to rpc msg
        _params = dict()
        msg = dict(type='MigrationTarget',
                   request='Prechecks',
                   version=1,
                   params=_params)
        _params['agent-version'] = agent_version
        _params['controller-agent-version'] = controller_agent_version
        _params['name'] = name
        _params['owner-tag'] = owner_tag
        _params['uuid'] = uuid
        reply = await self.rpc(msg)
        return reply

        Prechecks ensure that the target controller is ready to accept a
        model migration.

        agent_version : Number
        controller_agent_version : Number
        name : str
        owner_tag : str
        uuid : str
        Returns -> None
        
Prechecks ensure that the target controller is ready to accept a
model migration.


Prechecks ensure that the target controller is ready to accept a model migration .
async def Prechecks(self, agent_version=None, controller_agent_version=None, name=None, owner_tag=None, uuid=None):
        if agent_version is not None and not isinstance(agent_version, (dict, Number)):
            raise Exception("Expected agent_version to be a Number, received: {}".format(type(agent_version)))
        if controller_agent_version is not None and not isinstance(controller_agent_version, (dict, Number)):
            raise Exception("Expected controller_agent_version to be a Number, received: {}".format(type(controller_agent_version)))
        if name is not None and not isinstance(name, (bytes, str)):
            raise Exception("Expected name to be a str, received: {}".format(type(name)))
        if owner_tag is not None and not isinstance(owner_tag, (bytes, str)):
            raise Exception("Expected owner_tag to be a str, received: {}".format(type(owner_tag)))
        if uuid is not None and not isinstance(uuid, (bytes, str)):
            raise Exception("Expected uuid to be a str, received: {}".format(type(uuid)))
        _params = dict()
        msg = dict(type='MigrationTarget',
                   request='Prechecks',
                   version=1,
                   params=_params)
        _params['agent-version'] = agent_version
        _params['controller-agent-version'] = controller_agent_version
        _params['name'] = name
        _params['owner-tag'] = owner_tag
        _params['uuid'] = uuid
        reply = await self.rpc(msg)
        return reply
async def Prechecks ( self , agent_version = None , controller_agent_version = None , name = None , owner_tag = None , uuid = None ) : if agent_version is not None and not isinstance ( agent_version , ( dict , Number ) ) : raise Exception ( "Expected agent_version to be a Number, received: {}" . format ( type ( agent_version ) ) ) if controller_agent_version is not None and not isinstance ( controller_agent_version , ( dict , Number ) ) : raise Exception ( "Expected controller_agent_version to be a Number, received: {}" . format ( type ( controller_agent_version ) ) ) if name is not None and not isinstance ( name , ( bytes , str ) ) : raise Exception ( "Expected name to be a str, received: {}" . format ( type ( name ) ) ) if owner_tag is not None and not isinstance ( owner_tag , ( bytes , str ) ) : raise Exception ( "Expected owner_tag to be a str, received: {}" . format ( type ( owner_tag ) ) ) if uuid is not None and not isinstance ( uuid , ( bytes , str ) ) : raise Exception ( "Expected uuid to be a str, received: {}" . format ( type ( uuid ) ) ) _params = dict ( ) msg = dict ( type = 'MigrationTarget' , request = 'Prechecks' , version = 1 , params = _params ) _params [ 'agent-version' ] = agent_version _params [ 'controller-agent-version' ] = controller_agent_version _params [ 'name' ] = name _params [ 'owner-tag' ] = owner_tag _params [ 'uuid' ] = uuid reply = await self . rpc ( msg ) return reply
Prechecks ensure that the target controller is ready to accept a
model migration.
Prechecks ensure that the target controller is ready to accept a model migration .
'''
        Prechecks ensure that the target controller is ready to accept a
        model migration.

        agent_version : Number
        controller_agent_version : Number
        name : str
        owner_tag : str
        uuid : str
        Returns -> None
        ''' # map input types to rpc msg
self
agent_version
controller_agent_version
name
owner_tag
uuid