Class: Google::Compute::Data::InstancTemplatPropertCatalog

Inherits:
InstancTemplatPropert show all
Defined in:
lib/google/compute/property/instancetemplate_properties.rb

Overview

Manages a InstancTemplatPropert nested object Data is coming from the Puppet manifest

Instance Attribute Summary

Attributes inherited from InstancTemplatPropert

#can_ip_forward, #description, #disks, #guest_accelerators, #machine_type, #metadata, #network_interfaces, #scheduling, #service_accounts, #tags

Instance Method Summary collapse

Methods inherited from InstancTemplatPropert

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

Constructor Details

#initialize(args) ⇒ InstancTemplatPropertCatalog

rubocop:disable Metrics/MethodLength



170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# File 'lib/google/compute/property/instancetemplate_properties.rb', line 170

def initialize(args)
  @can_ip_forward = Google::Compute::Property::Boolean.unsafe_munge(
    args['can_ip_forward']
  )
  @description =
    Google::Compute::Property::String.unsafe_munge(args['description'])
  @disks =
    Google::Compute::Property::InstancTemplatDisksArray.unsafe_munge(
      args['disks']
    )
  @machine_type =
    Google::Compute::Property::MachiTypeNameRef.unsafe_munge(
      args['machine_type']
    )
  @metadata =
    Google::Compute::Property::NameValues.unsafe_munge(args['metadata'])
  @guest_accelerators =
    Google::Compute::Property::InstaTemplGuestAccelArray.unsafe_munge(
      args['guest_accelerators']
    )
  @network_interfaces =
    Google::Compute::Property::InstaTemplNetwoInterArray.unsafe_munge(
      args['network_interfaces']
    )
  @scheduling =
    Google::Compute::Property::InstancTemplatSchedul.unsafe_munge(
      args['scheduling']
    )
  @service_accounts =
    Google::Compute::Property::InstaTemplServiAccouArray.unsafe_munge(
      args['service_accounts']
    )
  @tags = Google::Compute::Property::InstancTemplatTags.unsafe_munge(
    args['tags']
  )
end