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

com.pulumi.gcp.container.kotlin.outputs.GetClusterNodePoolUpgradeSetting.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.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property blueGreenSettings Settings for BlueGreen node pool upgrade.
 * @property maxSurge The number of additional nodes that can be added to the node pool during an upgrade. Increasing max_surge raises the number of nodes that can be upgraded simultaneously. Can be set to 0 or greater.
 * @property maxUnavailable The number of nodes that can be simultaneously unavailable during an upgrade. Increasing max_unavailable raises the number of nodes that can be upgraded in parallel. Can be set to 0 or greater.
 * @property strategy Update strategy for the given nodepool.
 */
public data class GetClusterNodePoolUpgradeSetting(
    public val blueGreenSettings: List,
    public val maxSurge: Int,
    public val maxUnavailable: Int,
    public val strategy: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.GetClusterNodePoolUpgradeSetting): GetClusterNodePoolUpgradeSetting = GetClusterNodePoolUpgradeSetting(
            blueGreenSettings = javaType.blueGreenSettings().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.container.kotlin.outputs.GetClusterNodePoolUpgradeSettingBlueGreenSetting.Companion.toKotlin(args0)
                })
            }),
            maxSurge = javaType.maxSurge(),
            maxUnavailable = javaType.maxUnavailable(),
            strategy = javaType.strategy(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy