class Google::Apis::GenomicsV2alpha1::Volume

Carries information about storage that can be attached to a VM. Specify either `Volume` or `Disk`, but not both.

Attributes

existing_disk[RW]

Configuration for an existing disk to be attached to the VM. Corresponds to the JSON property `existingDisk` @return [Google::Apis::GenomicsV2alpha1::ExistingDisk]

nfs_mount[RW]

Configuration for an `NFSMount` to be attached to the VM. Corresponds to the JSON property `nfsMount` @return [Google::Apis::GenomicsV2alpha1::NfsMount]

persistent_disk[RW]

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` @return [Google::Apis::GenomicsV2alpha1::PersistentDisk]

volume[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/genomics_v2alpha1/classes.rb, line 1362
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/genomics_v2alpha1/classes.rb, line 1367
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