Class: Google::Compute::Data::InstaTemplAccesConfiApi

Inherits:
InstaTemplAccesConfi show all
Defined in:
lib/google/compute/property/instancetemplate_access_configs.rb

Overview

Manages a InstaTemplAccesConfi nested object Data is coming from the GCP API

Instance Attribute Summary

Attributes inherited from InstaTemplAccesConfi

#name, #nat_ip, #type

Instance Method Summary collapse

Methods inherited from InstaTemplAccesConfi

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ InstaTemplAccesConfiApi

Returns a new instance of InstaTemplAccesConfiApi.



91
92
93
94
95
96
97
# File 'lib/google/compute/property/instancetemplate_access_configs.rb', line 91

def initialize(args)
  @name = Google::Compute::Property::String.api_munge(args['name'])
  @nat_ip = Google::Compute::Property::AddressAddressRef.api_munge(
    args['natIP']
  )
  @type = Google::Compute::Property::Enum.api_munge(args['type'])
end