# Google Cloud Vm Migration V1 Client - Class OnHostMaintenance (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 OnHostMaintenance.

Protobuf type `google.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance`

## Namespace

Google \\ Cloud \\ VMMigration \\ V1 \\ ComputeScheduling

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### ON_HOST_MAINTENANCE_UNSPECIFIED

    Value: 0

An unknown, unexpected behavior.

Generated from protobuf enum `ON_HOST_MAINTENANCE_UNSPECIFIED = 0;`

### TERMINATE

    Value: 1

Terminate the instance when the host machine undergoes maintenance.

Generated from protobuf enum `TERMINATE = 1;`

### MIGRATE

    Value: 2

Migrate the instance when the host machine undergoes maintenance.

Generated from protobuf enum `MIGRATE = 2;`