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: Replaces all the workspaces bound to a resource pool with those specified.
  
  If no bindings exist, new bindings will be added. Binding the same workspace more than once
  results in an SQL error. Binding workspaces or resource pools that do not exist result in
  Not Found errors.
docstr_tok: ["Replaces","all","the","workspaces","bound","to","a","resource","pool","with","those","specified",".","If","no","bindings","exist",",","new","bindings","will","be","added",".","Binding","the","same","workspace","more","than","once","results","in","an","SQL","error",".","Binding","workspaces","or","resource","pools","that","do","not","exist","result","in","Not","Found","errors","."]
code: def replace_bindings(
      self,
      workspace_names: List[str],
  ) -> None:
      """Replaces all the workspaces bound to a resource pool with those specified.
  
      If no bindings exist, new bindings will be added. Binding the same workspace more than once
      results in an SQL error. Binding workspaces or resource pools that do not exist result in
      Not Found errors.
      """
      req = bindings.v1OverwriteRPWorkspaceBindingsRequest(
          resourcePoolName=self.name,
          workspaceNames=workspace_names,
      )
  
      bindings.put_OverwriteRPWorkspaceBindings(
          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 6 for calling the ResourcePool obj's underlying member method code with example usage: obj.replace_bindings(workspace_names) without return types