code: def listMethods(self, pid, sdefpid=None):
          '''List available service methods.
  
          :param pid: object pid
          :param sDefPid: service definition pid
          :rtype: :class:`requests.models.Response`
          '''
          # /objects/{pid}/methods ? [format, datetime]
          # /objects/{pid}/methods/{sdefpid} ? [format, datetime]
  
          ## NOTE: getting an error when sdefpid is specified; fedora issue?
  
          uri = 'objects/%(pid)s/methods' % {'pid': pid}
          if sdefpid:
              uri += '/' + sdefpid
          return self.get(uri, params=self.format_xmlf listMethods(self, pid, sdefpid=None):
          '''List available service methods.
  
          :param pid: object pid
          :param sDefPid: service definition pid
          :rtype: :class:`requests.models.Response`
          '''
          # /objects/{pid}/methods ? [format, datetime]
          # /objects/{pid}/methods/{sdefpid} ? [format, datetime]
  
          ## NOTE: getting an error when sdefpid is specified; fedora issue?
  
          uri = 'objects/%(pid)s/methods' % {'pid': pid}
          if sdefpid:
              uri += '/' + sdefpid
          return self.get(uri, params=self.format_xml)
docs: List available service methods.
  
          :param pid: object pid
          :param sDefPid: service definition pid
          :rtype: :class:`requests.models.Response`