RegionInstanceTemplateSchedulingArgs

data class RegionInstanceTemplateSchedulingArgs(val automaticRestart: Output<Boolean>? = null, val instanceTerminationAction: Output<String>? = null, val localSsdRecoveryTimeouts: Output<List<RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeoutArgs>>? = null, val maintenanceInterval: Output<String>? = null, val maxRunDuration: Output<RegionInstanceTemplateSchedulingMaxRunDurationArgs>? = null, val minNodeCpus: Output<Int>? = null, val nodeAffinities: Output<List<RegionInstanceTemplateSchedulingNodeAffinityArgs>>? = null, val onHostMaintenance: Output<String>? = null, val preemptible: Output<Boolean>? = null, val provisioningModel: Output<String>? = null) : ConvertibleToJava<RegionInstanceTemplateSchedulingArgs>

Constructors

Link copied to clipboard
constructor(automaticRestart: Output<Boolean>? = null, instanceTerminationAction: Output<String>? = null, localSsdRecoveryTimeouts: Output<List<RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeoutArgs>>? = null, maintenanceInterval: Output<String>? = null, maxRunDuration: Output<RegionInstanceTemplateSchedulingMaxRunDurationArgs>? = null, minNodeCpus: Output<Int>? = null, nodeAffinities: Output<List<RegionInstanceTemplateSchedulingNodeAffinityArgs>>? = null, onHostMaintenance: Output<String>? = null, preemptible: Output<Boolean>? = null, provisioningModel: Output<String>? = null)

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). This defaults to true.

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

Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here

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

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

Link copied to clipboard

The duration of the instance. Instance will run and be terminated after then, the termination action could be defined in instance_termination_action. Only support DELETE instance_termination_action at this point. Structure is documented below.

Link copied to clipboard
val minNodeCpus: Output<Int>? = null
Link copied to clipboard

Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.

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

Defines the maintenance behavior for this instance.

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

Allows instance to be preempted. This defaults to false. Read more on this here.

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

Describe the type of preemptible VM. This field accepts the value STANDARD or SPOT. If the value is STANDARD, there will be no discount. If this is set to SPOT, preemptible should be true and automatic_restart should be false. For more info about SPOT, read here

Functions

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