class_docstr: A class representing a resource pool object.
  
  Attributes:
      name: (str) The name of the resource pool.
class_docstr_tok: ["A","class","representing","a","resource","pool","object",".","Attributes",":","name",":","(","str",")","The","name","of","the","resource","pool","."]
docstr: Lists the workspaces bound to a specified resource pool.
  
  A resource pool with bindings can only be used by workspaces bound to it.
docstr_tok: ["Lists","the","workspaces","bound","to","a","specified","resource","pool",".","A","resource","pool","with","bindings","can","only","be","used","by","workspaces","bound","to","it","."]
code: def list_workspaces(self) -> List[Optional[str]]:
      """Lists the workspaces bound to a specified resource pool.
  
      A resource pool with bindings can only be used by workspaces bound to it.
      """
  
      def get_with_offset(
          offset: int,
      ) -> bindings.v1ListWorkspacesBoundToRPResponse:
          return bindings.get_ListWorkspacesBoundToRP(
              session=self._session,
              offset=offset,
              resourcePoolName=self.name,
          )
  
      resps = api.read_paginated(get_with_offset)
      workspace_names = [
          workspace.Workspace(
              session=self._session, workspace_id=w
          ).name
          for r in resps
          if r.workspaceIds is not None
          for w in r.workspaceIds
      ]
  
      return workspace_names
  
file_path: determined/harness/determined/common/experimental/resource_pool.py
imports: from typing import List, Optional
  from determined.common import api
  from determined.common.api import bindings
  from determined.common.experimental import workspace
label_desc: Use image node_id 5 for calling the ResourcePool obj's underlying member method code with example usage: obj.list_workspaces() and returns: workspace_names, bindings