class_docstr: A class representing a Workspace object.
  
  Attributes:
      id: (int) The ID of the workspace.
      name: (Mutable, str) The name of the workspace.
docstr: Lists the resources pools that the workspace has access to. Tasks submitted to this
  workspace can only use the resource pools listed here.
docstr_tok: ["Lists","the","resources","pools","that","the","workspace","has","access","to",".","Tasks","submitted","to","this","workspace","can","only","use","the","resource","pools","listed","here","."]
code: def list_pools(self) -> List[resource_pool.ResourcePool]:
      """
      Lists the resources pools that the workspace has access to. Tasks submitted to this
      workspace can only use the resource pools listed here.
      """
  
      def get_with_offset(
          offset: int,
      ) -> bindings.v1ListRPsBoundToWorkspaceResponse:
          return bindings.get_ListRPsBoundToWorkspace(
              session=self._session,
              offset=offset,
              workspaceId=self.id,
          )
  
      resps = api.read_paginated(get_with_offset)
      resource_pool_names = [
          rp
          for r in resps
          if r.resourcePools is not None
          for rp in r.resourcePools
      ]
  
      return [
          resource_pool.ResourcePool(self._session, name=rp)
          for rp in resource_pool_names
      ]
  
file_path: determined/harness/determined/common/experimental/workspace.py
imports: import itertools
  from typing import Iterable, List, Optional
  from determined.common import api
  from determined.common.api import bindings, errors
  from determined.common.experimental import project, resource_pool
label_desc: Use image node_id 5 for calling the Workspace obj's underlying member method code with example usage: obj.list_pools() and returns: unknown, bindings