# Google Cloud Capacity Planner V1beta Client - Class AllocatedDisk (0.1.2)

0.1.2 (latest) 0.1.1

> [!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 Capacity Planner V1beta Client class AllocatedDisk.

A specification of the interface and size of disk attached to
the instance.

Generated from protobuf message `google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk`

## Namespace

Google \\ Cloud \\ CapacityPlanner \\ V1beta \\ Allocation \\ SpecificSKUAllocation \\ AllocatedInstanceProperties

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ disk_size_gb` | `int|string` Specifies the size of the disk in base-2 GB. |
| `↳ disk_interface` | `int` Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. |

### getDiskSizeGb

Specifies the size of the disk in base-2 GB.

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

### setDiskSizeGb

Specifies the size of the disk in base-2 GB.

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

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

### getDiskInterface

Specifies the disk interface to use for attaching this disk, which is
either SCSI or NVME. The default is SCSI.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DiskInterface](https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface). |

### setDiskInterface

Specifies the disk interface to use for attaching this disk, which is
either SCSI or NVME. The default is SCSI.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DiskInterface](https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface). |

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