Class: Google::Apis::ComputeAlpha::VmEndpointNatMappingsInterfaceNatMappings
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::VmEndpointNatMappingsInterfaceNatMappings
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/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
31679 31680 31681 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 31679 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
31660 31661 31662 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 31660 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
31666 31667 31668 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 31666 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
31672 31673 31674 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 31672 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
31677 31678 31679 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 31677 def source_virtual_ip @source_virtual_ip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
31684 31685 31686 31687 31688 31689 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 31684 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 |