Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.servicefabric.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @property deltaHealthPolicy A `delta_health_policy` block as defined below
* @property forceRestartEnabled Indicates whether to restart the Service Fabric node even if only dynamic configurations have changed.
* @property healthCheckRetryTimeout Specifies the duration, in "hh:mm:ss" string format, after which Service Fabric retries the health check if the previous health check fails. Defaults to `00:45:00`.
* @property healthCheckStableDuration Specifies the duration, in "hh:mm:ss" string format, that Service Fabric waits in order to verify that the cluster is stable before it continues to the next upgrade domain or completes the upgrade. This wait duration prevents undetected changes of health right after the health check is performed. Defaults to `00:01:00`.
* @property healthCheckWaitDuration Specifies the duration, in "hh:mm:ss" string format, that Service Fabric waits before it performs the initial health check after it finishes the upgrade on the upgrade domain. Defaults to `00:00:30`.
* @property healthPolicy A `health_policy` block as defined below
* @property upgradeDomainTimeout Specifies the duration, in "hh:mm:ss" string format, that Service Fabric takes to upgrade a single upgrade domain. After this period, the upgrade fails. Defaults to `02:00:00`.
* @property upgradeReplicaSetCheckTimeout Specifies the duration, in "hh:mm:ss" string format, that Service Fabric waits for a replica set to reconfigure into a safe state, if it is not already in a safe state, before Service Fabric proceeds with the upgrade. Defaults to `10675199.02:48:05.4775807`.
* @property upgradeTimeout Specifies the duration, in "hh:mm:ss" string format, that Service Fabric takes for the entire upgrade. After this period, the upgrade fails. Defaults to `12:00:00`.
*/
public data class ClusterUpgradePolicy(
public val deltaHealthPolicy: ClusterUpgradePolicyDeltaHealthPolicy? = null,
public val forceRestartEnabled: Boolean? = null,
public val healthCheckRetryTimeout: String? = null,
public val healthCheckStableDuration: String? = null,
public val healthCheckWaitDuration: String? = null,
public val healthPolicy: ClusterUpgradePolicyHealthPolicy? = null,
public val upgradeDomainTimeout: String? = null,
public val upgradeReplicaSetCheckTimeout: String? = null,
public val upgradeTimeout: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.servicefabric.outputs.ClusterUpgradePolicy): ClusterUpgradePolicy = ClusterUpgradePolicy(
deltaHealthPolicy = javaType.deltaHealthPolicy().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.servicefabric.kotlin.outputs.ClusterUpgradePolicyDeltaHealthPolicy.Companion.toKotlin(args0)
})
}).orElse(null),
forceRestartEnabled = javaType.forceRestartEnabled().map({ args0 -> args0 }).orElse(null),
healthCheckRetryTimeout = javaType.healthCheckRetryTimeout().map({ args0 -> args0 }).orElse(null),
healthCheckStableDuration = javaType.healthCheckStableDuration().map({ args0 ->
args0
}).orElse(null),
healthCheckWaitDuration = javaType.healthCheckWaitDuration().map({ args0 -> args0 }).orElse(null),
healthPolicy = javaType.healthPolicy().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.servicefabric.kotlin.outputs.ClusterUpgradePolicyHealthPolicy.Companion.toKotlin(args0)
})
}).orElse(null),
upgradeDomainTimeout = javaType.upgradeDomainTimeout().map({ args0 -> args0 }).orElse(null),
upgradeReplicaSetCheckTimeout = javaType.upgradeReplicaSetCheckTimeout().map({ args0 ->
args0
}).orElse(null),
upgradeTimeout = javaType.upgradeTimeout().map({ args0 -> args0 }).orElse(null),
)
}
}