module Google::Cloud::Dataproc::V1::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/v1/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
service_path(project:, location:, service: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Service
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/services/{service}`
@param project [String] @param location [String] @param service [String]
@return [::String]
# File lib/google/cloud/dataproc/v1/cluster_controller/paths.rb, line 58 def service_path project:, location:, service: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/services/#{service}" end