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

com.pulumi.azure.servicefabric.kotlin.outputs.ClusterUpgradePolicyDeltaHealthPolicy.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.servicefabric.kotlin.outputs

import kotlin.Int
import kotlin.Suppress

/**
 *
 * @property maxDeltaUnhealthyApplicationsPercent Specifies the maximum tolerated percentage of delta unhealthy applications that can have aggregated health states of error. If the current unhealthy applications do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
 * @property maxDeltaUnhealthyNodesPercent Specifies the maximum tolerated percentage of delta unhealthy nodes that can have aggregated health states of error. If the current unhealthy nodes do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
 * @property maxUpgradeDomainDeltaUnhealthyNodesPercent Specifies the maximum tolerated percentage of upgrade domain delta unhealthy nodes that can have aggregated health state of error. If there is any upgrade domain where the current unhealthy nodes do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
 */
public data class ClusterUpgradePolicyDeltaHealthPolicy(
    public val maxDeltaUnhealthyApplicationsPercent: Int? = null,
    public val maxDeltaUnhealthyNodesPercent: Int? = null,
    public val maxUpgradeDomainDeltaUnhealthyNodesPercent: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.servicefabric.outputs.ClusterUpgradePolicyDeltaHealthPolicy): ClusterUpgradePolicyDeltaHealthPolicy = ClusterUpgradePolicyDeltaHealthPolicy(
            maxDeltaUnhealthyApplicationsPercent = javaType.maxDeltaUnhealthyApplicationsPercent().map({ args0 ->
                args0
            }).orElse(null),
            maxDeltaUnhealthyNodesPercent = javaType.maxDeltaUnhealthyNodesPercent().map({ args0 ->
                args0
            }).orElse(null),
            maxUpgradeDomainDeltaUnhealthyNodesPercent = javaType.maxUpgradeDomainDeltaUnhealthyNodesPercent().map({ args0 ->
                args0
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy