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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Accelerator

Returns a new instance of Accelerator



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

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)


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

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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