Cloud Dataproc V1 API - Module Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Paths (v0.21.0)

Reference documentation and code samples for the Cloud Dataproc V1 API module Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Paths.

Path helper methods for the AutoscalingPolicyService API.

Methods

#autoscaling_policy_path

def autoscaling_policy_path(project:, location:, autoscaling_policy:) -> ::String
def autoscaling_policy_path(project:, region:, autoscaling_policy:) -> ::String

Create a fully-qualified AutoscalingPolicy resource string.

Overloads
def autoscaling_policy_path(project:, location:, autoscaling_policy:) -> ::String
The resource will be in the following format:

projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}

Parameters
  • project (String)
  • location (String)
  • autoscaling_policy (String)
def autoscaling_policy_path(project:, region:, autoscaling_policy:) -> ::String
The resource will be in the following format:

projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}

Parameters
  • project (String)
  • region (String)
  • autoscaling_policy (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#location_path

def location_path(project:, location:) -> ::String

Create a fully-qualified Location resource string.

The resource will be in the following format:

projects/{project}/locations/{location}

Parameters
  • project (String)
  • location (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#region_path

def region_path(project:, region:) -> ::String

Create a fully-qualified Region resource string.

The resource will be in the following format:

projects/{project}/regions/{region}

Parameters
  • project (String)
  • region (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)