# Google Cloud Life Sciences V2beta Client - Class ExistingDisk (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 ExistingDisk.

Configuration for an existing disk to be attached to the VM.

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

## Namespace

Google \\ Cloud \\ LifeSciences \\ V2beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ disk` | `string` If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If `disk` does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the zone in which the instance is allocated. The disk must be ext4 formatted. If all `Mount` references to this disk have the `read_only` flag set to true, the disk will be attached in `read-only` mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared. |

### getDisk

If `disk` contains slashes, the Cloud Life Sciences API assumes that it is
a complete URL for the disk. If `disk` does not contain slashes, the Cloud
Life Sciences API assumes that the disk is a zonal disk and a URL will be
generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the
zone in which the instance is allocated. The disk must be ext4 formatted.

If all `Mount` references to this disk have the `read_only` flag set to
true, the disk will be attached in `read-only` mode and can be shared with
other instances. Otherwise, the disk will be available for writing but
cannot be shared.

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

### setDisk

If `disk` contains slashes, the Cloud Life Sciences API assumes that it is
a complete URL for the disk. If `disk` does not contain slashes, the Cloud
Life Sciences API assumes that the disk is a zonal disk and a URL will be
generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the
zone in which the instance is allocated. The disk must be ext4 formatted.

If all `Mount` references to this disk have the `read_only` flag set to
true, the disk will be attached in `read-only` mode and can be shared with
other instances. Otherwise, the disk will be available for writing but
cannot be shared.

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

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