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

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

import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property batchNodeCount Number of blue nodes to drain in a batch. Only one of the batch_percentage or batch_node_count can be specified.
 * @property batchPercentage Percentage of the bool pool nodes to drain in a batch. The range of this field should be (0.0, 1.0). Only one of the batch_percentage or batch_node_count can be specified.
 * @property batchSoakDuration Soak time after each batch gets drained. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".`.
 */
public data class ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicy(
    public val batchNodeCount: Int? = null,
    public val batchPercentage: Double? = null,
    public val batchSoakDuration: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicy): ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicy =
            ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicy(
                batchNodeCount = javaType.batchNodeCount().map({ args0 -> args0 }).orElse(null),
                batchPercentage = javaType.batchPercentage().map({ args0 -> args0 }).orElse(null),
                batchSoakDuration = javaType.batchSoakDuration().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy