juju/client/_client4.py
async def AddCharmWithAuthorization(self, charm_origin=None, force=None, macaroon=None, series=None, url=None):
        '''
        AddCharmWithAuthorization adds the given charm URL (which must include
        revision) to the environment, if it does not exist yet. Local charms are
        not supported, only charm store and charm hub URLs. See also AddLocalCharm().

        The authorization macaroon, args.CharmStoreMacaroon, may be
        omitted, in which case this call is equivalent to AddCharm.

        charm_origin : CharmOrigin
        force : bool
        macaroon : Macaroon
        series : str
        url : str
        Returns -> CharmOriginResult
        '''
        if charm_origin is not None and not isinstance(charm_origin, (dict, CharmOrigin)):
            raise Exception("Expected charm_origin to be a CharmOrigin, received: {}".format(type(charm_origin)))

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

        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='Charms',
                   request='AddCharmWithAuthorization',
                   version=4,
                   params=_params)
        _params['charm-origin'] = charm_origin
        _params['force'] = force
        _params['macaroon'] = macaroon
        _params['series'] = series
        _params['url'] = url
        reply = await self.rpc(msg)
        return reply

        AddCharmWithAuthorization adds the given charm URL (which must include
        revision) to the environment, if it does not exist yet. Local charms are
        not supported, only charm store and charm hub URLs. See also AddLocalCharm().

        The authorization macaroon, args.CharmStoreMacaroon, may be
        omitted, in which case this call is equivalent to AddCharm.

        charm_origin : CharmOrigin
        force : bool
        macaroon : Macaroon
        series : str
        url : str
        Returns -> CharmOriginResult
        
AddCharmWithAuthorization adds the given charm URL (which must include
revision) to the environment, if it does not exist yet. Local charms are
not supported, only charm store and charm hub URLs.

The authorization macaroon, args.CharmStoreMacaroon, may be
omitted, in which case this call is equivalent to AddCharm.


AddCharmWithAuthorization adds the given charm URL ( which must include revision ) to the environment if it does not exist yet . Local charms are not supported only charm store and charm hub URLs . The authorization macaroon args . CharmStoreMacaroon may be omitted in which case this call is equivalent to AddCharm .
async def AddCharmWithAuthorization(self, charm_origin=None, force=None, macaroon=None, series=None, url=None):
        if charm_origin is not None and not isinstance(charm_origin, (dict, CharmOrigin)):
            raise Exception("Expected charm_origin to be a CharmOrigin, received: {}".format(type(charm_origin)))
        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 series is not None and not isinstance(series, (bytes, str)):
            raise Exception("Expected series to be a str, received: {}".format(type(series)))
        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='Charms',
                   request='AddCharmWithAuthorization',
                   version=4,
                   params=_params)
        _params['charm-origin'] = charm_origin
        _params['force'] = force
        _params['macaroon'] = macaroon
        _params['series'] = series
        _params['url'] = url
        reply = await self.rpc(msg)
        return reply
async def AddCharmWithAuthorization ( self , charm_origin = None , force = None , macaroon = None , series = None , url = None ) : if charm_origin is not None and not isinstance ( charm_origin , ( dict , CharmOrigin ) ) : raise Exception ( "Expected charm_origin to be a CharmOrigin, received: {}" . format ( type ( charm_origin ) ) ) 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 series is not None and not isinstance ( series , ( bytes , str ) ) : raise Exception ( "Expected series to be a str, received: {}" . format ( type ( series ) ) ) 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 = 'Charms' , request = 'AddCharmWithAuthorization' , version = 4 , params = _params ) _params [ 'charm-origin' ] = charm_origin _params [ 'force' ] = force _params [ 'macaroon' ] = macaroon _params [ 'series' ] = series _params [ 'url' ] = url reply = await self . rpc ( msg ) return reply
AddCharmWithAuthorization adds the given charm URL (which must include
revision) to the environment, if it does not exist yet.
AddCharmWithAuthorization adds the given charm URL ( which must include revision ) to the environment if it does not exist yet .
'''
        AddCharmWithAuthorization adds the given charm URL (which must include
        revision) to the environment, if it does not exist yet. Local charms are
        not supported, only charm store and charm hub URLs. See also AddLocalCharm().

        The authorization macaroon, args.CharmStoreMacaroon, may be
        omitted, in which case this call is equivalent to AddCharm.

        charm_origin : CharmOrigin
        force : bool
        macaroon : Macaroon
        series : str
        url : str
        Returns -> CharmOriginResult
        ''' # map input types to rpc msg
self
charm_origin
force
macaroon
series
url