Class: Google::Compute::Data::InstaTemplGuestAccelCatalog

Inherits:
InstaTemplGuestAccel show all
Defined in:
lib/google/compute/property/instancetemplate_guest_accelerators.rb

Overview

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

Instance Attribute Summary

Attributes inherited from InstaTemplGuestAccel

#accelerator_count, #accelerator_type

Instance Method Summary collapse

Methods inherited from InstaTemplGuestAccel

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

Constructor Details

#initialize(args) ⇒ InstaTemplGuestAccelCatalog

Returns a new instance of InstaTemplGuestAccelCatalog.



99
100
101
102
103
104
105
106
# File 'lib/google/compute/property/instancetemplate_guest_accelerators.rb', line 99

def initialize(args)
  @accelerator_count = Google::Compute::Property::Integer.unsafe_munge(
    args['accelerator_count']
  )
  @accelerator_type = Google::Compute::Property::String.unsafe_munge(
    args['accelerator_type']
  )
end