class Google::Apis::ComputeV1::VmEndpointNatMappingsInterfaceNatMappings

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

Attributes

drain_nat_ip_port_ranges[RW]

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”]. Corresponds to the JSON property `drainNatIpPortRanges` @return [Array<String>]

nat_ip_port_ranges[RW]

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”]. Corresponds to the JSON property `natIpPortRanges` @return [Array<String>]

num_total_drain_nat_ports[RW]

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. Corresponds to the JSON property `numTotalDrainNatPorts` @return [Fixnum]

num_total_nat_ports[RW]

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. Corresponds to the JSON property `numTotalNatPorts` @return [Fixnum]

rule_mappings[RW]

Information about mappings provided by rules in this NAT. Corresponds to the JSON property `ruleMappings` @return [Array<Google::Apis::ComputeV1::VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>]

source_alias_ip_range[RW]

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”. Corresponds to the JSON property `sourceAliasIpRange` @return [String]

source_virtual_ip[RW]

Primary IP of the VM for this NIC. Corresponds to the JSON property `sourceVirtualIp` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 39793
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 39798
def update!(**args)
  @drain_nat_ip_port_ranges = args[:drain_nat_ip_port_ranges] if args.key?(:drain_nat_ip_port_ranges)
  @nat_ip_port_ranges = args[:nat_ip_port_ranges] if args.key?(:nat_ip_port_ranges)
  @num_total_drain_nat_ports = args[:num_total_drain_nat_ports] if args.key?(:num_total_drain_nat_ports)
  @num_total_nat_ports = args[:num_total_nat_ports] if args.key?(:num_total_nat_ports)
  @rule_mappings = args[:rule_mappings] if args.key?(:rule_mappings)
  @source_alias_ip_range = args[:source_alias_ip_range] if args.key?(:source_alias_ip_range)
  @source_virtual_ip = args[:source_virtual_ip] if args.key?(:source_virtual_ip)
end