# Google Cloud Network Connectivity V1 Client - Class LinkedVpnTunnels (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.0 2.2.2 2.1.2 2.0.2 1.5.5 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class LinkedVpnTunnels.

A collection of Cloud VPN tunnel resources. These resources should be
redundant HA VPN tunnels that all advertise the same prefixes to Google
Cloud. Alternatively, in a passive/active configuration, all tunnels
should be capable of advertising the same prefixes.

Generated from protobuf message `google.cloud.networkconnectivity.v1.LinkedVpnTunnels`

## Namespace

Google \\ Cloud \\ NetworkConnectivity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ uris` | `string[]` The URIs of linked VPN tunnel resources. |
| `↳ site_to_site_data_transfer` | `bool` A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). |
| `↳ vpc_network` | `string` Output only. The VPC network where these VPN tunnels are located. |
| `↳ include_import_ranges` | `string[]` Optional. IP ranges allowed to be included during import from hub (does not control transit connectivity). The only allowed value for now is "ALL_IPV4_RANGES". |

### getUris

The URIs of linked VPN tunnel resources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setUris

The URIs of linked VPN tunnel resources.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSiteToSiteDataTransfer

A value that controls whether site-to-site data transfer is enabled for
these resources. Data transfer is available only in [supported
locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setSiteToSiteDataTransfer

A value that controls whether site-to-site data transfer is enabled for
these resources. Data transfer is available only in [supported
locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVpcNetwork

Output only. The VPC network where these VPN tunnels are located.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setVpcNetwork

Output only. The VPC network where these VPN tunnels are located.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getIncludeImportRanges

Optional. IP ranges allowed to be included during import from hub (does not
control transit connectivity). The only allowed value for now is
"ALL_IPV4_RANGES".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setIncludeImportRanges

Optional. IP ranges allowed to be included during import from hub (does not
control transit connectivity). The only allowed value for now is
"ALL_IPV4_RANGES".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |