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