Class NatInfo (1.17.1)

NatInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)

For display only. Metadata associated with NAT.

Attributes

NameDescription
type_ google.cloud.network_management_v1.types.NatInfo.Type
Type of NAT.
protocol str
IP protocol in string format, for example: "TCP", "UDP", "ICMP".
network_uri str
URI of the network where NAT translation takes place.
old_source_ip str
Source IP address before NAT translation.
new_source_ip str
Source IP address after NAT translation.
old_destination_ip str
Destination IP address before NAT translation.
new_destination_ip str
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 str
Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
nat_gateway_name str
The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.

Classes

Type

Type(value)

Types of NAT.

Values: TYPE_UNSPECIFIED (0): Type is unspecified. INTERNAL_TO_EXTERNAL (1): From Compute Engine instance's internal address to external address. EXTERNAL_TO_INTERNAL (2): From Compute Engine instance's external address to internal address. CLOUD_NAT (3): Cloud NAT Gateway. PRIVATE_SERVICE_CONNECT (4): Private service connect NAT.