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 \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ id
int
Output only. [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. [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.
↳ ipv6_address
string
Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
getId
Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.
int
hasId
clearId
setId
Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.
var
int
$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.
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.
var
string
$this
getIpAddress
Output only. [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.
string
hasIpAddress
clearIpAddress
setIpAddress
Output only. [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.
var
string
$this
getIpv6Address
Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway.
The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
string
hasIpv6Address
clearIpv6Address
setIpv6Address
Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway.
The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
var
string
$this

