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

com.pulumi.kubernetes.extensions.v1beta1.kotlin.inputs.DeploymentStatusArgs.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.extensions.v1beta1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.extensions.v1beta1.inputs.DeploymentStatusArgs.builder
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * DeploymentStatus is the most recently observed status of the Deployment.
 * @property availableReplicas Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
 * @property collisionCount Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.
 * @property conditions Represents the latest available observations of a deployment's current state.
 * @property observedGeneration The generation observed by the deployment controller.
 * @property readyReplicas Total number of ready pods targeted by this deployment.
 * @property replicas Total number of non-terminated pods targeted by this deployment (their labels match the selector).
 * @property unavailableReplicas Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.
 * @property updatedReplicas Total number of non-terminated pods targeted by this deployment that have the desired template spec.
 */
public data class DeploymentStatusArgs(
    public val availableReplicas: Output? = null,
    public val collisionCount: Output? = null,
    public val conditions: Output>? = null,
    public val observedGeneration: Output? = null,
    public val readyReplicas: Output? = null,
    public val replicas: Output? = null,
    public val unavailableReplicas: Output? = null,
    public val updatedReplicas: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.extensions.v1beta1.inputs.DeploymentStatusArgs =
        com.pulumi.kubernetes.extensions.v1beta1.inputs.DeploymentStatusArgs.builder()
            .availableReplicas(availableReplicas?.applyValue({ args0 -> args0 }))
            .collisionCount(collisionCount?.applyValue({ args0 -> args0 }))
            .conditions(
                conditions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .observedGeneration(observedGeneration?.applyValue({ args0 -> args0 }))
            .readyReplicas(readyReplicas?.applyValue({ args0 -> args0 }))
            .replicas(replicas?.applyValue({ args0 -> args0 }))
            .unavailableReplicas(unavailableReplicas?.applyValue({ args0 -> args0 }))
            .updatedReplicas(updatedReplicas?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DeploymentStatusArgs].
 */
@PulumiTagMarker
public class DeploymentStatusArgsBuilder internal constructor() {
    private var availableReplicas: Output? = null

    private var collisionCount: Output? = null

    private var conditions: Output>? = null

    private var observedGeneration: Output? = null

    private var readyReplicas: Output? = null

    private var replicas: Output? = null

    private var unavailableReplicas: Output? = null

    private var updatedReplicas: Output? = null

    /**
     * @param value Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
     */
    @JvmName("ymbajkqorrixufsn")
    public suspend fun availableReplicas(`value`: Output) {
        this.availableReplicas = value
    }

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

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

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

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

    /**
     * @param value The generation observed by the deployment controller.
     */
    @JvmName("ghablmwdirbgdnqk")
    public suspend fun observedGeneration(`value`: Output) {
        this.observedGeneration = value
    }

    /**
     * @param value Total number of ready pods targeted by this deployment.
     */
    @JvmName("ykyxitpkmepngcmp")
    public suspend fun readyReplicas(`value`: Output) {
        this.readyReplicas = value
    }

    /**
     * @param value Total number of non-terminated pods targeted by this deployment (their labels match the selector).
     */
    @JvmName("kymjwcuetmhlbvmw")
    public suspend fun replicas(`value`: Output) {
        this.replicas = value
    }

    /**
     * @param value Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.
     */
    @JvmName("jhjbnvsbsobrrpis")
    public suspend fun unavailableReplicas(`value`: Output) {
        this.unavailableReplicas = value
    }

    /**
     * @param value Total number of non-terminated pods targeted by this deployment that have the desired template spec.
     */
    @JvmName("bxwvitvontnadmsb")
    public suspend fun updatedReplicas(`value`: Output) {
        this.updatedReplicas = value
    }

    /**
     * @param value Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
     */
    @JvmName("eonlmwmnltqsbxwg")
    public suspend fun availableReplicas(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availableReplicas = mapped
    }

    /**
     * @param value Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.
     */
    @JvmName("rxdcpifmhgesmhit")
    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 deployment's current state.
     */
    @JvmName("yjonvaxcatwxfsgc")
    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 deployment's current state.
     */
    @JvmName("qycfphdivmouhiif")
    public suspend fun conditions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DeploymentConditionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

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

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

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

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

    /**
     * @param value Total number of ready pods targeted by this deployment.
     */
    @JvmName("kdlyfidlfwqmvbdv")
    public suspend fun readyReplicas(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readyReplicas = mapped
    }

    /**
     * @param value Total number of non-terminated pods targeted by this deployment (their labels match the selector).
     */
    @JvmName("uxslwrvyduabbrix")
    public suspend fun replicas(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.replicas = mapped
    }

    /**
     * @param value Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.
     */
    @JvmName("kkwdcmismuadhkyu")
    public suspend fun unavailableReplicas(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.unavailableReplicas = mapped
    }

    /**
     * @param value Total number of non-terminated pods targeted by this deployment that have the desired template spec.
     */
    @JvmName("utyxsnlpdtekbqqk")
    public suspend fun updatedReplicas(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.updatedReplicas = mapped
    }

    internal fun build(): DeploymentStatusArgs = DeploymentStatusArgs(
        availableReplicas = availableReplicas,
        collisionCount = collisionCount,
        conditions = conditions,
        observedGeneration = observedGeneration,
        readyReplicas = readyReplicas,
        replicas = replicas,
        unavailableReplicas = unavailableReplicas,
        updatedReplicas = updatedReplicas,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy