Compute V1 Client - Class VpnGatewayStatusTunnel (1.10.1)

Reference documentation and code samples for the Compute V1 Client class VpnGatewayStatusTunnel.

Contains some information about a VPN tunnel.

Generated from protobuf message google.cloud.compute.v1.VpnGatewayStatusTunnel

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ local_gateway_interface int

The VPN gateway interface this VPN tunnel is associated with.

↳ peer_gateway_interface int

The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.

↳ tunnel_url string

URL reference to the VPN tunnel.

getLocalGatewayInterface

The VPN gateway interface this VPN tunnel is associated with.

Returns
TypeDescription
int

hasLocalGatewayInterface

clearLocalGatewayInterface

setLocalGatewayInterface

The VPN gateway interface this VPN tunnel is associated with.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPeerGatewayInterface

The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.

Returns
TypeDescription
int

hasPeerGatewayInterface

clearPeerGatewayInterface

setPeerGatewayInterface

The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTunnelUrl

URL reference to the VPN tunnel.

Returns
TypeDescription
string

hasTunnelUrl

clearTunnelUrl

setTunnelUrl

URL reference to the VPN tunnel.

Parameter
NameDescription
var string
Returns
TypeDescription
$this