Cluster Director V1BETA API - Module Google::Cloud::HypercomputeCluster::V1beta::HypercomputeCluster::Paths (v1.3.0)

Reference documentation and code samples for the Cluster Director V1BETA API module Google::Cloud::HypercomputeCluster::V1beta::HypercomputeCluster::Paths.

Path helper methods for the HypercomputeCluster API.

Methods

#bucket_path

def bucket_path(project:, bucket:) -> ::String

Create a fully-qualified Bucket resource string.

The resource will be in the following format:

projects/{project}/buckets/{bucket}

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

#cluster_path

def cluster_path(project:, location:, cluster:) -> ::String

Create a fully-qualified Cluster resource string.

The resource will be in the following format:

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

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

#compute_instance_path

def compute_instance_path(project:, zone:, instance:) -> ::String

Create a fully-qualified ComputeInstance resource string.

The resource will be in the following format:

projects/{project}/zones/{zone}/instances/{instance}

Parameters
  • project (String)
  • zone (String)
  • instance (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#disk_path

def disk_path(project:, zone:, disk:) -> ::String

Create a fully-qualified Disk resource string.

The resource will be in the following format:

projects/{project}/zones/{zone}/disks/{disk}

Parameters
  • project (String)
  • zone (String)
  • disk (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#disk_type_path

def disk_type_path(project:, zone:, disk_type:) -> ::String

Create a fully-qualified DiskType resource string.

The resource will be in the following format:

projects/{project}/zones/{zone}/diskTypes/{disk_type}

Parameters
  • project (String)
  • zone (String)
  • disk_type (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#file_instance_path

def file_instance_path(project:, location:, instance:) -> ::String

Create a fully-qualified FileInstance resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/instances/{instance}

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

#image_path

def image_path(project:, image:) -> ::String

Create a fully-qualified Image resource string.

The resource will be in the following format:

projects/{project}/global/images/{image}

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

#instance_group_manager_path

def instance_group_manager_path(project:, zone:, instance_group_manager:) -> ::String
def instance_group_manager_path(project:, region:, instance_group_manager:) -> ::String

Create a fully-qualified InstanceGroupManager resource string.

Overloads
def instance_group_manager_path(project:, zone:, instance_group_manager:) -> ::String
The resource will be in the following format:

projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}

Parameters
  • project (String)
  • zone (String)
  • instance_group_manager (String)
def instance_group_manager_path(project:, region:, instance_group_manager:) -> ::String
The resource will be in the following format:

projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}

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

#instance_path

def instance_path(project:, location:, instance:) -> ::String

Create a fully-qualified Instance resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/instances/{instance}

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

#instance_template_path

def instance_template_path(project:, instance_template:) -> ::String

Create a fully-qualified InstanceTemplate resource string.

The resource will be in the following format:

projects/{project}/global/instanceTemplates/{instance_template}

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

#network_path

def network_path(project:, network:) -> ::String

Create a fully-qualified Network resource string.

The resource will be in the following format:

projects/{project}/global/networks/{network}

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

#project_path

def project_path(project:) -> ::String

Create a fully-qualified Project resource string.

The resource will be in the following format:

projects/{project}

Parameter
  • project (String)
Returns
  • (::String)

#reservation_block_path

def reservation_block_path(project:, zone:, reservation:, reservation_block:) -> ::String

Create a fully-qualified ReservationBlock resource string.

The resource will be in the following format:

projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservation_block}

Parameters
  • project (String)
  • zone (String)
  • reservation (String)
  • reservation_block (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#reservation_path

def reservation_path(project:, zone:, reservation:) -> ::String

Create a fully-qualified Reservation resource string.

The resource will be in the following format:

projects/{project}/zones/{zone}/reservations/{reservation}

Parameters
  • project (String)
  • zone (String)
  • reservation (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#reservation_sub_block_path

def reservation_sub_block_path(project:, zone:, reservation:, reservation_block:, reservation_sub_block:) -> ::String

Create a fully-qualified ReservationSubBlock resource string.

The resource will be in the following format:

projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservation_block}/reservationSubBlocks/{reservation_sub_block}

Parameters
  • project (String)
  • zone (String)
  • reservation (String)
  • reservation_block (String)
  • reservation_sub_block (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#snapshot_path

def snapshot_path(project:, snapshot:) -> ::String
def snapshot_path(project:, region:, snapshot:) -> ::String

Create a fully-qualified Snapshot resource string.

Overloads
def snapshot_path(project:, snapshot:) -> ::String
The resource will be in the following format:

projects/{project}/global/snapshots/{snapshot}

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

projects/{project}/regions/{region}/snapshots/{snapshot}

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

#storage_pool_path

def storage_pool_path(project:, zone:, storage_pool:) -> ::String

Create a fully-qualified StoragePool resource string.

The resource will be in the following format:

projects/{project}/zones/{zone}/storagePools/{storage_pool}

Parameters
  • project (String)
  • zone (String)
  • storage_pool (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#subnetwork_path

def subnetwork_path(project:, region:, subnetwork:) -> ::String

Create a fully-qualified Subnetwork resource string.

The resource will be in the following format:

projects/{project}/regions/{region}/subnetworks/{subnetwork}

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