Scheduling Args
data class SchedulingArgs(val automaticRestart: Output<Boolean>? = null, val hostErrorTimeoutSeconds: Output<Int>? = null, val instanceTerminationAction: Output<SchedulingInstanceTerminationAction>? = null, val locationHint: Output<String>? = null, val maintenanceFreezeDurationHours: Output<Int>? = null, val maintenanceInterval: Output<SchedulingMaintenanceInterval>? = null, val maxRunDuration: Output<DurationArgs>? = 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, val terminationTime: Output<String>? = null) : ConvertibleToJava<SchedulingArgs>
Sets the scheduling options for an Instance.
Constructors
Link copied to clipboard
fun SchedulingArgs(automaticRestart: Output<Boolean>? = null, hostErrorTimeoutSeconds: Output<Int>? = null, instanceTerminationAction: Output<SchedulingInstanceTerminationAction>? = null, locationHint: Output<String>? = null, maintenanceFreezeDurationHours: Output<Int>? = null, maintenanceInterval: Output<SchedulingMaintenanceInterval>? = null, maxRunDuration: Output<DurationArgs>? = null, minNodeCpus: Output<Int>? = null, nodeAffinities: Output<List<SchedulingNodeAffinityArgs>>? = null, onHostMaintenance: Output<SchedulingOnHostMaintenance>? = null, preemptible: Output<Boolean>? = null, provisioningModel: Output<SchedulingProvisioningModel>? = null, terminationTime: Output<String>? = null)
Functions
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.