0.17.0 (latest) 0.16.0 0.15.0 0.14.0 0.13.1 0.12.0 0.11.0 0.10.1 0.9.0 0.8.2 0.7.2 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Cloud Life Sciences V2beta API class Google::Cloud::LifeSciences::V2beta::Volume.

Carries information about storage that can be attached to a VM.


<br />

Specify either [`Volume`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-Volume "Google::Cloud::LifeSciences::V2beta::Volume (class)") or
[`Disk`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-Disk "Google::Cloud::LifeSciences::V2beta::Disk (class)"), but not both.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #existing_disk

    def existing_disk() -> ::Google::Cloud::LifeSciences::V2beta::ExistingDisk

**Returns**

- ([::Google::Cloud::LifeSciences::V2beta::ExistingDisk](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-ExistingDisk)) --- Configuration for a existing disk.


  Note: The following fields are mutually exclusive: `existing_disk`, `persistent_disk`, `nfs_mount`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #existing_disk=

    def existing_disk=(value) -> ::Google::Cloud::LifeSciences::V2beta::ExistingDisk

**Parameter**

- **value** ([::Google::Cloud::LifeSciences::V2beta::ExistingDisk](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-ExistingDisk)) --- Configuration for a existing disk.


  Note: The following fields are mutually exclusive: `existing_disk`, `persistent_disk`, `nfs_mount`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::LifeSciences::V2beta::ExistingDisk](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-ExistingDisk)) --- Configuration for a existing disk.


  Note: The following fields are mutually exclusive: `existing_disk`, `persistent_disk`, `nfs_mount`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #nfs_mount

    def nfs_mount() -> ::Google::Cloud::LifeSciences::V2beta::NFSMount

**Returns**

- ([::Google::Cloud::LifeSciences::V2beta::NFSMount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-NFSMount)) --- Configuration for an NFS mount.


  Note: The following fields are mutually exclusive: `nfs_mount`, `persistent_disk`, `existing_disk`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #nfs_mount=

    def nfs_mount=(value) -> ::Google::Cloud::LifeSciences::V2beta::NFSMount

**Parameter**

- **value** ([::Google::Cloud::LifeSciences::V2beta::NFSMount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-NFSMount)) --- Configuration for an NFS mount.


  Note: The following fields are mutually exclusive: `nfs_mount`, `persistent_disk`, `existing_disk`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::LifeSciences::V2beta::NFSMount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-NFSMount)) --- Configuration for an NFS mount.


  Note: The following fields are mutually exclusive: `nfs_mount`, `persistent_disk`, `existing_disk`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #persistent_disk

    def persistent_disk() -> ::Google::Cloud::LifeSciences::V2beta::PersistentDisk

**Returns**

- ([::Google::Cloud::LifeSciences::V2beta::PersistentDisk](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-PersistentDisk)) --- Configuration for a persistent disk.


  Note: The following fields are mutually exclusive: `persistent_disk`, `existing_disk`, `nfs_mount`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #persistent_disk=

    def persistent_disk=(value) -> ::Google::Cloud::LifeSciences::V2beta::PersistentDisk

**Parameter**

- **value** ([::Google::Cloud::LifeSciences::V2beta::PersistentDisk](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-PersistentDisk)) --- Configuration for a persistent disk.


  Note: The following fields are mutually exclusive: `persistent_disk`, `existing_disk`, `nfs_mount`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::LifeSciences::V2beta::PersistentDisk](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-PersistentDisk)) --- Configuration for a persistent disk.


  Note: The following fields are mutually exclusive: `persistent_disk`, `existing_disk`, `nfs_mount`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #volume

    def volume() -> ::String

**Returns**

- (::String) --- A user-supplied name for the volume. Used when mounting the volume into [`Actions`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-Action "Google::Cloud::LifeSciences::V2beta::Action (class)"). The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.

### #volume=

    def volume=(value) -> ::String

**Parameter**

- **value** (::String) --- A user-supplied name for the volume. Used when mounting the volume into [`Actions`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-Action "Google::Cloud::LifeSciences::V2beta::Action (class)"). The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.
**Returns**

- (::String) --- A user-supplied name for the volume. Used when mounting the volume into [`Actions`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-life_sciences-v2beta/latest/Google-Cloud-LifeSciences-V2beta-Action "Google::Cloud::LifeSciences::V2beta::Action (class)"). The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.