Compute V1 Client - Class VpnGatewayStatusTunnel (2.8.0)

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
Name
Description
data
array

Optional. Data for populating the Message object.

↳ local_gateway_interface
int

Output only. The VPN gateway interface this VPN tunnel is associated with.

↳ peer_gateway_interface
int

Output only. 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

Output only. URL reference to the VPN tunnel.

getLocalGatewayInterface

Output only. The VPN gateway interface this VPN tunnel is associated with.

Returns
Type
Description
int

hasLocalGatewayInterface

clearLocalGatewayInterface

setLocalGatewayInterface

Output only. The VPN gateway interface this VPN tunnel is associated with.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getPeerGatewayInterface

Output only. 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
Type
Description
int

hasPeerGatewayInterface

clearPeerGatewayInterface

setPeerGatewayInterface

Output only. 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
Name
Description
var
int
Returns
Type
Description
$this

getTunnelUrl

Output only. URL reference to the VPN tunnel.

Returns
Type
Description
string

hasTunnelUrl

clearTunnelUrl

setTunnelUrl

Output only. URL reference to the VPN tunnel.

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: