Bare Metal Solution V2 API - Module Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Paths (v0.3.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_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)

#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_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)

#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)

#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)