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

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

## Namespace

Google \\ Cloud \\ LifeSciences \\ V2beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ size_gb` | `int` The size, in GB, of the disk to attach. If the size is not specified, a default is chosen to ensure reasonable I/O performance. If the disk type is specified as `local-ssd`, multiple local drives are automatically combined to provide the requested size. Note, however, that each physical SSD is 375GB in size, and no more than 8 drives can be attached to a single instance. |
| `↳ type` | `string` The Compute Engine disk type. If unspecified, `pd-standard` is used. |
| `↳ source_image` | `string` An image to put on the disk before attaching it to the VM. |

### getSizeGb

The size, in GB, of the disk to attach. If the size is not
specified, a default is chosen to ensure reasonable I/O performance.

If the disk type is specified as `local-ssd`, multiple local drives are
automatically combined to provide the requested size. Note, however, that
each physical SSD is 375GB in size, and no more than 8 drives can be
attached to a single instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setSizeGb

The size, in GB, of the disk to attach. If the size is not
specified, a default is chosen to ensure reasonable I/O performance.

If the disk type is specified as `local-ssd`, multiple local drives are
automatically combined to provide the requested size. Note, however, that
each physical SSD is 375GB in size, and no more than 8 drives can be
attached to a single instance.

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

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

### getType

The Compute Engine disk type. If unspecified, `pd-standard` is used.

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

### setType

The Compute Engine disk type. If unspecified, `pd-standard` is used.

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

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

### getSourceImage

An image to put on the disk before attaching it to the VM.

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

### setSourceImage

An image to put on the disk before attaching it to the VM.

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

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