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

com.pulumi.gcp.container.kotlin.inputs.ClusterClusterAutoscalingAutoProvisioningDefaultsManagementArgs.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterClusterAutoscalingAutoProvisioningDefaultsManagementArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property autoRepair Specifies whether the node auto-repair is enabled for the node pool. If enabled, the nodes in this node pool will be monitored and, if they fail health checks too many times, an automatic repair action will be triggered.
 * This block also contains several computed attributes, documented below.
 * @property autoUpgrade Specifies whether node auto-upgrade is enabled for the node pool. If enabled, node auto-upgrade helps keep the nodes in your node pool up to date with the latest release version of Kubernetes.
 * @property upgradeOptions Specifies the [Auto Upgrade knobs](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/NodeManagement#AutoUpgradeOptions) for the node pool.
 */
public data class ClusterClusterAutoscalingAutoProvisioningDefaultsManagementArgs(
    public val autoRepair: Output? = null,
    public val autoUpgrade: Output? = null,
    public val upgradeOptions: Output>? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterClusterAutoscalingAutoProvisioningDefaultsManagementArgs =
        com.pulumi.gcp.container.inputs.ClusterClusterAutoscalingAutoProvisioningDefaultsManagementArgs.builder()
            .autoRepair(autoRepair?.applyValue({ args0 -> args0 }))
            .autoUpgrade(autoUpgrade?.applyValue({ args0 -> args0 }))
            .upgradeOptions(
                upgradeOptions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ClusterClusterAutoscalingAutoProvisioningDefaultsManagementArgs].
 */
@PulumiTagMarker
public class ClusterClusterAutoscalingAutoProvisioningDefaultsManagementArgsBuilder internal constructor() {
    private var autoRepair: Output? = null

    private var autoUpgrade: Output? = null

    private var upgradeOptions:
        Output>? =
        null

    /**
     * @param value Specifies whether the node auto-repair is enabled for the node pool. If enabled, the nodes in this node pool will be monitored and, if they fail health checks too many times, an automatic repair action will be triggered.
     * This block also contains several computed attributes, documented below.
     */
    @JvmName("atbfqqdofqonkgni")
    public suspend fun autoRepair(`value`: Output) {
        this.autoRepair = value
    }

    /**
     * @param value Specifies whether node auto-upgrade is enabled for the node pool. If enabled, node auto-upgrade helps keep the nodes in your node pool up to date with the latest release version of Kubernetes.
     */
    @JvmName("pabljalhhhdlhdyu")
    public suspend fun autoUpgrade(`value`: Output) {
        this.autoUpgrade = value
    }

    /**
     * @param value Specifies the [Auto Upgrade knobs](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/NodeManagement#AutoUpgradeOptions) for the node pool.
     */
    @JvmName("yalwvyhgqepreugm")
    public suspend fun upgradeOptions(`value`: Output>) {
        this.upgradeOptions = value
    }

    @JvmName("jxvjfmpuvmmhgauj")
    public suspend fun upgradeOptions(vararg values: Output) {
        this.upgradeOptions = Output.all(values.asList())
    }

    /**
     * @param values Specifies the [Auto Upgrade knobs](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/NodeManagement#AutoUpgradeOptions) for the node pool.
     */
    @JvmName("qoifyvivxmhdwuxv")
    public suspend fun upgradeOptions(values: List>) {
        this.upgradeOptions = Output.all(values)
    }

    /**
     * @param value Specifies whether the node auto-repair is enabled for the node pool. If enabled, the nodes in this node pool will be monitored and, if they fail health checks too many times, an automatic repair action will be triggered.
     * This block also contains several computed attributes, documented below.
     */
    @JvmName("snuddmhiikebprik")
    public suspend fun autoRepair(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoRepair = mapped
    }

    /**
     * @param value Specifies whether node auto-upgrade is enabled for the node pool. If enabled, node auto-upgrade helps keep the nodes in your node pool up to date with the latest release version of Kubernetes.
     */
    @JvmName("isybcjocdbglqxbm")
    public suspend fun autoUpgrade(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoUpgrade = mapped
    }

    /**
     * @param value Specifies the [Auto Upgrade knobs](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/NodeManagement#AutoUpgradeOptions) for the node pool.
     */
    @JvmName("yoplgxuflibmfwmb")
    public suspend fun upgradeOptions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.upgradeOptions = mapped
    }

    /**
     * @param argument Specifies the [Auto Upgrade knobs](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/NodeManagement#AutoUpgradeOptions) for the node pool.
     */
    @JvmName("gsnwjxyypqpakcyl")
    public suspend fun upgradeOptions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ClusterClusterAutoscalingAutoProvisioningDefaultsManagementUpgradeOptionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.upgradeOptions = mapped
    }

    /**
     * @param argument Specifies the [Auto Upgrade knobs](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/NodeManagement#AutoUpgradeOptions) for the node pool.
     */
    @JvmName("daytkfnrjoxxcrbf")
    public suspend fun upgradeOptions(vararg argument: suspend ClusterClusterAutoscalingAutoProvisioningDefaultsManagementUpgradeOptionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ClusterClusterAutoscalingAutoProvisioningDefaultsManagementUpgradeOptionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.upgradeOptions = mapped
    }

    /**
     * @param argument Specifies the [Auto Upgrade knobs](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/NodeManagement#AutoUpgradeOptions) for the node pool.
     */
    @JvmName("kvqqlminglkjiuda")
    public suspend fun upgradeOptions(argument: suspend ClusterClusterAutoscalingAutoProvisioningDefaultsManagementUpgradeOptionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ClusterClusterAutoscalingAutoProvisioningDefaultsManagementUpgradeOptionArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.upgradeOptions = mapped
    }

    /**
     * @param values Specifies the [Auto Upgrade knobs](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/NodeManagement#AutoUpgradeOptions) for the node pool.
     */
    @JvmName("onsaurpgilhpnktk")
    public suspend fun upgradeOptions(vararg values: ClusterClusterAutoscalingAutoProvisioningDefaultsManagementUpgradeOptionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.upgradeOptions = mapped
    }

    internal fun build(): ClusterClusterAutoscalingAutoProvisioningDefaultsManagementArgs =
        ClusterClusterAutoscalingAutoProvisioningDefaultsManagementArgs(
            autoRepair = autoRepair,
            autoUpgrade = autoUpgrade,
            upgradeOptions = upgradeOptions,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy