Reference documentation and code samples for the Compute V1 Client class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.
Contains information of NAT Mappings provided by a NAT Rule.
Generated from protobuf message google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ drain_nat_ip_port_ranges |
array
Output only. List of all drain IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. |
↳ nat_ip_port_ranges |
array
Output only. A list of all IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. |
↳ num_total_drain_nat_ports |
int
Output only. Total number of drain ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. |
↳ num_total_nat_ports |
int
Output only. Total number of ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field nat_ip_port_ranges. |
↳ rule_number |
int
Output only. Rule number of the NAT Rule. |
getDrainNatIpPortRanges
Output only. List of all drain IP:port-range mappings assigned to this interface by this rule.
These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setDrainNatIpPortRanges
Output only. List of all drain IP:port-range mappings assigned to this interface by this rule.
These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNatIpPortRanges
Output only. A list of all IP:port-range mappings assigned to this interface by this rule.
These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setNatIpPortRanges
Output only. A list of all IP:port-range mappings assigned to this interface by this rule.
These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNumTotalDrainNatPorts
Output only. Total number of drain ports across all NAT IPs allocated to this interface by this rule.
It equals the aggregated port number in the field drain_nat_ip_port_ranges.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasNumTotalDrainNatPorts
clearNumTotalDrainNatPorts
setNumTotalDrainNatPorts
Output only. Total number of drain ports across all NAT IPs allocated to this interface by this rule.
It equals the aggregated port number in the field drain_nat_ip_port_ranges.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNumTotalNatPorts
Output only. Total number of ports across all NAT IPs allocated to this interface by this rule.
It equals the aggregated port number in the field nat_ip_port_ranges.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasNumTotalNatPorts
clearNumTotalNatPorts
setNumTotalNatPorts
Output only. Total number of ports across all NAT IPs allocated to this interface by this rule.
It equals the aggregated port number in the field nat_ip_port_ranges.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRuleNumber
Output only. Rule number of the NAT Rule.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasRuleNumber
clearRuleNumber
setRuleNumber
Output only. Rule number of the NAT Rule.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|