Reference documentation and code samples for the Compute V1 Client class VpnGatewayStatusVpnConnection.
A VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer gateway. The peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.
Generated from protobuf message google.cloud.compute.v1.VpnGatewayStatusVpnConnection
Namespace
Google \ Cloud \ Compute \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ peer_external_gateway
string
URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
↳ peer_gcp_gateway
string
URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
List of VPN tunnels that are in this VPN connection.
getPeerExternalGateway
URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
Returns
Type
Description
string
hasPeerExternalGateway
clearPeerExternalGateway
setPeerExternalGateway
URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPeerGcpGateway
URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
Returns
Type
Description
string
hasPeerGcpGateway
clearPeerGcpGateway
setPeerGcpGateway
URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getState
HighAvailabilityRequirementState for the VPN connection.
[[["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,["# Compute V1 Client - Class VpnGatewayStatusVpnConnection (1.35.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.35.0 (latest)](/php/docs/reference/cloud-compute/latest/V1.VpnGatewayStatusVpnConnection)\n- [1.34.0](/php/docs/reference/cloud-compute/1.34.0/V1.VpnGatewayStatusVpnConnection)\n- [1.33.0](/php/docs/reference/cloud-compute/1.33.0/V1.VpnGatewayStatusVpnConnection)\n- [1.32.0](/php/docs/reference/cloud-compute/1.32.0/V1.VpnGatewayStatusVpnConnection)\n- [1.31.0](/php/docs/reference/cloud-compute/1.31.0/V1.VpnGatewayStatusVpnConnection)\n- [1.30.0](/php/docs/reference/cloud-compute/1.30.0/V1.VpnGatewayStatusVpnConnection)\n- [1.29.0](/php/docs/reference/cloud-compute/1.29.0/V1.VpnGatewayStatusVpnConnection)\n- [1.28.0](/php/docs/reference/cloud-compute/1.28.0/V1.VpnGatewayStatusVpnConnection)\n- [1.27.0](/php/docs/reference/cloud-compute/1.27.0/V1.VpnGatewayStatusVpnConnection)\n- [1.26.0](/php/docs/reference/cloud-compute/1.26.0/V1.VpnGatewayStatusVpnConnection)\n- [1.25.0](/php/docs/reference/cloud-compute/1.25.0/V1.VpnGatewayStatusVpnConnection)\n- [1.24.0](/php/docs/reference/cloud-compute/1.24.0/V1.VpnGatewayStatusVpnConnection)\n- [1.23.0](/php/docs/reference/cloud-compute/1.23.0/V1.VpnGatewayStatusVpnConnection)\n- [1.22.1](/php/docs/reference/cloud-compute/1.22.1/V1.VpnGatewayStatusVpnConnection)\n- [1.21.0](/php/docs/reference/cloud-compute/1.21.0/V1.VpnGatewayStatusVpnConnection)\n- [1.20.0](/php/docs/reference/cloud-compute/1.20.0/V1.VpnGatewayStatusVpnConnection)\n- [1.19.0](/php/docs/reference/cloud-compute/1.19.0/V1.VpnGatewayStatusVpnConnection)\n- [1.18.1](/php/docs/reference/cloud-compute/1.18.1/V1.VpnGatewayStatusVpnConnection)\n- [1.17.0](/php/docs/reference/cloud-compute/1.17.0/V1.VpnGatewayStatusVpnConnection)\n- [1.16.2](/php/docs/reference/cloud-compute/1.16.2/V1.VpnGatewayStatusVpnConnection)\n- [1.14.0](/php/docs/reference/cloud-compute/1.14.0/V1.VpnGatewayStatusVpnConnection)\n- [1.13.0](/php/docs/reference/cloud-compute/1.13.0/V1.VpnGatewayStatusVpnConnection)\n- [1.12.1](/php/docs/reference/cloud-compute/1.12.1/V1.VpnGatewayStatusVpnConnection)\n- [1.11.1](/php/docs/reference/cloud-compute/1.11.1/V1.VpnGatewayStatusVpnConnection)\n- [1.10.1](/php/docs/reference/cloud-compute/1.10.1/V1.VpnGatewayStatusVpnConnection)\n- [1.9.1](/php/docs/reference/cloud-compute/1.9.1/V1.VpnGatewayStatusVpnConnection)\n- [1.8.3](/php/docs/reference/cloud-compute/1.8.3/V1.VpnGatewayStatusVpnConnection)\n- [1.7.1](/php/docs/reference/cloud-compute/1.7.1/V1.VpnGatewayStatusVpnConnection)\n- [1.6.1](/php/docs/reference/cloud-compute/1.6.1/V1.VpnGatewayStatusVpnConnection)\n- [1.5.0](/php/docs/reference/cloud-compute/1.5.0/V1.VpnGatewayStatusVpnConnection) \nReference documentation and code samples for the Compute V1 Client class VpnGatewayStatusVpnConnection.\n\nA VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer gateway. The peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.\n\nGenerated from protobuf message `google.cloud.compute.v1.VpnGatewayStatusVpnConnection`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Compute \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPeerExternalGateway\n\nURL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.\n\n### hasPeerExternalGateway\n\n### clearPeerExternalGateway\n\n### setPeerExternalGateway\n\nURL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.\n\n### getPeerGcpGateway\n\nURL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.\n\n### hasPeerGcpGateway\n\n### clearPeerGcpGateway\n\n### setPeerGcpGateway\n\nURL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.\n\n### getState\n\nHighAvailabilityRequirementState for the VPN connection.\n\n### hasState\n\n### clearState\n\n### setState\n\nHighAvailabilityRequirementState for the VPN connection.\n\n### getTunnels\n\nList of VPN tunnels that are in this VPN connection.\n\n### setTunnels\n\nList of VPN tunnels that are in this VPN connection."]]