Compute V1 Client - Class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings (1.11.1)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ drain_nat_ip_port_ranges array

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

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

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

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

Rule number of the NAT Rule.

getDrainNatIpPortRanges

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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDrainNatIpPortRanges

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
NameDescription
var string[]
Returns
TypeDescription
$this

getNatIpPortRanges

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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNatIpPortRanges

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
NameDescription
var string[]
Returns
TypeDescription
$this

getNumTotalDrainNatPorts

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
TypeDescription
int

hasNumTotalDrainNatPorts

clearNumTotalDrainNatPorts

setNumTotalDrainNatPorts

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
NameDescription
var int
Returns
TypeDescription
$this

getNumTotalNatPorts

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
TypeDescription
int

hasNumTotalNatPorts

clearNumTotalNatPorts

setNumTotalNatPorts

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
NameDescription
var int
Returns
TypeDescription
$this

getRuleNumber

Rule number of the NAT Rule.

Returns
TypeDescription
int

hasRuleNumber

clearRuleNumber

setRuleNumber

Rule number of the NAT Rule.

Parameter
NameDescription
var int
Returns
TypeDescription
$this