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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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. 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. 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. It equals to 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. It equals to the aggregated port number in the field nat_ip_port_ranges. |
↳ rule_mappings |
array<Google\Cloud\Compute\V1\VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>
Information about mappings provided by rules in this NAT. |
↳ source_alias_ip_range |
string
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
Primary IP of the VM for this NIC. |
getDrainNatIpPortRanges
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"].
Generated from protobuf field repeated string drain_nat_ip_port_ranges = 395440577;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setDrainNatIpPortRanges
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"].
Generated from protobuf field repeated string drain_nat_ip_port_ranges = 395440577;
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getNatIpPortRanges
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"].
Generated from protobuf field repeated string nat_ip_port_ranges = 531830810;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setNatIpPortRanges
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"].
Generated from protobuf field repeated string nat_ip_port_ranges = 531830810;
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getNumTotalDrainNatPorts
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.
Generated from protobuf field optional int32 num_total_drain_nat_ports = 335532793;
Returns | |
---|---|
Type | Description |
int |
hasNumTotalDrainNatPorts
clearNumTotalDrainNatPorts
setNumTotalDrainNatPorts
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.
Generated from protobuf field optional int32 num_total_drain_nat_ports = 335532793;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getNumTotalNatPorts
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.
Generated from protobuf field optional int32 num_total_nat_ports = 299904384;
Returns | |
---|---|
Type | Description |
int |
hasNumTotalNatPorts
clearNumTotalNatPorts
setNumTotalNatPorts
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.
Generated from protobuf field optional int32 num_total_nat_ports = 299904384;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getRuleMappings
Information about mappings provided by rules in this NAT.
Generated from protobuf field repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings rule_mappings = 486192968;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setRuleMappings
Information about mappings provided by rules in this NAT.
Generated from protobuf field repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings rule_mappings = 486192968;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Compute\V1\VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>
|
Returns | |
---|---|
Type | Description |
$this |
getSourceAliasIpRange
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".
Generated from protobuf field optional string source_alias_ip_range = 440340952;
Returns | |
---|---|
Type | Description |
string |
hasSourceAliasIpRange
clearSourceAliasIpRange
setSourceAliasIpRange
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".
Generated from protobuf field optional string source_alias_ip_range = 440340952;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSourceVirtualIp
Primary IP of the VM for this NIC.
Generated from protobuf field optional string source_virtual_ip = 149836159;
Returns | |
---|---|
Type | Description |
string |
hasSourceVirtualIp
clearSourceVirtualIp
setSourceVirtualIp
Primary IP of the VM for this NIC.
Generated from protobuf field optional string source_virtual_ip = 149836159;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |