# Google Cloud Capacity Planner V1beta Client - Class AllocatedInstanceProperties (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 AllocatedInstanceProperties.

Properties of the SKU instances being reserved.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ machine_type` | `string` Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. |
| `↳ guest_accelerator` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig>` Specifies accelerator type and count. |
| `↳ min_cpu_platform` | `string` Minimum cpu platform the reservation. |
| `↳ local_ssd` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk>` Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. |

### getMachineType

Specifies type of machine (name only) which has fixed number of vCPUs
and fixed amount of memory. This also includes specifying custom
machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.

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

### setMachineType

Specifies type of machine (name only) which has fixed number of vCPUs
and fixed amount of memory. This also includes specifying custom
machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.

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

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

### getGuestAccelerator

Specifies accelerator type and count.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig>` |   |

### setGuestAccelerator

Specifies accelerator type and count.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig>` |

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

### getMinCpuPlatform

Minimum cpu platform the reservation.

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

### setMinCpuPlatform

Minimum cpu platform the reservation.

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

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

### getLocalSsd

Specifies amount of local ssd to reserve with each instance. The type
of disk is local-ssd.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk>` |   |

### setLocalSsd

Specifies amount of local ssd to reserve with each instance. The type
of disk is local-ssd.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk>` |

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