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}
- project (String)
- hub (String)
- group (String)
- (::String)
- (::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}
- project (String)
- hub (String)
- (::String)
- (::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}
- project (String)
- hub (String)
- route_table (String)
- route (String)
- (::String)
- (::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}
- project (String)
- zone (String)
- instance (String)
- (::String)
- (::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}
- project (String)
- region (String)
- resource_id (String)
- (::String)
- (::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}
- project (String)
- location (String)
- (::String)
- (::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}
- project (String)
- resource_id (String)
- (::String)
- (::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}
- project (String)
- hub (String)
- route_table (String)
- (::String)
- (::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}
- project (String)
- location (String)
- spoke (String)
- (::String)
- (::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}
- project (String)
- region (String)
- resource_id (String)
- (::String)
- (::ArgumentError)