# Class ComputeScheduling (1.17.0)

1.17.0 (latest) 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.3 1.10.0 1.9.1 1.8.5 1.7.0 1.6.2 1.5.1 1.4.0 1.3.3 1.2.0 1.1.2 1.0.0 0.1.0

    ComputeScheduling(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Scheduling information for VM on maintenance/restart
behaviour and node allocation in sole tenant nodes. Options for
instance behavior when the host machine undergoes maintenance
that may temporarily impact instance performance.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `on_host_maintenance` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ComputeScheduling.OnHostMaintenance` How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance. |
| `restart_type` | `https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.ComputeScheduling.RestartType` Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart. |
| `node_affinities` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/vmmigration/latest/google.cloud.vmmigration_v1.types.SchedulingNodeAffinity]` A set of node affinity and anti-affinity configurations for sole tenant nodes. |
| `min_node_cpus` | `int` The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured. |

## Classes

### OnHostMaintenance

    OnHostMaintenance(value)

### RestartType

    RestartType(value)

Defines whether the Instance should be automatically
restarted whenever it is terminated by Compute Engine (not
terminated by user).