com.pulumi.gcp.compute.kotlin.outputs.GetInstanceTemplateScheduling.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property automaticRestart Specifies whether the instance should be
* automatically restarted if it is terminated by Compute Engine (not
* terminated by a user). This defaults to true.
* @property instanceTerminationAction Describe the type of termination action for `SPOT` VM. Can be `STOP` or `DELETE`. Read more on [here](https://cloud.google.com/compute/docs/instances/create-use-spot)
* @property localSsdRecoveryTimeouts 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.
* @property maintenanceInterval Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
* @property maxRunDurations The timeout for new network connections to hosts.
* @property minNodeCpus Minimum number of cpus for the instance.
* @property nodeAffinities 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](https://cloud.google.com/compute/docs/nodes/create-nodes).
* Structure documented below.
* @property onHostMaintenance Defines the maintenance behavior for this
* instance.
* @property preemptible Allows instance to be preempted. This defaults to
* false. Read more on this
* [here](https://cloud.google.com/compute/docs/instances/preemptible).
* @property provisioningModel Describe the type of preemptible VM.
*/
public data class GetInstanceTemplateScheduling(
public val automaticRestart: Boolean,
public val instanceTerminationAction: String,
public val localSsdRecoveryTimeouts: List,
public val maintenanceInterval: String,
public val maxRunDurations: List,
public val minNodeCpus: Int,
public val nodeAffinities: List,
public val onHostMaintenance: String,
public val preemptible: Boolean,
public val provisioningModel: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetInstanceTemplateScheduling): GetInstanceTemplateScheduling = GetInstanceTemplateScheduling(
automaticRestart = javaType.automaticRestart(),
instanceTerminationAction = javaType.instanceTerminationAction(),
localSsdRecoveryTimeouts = javaType.localSsdRecoveryTimeouts().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetInstanceTemplateSchedulingLocalSsdRecoveryTimeout.Companion.toKotlin(args0)
})
}),
maintenanceInterval = javaType.maintenanceInterval(),
maxRunDurations = javaType.maxRunDurations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetInstanceTemplateSchedulingMaxRunDuration.Companion.toKotlin(args0)
})
}),
minNodeCpus = javaType.minNodeCpus(),
nodeAffinities = javaType.nodeAffinities().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetInstanceTemplateSchedulingNodeAffinity.Companion.toKotlin(args0)
})
}),
onHostMaintenance = javaType.onHostMaintenance(),
preemptible = javaType.preemptible(),
provisioningModel = javaType.provisioningModel(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy