com.pulumi.kubernetes.apps.v1.kotlin.inputs.StatefulSetStatusArgs.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.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.StatefulSetStatusArgs.builder
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* StatefulSetStatus represents the current state of a StatefulSet.
* @property availableReplicas Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.
* @property collisionCount collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet 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 statefulset's current state.
* @property currentReplicas currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.
* @property currentRevision currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).
* @property observedGeneration observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.
* @property readyReplicas readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.
* @property replicas replicas is the number of Pods created by the StatefulSet controller.
* @property updateRevision updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)
* @property updatedReplicas updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.
*/
public data class StatefulSetStatusArgs(
public val availableReplicas: Output? = null,
public val collisionCount: Output? = null,
public val conditions: Output>? = null,
public val currentReplicas: Output? = null,
public val currentRevision: Output? = null,
public val observedGeneration: Output? = null,
public val readyReplicas: Output? = null,
public val replicas: Output,
public val updateRevision: Output? = null,
public val updatedReplicas: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.apps.v1.inputs.StatefulSetStatusArgs =
com.pulumi.kubernetes.apps.v1.inputs.StatefulSetStatusArgs.builder()
.availableReplicas(availableReplicas?.applyValue({ args0 -> args0 }))
.collisionCount(collisionCount?.applyValue({ args0 -> args0 }))
.conditions(
conditions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.currentReplicas(currentReplicas?.applyValue({ args0 -> args0 }))
.currentRevision(currentRevision?.applyValue({ args0 -> args0 }))
.observedGeneration(observedGeneration?.applyValue({ args0 -> args0 }))
.readyReplicas(readyReplicas?.applyValue({ args0 -> args0 }))
.replicas(replicas.applyValue({ args0 -> args0 }))
.updateRevision(updateRevision?.applyValue({ args0 -> args0 }))
.updatedReplicas(updatedReplicas?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [StatefulSetStatusArgs].
*/
@PulumiTagMarker
public class StatefulSetStatusArgsBuilder internal constructor() {
private var availableReplicas: Output? = null
private var collisionCount: Output? = null
private var conditions: Output>? = null
private var currentReplicas: Output? = null
private var currentRevision: Output? = null
private var observedGeneration: Output? = null
private var readyReplicas: Output? = null
private var replicas: Output? = null
private var updateRevision: Output? = null
private var updatedReplicas: Output? = null
/**
* @param value Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.
*/
@JvmName("tpughwwqfvuijpdb")
public suspend fun availableReplicas(`value`: Output) {
this.availableReplicas = value
}
/**
* @param value collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.
*/
@JvmName("grvgbitwansknfpx")
public suspend fun collisionCount(`value`: Output) {
this.collisionCount = value
}
/**
* @param value Represents the latest available observations of a statefulset's current state.
*/
@JvmName("cspdnweohbspphrq")
public suspend fun conditions(`value`: Output>) {
this.conditions = value
}
@JvmName("cfecphnjlvfoowhf")
public suspend fun conditions(vararg values: Output) {
this.conditions = Output.all(values.asList())
}
/**
* @param values Represents the latest available observations of a statefulset's current state.
*/
@JvmName("wssphsmbfndvyvha")
public suspend fun conditions(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy