code: async def AddPendingResources(self, addcharmwithauthorization, entity, resources):
          '''
          addcharmwithauthorization : AddCharmWithAuthorization
          entity : Entity
          resources : typing.Sequence[~CharmResource]
          Returns -> typing.Union[_ForwardRef('ErrorResult'), typing.Sequence[str]]
          '''
          # 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['Resources'] = resources
          reply = await self.rpc(msg)
          return replync def AddPendingResources(self, addcharmwithauthorization, entity, resources):
          '''
          addcharmwithauthorization : AddCharmWithAuthorization
          entity : Entity
          resources : typing.Sequence[~CharmResource]
          Returns -> typing.Union[_ForwardRef('ErrorResult'), typing.Sequence[str]]
          '''
          # 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['Resources'] = resources
          reply = await self.rpc(msg)
          return reply
docs: addcharmwithauthorization : AddCharmWithAuthorization
          entity : Entity
          resources : typing.Sequence[~CharmResource]
          Returns -> typing.Union[_ForwardRef('ErrorResult'), typing.Sequence[str]]