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

com.pulumi.kubernetes.batch.v1.kotlin.outputs.SuccessPolicy.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.

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 SuccessPolicy(
    public val rules: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.batch.v1.outputs.SuccessPolicy): SuccessPolicy = SuccessPolicy(
            rules = javaType.rules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.batch.v1.kotlin.outputs.SuccessPolicyRule.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy