Class: Google::Apis::LifesciencesV2beta::Volume
- Inherits:
-
Object
- Object
- Google::Apis::LifesciencesV2beta::Volume
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/lifesciences_v2beta/classes.rb,
generated/google/apis/lifesciences_v2beta/representations.rb,
generated/google/apis/lifesciences_v2beta/representations.rb
Overview
Carries information about storage that can be attached to a VM.
Instance Attribute Summary collapse
-
#existing_disk ⇒ Google::Apis::LifesciencesV2beta::ExistingDisk
Configuration for an existing disk to be attached to the VM.
-
#nfs_mount ⇒ Google::Apis::LifesciencesV2beta::NfsMount
Configuration for an
NFSMount
to be attached to the VM. -
#persistent_disk ⇒ Google::Apis::LifesciencesV2beta::PersistentDisk
Configuration for a persistent disk to be attached to the VM.
-
#volume ⇒ String
A user-supplied name for the volume.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Volume
constructor
A new instance of Volume.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Volume
Returns a new instance of Volume.
1369 1370 1371 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 1369 def initialize(**args) update!(**args) end |
Instance Attribute Details
#existing_disk ⇒ Google::Apis::LifesciencesV2beta::ExistingDisk
Configuration for an existing disk to be attached to the VM.
Corresponds to the JSON property existingDisk
1348 1349 1350 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 1348 def existing_disk @existing_disk end |
#nfs_mount ⇒ Google::Apis::LifesciencesV2beta::NfsMount
Configuration for an NFSMount
to be attached to the VM.
Corresponds to the JSON property nfsMount
1353 1354 1355 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 1353 def nfs_mount @nfs_mount end |
#persistent_disk ⇒ Google::Apis::LifesciencesV2beta::PersistentDisk
Configuration for a persistent disk to be attached to the VM. See https://
cloud.google.com/compute/docs/disks/performance for more information about
disk type, size, and performance considerations.
Corresponds to the JSON property persistentDisk
1360 1361 1362 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 1360 def persistent_disk @persistent_disk end |
#volume ⇒ String
A user-supplied name for the volume. Used when mounting the volume 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 volume
1367 1368 1369 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 1367 def volume @volume end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1374 1375 1376 1377 1378 1379 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 1374 def update!(**args) @existing_disk = args[:existing_disk] if args.key?(:existing_disk) @nfs_mount = args[:nfs_mount] if args.key?(:nfs_mount) @persistent_disk = args[:persistent_disk] if args.key?(:persistent_disk) @volume = args[:volume] if args.key?(:volume) end |