Class: Google::Compute::Data::InstancGuestAccelerApi

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 GCP API

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) ⇒ InstancGuestAccelerApi

Returns a new instance of InstancGuestAccelerApi.



87
88
89
90
91
92
93
# File 'lib/google/compute/property/instance_guest_accelerators.rb', line 87

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