Bare Metal Solution V2 API - Module Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Paths (v0.9.0)

Reference documentation and code samples for the Bare Metal Solution V2 API module Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Paths.

Path helper methods for the BareMetalSolution API.

Methods

#instance_config_path

def instance_config_path(project:, location:, instance_config:) -> ::String

Create a fully-qualified InstanceConfig resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/instanceConfigs/{instance_config}

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

#interconnect_attachment_path

def interconnect_attachment_path(project:, region:, interconnect_attachment:) -> ::String

Create a fully-qualified InterconnectAttachment resource string.

The resource will be in the following format:

projects/{project}/regions/{region}/interconnectAttachments/{interconnect_attachment}

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

#lun_path

def lun_path(project:, location:, volume:, lun:) -> ::String

Create a fully-qualified Lun resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/volumes/{volume}/luns/{lun}

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

#network_config_path

def network_config_path(project:, location:, network_config:) -> ::String

Create a fully-qualified NetworkConfig resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/networkConfigs/{network_config}

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

#network_path

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

Create a fully-qualified Network resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/networks/{network}

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

#nfs_share_path

def nfs_share_path(project:, location:, nfs_share:) -> ::String

Create a fully-qualified NFSShare resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/nfsShares/{nfs_share}

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

#provisioning_config_path

def provisioning_config_path(project:, location:, provisioning_config:) -> ::String

Create a fully-qualified ProvisioningConfig resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/provisioningConfigs/{provisioning_config}

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

#server_network_template_path

def server_network_template_path(project:, location:, server_network_template:) -> ::String

Create a fully-qualified ServerNetworkTemplate resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}

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

#ssh_key_path

def ssh_key_path(project:, location:, ssh_key:) -> ::String

Create a fully-qualified SshKey resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/sshKeys/{ssh_key}

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

#volume_config_path

def volume_config_path(project:, location:, volume_config:) -> ::String

Create a fully-qualified VolumeConfig resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/volumeConfigs/{volume_config}

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

#volume_path

def volume_path(project:, location:, volume:) -> ::String

Create a fully-qualified Volume resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/volumes/{volume}

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

#volume_snapshot_path

def volume_snapshot_path(project:, location:, volume:, snapshot:) -> ::String

Create a fully-qualified VolumeSnapshot resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}

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