Class: Google::Compute::Data::InstancGuestAccelerApi
- Inherits:
-
InstancGuestAcceler
- Object
- InstancGuestAcceler
- Google::Compute::Data::InstancGuestAccelerApi
- 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
-
#initialize(args) ⇒ InstancGuestAccelerApi
constructor
A new instance of InstancGuestAccelerApi.
Methods inherited from InstancGuestAcceler
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 |