com.pulumi.kubernetes.batch.v1.kotlin.outputs.SuccessPolicyPatch.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.batch.v1.kotlin.outputs
import kotlin.Suppress
import kotlin.collections.List
/**
* SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.
* @property rules rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the "SucceededCriteriaMet" condition is added, and the lingering pods are removed. The terminal state for such a Job has the "Complete" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.
*/
public data class SuccessPolicyPatch(
public val rules: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.batch.v1.outputs.SuccessPolicyPatch): SuccessPolicyPatch = SuccessPolicyPatch(
rules = javaType.rules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.batch.v1.kotlin.outputs.SuccessPolicyRulePatch.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy