Class: Google::Apis::ComputeBeta::VmEndpointNatMappingsInterfaceNatMappings
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::VmEndpointNatMappingsInterfaceNatMappings
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb
Overview
Contain information of Nat mapping for an interface of this endpoint.
Instance Attribute Summary collapse
-
#nat_ip_port_ranges ⇒ Array<String>
A list of all IP:port-range mappings assigned to this interface.
-
#num_total_nat_ports ⇒ Fixnum
Total number of ports across all NAT IPs allocated to this interface.
-
#source_alias_ip_range ⇒ String
Alias IP range for this interface endpoint.
-
#source_virtual_ip ⇒ String
Primary IP of the VM for this NIC.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VmEndpointNatMappingsInterfaceNatMappings
constructor
A new instance of VmEndpointNatMappingsInterfaceNatMappings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ VmEndpointNatMappingsInterfaceNatMappings
Returns a new instance of VmEndpointNatMappingsInterfaceNatMappings
26317 26318 26319 |
# File 'generated/google/apis/compute_beta/classes.rb', line 26317 def initialize(**args) update!(**args) end |
Instance Attribute Details
#nat_ip_port_ranges ⇒ Array<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
26298 26299 26300 |
# File 'generated/google/apis/compute_beta/classes.rb', line 26298 def nat_ip_port_ranges @nat_ip_port_ranges end |
#num_total_nat_ports ⇒ Fixnum
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
26304 26305 26306 |
# File 'generated/google/apis/compute_beta/classes.rb', line 26304 def num_total_nat_ports @num_total_nat_ports end |
#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".
Corresponds to the JSON property sourceAliasIpRange
26310 26311 26312 |
# File 'generated/google/apis/compute_beta/classes.rb', line 26310 def source_alias_ip_range @source_alias_ip_range end |
#source_virtual_ip ⇒ String
Primary IP of the VM for this NIC.
Corresponds to the JSON property sourceVirtualIp
26315 26316 26317 |
# File 'generated/google/apis/compute_beta/classes.rb', line 26315 def source_virtual_ip @source_virtual_ip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
26322 26323 26324 26325 26326 26327 |
# File 'generated/google/apis/compute_beta/classes.rb', line 26322 def update!(**args) @nat_ip_port_ranges = args[:nat_ip_port_ranges] if args.key?(:nat_ip_port_ranges) @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 |