Compute V1 Client - Class VpnGatewayVpnGatewayInterface (1.11.1)

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

A VPN gateway interface.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ id int

[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.

↳ interconnect_attachment string

URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.

↳ ip_address string

[Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

getId

[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.

Returns
TypeDescription
int

hasId

clearId

setId

[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getInterconnectAttachment

URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.

Returns
TypeDescription
string

hasInterconnectAttachment

clearInterconnectAttachment

setInterconnectAttachment

URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIpAddress

[Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

Returns
TypeDescription
string

hasIpAddress

clearIpAddress

setIpAddress

[Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

Parameter
NameDescription
var string
Returns
TypeDescription
$this