juju/client/_client3.py
async def SetModelConstraints(self, application=None, constraints=None):
        '''
        SetModelConstraints sets the constraints for the model.

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

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

        # map input types to rpc msg
        _params = dict()
        msg = dict(type='Client',
                   request='SetModelConstraints',
                   version=3,
                   params=_params)
        _params['application'] = application
        _params['constraints'] = constraints
        reply = await self.rpc(msg)
        return reply

        SetModelConstraints sets the constraints for the model.

        application : str
        constraints : Value
        Returns -> None
        
SetModelConstraints sets the constraints for the model.
application : str
constraints : Value
Returns -> None
SetModelConstraints sets the constraints for the model . application : str constraints : Value Returns - > None
async def SetModelConstraints(self, application=None, constraints=None):
        if application is not None and not isinstance(application, (bytes, str)):
            raise Exception("Expected application to be a str, received: {}".format(type(application)))
        if constraints is not None and not isinstance(constraints, (dict, Value)):
            raise Exception("Expected constraints to be a Value, received: {}".format(type(constraints)))
        _params = dict()
        msg = dict(type='Client',
                   request='SetModelConstraints',
                   version=3,
                   params=_params)
        _params['application'] = application
        _params['constraints'] = constraints
        reply = await self.rpc(msg)
        return reply
async def SetModelConstraints ( self , application = None , constraints = None ) : if application is not None and not isinstance ( application , ( bytes , str ) ) : raise Exception ( "Expected application to be a str, received: {}" . format ( type ( application ) ) ) if constraints is not None and not isinstance ( constraints , ( dict , Value ) ) : raise Exception ( "Expected constraints to be a Value, received: {}" . format ( type ( constraints ) ) ) _params = dict ( ) msg = dict ( type = 'Client' , request = 'SetModelConstraints' , version = 3 , params = _params ) _params [ 'application' ] = application _params [ 'constraints' ] = constraints reply = await self . rpc ( msg ) return reply
SetModelConstraints sets the constraints for the model.
SetModelConstraints sets the constraints for the model .
'''
        SetModelConstraints sets the constraints for the model.

        application : str
        constraints : Value
        Returns -> None
        ''' # map input types to rpc msg
self
application
constraints