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

com.pulumi.kubernetes.apps.v1.kotlin.inputs.DaemonSetStatusArgs.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: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.apps.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.apps.v1.inputs.DaemonSetStatusArgs.builder
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * DaemonSetStatus represents the current status of a daemon set.
 * @property collisionCount Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.
 * @property conditions Represents the latest available observations of a DaemonSet's current state.
 * @property currentNumberScheduled The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
 * @property desiredNumberScheduled The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
 * @property numberAvailable The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)
 * @property numberMisscheduled The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
 * @property numberReady numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.
 * @property numberUnavailable The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)
 * @property observedGeneration The most recent generation observed by the daemon set controller.
 * @property updatedNumberScheduled The total number of nodes that are running updated daemon pod
 */
public data class DaemonSetStatusArgs(
    public val collisionCount: Output? = null,
    public val conditions: Output>? = null,
    public val currentNumberScheduled: Output,
    public val desiredNumberScheduled: Output,
    public val numberAvailable: Output? = null,
    public val numberMisscheduled: Output,
    public val numberReady: Output,
    public val numberUnavailable: Output? = null,
    public val observedGeneration: Output? = null,
    public val updatedNumberScheduled: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apps.v1.inputs.DaemonSetStatusArgs =
        com.pulumi.kubernetes.apps.v1.inputs.DaemonSetStatusArgs.builder()
            .collisionCount(collisionCount?.applyValue({ args0 -> args0 }))
            .conditions(
                conditions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .currentNumberScheduled(currentNumberScheduled.applyValue({ args0 -> args0 }))
            .desiredNumberScheduled(desiredNumberScheduled.applyValue({ args0 -> args0 }))
            .numberAvailable(numberAvailable?.applyValue({ args0 -> args0 }))
            .numberMisscheduled(numberMisscheduled.applyValue({ args0 -> args0 }))
            .numberReady(numberReady.applyValue({ args0 -> args0 }))
            .numberUnavailable(numberUnavailable?.applyValue({ args0 -> args0 }))
            .observedGeneration(observedGeneration?.applyValue({ args0 -> args0 }))
            .updatedNumberScheduled(updatedNumberScheduled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DaemonSetStatusArgs].
 */
@PulumiTagMarker
public class DaemonSetStatusArgsBuilder internal constructor() {
    private var collisionCount: Output? = null

    private var conditions: Output>? = null

    private var currentNumberScheduled: Output? = null

    private var desiredNumberScheduled: Output? = null

    private var numberAvailable: Output? = null

    private var numberMisscheduled: Output? = null

    private var numberReady: Output? = null

    private var numberUnavailable: Output? = null

    private var observedGeneration: Output? = null

    private var updatedNumberScheduled: Output? = null

    /**
     * @param value Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.
     */
    @JvmName("aatnawtebhvfyfxl")
    public suspend fun collisionCount(`value`: Output) {
        this.collisionCount = value
    }

    /**
     * @param value Represents the latest available observations of a DaemonSet's current state.
     */
    @JvmName("vdjbpsenqtkieeft")
    public suspend fun conditions(`value`: Output>) {
        this.conditions = value
    }

    @JvmName("lkjqylorevrpdyxn")
    public suspend fun conditions(vararg values: Output) {
        this.conditions = Output.all(values.asList())
    }

    /**
     * @param values Represents the latest available observations of a DaemonSet's current state.
     */
    @JvmName("qxpotwhmkodrmtbp")
    public suspend fun conditions(values: List>) {
        this.conditions = Output.all(values)
    }

    /**
     * @param value The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
     */
    @JvmName("mnpufprqpuikhsnv")
    public suspend fun currentNumberScheduled(`value`: Output) {
        this.currentNumberScheduled = value
    }

    /**
     * @param value The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
     */
    @JvmName("xwosfswcdacpqxir")
    public suspend fun desiredNumberScheduled(`value`: Output) {
        this.desiredNumberScheduled = value
    }

    /**
     * @param value The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)
     */
    @JvmName("fgwlpvnekqlfeisb")
    public suspend fun numberAvailable(`value`: Output) {
        this.numberAvailable = value
    }

    /**
     * @param value The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
     */
    @JvmName("prfjpppujeypiins")
    public suspend fun numberMisscheduled(`value`: Output) {
        this.numberMisscheduled = value
    }

    /**
     * @param value numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.
     */
    @JvmName("rtlxikdkrendllsh")
    public suspend fun numberReady(`value`: Output) {
        this.numberReady = value
    }

    /**
     * @param value The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)
     */
    @JvmName("hyhswduhhcuadhja")
    public suspend fun numberUnavailable(`value`: Output) {
        this.numberUnavailable = value
    }

    /**
     * @param value The most recent generation observed by the daemon set controller.
     */
    @JvmName("hsemycnxpvsygaro")
    public suspend fun observedGeneration(`value`: Output) {
        this.observedGeneration = value
    }

    /**
     * @param value The total number of nodes that are running updated daemon pod
     */
    @JvmName("vyntvisbxduldktl")
    public suspend fun updatedNumberScheduled(`value`: Output) {
        this.updatedNumberScheduled = value
    }

    /**
     * @param value Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.
     */
    @JvmName("midkcotcybfbckdv")
    public suspend fun collisionCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.collisionCount = mapped
    }

    /**
     * @param value Represents the latest available observations of a DaemonSet's current state.
     */
    @JvmName("deaxpgvwowxysfty")
    public suspend fun conditions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param argument Represents the latest available observations of a DaemonSet's current state.
     */
    @JvmName("otcbipcgthfmhiau")
    public suspend fun conditions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DaemonSetConditionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument Represents the latest available observations of a DaemonSet's current state.
     */
    @JvmName("rbtybssobbhmpsfs")
    public suspend fun conditions(vararg argument: suspend DaemonSetConditionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DaemonSetConditionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument Represents the latest available observations of a DaemonSet's current state.
     */
    @JvmName("hfntidhaufildxpi")
    public suspend fun conditions(argument: suspend DaemonSetConditionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DaemonSetConditionArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param values Represents the latest available observations of a DaemonSet's current state.
     */
    @JvmName("ctjabkggqhqvuqwl")
    public suspend fun conditions(vararg values: DaemonSetConditionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param value The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
     */
    @JvmName("uwxnbcgybeigtqar")
    public suspend fun currentNumberScheduled(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.currentNumberScheduled = mapped
    }

    /**
     * @param value The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
     */
    @JvmName("vcugrrxppdhehfnu")
    public suspend fun desiredNumberScheduled(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.desiredNumberScheduled = mapped
    }

    /**
     * @param value The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)
     */
    @JvmName("xgqhnyvnliunkaho")
    public suspend fun numberAvailable(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.numberAvailable = mapped
    }

    /**
     * @param value The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
     */
    @JvmName("onystsulbtoqjaao")
    public suspend fun numberMisscheduled(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.numberMisscheduled = mapped
    }

    /**
     * @param value numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.
     */
    @JvmName("lysxosrbmjjicits")
    public suspend fun numberReady(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.numberReady = mapped
    }

    /**
     * @param value The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)
     */
    @JvmName("ryeojyxqmuonndwb")
    public suspend fun numberUnavailable(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.numberUnavailable = mapped
    }

    /**
     * @param value The most recent generation observed by the daemon set controller.
     */
    @JvmName("epjeqvgotkwqjicg")
    public suspend fun observedGeneration(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.observedGeneration = mapped
    }

    /**
     * @param value The total number of nodes that are running updated daemon pod
     */
    @JvmName("bmvmduuiaoysiepx")
    public suspend fun updatedNumberScheduled(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.updatedNumberScheduled = mapped
    }

    internal fun build(): DaemonSetStatusArgs = DaemonSetStatusArgs(
        collisionCount = collisionCount,
        conditions = conditions,
        currentNumberScheduled = currentNumberScheduled ?: throw
            PulumiNullFieldException("currentNumberScheduled"),
        desiredNumberScheduled = desiredNumberScheduled ?: throw
            PulumiNullFieldException("desiredNumberScheduled"),
        numberAvailable = numberAvailable,
        numberMisscheduled = numberMisscheduled ?: throw PulumiNullFieldException("numberMisscheduled"),
        numberReady = numberReady ?: throw PulumiNullFieldException("numberReady"),
        numberUnavailable = numberUnavailable,
        observedGeneration = observedGeneration,
        updatedNumberScheduled = updatedNumberScheduled,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy