juju/client/_client1.py
async def AddPendingResources(self, addcharmwithauthorization=None, entity=None, channel=None, force=None, macaroon=None, resources=None, tag=None, url=None):
        '''
        AddPendingResources adds the provided resources (info) to the Juju
        model in a pending state, meaning they are not available until
        resolved.

        addcharmwithauthorization : AddCharmWithAuthorization
        entity : Entity
        channel : str
        force : bool
        macaroon : Macaroon
        resources : typing.Sequence[~CharmResource]
        tag : str
        url : str
        Returns -> AddPendingResourcesResult
        '''
        if addcharmwithauthorization is not None and not isinstance(addcharmwithauthorization, (dict, AddCharmWithAuthorization)):
            raise Exception("Expected addcharmwithauthorization to be a AddCharmWithAuthorization, received: {}".format(type(addcharmwithauthorization)))

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

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

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

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

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

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

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

        # map input types to rpc msg
        _params = dict()
        msg = dict(type='Resources',
                   request='AddPendingResources',
                   version=1,
                   params=_params)
        _params['AddCharmWithAuthorization'] = addcharmwithauthorization
        _params['Entity'] = entity
        _params['channel'] = channel
        _params['force'] = force
        _params['macaroon'] = macaroon
        _params['resources'] = resources
        _params['tag'] = tag
        _params['url'] = url
        reply = await self.rpc(msg)
        return reply

        AddPendingResources adds the provided resources (info) to the Juju
        model in a pending state, meaning they are not available until
        resolved.

        addcharmwithauthorization : AddCharmWithAuthorization
        entity : Entity
        channel : str
        force : bool
        macaroon : Macaroon
        resources : typing.Sequence[~CharmResource]
        tag : str
        url : str
        Returns -> AddPendingResourcesResult
        
AddPendingResources adds the provided resources (info) to the Juju
model in a pending state, meaning they are not available until
resolved.


AddPendingResources adds the provided resources ( info ) to the Juju model in a pending state meaning they are not available until resolved .
async def AddPendingResources(self, addcharmwithauthorization=None, entity=None, channel=None, force=None, macaroon=None, resources=None, tag=None, url=None):
        if addcharmwithauthorization is not None and not isinstance(addcharmwithauthorization, (dict, AddCharmWithAuthorization)):
            raise Exception("Expected addcharmwithauthorization to be a AddCharmWithAuthorization, received: {}".format(type(addcharmwithauthorization)))
        if entity is not None and not isinstance(entity, (dict, Entity)):
            raise Exception("Expected entity to be a Entity, received: {}".format(type(entity)))
        if channel is not None and not isinstance(channel, (bytes, str)):
            raise Exception("Expected channel to be a str, received: {}".format(type(channel)))
        if force is not None and not isinstance(force, bool):
            raise Exception("Expected force to be a bool, received: {}".format(type(force)))
        if macaroon is not None and not isinstance(macaroon, (dict, Macaroon)):
            raise Exception("Expected macaroon to be a Macaroon, received: {}".format(type(macaroon)))
        if resources is not None and not isinstance(resources, (bytes, str, list)):
            raise Exception("Expected resources to be a Sequence, received: {}".format(type(resources)))
        if tag is not None and not isinstance(tag, (bytes, str)):
            raise Exception("Expected tag to be a str, received: {}".format(type(tag)))
        if url is not None and not isinstance(url, (bytes, str)):
            raise Exception("Expected url to be a str, received: {}".format(type(url)))
        _params = dict()
        msg = dict(type='Resources',
                   request='AddPendingResources',
                   version=1,
                   params=_params)
        _params['AddCharmWithAuthorization'] = addcharmwithauthorization
        _params['Entity'] = entity
        _params['channel'] = channel
        _params['force'] = force
        _params['macaroon'] = macaroon
        _params['resources'] = resources
        _params['tag'] = tag
        _params['url'] = url
        reply = await self.rpc(msg)
        return reply
async def AddPendingResources ( self , addcharmwithauthorization = None , entity = None , channel = None , force = None , macaroon = None , resources = None , tag = None , url = None ) : if addcharmwithauthorization is not None and not isinstance ( addcharmwithauthorization , ( dict , AddCharmWithAuthorization ) ) : raise Exception ( "Expected addcharmwithauthorization to be a AddCharmWithAuthorization, received: {}" . format ( type ( addcharmwithauthorization ) ) ) if entity is not None and not isinstance ( entity , ( dict , Entity ) ) : raise Exception ( "Expected entity to be a Entity, received: {}" . format ( type ( entity ) ) ) if channel is not None and not isinstance ( channel , ( bytes , str ) ) : raise Exception ( "Expected channel to be a str, received: {}" . format ( type ( channel ) ) ) if force is not None and not isinstance ( force , bool ) : raise Exception ( "Expected force to be a bool, received: {}" . format ( type ( force ) ) ) if macaroon is not None and not isinstance ( macaroon , ( dict , Macaroon ) ) : raise Exception ( "Expected macaroon to be a Macaroon, received: {}" . format ( type ( macaroon ) ) ) if resources is not None and not isinstance ( resources , ( bytes , str , list ) ) : raise Exception ( "Expected resources to be a Sequence, received: {}" . format ( type ( resources ) ) ) if tag is not None and not isinstance ( tag , ( bytes , str ) ) : raise Exception ( "Expected tag to be a str, received: {}" . format ( type ( tag ) ) ) if url is not None and not isinstance ( url , ( bytes , str ) ) : raise Exception ( "Expected url to be a str, received: {}" . format ( type ( url ) ) ) _params = dict ( ) msg = dict ( type = 'Resources' , request = 'AddPendingResources' , version = 1 , params = _params ) _params [ 'AddCharmWithAuthorization' ] = addcharmwithauthorization _params [ 'Entity' ] = entity _params [ 'channel' ] = channel _params [ 'force' ] = force _params [ 'macaroon' ] = macaroon _params [ 'resources' ] = resources _params [ 'tag' ] = tag _params [ 'url' ] = url reply = await self . rpc ( msg ) return reply
AddPendingResources adds the provided resources (info) to the Juju
model in a pending state, meaning they are not available until
resolved.
AddPendingResources adds the provided resources ( info ) to the Juju model in a pending state meaning they are not available until resolved .
'''
        AddPendingResources adds the provided resources (info) to the Juju
        model in a pending state, meaning they are not available until
        resolved.

        addcharmwithauthorization : AddCharmWithAuthorization
        entity : Entity
        channel : str
        force : bool
        macaroon : Macaroon
        resources : typing.Sequence[~CharmResource]
        tag : str
        url : str
        Returns -> AddPendingResourcesResult
        ''' # map input types to rpc msg
self
addcharmwithauthorization
entity
channel
force
macaroon
resources
tag
url