All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.compute.kotlin.outputs.GetInstanceScheduling.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@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 if the instance should be
 * restarted if it was terminated by Compute Engine (not a user).
 * @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
 * @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.
 * @property onHostMaintenance Describes maintenance behavior for the
 * instance. One of `MIGRATE` or `TERMINATE`, for more info, read
 * [here](https://cloud.google.com/compute/docs/instances/setting-instance-scheduling-options)
 * @property preemptible Whether the instance is preemptible.
 * @property provisioningModel Describe the type of preemptible VM.
 */
public data class GetInstanceScheduling(
    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.GetInstanceScheduling): GetInstanceScheduling = GetInstanceScheduling(
            automaticRestart = javaType.automaticRestart(),
            instanceTerminationAction = javaType.instanceTerminationAction(),
            localSsdRecoveryTimeouts = javaType.localSsdRecoveryTimeouts().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetInstanceSchedulingLocalSsdRecoveryTimeout.Companion.toKotlin(args0)
                })
            }),
            maintenanceInterval = javaType.maintenanceInterval(),
            maxRunDurations = javaType.maxRunDurations().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetInstanceSchedulingMaxRunDuration.Companion.toKotlin(args0)
                })
            }),
            minNodeCpus = javaType.minNodeCpus(),
            nodeAffinities = javaType.nodeAffinities().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetInstanceSchedulingNodeAffinity.Companion.toKotlin(args0)
                })
            }),
            onHostMaintenance = javaType.onHostMaintenance(),
            preemptible = javaType.preemptible(),
            provisioningModel = javaType.provisioningModel(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy