juju/client/_client9.py
async def ValidateModelUpgrades(self, force=None, model=None):
        '''
        ValidateModelUpgrades validates if a model is allowed to perform an upgrade.
        Examples of why you would want to block a model upgrade, would be situations
        like upgrade-series. If performing an upgrade-series we don't know the
        current status of the machine, so performing an upgrade-model can lead to
        bad unintended errors down the line.

        force : bool
        model : typing.Sequence[~ValidateModelUpgradeParam]
        Returns -> ErrorResults
        '''
        if force is not None and not isinstance(force, bool):
            raise Exception("Expected force to be a bool, received: {}".format(type(force)))

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

        # map input types to rpc msg
        _params = dict()
        msg = dict(type='ModelManager',
                   request='ValidateModelUpgrades',
                   version=9,
                   params=_params)
        _params['force'] = force
        _params['model'] = model
        reply = await self.rpc(msg)
        return reply

        ValidateModelUpgrades validates if a model is allowed to perform an upgrade.
        Examples of why you would want to block a model upgrade, would be situations
        like upgrade-series. If performing an upgrade-series we don't know the
        current status of the machine, so performing an upgrade-model can lead to
        bad unintended errors down the line.

        force : bool
        model : typing.Sequence[~ValidateModelUpgradeParam]
        Returns -> ErrorResults
        
ValidateModelUpgrades validates if a model is allowed to perform an upgrade.
Examples of why you would want to block a model upgrade, would be situations
like upgrade-series. If performing an upgrade-series we don't know the
current status of the machine, so performing an upgrade-model can lead to
bad unintended errors down the line.

force : bool
model : typing.Sequence[~ValidateModelUpgradeParam]
Returns -> ErrorResults
ValidateModelUpgrades validates if a model is allowed to perform an upgrade . Examples of why you would want to block a model upgrade would be situations like upgrade - series . If performing an upgrade - series we don ' t know the current status of the machine so performing an upgrade - model can lead to bad unintended errors down the line . force : bool model : typing . Sequence [ ~ValidateModelUpgradeParam ] Returns - > ErrorResults
async def ValidateModelUpgrades(self, force=None, model=None):
        if force is not None and not isinstance(force, bool):
            raise Exception("Expected force to be a bool, received: {}".format(type(force)))
        if model is not None and not isinstance(model, (bytes, str, list)):
            raise Exception("Expected model to be a Sequence, received: {}".format(type(model)))
        _params = dict()
        msg = dict(type='ModelManager',
                   request='ValidateModelUpgrades',
                   version=9,
                   params=_params)
        _params['force'] = force
        _params['model'] = model
        reply = await self.rpc(msg)
        return reply
async def ValidateModelUpgrades ( self , force = None , model = None ) : if force is not None and not isinstance ( force , bool ) : raise Exception ( "Expected force to be a bool, received: {}" . format ( type ( force ) ) ) if model is not None and not isinstance ( model , ( bytes , str , list ) ) : raise Exception ( "Expected model to be a Sequence, received: {}" . format ( type ( model ) ) ) _params = dict ( ) msg = dict ( type = 'ModelManager' , request = 'ValidateModelUpgrades' , version = 9 , params = _params ) _params [ 'force' ] = force _params [ 'model' ] = model reply = await self . rpc ( msg ) return reply
ValidateModelUpgrades validates if a model is allowed to perform an upgrade.
ValidateModelUpgrades validates if a model is allowed to perform an upgrade .
'''
        ValidateModelUpgrades validates if a model is allowed to perform an upgrade.
        Examples of why you would want to block a model upgrade, would be situations
        like upgrade-series. If performing an upgrade-series we don't know the
        current status of the machine, so performing an upgrade-model can lead to
        bad unintended errors down the line.

        force : bool
        model : typing.Sequence[~ValidateModelUpgradeParam]
        Returns -> ErrorResults
        ''' # map input types to rpc msg
self
force
model