Compute V1 Client - Class VmEndpointNatMappingsInterfaceNatMappings (2.4.0)

Reference documentation and code samples for the Compute V1 Client class VmEndpointNatMappingsInterfaceNatMappings.

Contain information of Nat mapping for an interface of this endpoint.

Generated from protobuf message google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings

Namespace

Google \ Cloud \ Compute \ V1

Methods

__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. 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. 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. It equals to 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. It equals to the aggregated port number in the field nat_ip_port_ranges.

↳ rule_mappings array<VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>

Output only. Information about mappings provided by rules in this NAT.

↳ source_alias_ip_range string

Output only. Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24".

↳ source_virtual_ip string

Output only. Primary IP of the VM for this NIC.

getDrainNatIpPortRanges

Output only. List of all drain IP:port-range mappings assigned to this interface.

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.

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.

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.

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. It equals to 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. It equals to 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.

It equals to 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.

It equals to the aggregated port number in the field nat_ip_port_ranges.

Parameter
Name Description
var int
Returns
Type Description
$this

getRuleMappings

Output only. Information about mappings provided by rules in this NAT.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRuleMappings

Output only. Information about mappings provided by rules in this NAT.

Parameter
Name Description
var array<VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>
Returns
Type Description
$this

getSourceAliasIpRange

Output only. Alias IP range for this interface endpoint.

It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24".

Returns
Type Description
string

hasSourceAliasIpRange

clearSourceAliasIpRange

setSourceAliasIpRange

Output only. Alias IP range for this interface endpoint.

It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24".

Parameter
Name Description
var string
Returns
Type Description
$this

getSourceVirtualIp

Output only. Primary IP of the VM for this NIC.

Returns
Type Description
string

hasSourceVirtualIp

clearSourceVirtualIp

setSourceVirtualIp

Output only. Primary IP of the VM for this NIC.

Parameter
Name Description
var string
Returns
Type Description
$this