code: def list_permissions(self, group_name=None, resource=None):
          
          return self.service.list_permissions(group_name, resource,
                                               self.url_prefix, self.auth, self.session, self.session_send_opts)
docs: List permission sets associated filtering by group and/or resource.
  
          Args:
              group_name (string): Name of group.
              resource (intern.resource.boss.Resource): Identifies which data model object to operate on.
  
          Returns:
              (list): List of permissions.
  
          Raises:
              requests.HTTPError on failure.