Class: Google::Apis::ComputeV1::VmEndpointNatMappings

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/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.



47868
47869
47870
# File 'lib/google/apis/compute_v1/classes.rb', line 47868

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)


47861
47862
47863
# File 'lib/google/apis/compute_v1/classes.rb', line 47861

def instance_name
  @instance_name
end

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

Corresponds to the JSON property interfaceNatMappings



47866
47867
47868
# File 'lib/google/apis/compute_v1/classes.rb', line 47866

def interface_nat_mappings
  @interface_nat_mappings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



47873
47874
47875
47876
# File 'lib/google/apis/compute_v1/classes.rb', line 47873

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