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: Binds a resource pool to one or more workspaces.
  
  A resource pool with bindings can only be used by workspaces bound to it. Attempting to add
  a binding that already exists results or binding workspaces or resource pools
  that do not exist will result in errors.
docstr_tok: ["Binds","a","resource","pool","to","one","or","more","workspaces",".","A","resource","pool","with","bindings","can","only","be","used","by","workspaces","bound","to","it",".","Attempting","to","add","a","binding","that","already","exists","results","or","binding","workspaces","or","resource","pools","that","do","not","exist","will","result","in","errors","."]
code: def add_bindings(
      self,
      workspace_names: List[str],
  ) -> None:
      """Binds a resource pool to one or more workspaces.
  
      A resource pool with bindings can only be used by workspaces bound to it. Attempting to add
      a binding that already exists results or binding workspaces or resource pools
      that do not exist will result in errors.
      """
      req = bindings.v1BindRPToWorkspaceRequest(
          resourcePoolName=self.name,
          workspaceNames=workspace_names,
      )
  
      bindings.post_BindRPToWorkspace(
          self._session, body=req, resourcePoolName=self.name
      )
  
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 3 for calling the ResourcePool obj's underlying member method code with example usage: obj.add_bindings(workspace_names) without return types