Class Scheduling (1.21.0)

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

Attributes

Name Description
automatic_restart bool
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine. This field is a member of oneof_ _automatic_restart.
availability_domain int
Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance. This field is a member of oneof_ _availability_domain.
instance_termination_action str
Specifies the termination action for the instance. Check the InstanceTerminationAction enum for the list of possible values. This field is a member of oneof_ _instance_termination_action.
local_ssd_recovery_timeout google.cloud.compute_v1.types.Duration
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour. This field is a member of oneof_ _local_ssd_recovery_timeout.
location_hint str
An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API. This field is a member of oneof_ _location_hint.
max_run_duration google.cloud.compute_v1.types.Duration
Specifies the max run duration for the given instance. If specified, the instance termination action will be performed at the end of the run duration. This field is a member of oneof_ _max_run_duration.
min_node_cpus int
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. This field is a member of oneof_ _min_node_cpus.
node_affinities MutableSequence[google.cloud.compute_v1.types.SchedulingNodeAffinity]
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
on_host_maintenance str
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. Check the OnHostMaintenance enum for the list of possible values. This field is a member of oneof_ _on_host_maintenance.
on_instance_stop_action google.cloud.compute_v1.types.SchedulingOnInstanceStopAction
This field is a member of oneof_ _on_instance_stop_action.
preemptible bool
Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a TERMINATED state. See Instance Life Cycle for more information on the possible instance states. This field is a member of oneof_ _preemptible.
provisioning_model str
Specifies the provisioning model of the instance. Check the ProvisioningModel enum for the list of possible values. This field is a member of oneof_ _provisioning_model.
termination_time str
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time. This field is a member of oneof_ _termination_time.

Classes

InstanceTerminationAction

InstanceTerminationAction(value)

Specifies the termination action for the instance.

OnHostMaintenance

OnHostMaintenance(value)

Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.

ProvisioningModel

ProvisioningModel(value)

Specifies the provisioning model of the instance.