Class: Google::Apis::LifesciencesV2beta::Accelerator
- Inherits:
-
Object
- Object
- Google::Apis::LifesciencesV2beta::Accelerator
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/lifesciences_v2beta/classes.rb,
lib/google/apis/lifesciences_v2beta/representations.rb,
lib/google/apis/lifesciences_v2beta/representations.rb
Overview
Carries information about an accelerator that can be attached to a VM.
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
How many accelerators of this type to attach.
-
#type ⇒ String
The accelerator type string (for example, "nvidia-tesla-t4").
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.
44 45 46 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 44 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
How many accelerators of this type to attach.
Corresponds to the JSON property count
32 33 34 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 32 def count @count end |
#type ⇒ String
The accelerator type string (for example, "nvidia-tesla-t4"). Only NVIDIA GPU
accelerators are currently supported. If an NVIDIA GPU is attached, the
required runtime libraries will be made available to all containers under /
usr/local/nvidia
. The driver version to install must be specified using the
NVIDIA driver version parameter on the virtual machine specification. Note
that attaching a GPU increases the worker VM startup time by a few minutes.
Corresponds to the JSON property type
42 43 44 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 42 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
49 50 51 52 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 49 def update!(**args) @count = args[:count] if args.key?(:count) @type = args[:type] if args.key?(:type) end |