juju/client/_client9.py
async def CreateModel(self, cloud_tag=None, config=None, credential=None, name=None, owner_tag=None, region=None):
        '''
        CreateModel creates a new model using the account and
        model config specified in the args.

        cloud_tag : str
        config : typing.Mapping[str, typing.Any]
        credential : str
        name : str
        owner_tag : str
        region : str
        Returns -> ModelInfo
        '''
        if cloud_tag is not None and not isinstance(cloud_tag, (bytes, str)):
            raise Exception("Expected cloud_tag to be a str, received: {}".format(type(cloud_tag)))

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

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

        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 region is not None and not isinstance(region, (bytes, str)):
            raise Exception("Expected region to be a str, received: {}".format(type(region)))

        # map input types to rpc msg
        _params = dict()
        msg = dict(type='ModelManager',
                   request='CreateModel',
                   version=9,
                   params=_params)
        _params['cloud-tag'] = cloud_tag
        _params['config'] = config
        _params['credential'] = credential
        _params['name'] = name
        _params['owner-tag'] = owner_tag
        _params['region'] = region
        reply = await self.rpc(msg)
        return reply

        CreateModel creates a new model using the account and
        model config specified in the args.

        cloud_tag : str
        config : typing.Mapping[str, typing.Any]
        credential : str
        name : str
        owner_tag : str
        region : str
        Returns -> ModelInfo
        
CreateModel creates a new model using the account and
model config specified in the args.


CreateModel creates a new model using the account and model config specified in the args .
async def CreateModel(self, cloud_tag=None, config=None, credential=None, name=None, owner_tag=None, region=None):
        if cloud_tag is not None and not isinstance(cloud_tag, (bytes, str)):
            raise Exception("Expected cloud_tag to be a str, received: {}".format(type(cloud_tag)))
        if config is not None and not isinstance(config, dict):
            raise Exception("Expected config to be a Mapping, received: {}".format(type(config)))
        if credential is not None and not isinstance(credential, (bytes, str)):
            raise Exception("Expected credential to be a str, received: {}".format(type(credential)))
        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 region is not None and not isinstance(region, (bytes, str)):
            raise Exception("Expected region to be a str, received: {}".format(type(region)))
        _params = dict()
        msg = dict(type='ModelManager',
                   request='CreateModel',
                   version=9,
                   params=_params)
        _params['cloud-tag'] = cloud_tag
        _params['config'] = config
        _params['credential'] = credential
        _params['name'] = name
        _params['owner-tag'] = owner_tag
        _params['region'] = region
        reply = await self.rpc(msg)
        return reply
async def CreateModel ( self , cloud_tag = None , config = None , credential = None , name = None , owner_tag = None , region = None ) : if cloud_tag is not None and not isinstance ( cloud_tag , ( bytes , str ) ) : raise Exception ( "Expected cloud_tag to be a str, received: {}" . format ( type ( cloud_tag ) ) ) if config is not None and not isinstance ( config , dict ) : raise Exception ( "Expected config to be a Mapping, received: {}" . format ( type ( config ) ) ) if credential is not None and not isinstance ( credential , ( bytes , str ) ) : raise Exception ( "Expected credential to be a str, received: {}" . format ( type ( credential ) ) ) 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 region is not None and not isinstance ( region , ( bytes , str ) ) : raise Exception ( "Expected region to be a str, received: {}" . format ( type ( region ) ) ) _params = dict ( ) msg = dict ( type = 'ModelManager' , request = 'CreateModel' , version = 9 , params = _params ) _params [ 'cloud-tag' ] = cloud_tag _params [ 'config' ] = config _params [ 'credential' ] = credential _params [ 'name' ] = name _params [ 'owner-tag' ] = owner_tag _params [ 'region' ] = region reply = await self . rpc ( msg ) return reply
CreateModel creates a new model using the account and
model config specified in the args.
CreateModel creates a new model using the account and model config specified in the args .
'''
        CreateModel creates a new model using the account and
        model config specified in the args.

        cloud_tag : str
        config : typing.Mapping[str, typing.Any]
        credential : str
        name : str
        owner_tag : str
        region : str
        Returns -> ModelInfo
        ''' # map input types to rpc msg
self
cloud_tag
config
credential
name
owner_tag
region