Class: Google::Apis::ComputeAlpha::MachineType::Accelerator
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::MachineType::Accelerator
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#guest_accelerator_count ⇒ Fixnum
Number of accelerator cards exposed to the guest.
-
#guest_accelerator_type ⇒ String
The accelerator type resource name, not a full URL, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Accelerator
constructor
A new instance of Accelerator.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Accelerator
Returns a new instance of Accelerator.
22327 22328 22329 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22327 def initialize(**args) update!(**args) end |
Instance Attribute Details
#guest_accelerator_count ⇒ Fixnum
Number of accelerator cards exposed to the guest.
Corresponds to the JSON property guestAcceleratorCount
22320 22321 22322 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22320 def guest_accelerator_count @guest_accelerator_count end |
#guest_accelerator_type ⇒ String
The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
Corresponds to the JSON property guestAcceleratorType
22325 22326 22327 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22325 def guest_accelerator_type @guest_accelerator_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22332 22333 22334 22335 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22332 def update!(**args) @guest_accelerator_count = args[:guest_accelerator_count] if args.key?(:guest_accelerator_count) @guest_accelerator_type = args[:guest_accelerator_type] if args.key?(:guest_accelerator_type) end |