Class: Google::Apis::GenomicsV2alpha1::Disk
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV2alpha1::Disk
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/genomics_v2alpha1/classes.rb,
lib/google/apis/genomics_v2alpha1/representations.rb,
lib/google/apis/genomics_v2alpha1/representations.rb
Overview
Carries information about a disk that can be attached to a VM. See https://
cloud.google.com/compute/docs/disks/performance for more information about
disk type, size, and performance considerations. Specify either Volume
or
Disk
, but not both.
Instance Attribute Summary collapse
-
#name ⇒ String
A user-supplied name for the disk.
-
#size_gb ⇒ Fixnum
The size, in GB, 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.
Constructor Details
#initialize(**args) ⇒ Disk
Returns a new instance of Disk.
455 456 457 |
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 455 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
A user-supplied name for the disk. Used when mounting the disk into actions.
The name must contain only upper and lowercase alphanumeric characters and
hyphens and cannot start with a hyphen.
Corresponds to the JSON property name
434 435 436 |
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 434 def name @name end |
#size_gb ⇒ Fixnum
The size, in GB, of the disk to attach. If the size is not specified, a
default is chosen to ensure reasonable I/O performance. If the disk type is
specified as local-ssd
, multiple local drives are automatically combined to
provide the requested size. Note, however, that each physical SSD is 375GB in
size, and no more than 8 drives can be attached to a single instance.
Corresponds to the JSON property sizeGb
443 444 445 |
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 443 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
448 449 450 |
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 448 def source_image @source_image end |
#type ⇒ String
The Compute Engine disk type. If unspecified, pd-standard
is used.
Corresponds to the JSON property type
453 454 455 |
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 453 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
460 461 462 463 464 465 |
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 460 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 |