# Google Cloud Life Sciences V2beta Client - Class Volume (0.9.0)

0.9.0 (latest) 0.8.1 0.7.3 0.6.8 0.5.4 0.4.0 0.3.5

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Life Sciences V2beta Client class Volume.

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

Specify either [`Volume`](https://docs.cloud.google.com/php/docs/reference/cloud-life-sciences/latest/V2beta.Volume) or
[`Disk`](https://docs.cloud.google.com/php/docs/reference/cloud-life-sciences/latest/V2beta.Disk), but not both.

Generated from protobuf message `google.cloud.lifesciences.v2beta.Volume`

## Namespace

Google \\ Cloud \\ LifeSciences \\ V2beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ 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. |
| `↳ persistent_disk` | `https://docs.cloud.google.com/php/docs/reference/cloud-life-sciences/latest/V2beta.PersistentDisk` Configuration for a persistent disk. |
| `↳ existing_disk` | `https://docs.cloud.google.com/php/docs/reference/cloud-life-sciences/latest/V2beta.ExistingDisk` Configuration for a existing disk. |
| `↳ nfs_mount` | `https://docs.cloud.google.com/php/docs/reference/cloud-life-sciences/latest/V2beta.NFSMount` Configuration for an NFS mount. |

### getVolume

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setVolume

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPersistentDisk

Configuration for a persistent disk.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-life-sciences/latest/V2beta.PersistentDisk|null` |   |

### hasPersistentDisk

### setPersistentDisk

Configuration for a persistent disk.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-life-sciences/latest/V2beta.PersistentDisk` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getExistingDisk

Configuration for a existing disk.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-life-sciences/latest/V2beta.ExistingDisk|null` |   |

### hasExistingDisk

### setExistingDisk

Configuration for a existing disk.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-life-sciences/latest/V2beta.ExistingDisk` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNfsMount

Configuration for an NFS mount.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-life-sciences/latest/V2beta.NFSMount|null` |   |

### hasNfsMount

### setNfsMount

Configuration for an NFS mount.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-life-sciences/latest/V2beta.NFSMount` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStorage

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |