class Google::Apis::LifesciencesV2beta::Accelerator
Carries information about an accelerator that can be attached to a VM.
Attributes
count[RW]
How many accelerators of this type to attach. Corresponds to the JSON property `count` @return [Fixnum]
type[RW]
The accelerator type string (for example, “nvidia-tesla-k80”). 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` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/lifesciences_v2beta/classes.rb, line 44 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# 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