com.pulumi.kubernetes.extensions.v1beta1.kotlin.inputs.DeploymentStatusArgs.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.
@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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy