module Google::Cloud::Dataproc::V1beta2::ClusterController::Paths

Path helper methods for the ClusterController API.

Public Instance Methods

cluster_path(project:, location:, cluster: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Cluster resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/clusters/{cluster}`

@param project [String] @param location [String] @param cluster [String]

@return [::String]

# File lib/google/cloud/dataproc/v1beta2/cluster_controller/paths.rb, line 39
def cluster_path project:, location:, cluster:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/clusters/#{cluster}"
end