Class: Google::Apis::GenomicsV2alpha1::Accelerator
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GenomicsV2alpha1::Accelerator
 
- 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
- 
  
    
      #count  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    How many accelerators of this type to attach. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The accelerator type string (eg nvidia-tesla-k80). 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Accelerator 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Accelerator. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#count ⇒ Fixnum
How many accelerators of this type to attach.
Corresponds to the JSON property count
| 32 33 34 | # File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 32 def count @count end | 
#type ⇒ String
The accelerator type string (eg 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
| 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 |