Batch V1 API - Module Google::Cloud::Batch::V1::BatchService::Paths (v0.5.0)

Reference documentation and code samples for the Batch V1 API module Google::Cloud::Batch::V1::BatchService::Paths.

Path helper methods for the BatchService API.

Methods

#job_path

def job_path(project:, location:, job:) -> ::String

Create a fully-qualified Job resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/jobs/{job}

Parameters
  • project (String)
  • location (String)
  • job (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)

#task_group_path

def task_group_path(project:, location:, job:, task_group:) -> ::String

Create a fully-qualified TaskGroup resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}

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

#task_path

def task_path(project:, location:, job:, task_group:, task:) -> ::String

Create a fully-qualified Task resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}/tasks/{task}

Parameters
  • project (String)
  • location (String)
  • job (String)
  • task_group (String)
  • task (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)