juju/client/_client3.py
async def AddCharm(self, charm_origin=None, force=None, series=None, url=None):
        '''
        AddCharm 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().

        charm_origin : CharmOrigin
        force : bool
        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 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='AddCharm',
                   version=3,
                   params=_params)
        _params['charm-origin'] = charm_origin
        _params['force'] = force
        _params['series'] = series
        _params['url'] = url
        reply = await self.rpc(msg)
        return reply

        AddCharm 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().

        charm_origin : CharmOrigin
        force : bool
        series : str
        url : str
        Returns -> CharmOriginResult
        
AddCharm 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.

charm_origin : CharmOrigin
force : bool
series : str
url : str
Returns -> CharmOriginResult
AddCharm 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 . charm_origin : CharmOrigin force : bool series : str url : str Returns - > CharmOriginResult
async def AddCharm(self, charm_origin=None, force=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 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='AddCharm',
                   version=3,
                   params=_params)
        _params['charm-origin'] = charm_origin
        _params['force'] = force
        _params['series'] = series
        _params['url'] = url
        reply = await self.rpc(msg)
        return reply
async def AddCharm ( self , charm_origin = None , force = 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 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 = 'AddCharm' , version = 3 , params = _params ) _params [ 'charm-origin' ] = charm_origin _params [ 'force' ] = force _params [ 'series' ] = series _params [ 'url' ] = url reply = await self . rpc ( msg ) return reply
AddCharm adds the given charm URL (which must include revision) to the
environment, if it does not exist yet.
AddCharm adds the given charm URL ( which must include revision ) to the environment if it does not exist yet .
'''
        AddCharm 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().

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