Class: Google::Apis::ComputeBeta::VmEndpointNatMappings

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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 a VM endpoint (i.e., NIC).

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) ⇒ VmEndpointNatMappings

Returns a new instance of VmEndpointNatMappings.



33516
33517
33518
# File 'generated/google/apis/compute_beta/classes.rb', line 33516

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

Instance Attribute Details

#instance_nameString

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

Returns:

  • (String)


33509
33510
33511
# File 'generated/google/apis/compute_beta/classes.rb', line 33509

def instance_name
  @instance_name
end

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

Corresponds to the JSON property interfaceNatMappings



33514
33515
33516
# File 'generated/google/apis/compute_beta/classes.rb', line 33514

def interface_nat_mappings
  @interface_nat_mappings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



33521
33522
33523
33524
# File 'generated/google/apis/compute_beta/classes.rb', line 33521

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