# Google Cloud Notebooks V2 Client - Class UpgradeHistoryEntry (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.7.5 0.6.2 0.5.0 0.4.1 0.3.6 Reference documentation and code samples for the Google Cloud Notebooks V2 Client class UpgradeHistoryEntry.

The entry of VM image upgrade history.

Generated from protobuf message `google.cloud.notebooks.v2.UpgradeHistoryEntry`

## Namespace

Google \\ Cloud \\ Notebooks \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ snapshot` | `string` Optional. The snapshot of the boot disk of this notebook instance before upgrade. |
| `↳ vm_image` | `string` Optional. The VM image before this instance upgrade. |
| `↳ container_image` | `string` Optional. The container image before this instance upgrade. |
| `↳ framework` | `string` Optional. The framework of this notebook instance. |
| `↳ version` | `string` Optional. The version of the notebook instance before this upgrade. |
| `↳ state` | `int` Output only. The state of this instance upgrade history entry. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Immutable. The time that this instance upgrade history entry is created. |
| `↳ action` | `int` Optional. Action. Rolloback or Upgrade. |
| `↳ target_version` | `string` Optional. Target VM Version, like m63. |

### getSnapshot

Optional. The snapshot of the boot disk of this notebook instance before
upgrade.

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

### setSnapshot

Optional. The snapshot of the boot disk of this notebook instance before
upgrade.

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

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

### getVmImage

Optional. The VM image before this instance upgrade.

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

### setVmImage

Optional. The VM image before this instance upgrade.

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

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

### getContainerImage

Optional. The container image before this instance upgrade.

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

### setContainerImage

Optional. The container image before this instance upgrade.

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

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

### getFramework

Optional. The framework of this notebook instance.

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

### setFramework

Optional. The framework of this notebook instance.

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

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

### getVersion

Optional. The version of the notebook instance before this upgrade.

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

### setVersion

Optional. The version of the notebook instance before this upgrade.

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

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

### getState

Output only. The state of this instance upgrade history entry.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V2.UpgradeHistoryEntry.State). |

### setState

Output only. The state of this instance upgrade history entry.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V2.UpgradeHistoryEntry.State). |

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

### getCreateTime

Immutable. The time that this instance upgrade history entry is created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Immutable. The time that this instance upgrade history entry is created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getAction

Optional. Action. Rolloback or Upgrade.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Action](https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V2.UpgradeHistoryEntry.Action). |

### setAction

Optional. Action. Rolloback or Upgrade.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Action](https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V2.UpgradeHistoryEntry.Action). |

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

### getTargetVersion

Optional. Target VM Version, like m63.

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

### setTargetVersion

Optional. Target VM Version, like m63.

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

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