# Google Cloud Vm Migration V1 Client - Class Expiration (1.4.0)

1.4.0 (latest) 1.3.0 1.2.1 1.1.0 1.0.5 0.6.5 0.5.2 0.4.2 0.3.2 0.2.3 Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class Expiration.

Expiration holds information about the expiration of a MigratingVm.

Generated from protobuf message `google.cloud.vmmigration.v1.MigratingVm.Expiration`

## Namespace

Google \\ Cloud \\ VMMigration \\ V1 \\ MigratingVm

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ expire_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp of when this resource is considered expired. |
| `↳ extension_count` | `int` Output only. The number of times expiration was extended. |
| `↳ extendable` | `bool` Output only. Describes whether the expiration can be extended. |

### getExpireTime

Output only. Timestamp of when this resource is considered expired.

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

### hasExpireTime

### clearExpireTime

### setExpireTime

Output only. Timestamp of when this resource is considered expired.

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

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

### getExtensionCount

Output only. The number of times expiration was extended.

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

### setExtensionCount

Output only. The number of times expiration was extended.

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

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

### getExtendable

Output only. Describes whether the expiration can be extended.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setExtendable

Output only. Describes whether the expiration can be extended.

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

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