Class: Google::Apis::ComputeAlpha::VmEndpointNatMappings

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

Overview

Contain information of Nat mapping for a VM endpoint (i.e., NIC).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmEndpointNatMappings

Returns a new instance of VmEndpointNatMappings.



83051
83052
83053
# File 'lib/google/apis/compute_alpha/classes.rb', line 83051

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

Instance Attribute Details

#instance_nameString

Output only. Name of the VM instance which the endpoint belongs to Corresponds to the JSON property instanceName

Returns:

  • (String)


83044
83045
83046
# File 'lib/google/apis/compute_alpha/classes.rb', line 83044

def instance_name
  @instance_name
end

#interface_nat_mappingsArray<Google::Apis::ComputeAlpha::VmEndpointNatMappingsInterfaceNatMappings>

Corresponds to the JSON property interfaceNatMappings



83049
83050
83051
# File 'lib/google/apis/compute_alpha/classes.rb', line 83049

def interface_nat_mappings
  @interface_nat_mappings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



83056
83057
83058
83059
# File 'lib/google/apis/compute_alpha/classes.rb', line 83056

def update!(**args)
  @instance_name = args[:instance_name] if args.key?(:instance_name)
  @interface_nat_mappings = args[:interface_nat_mappings] if args.key?(:interface_nat_mappings)
end