Network Connectivity V1 API - Module Google::Cloud::NetworkConnectivity::V1::HubService::Paths (v1.1.0)

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

Path helper methods for the HubService API.

Methods

#group_path

def group_path(project:, hub:, group:) -> ::String

Create a fully-qualified Group resource string.

The resource will be in the following format:

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

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

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

#hub_route_path

def hub_route_path(project:, hub:, route_table:, route:) -> ::String

Create a fully-qualified HubRoute resource string.

The resource will be in the following format:

projects/{project}/locations/global/hubs/{hub}/routeTables/{route_table}/routes/{route}

Parameters
  • project (String)
  • hub (String)
  • route_table (String)
  • route (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)

#network_path

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

Create a fully-qualified Network resource string.

The resource will be in the following format:

projects/{project}/global/networks/{resource_id}

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

#route_table_path

def route_table_path(project:, hub:, route_table:) -> ::String

Create a fully-qualified RouteTable resource string.

The resource will be in the following format:

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

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