Class: Google::Apis::ComputeV1::VmEndpointNatMappingsInterfaceNatMappings

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VmEndpointNatMappingsInterfaceNatMappings

Returns a new instance of VmEndpointNatMappingsInterfaceNatMappings.



30171
30172
30173
# File 'generated/google/apis/compute_v1/classes.rb', line 30171

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#drain_nat_ip_port_rangesArray<String>

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

Returns:

  • (Array<String>)


30139
30140
30141
# File 'generated/google/apis/compute_v1/classes.rb', line 30139

def drain_nat_ip_port_ranges
  @drain_nat_ip_port_ranges
end

#nat_ip_port_rangesArray<String>

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

Returns:

  • (Array<String>)


30146
30147
30148
# File 'generated/google/apis/compute_v1/classes.rb', line 30146

def nat_ip_port_ranges
  @nat_ip_port_ranges
end

#num_total_drain_nat_portsFixnum

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

Returns:

  • (Fixnum)


30152
30153
30154
# File 'generated/google/apis/compute_v1/classes.rb', line 30152

def num_total_drain_nat_ports
  @num_total_drain_nat_ports
end

#num_total_nat_portsFixnum

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

Returns:

  • (Fixnum)


30158
30159
30160
# File 'generated/google/apis/compute_v1/classes.rb', line 30158

def num_total_nat_ports
  @num_total_nat_ports
end

#source_alias_ip_rangeString

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

Returns:

  • (String)


30164
30165
30166
# File 'generated/google/apis/compute_v1/classes.rb', line 30164

def source_alias_ip_range
  @source_alias_ip_range
end

#source_virtual_ipString

Primary IP of the VM for this NIC. Corresponds to the JSON property sourceVirtualIp

Returns:

  • (String)


30169
30170
30171
# File 'generated/google/apis/compute_v1/classes.rb', line 30169

def source_virtual_ip
  @source_virtual_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30176
30177
30178
30179
30180
30181
30182
30183
# File 'generated/google/apis/compute_v1/classes.rb', line 30176

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)
  @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