Class: Google::Apis::WorkstationsV1beta::Accelerator
- Inherits:
-
Object
- Object
- Google::Apis::WorkstationsV1beta::Accelerator
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workstations_v1beta/classes.rb,
lib/google/apis/workstations_v1beta/representations.rb,
lib/google/apis/workstations_v1beta/representations.rb
Overview
An accelerator card attached to the instance.
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
Optional.
-
#type ⇒ String
Optional.
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.
40 41 42 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 40 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
Optional. Number of accelerator cards exposed to the instance.
Corresponds to the JSON property count
32 33 34 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 32 def count @count end |
#type ⇒ String
Optional. Type of accelerator resource to attach to the instance, for example,
"nvidia-tesla-p100"
.
Corresponds to the JSON property type
38 39 40 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 38 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
45 46 47 48 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 45 def update!(**args) @count = args[:count] if args.key?(:count) @type = args[:type] if args.key?(:type) end |