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

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

/**
 *
 * @property blueGreenSettings Settings for blue-green upgrade strategy. To be specified when strategy is set to BLUE_GREEN. Structure is documented below.
 * @property maxSurge The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process. To be used when strategy is set to SURGE. Default is 0.
 * @property maxUnavailable The maximum number of nodes that can be simultaneously unavailable during the upgrade process. To be used when strategy is set to SURGE. Default is 0.
 * @property strategy Strategy used for node pool update. Strategy can only be one of BLUE_GREEN or SURGE. The default is value is SURGE.
 */
public data class ClusterNodePoolUpgradeSettings(
    public val blueGreenSettings: ClusterNodePoolUpgradeSettingsBlueGreenSettings? = null,
    public val maxSurge: Int? = null,
    public val maxUnavailable: Int? = null,
    public val strategy: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterNodePoolUpgradeSettings): ClusterNodePoolUpgradeSettings = ClusterNodePoolUpgradeSettings(
            blueGreenSettings = javaType.blueGreenSettings().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.container.kotlin.outputs.ClusterNodePoolUpgradeSettingsBlueGreenSettings.Companion.toKotlin(args0)
                })
            }).orElse(null),
            maxSurge = javaType.maxSurge().map({ args0 -> args0 }).orElse(null),
            maxUnavailable = javaType.maxUnavailable().map({ args0 -> args0 }).orElse(null),
            strategy = javaType.strategy().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy