Reference documentation and code samples for the Google Cloud Network Management V1 Client class NatInfo.
For display only. Metadata associated with NAT.
Generated from protobuf message google.cloud.networkmanagement.v1.NatInfo
Namespace
Google \ Cloud \ NetworkManagement \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ type
int
Type of NAT.
↳ protocol
string
IP protocol in string format, for example: "TCP", "UDP", "ICMP".
↳ network_uri
string
URI of the network where NAT translation takes place.
↳ old_source_ip
string
Source IP address before NAT translation.
↳ new_source_ip
string
Source IP address after NAT translation.
↳ old_destination_ip
string
Destination IP address before NAT translation.
↳ new_destination_ip
string
Destination IP address after NAT translation.
↳ old_source_port
int
Source port before NAT translation. Only valid when protocol is TCP or UDP.
↳ new_source_port
int
Source port after NAT translation. Only valid when protocol is TCP or UDP.
↳ old_destination_port
int
Destination port before NAT translation. Only valid when protocol is TCP or UDP.
↳ new_destination_port
int
Destination port after NAT translation. Only valid when protocol is TCP or UDP.
↳ router_uri
string
Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
↳ nat_gateway_name
string
The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
getType
Type of NAT.
int
setType
Type of NAT.
var
int
$this
getProtocol
IP protocol in string format, for example: "TCP", "UDP", "ICMP".
string
setProtocol
IP protocol in string format, for example: "TCP", "UDP", "ICMP".
var
string
$this
getNetworkUri
URI of the network where NAT translation takes place.
string
setNetworkUri
URI of the network where NAT translation takes place.
var
string
$this
getOldSourceIp
Source IP address before NAT translation.
string
setOldSourceIp
Source IP address before NAT translation.
var
string
$this
getNewSourceIp
Source IP address after NAT translation.
string
setNewSourceIp
Source IP address after NAT translation.
var
string
$this
getOldDestinationIp
Destination IP address before NAT translation.
string
setOldDestinationIp
Destination IP address before NAT translation.
var
string
$this
getNewDestinationIp
Destination IP address after NAT translation.
string
setNewDestinationIp
Destination IP address after NAT translation.
var
string
$this
getOldSourcePort
Source port before NAT translation. Only valid when protocol is TCP or UDP.
int
setOldSourcePort
Source port before NAT translation. Only valid when protocol is TCP or UDP.
var
int
$this
getNewSourcePort
Source port after NAT translation. Only valid when protocol is TCP or UDP.
int
setNewSourcePort
Source port after NAT translation. Only valid when protocol is TCP or UDP.
var
int
$this
getOldDestinationPort
Destination port before NAT translation. Only valid when protocol is TCP or UDP.
int
setOldDestinationPort
Destination port before NAT translation. Only valid when protocol is TCP or UDP.
var
int
$this
getNewDestinationPort
Destination port after NAT translation. Only valid when protocol is TCP or UDP.
int
setNewDestinationPort
Destination port after NAT translation. Only valid when protocol is TCP or UDP.
var
int
$this
getRouterUri
Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
string
setRouterUri
Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
var
string
$this
getNatGatewayName
The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
string
setNatGatewayName
The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
var
string
$this