SchedulingResponse

data class SchedulingResponse(val automaticRestart: Boolean, val hostErrorTimeoutSeconds: Int, val instanceTerminationAction: String, val locationHint: String, val maintenanceFreezeDurationHours: Int, val maintenanceInterval: String, val maxRunDuration: DurationResponse, val minNodeCpus: Int, val nodeAffinities: List<SchedulingNodeAffinityResponse>, val onHostMaintenance: String, val preemptible: Boolean, val provisioningModel: String, val terminationTime: String)

Sets the scheduling options for an Instance.

Constructors

Link copied to clipboard
fun SchedulingResponse(automaticRestart: Boolean, hostErrorTimeoutSeconds: Int, instanceTerminationAction: String, locationHint: String, maintenanceFreezeDurationHours: Int, maintenanceInterval: String, maxRunDuration: DurationResponse, minNodeCpus: Int, nodeAffinities: List<SchedulingNodeAffinityResponse>, onHostMaintenance: String, preemptible: Boolean, provisioningModel: String, terminationTime: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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.

Link copied to clipboard

Specify the time in seconds for host error detection, the value must be within the range of 90, 330 with the increment of 30, if unset, the default behavior of host error recovery will be used.

Link copied to clipboard

Specifies the termination action for the instance.

Link copied to clipboard

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.

Link copied to clipboard

Specifies the number of hours after VM instance creation where the VM won't be scheduled for maintenance.

Link copied to clipboard

Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC.

Link copied to clipboard

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.

Link copied to clipboard

The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.

Link copied to clipboard

A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Specifies the provisioning model of the instance.

Link copied to clipboard

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.