# Google Cloud Batch V1 Client - Class InstanceStatus (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.7 1.0.3 0.17.0 0.16.10 0.15.0 0.14.0 0.13.1 0.12.1 0.11.3 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.2 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Google Cloud Batch V1 Client class InstanceStatus.

VM instance status.

Generated from protobuf message `google.cloud.batch.v1.JobStatus.InstanceStatus`

## Namespace

Google \\ Cloud \\ Batch \\ V1 \\ JobStatus

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ machine_type` | `string` The Compute Engine machine type. |
| `↳ provisioning_model` | `int` The VM instance provisioning model. |
| `↳ task_pack` | `int|string` The max number of tasks can be assigned to this instance type. |
| `↳ boot_disk` | `https://docs.cloud.google.com/php/docs/reference/cloud-batch/latest/V1.AllocationPolicy.Disk` The VM boot disk. |

### getMachineType

The Compute Engine machine type.

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

### setMachineType

The Compute Engine machine type.

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

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

### getProvisioningModel

The VM instance provisioning model.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ProvisioningModel](https://docs.cloud.google.com/php/docs/reference/cloud-batch/latest/V1.AllocationPolicy.ProvisioningModel). |

### setProvisioningModel

The VM instance provisioning model.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ProvisioningModel](https://docs.cloud.google.com/php/docs/reference/cloud-batch/latest/V1.AllocationPolicy.ProvisioningModel). |

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

### getTaskPack

The max number of tasks can be assigned to this instance type.

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

### setTaskPack

The max number of tasks can be assigned to this instance type.

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

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

### getBootDisk

The VM boot disk.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-batch/latest/V1.AllocationPolicy.Disk|null` |   |

### hasBootDisk

### clearBootDisk

### setBootDisk

The VM boot disk.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-batch/latest/V1.AllocationPolicy.Disk` |

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