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

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

        NOTE: AddCharmWithAuthorization is deprecated as of juju 2.9 and charms
        facade version 3. Please discontinue use and move to the charms facade
        version.

        TODO: remove in juju 3.0

        channel : str
        force : bool
        macaroon : Macaroon
        url : str
        Returns -> None
        '''
        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 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='Client',
                   request='AddCharmWithAuthorization',
                   version=3,
                   params=_params)
        _params['channel'] = channel
        _params['force'] = force
        _params['macaroon'] = macaroon
        _params['url'] = url
        reply = await self.rpc(msg)
        return reply

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

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

        NOTE: AddCharmWithAuthorization is deprecated as of juju 2.9 and charms
        facade version 3. Please discontinue use and move to the charms facade
        version.

        TODO: remove in juju 3.0

        channel : str
        force : bool
        macaroon : Macaroon
        url : str
        Returns -> None
        
AddCharmWithAuthorization adds the given charm URL (which must include
revision) to the model, if it does not exist yet. Local charms are not
supported, only charm store URLs.

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

AddCharmWithAuthorization is deprecated as of juju 2.9 and charms
facade version 3. Please discontinue use and move to the charms facade
version.



channel : str
force : bool
macaroon : Macaroon
url : str
Returns -> None
AddCharmWithAuthorization adds the given charm URL ( which must include revision ) to the model if it does not exist yet . Local charms are not supported only charm store URLs . The authorization macaroon args . CharmStoreMacaroon may be omitted in which case this call is equivalent to AddCharm . AddCharmWithAuthorization is deprecated as of juju 2 . 9 and charms facade version 3 . Please discontinue use and move to the charms facade version . channel : str force : bool macaroon : Macaroon url : str Returns - > None
async def AddCharmWithAuthorization(self, channel=None, force=None, macaroon=None, url=None):
        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 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='Client',
                   request='AddCharmWithAuthorization',
                   version=3,
                   params=_params)
        _params['channel'] = channel
        _params['force'] = force
        _params['macaroon'] = macaroon
        _params['url'] = url
        reply = await self.rpc(msg)
        return reply
async def AddCharmWithAuthorization ( self , channel = None , force = None , macaroon = None , url = None ) : 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 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 = 'Client' , request = 'AddCharmWithAuthorization' , version = 3 , params = _params ) _params [ 'channel' ] = channel _params [ 'force' ] = force _params [ 'macaroon' ] = macaroon _params [ 'url' ] = url reply = await self . rpc ( msg ) return reply
AddCharmWithAuthorization adds the given charm URL (which must include
revision) to the model, if it does not exist yet.
AddCharmWithAuthorization adds the given charm URL ( which must include revision ) to the model if it does not exist yet .
'''
        AddCharmWithAuthorization adds the given charm URL (which must include
        revision) to the model, if it does not exist yet. Local charms are not
        supported, only charm store URLs. See also AddLocalCharm().

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

        NOTE: AddCharmWithAuthorization is deprecated as of juju 2.9 and charms
        facade version 3. Please discontinue use and move to the charms facade
        version.

        TODO: remove in juju 3.0

        channel : str
        force : bool
        macaroon : Macaroon
        url : str
        Returns -> None
        ''' # map input types to rpc msg
self
channel
force
macaroon
url