code: def grant(self, auth, resource, permissions, ttl=None, defer=False):
          
          args = [resource, permissions]
          if ttl is not None:
              args.append({"ttl": ttl})
          return self._call('grant', auth, args, defer)
docs: Grant resources with specific permissions and return a token.
  
          Args:
              auth: <cik>
              resource: Alias or ID of resource.
              permissions: permissions of resources.
              ttl: Time To Live.