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
array
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.
↳ vpc_network
string
Output only. The VPC network where these VPN tunnels are located.
↳ include_import_ranges
array
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".
A value that controls whether site-to-site data transfer is enabled for
these resources. Data transfer is available only in supported
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.
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".
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".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud Network Connectivity V1 Client - Class LinkedVpnTunnels (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-network-connectivity/latest/V1.LinkedVpnTunnels)\n- [2.2.2](/php/docs/reference/cloud-network-connectivity/2.2.2/V1.LinkedVpnTunnels)\n- [2.1.2](/php/docs/reference/cloud-network-connectivity/2.1.2/V1.LinkedVpnTunnels)\n- [2.0.2](/php/docs/reference/cloud-network-connectivity/2.0.2/V1.LinkedVpnTunnels)\n- [1.5.5](/php/docs/reference/cloud-network-connectivity/1.5.5/V1.LinkedVpnTunnels)\n- [1.4.2](/php/docs/reference/cloud-network-connectivity/1.4.2/V1.LinkedVpnTunnels)\n- [1.3.0](/php/docs/reference/cloud-network-connectivity/1.3.0/V1.LinkedVpnTunnels)\n- [1.2.0](/php/docs/reference/cloud-network-connectivity/1.2.0/V1.LinkedVpnTunnels)\n- [1.1.1](/php/docs/reference/cloud-network-connectivity/1.1.1/V1.LinkedVpnTunnels)\n- [1.0.5](/php/docs/reference/cloud-network-connectivity/1.0.5/V1.LinkedVpnTunnels) \nReference documentation and code samples for the Google Cloud Network Connectivity V1 Client class LinkedVpnTunnels.\n\nA collection of Cloud VPN tunnel resources. These resources should be\nredundant HA VPN tunnels that all advertise the same prefixes to Google\nCloud. Alternatively, in a passive/active configuration, all tunnels\nshould be capable of advertising the same prefixes.\n\nGenerated from protobuf message `google.cloud.networkconnectivity.v1.LinkedVpnTunnels`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetworkConnectivity \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getUris\n\nThe URIs of linked VPN tunnel resources.\n\n### setUris\n\nThe URIs of linked VPN tunnel resources.\n\n### getSiteToSiteDataTransfer\n\nA value that controls whether site-to-site data transfer is enabled for\nthese resources. Data transfer is available only in [supported\nlocations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).\n\n### setSiteToSiteDataTransfer\n\nA value that controls whether site-to-site data transfer is enabled for\nthese resources. Data transfer is available only in [supported\nlocations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).\n\n### getVpcNetwork\n\nOutput only. The VPC network where these VPN tunnels are located.\n\n### setVpcNetwork\n\nOutput only. The VPC network where these VPN tunnels are located.\n\n### getIncludeImportRanges\n\nOptional. IP ranges allowed to be included during import from hub (does not\ncontrol transit connectivity). The only allowed value for now is\n\"ALL_IPV4_RANGES\".\n\n### setIncludeImportRanges\n\nOptional. IP ranges allowed to be included during import from hub (does not\ncontrol transit connectivity). The only allowed value for now is\n\"ALL_IPV4_RANGES\"."]]