Cloud TPU V1 API - Module Google::Cloud::Tpu::V1::Tpu::Paths (v0.4.1)

Reference documentation and code samples for the Cloud TPU V1 API module Google::Cloud::Tpu::V1::Tpu::Paths.

Path helper methods for the Tpu API.

Methods

#accelerator_type_path

def accelerator_type_path(project:, location:, accelerator_type:) -> ::String

Create a fully-qualified AcceleratorType resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/acceleratorTypes/{accelerator_type}

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

#node_path

def node_path(project:, location:, node:) -> ::String

Create a fully-qualified Node resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/nodes/{node}

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

#tensor_flow_version_path

def tensor_flow_version_path(project:, location:, tensor_flow_version:) -> ::String

Create a fully-qualified TensorFlowVersion resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/tensorFlowVersions/{tensor_flow_version}

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