Class: Google::Apis::GenomicsV2alpha1::Accelerator

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/genomics_v2alpha1/classes.rb,
generated/google/apis/genomics_v2alpha1/representations.rb,
generated/google/apis/genomics_v2alpha1/representations.rb

Overview

Carries information about an accelerator that can be attached to a VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Accelerator

Returns a new instance of Accelerator.



44
45
46
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 44

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#countFixnum

How many accelerators of this type to attach. Corresponds to the JSON property count

Returns:

  • (Fixnum)


32
33
34
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 32

def count
  @count
end

#typeString

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

Returns:

  • (String)


42
43
44
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 42

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



49
50
51
52
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 49

def update!(**args)
  @count = args[:count] if args.key?(:count)
  @type = args[:type] if args.key?(:type)
end