Network Connectivity V1alpha1 API - Module Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Paths (v0.6.1)

Reference documentation and code samples for the Network Connectivity V1alpha1 API module Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Paths.

Path helper methods for the HubService API.

Methods

#hub_path

def hub_path(project:, hub:) -> ::String

Create a fully-qualified Hub resource string.

The resource will be in the following format:

projects/{project}/locations/global/hubs/{hub}

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

#instance_path

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

Create a fully-qualified Instance 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)

#interconnect_attachment_path

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

Create a fully-qualified InterconnectAttachment resource string.

The resource will be in the following format:

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

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

#spoke_path

def spoke_path(project:, location:, spoke:) -> ::String

Create a fully-qualified Spoke resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/spokes/{spoke}

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

#vpn_tunnel_path

def vpn_tunnel_path(project:, region:, resource_id:) -> ::String

Create a fully-qualified VpnTunnel resource string.

The resource will be in the following format:

projects/{project}/regions/{region}/vpnTunnels/{resource_id}

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