SchedulingArgs

data class SchedulingArgs(val automaticRestart: Output<Boolean>? = null, val instanceTerminationAction: Output<SchedulingInstanceTerminationAction>? = null, val locationHint: Output<String>? = null, val minNodeCpus: Output<Int>? = null, val nodeAffinities: Output<List<SchedulingNodeAffinityArgs>>? = null, val onHostMaintenance: Output<SchedulingOnHostMaintenance>? = null, val preemptible: Output<Boolean>? = null, val provisioningModel: Output<SchedulingProvisioningModel>? = null) : ConvertibleToJava<SchedulingArgs>

Sets the scheduling options for an Instance.

Constructors

Link copied to clipboard
fun SchedulingArgs(automaticRestart: Output<Boolean>? = null, instanceTerminationAction: Output<SchedulingInstanceTerminationAction>? = null, locationHint: Output<String>? = null, minNodeCpus: Output<Int>? = null, nodeAffinities: Output<List<SchedulingNodeAffinityArgs>>? = null, onHostMaintenance: Output<SchedulingOnHostMaintenance>? = null, preemptible: Output<Boolean>? = null, provisioningModel: Output<SchedulingProvisioningModel>? = null)

Functions

Link copied to clipboard
open override fun toJava(): SchedulingArgs

Properties

Link copied to clipboard
val automaticRestart: Output<Boolean>? = null

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

Specifies the termination action for the instance.

Link copied to clipboard
val locationHint: Output<String>? = null

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
val minNodeCpus: Output<Int>? = null

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
val preemptible: Output<Boolean>? = null

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.