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 \ V1Methods
__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. |
↳ state |
VpnGatewayStatusHighAvailabilityRequirementState
HighAvailabilityRequirementState for the VPN connection. |
↳ tunnels |
array<VpnGatewayStatusTunnel>
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.
Returns | |
---|---|
Type | Description |
VpnGatewayStatusHighAvailabilityRequirementState|null |
hasState
clearState
setState
HighAvailabilityRequirementState for the VPN connection.
Parameter | |
---|---|
Name | Description |
var |
VpnGatewayStatusHighAvailabilityRequirementState
|
Returns | |
---|---|
Type | Description |
$this |
getTunnels
List of VPN tunnels that are in this VPN connection.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setTunnels
List of VPN tunnels that are in this VPN connection.
Parameter | |
---|---|
Name | Description |
var |
array<VpnGatewayStatusTunnel>
|
Returns | |
---|---|
Type | Description |
$this |