Class: Google::Apis::GenomicsV2alpha1::Volume

Inherits:
Object
  • Object
show all
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 storage that can be attached to a VM. Specify either Volume or Disk, but not both.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Volume

Returns a new instance of Volume.



1504
1505
1506
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 1504

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#existing_diskGoogle::Apis::GenomicsV2alpha1::ExistingDisk

Configuration for an existing disk to be attached to the VM. Corresponds to the JSON property existingDisk



1483
1484
1485
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 1483

def existing_disk
  @existing_disk
end

#nfs_mountGoogle::Apis::GenomicsV2alpha1::NfsMount

Configuration for an NFSMount to be attached to the VM. Corresponds to the JSON property nfsMount



1488
1489
1490
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 1488

def nfs_mount
  @nfs_mount
end

#persistent_diskGoogle::Apis::GenomicsV2alpha1::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



1495
1496
1497
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 1495

def persistent_disk
  @persistent_disk
end

#volumeString

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

Returns:

  • (String)


1502
1503
1504
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 1502

def volume
  @volume
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1509
1510
1511
1512
1513
1514
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 1509

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