Class: Google::Apis::GenomicsV2alpha1::Disk
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GenomicsV2alpha1::Disk
 
- 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 a disk that can be attached to a VM.
Instance Attribute Summary collapse
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A user supplied name for the disk, used when mounting it into actions. 
- 
  
    
      #size_gb  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The size, in gigabytes, of the disk to attach. 
- 
  
    
      #source_image  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An optional image to put on the disk before attaching it to the VM. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The Compute Engine disk type. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Disk 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Disk. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Disk
Returns a new instance of Disk
| 459 460 461 | # File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 459 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#name ⇒ String
A user supplied name for the disk, used when mounting it into actions.
The name must contain only upper and lowercase alphanumeric characters and
hypens and cannot start with a hypen.
Corresponds to the JSON property name
| 439 440 441 | # File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 439 def name @name end | 
#size_gb ⇒ Fixnum
The size, in gigabytes, of the disk to attach.  Note that this value is
not configurable for some disk types such as local-ssd.  If the size is
not specified, a size of at least 500gb is used to ensure reasonable I/O
performance.
Corresponds to the JSON property sizeGb
| 447 448 449 | # File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 447 def size_gb @size_gb end | 
#source_image ⇒ String
An optional image to put on the disk before attaching it to the VM.
Corresponds to the JSON property sourceImage
| 452 453 454 | # File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 452 def source_image @source_image end | 
#type ⇒ String
The Compute Engine disk type.  If unspecified, 'standard-pd' is used.
Corresponds to the JSON property type
| 457 458 459 | # File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 457 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 464 465 466 467 468 469 | # File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 464 def update!(**args) @name = args[:name] if args.key?(:name) @size_gb = args[:size_gb] if args.key?(:size_gb) @source_image = args[:source_image] if args.key?(:source_image) @type = args[:type] if args.key?(:type) end |