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

0.17.0 (latest) 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.1 0.8.2 0.7.0 0.6.1 0.5.0 0.4.5 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.

## Extended By

- [Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Paths](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Cloud-NetworkConnectivity-V1alpha1-HubService-Paths)

## Included In

- [Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Cloud-NetworkConnectivity-V1alpha1-HubService-Client)
- [Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Paths](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Cloud-NetworkConnectivity-V1alpha1-HubService-Paths)

## Methods

### #hub_path

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

Create a fully-qualified Hub resource string.


The resource will be in the following format:

<br />

`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:

<br />

`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:

<br />

`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:

<br />

`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:

<br />

`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:

<br />

`projects/{project}/regions/{region}/vpnTunnels/{resource_id}`
**Parameters**

- **project** (String)
- **region** (String)
- **resource_id** (String)
**Returns**

- (::String)
**Raises**

- (::ArgumentError)