# Network Management V1 API - Class Google::Cloud::NetworkManagement::V1::NatInfo (v2.11.0)

2.11.0 (latest) 2.10.1 2.9.0 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.1 2.0.1 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.0 0.7.0 0.6.1 0.5.1 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Network Management V1 API class Google::Cloud::NetworkManagement::V1::NatInfo.

For display only. Metadata associated with NAT.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cloud_nat_gateway_type

    def cloud_nat_gateway_type() -> ::Google::Cloud::NetworkManagement::V1::NatInfo::CloudNatGatewayType

**Returns**

- ([::Google::Cloud::NetworkManagement::V1::NatInfo::CloudNatGatewayType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-NatInfo-CloudNatGatewayType)) --- Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT.

### #cloud_nat_gateway_type=

    def cloud_nat_gateway_type=(value) -> ::Google::Cloud::NetworkManagement::V1::NatInfo::CloudNatGatewayType

**Parameter**

- **value** ([::Google::Cloud::NetworkManagement::V1::NatInfo::CloudNatGatewayType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-NatInfo-CloudNatGatewayType)) --- Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT.
**Returns**

- ([::Google::Cloud::NetworkManagement::V1::NatInfo::CloudNatGatewayType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-NatInfo-CloudNatGatewayType)) --- Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT.

### #nat_gateway_name

    def nat_gateway_name() -> ::String

**Returns**

- (::String) --- The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.

### #nat_gateway_name=

    def nat_gateway_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
**Returns**

- (::String) --- The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.

### #network_uri

    def network_uri() -> ::String

**Returns**

- (::String) --- URI of the network where NAT translation takes place.

### #network_uri=

    def network_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- URI of the network where NAT translation takes place.
**Returns**

- (::String) --- URI of the network where NAT translation takes place.

### #new_destination_ip

    def new_destination_ip() -> ::String

**Returns**

- (::String) --- Destination IP address after NAT translation.

### #new_destination_ip=

    def new_destination_ip=(value) -> ::String

**Parameter**

- **value** (::String) --- Destination IP address after NAT translation.
**Returns**

- (::String) --- Destination IP address after NAT translation.

### #new_destination_port

    def new_destination_port() -> ::Integer

**Returns**

- (::Integer) --- Destination port after NAT translation. Only valid when protocol is TCP or UDP.

### #new_destination_port=

    def new_destination_port=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Destination port after NAT translation. Only valid when protocol is TCP or UDP.
**Returns**

- (::Integer) --- Destination port after NAT translation. Only valid when protocol is TCP or UDP.

### #new_source_ip

    def new_source_ip() -> ::String

**Returns**

- (::String) --- Source IP address after NAT translation.

### #new_source_ip=

    def new_source_ip=(value) -> ::String

**Parameter**

- **value** (::String) --- Source IP address after NAT translation.
**Returns**

- (::String) --- Source IP address after NAT translation.

### #new_source_port

    def new_source_port() -> ::Integer

**Returns**

- (::Integer) --- Source port after NAT translation. Only valid when protocol is TCP or UDP.

### #new_source_port=

    def new_source_port=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Source port after NAT translation. Only valid when protocol is TCP or UDP.
**Returns**

- (::Integer) --- Source port after NAT translation. Only valid when protocol is TCP or UDP.

### #old_destination_ip

    def old_destination_ip() -> ::String

**Returns**

- (::String) --- Destination IP address before NAT translation.

### #old_destination_ip=

    def old_destination_ip=(value) -> ::String

**Parameter**

- **value** (::String) --- Destination IP address before NAT translation.
**Returns**

- (::String) --- Destination IP address before NAT translation.

### #old_destination_port

    def old_destination_port() -> ::Integer

**Returns**

- (::Integer) --- Destination port before NAT translation. Only valid when protocol is TCP or UDP.

### #old_destination_port=

    def old_destination_port=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Destination port before NAT translation. Only valid when protocol is TCP or UDP.
**Returns**

- (::Integer) --- Destination port before NAT translation. Only valid when protocol is TCP or UDP.

### #old_source_ip

    def old_source_ip() -> ::String

**Returns**

- (::String) --- Source IP address before NAT translation.

### #old_source_ip=

    def old_source_ip=(value) -> ::String

**Parameter**

- **value** (::String) --- Source IP address before NAT translation.
**Returns**

- (::String) --- Source IP address before NAT translation.

### #old_source_port

    def old_source_port() -> ::Integer

**Returns**

- (::Integer) --- Source port before NAT translation. Only valid when protocol is TCP or UDP.

### #old_source_port=

    def old_source_port=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Source port before NAT translation. Only valid when protocol is TCP or UDP.
**Returns**

- (::Integer) --- Source port before NAT translation. Only valid when protocol is TCP or UDP.

### #protocol

    def protocol() -> ::String

**Returns**

- (::String) --- IP protocol in string format, for example: "TCP", "UDP", "ICMP".

### #protocol=

    def protocol=(value) -> ::String

**Parameter**

- **value** (::String) --- IP protocol in string format, for example: "TCP", "UDP", "ICMP".
**Returns**

- (::String) --- IP protocol in string format, for example: "TCP", "UDP", "ICMP".

### #router_uri

    def router_uri() -> ::String

**Returns**

- (::String) --- Uri of the Cloud Router. Only valid when type is CLOUD_NAT.

### #router_uri=

    def router_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
**Returns**

- (::String) --- Uri of the Cloud Router. Only valid when type is CLOUD_NAT.

### #type

    def type() -> ::Google::Cloud::NetworkManagement::V1::NatInfo::Type

**Returns**

- ([::Google::Cloud::NetworkManagement::V1::NatInfo::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-NatInfo-Type)) --- Type of NAT.

### #type=

    def type=(value) -> ::Google::Cloud::NetworkManagement::V1::NatInfo::Type

**Parameter**

- **value** ([::Google::Cloud::NetworkManagement::V1::NatInfo::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-NatInfo-Type)) --- Type of NAT.
**Returns**

- ([::Google::Cloud::NetworkManagement::V1::NatInfo::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-NatInfo-Type)) --- Type of NAT.