Reference documentation and code samples for the Google Cloud Network Management V1 Client class VpnGatewayInfo.
For display only. Metadata associated with a Compute Engine VPN gateway.
Generated from protobuf message google.cloud.networkmanagement.v1.VpnGatewayInfo
Namespace
Google \ Cloud \ NetworkManagement \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ display_name |
string
Name of a VPN gateway. |
↳ uri |
string
URI of the VPN gateway. Format: * * |
↳ network_uri |
string
URI of the VPC network where the VPN gateway is configured. Format: |
↳ ip_address |
string
IP address of the VPN gateway. |
↳ vpn_tunnel_uri |
string
URI of the VPN tunnel associated with the VPN gateway. There may be multiple VPN tunnels configured on a VPN gateway, and only the one relevant to the test is displayed. Format: |
↳ region |
string
Name of a Google Cloud region where this VPN gateway is configured. |
getDisplayName
Name of a VPN gateway.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDisplayName
Name of a VPN gateway.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUri
URI of the VPN gateway.
Format:
projects/{project_id}/regions/{region}/vpnGateways/{vpn_gateway_id}(HA VPN gateway)projects/{project_id}/regions/{region}/targetVpnGateways/{target_vpn_gateway_id}(Classic VPN gateway)
| Returns | |
|---|---|
| Type | Description |
string |
|
setUri
URI of the VPN gateway.
Format:
projects/{project_id}/regions/{region}/vpnGateways/{vpn_gateway_id}(HA VPN gateway)projects/{project_id}/regions/{region}/targetVpnGateways/{target_vpn_gateway_id}(Classic VPN gateway)
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNetworkUri
URI of the VPC network where the VPN gateway is configured.
Format: projects/{project_id}/global/networks/{network_id}
| Returns | |
|---|---|
| Type | Description |
string |
|
setNetworkUri
URI of the VPC network where the VPN gateway is configured.
Format: projects/{project_id}/global/networks/{network_id}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIpAddress
IP address of the VPN gateway.
| Returns | |
|---|---|
| Type | Description |
string |
|
setIpAddress
IP address of the VPN gateway.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getVpnTunnelUri
URI of the VPN tunnel associated with the VPN gateway.
There may be multiple VPN tunnels configured on a VPN gateway, and only
the one relevant to the test is displayed.
Format: projects/{project_id}/regions/{region}/vpnTunnels/{vpn_tunnel_id}
| Returns | |
|---|---|
| Type | Description |
string |
|
setVpnTunnelUri
URI of the VPN tunnel associated with the VPN gateway.
There may be multiple VPN tunnels configured on a VPN gateway, and only
the one relevant to the test is displayed.
Format: projects/{project_id}/regions/{region}/vpnTunnels/{vpn_tunnel_id}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRegion
Name of a Google Cloud region where this VPN gateway is configured.
| Returns | |
|---|---|
| Type | Description |
string |
|
setRegion
Name of a Google Cloud region where this VPN gateway is configured.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|