Class: Google::Compute::Data::InstaTemplGuestAccelApi
- Inherits:
-
InstaTemplGuestAccel
- Object
- InstaTemplGuestAccel
- Google::Compute::Data::InstaTemplGuestAccelApi
- Defined in:
- lib/google/compute/property/instancetemplate_guest_accelerators.rb
Overview
Manages a InstaTemplGuestAccel nested object Data is coming from the GCP API
Instance Attribute Summary
Attributes inherited from InstaTemplGuestAccel
#accelerator_count, #accelerator_type
Instance Method Summary collapse
-
#initialize(args) ⇒ InstaTemplGuestAccelApi
constructor
A new instance of InstaTemplGuestAccelApi.
Methods inherited from InstaTemplGuestAccel
Constructor Details
#initialize(args) ⇒ InstaTemplGuestAccelApi
Returns a new instance of InstaTemplGuestAccelApi.
87 88 89 90 91 92 93 |
# File 'lib/google/compute/property/instancetemplate_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 |