Class: Google::Apis::ComputeAlpha::AcceleratorConfig
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::AcceleratorConfig
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
A specification of the type and number of accelerator cards attached to the instance.
Instance Attribute Summary collapse
-
#accelerator_count ⇒ Fixnum
The number of the guest accelerator cards exposed to this instance.
-
#accelerator_type ⇒ String
Full or partial URL of the accelerator type resource to attach to this instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AcceleratorConfig
constructor
A new instance of AcceleratorConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AcceleratorConfig
Returns a new instance of AcceleratorConfig
42 43 44 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 42 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_count ⇒ Fixnum
The number of the guest accelerator cards exposed to this instance.
Corresponds to the JSON property acceleratorCount
33 34 35 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 33 def accelerator_count @accelerator_count end |
#accelerator_type ⇒ String
Full or partial URL of the accelerator type resource to attach to this
instance. If you are creating an instance template, specify only the
accelerator name.
Corresponds to the JSON property acceleratorType
40 41 42 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 40 def accelerator_type @accelerator_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
47 48 49 50 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 47 def update!(**args) @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count) @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) end |