Class: Google::Apis::GenomicsV2alpha1::ExistingDisk
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV2alpha1::ExistingDisk
- 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
Configuration for an existing disk to be attached to the VM.
Instance Attribute Summary collapse
-
#disk ⇒ String
If
disk
contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExistingDisk
constructor
A new instance of ExistingDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExistingDisk
Returns a new instance of ExistingDisk.
585 586 587 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 585 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk ⇒ String
If disk
contains slashes, the Cloud Life Sciences API assumes that it is a
complete URL for the disk. If disk
does not contain slashes, the Cloud Life
Sciences API assumes that the disk is a zonal disk and a URL will be generated
of the form zones//disks/
, where `is the zone in which the instance is
allocated. The disk must be ext4 formatted. If all
Mountreferences to this
disk have the
read_onlyflag set to true, the disk will be attached in
read-
onlymode and can be shared with other instances. Otherwise, the disk will be
available for writing but cannot be shared.
Corresponds to the JSON property
disk`
583 584 585 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 583 def disk @disk end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
590 591 592 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 590 def update!(**args) @disk = args[:disk] if args.key?(:disk) end |