Class: Google::Compute::Data::InstancGuestAccelerCatalog

Inherits:
InstancGuestAcceler show all
Defined in:
lib/google/compute/property/instance_guest_accelerators.rb

Overview

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

Instance Attribute Summary

Attributes inherited from InstancGuestAcceler

#accelerator_count, #accelerator_type

Instance Method Summary collapse

Methods inherited from InstancGuestAcceler

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

Constructor Details

#initialize(args) ⇒ InstancGuestAccelerCatalog

Returns a new instance of InstancGuestAccelerCatalog.



99
100
101
102
103
104
105
106
# File 'lib/google/compute/property/instance_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