com.pulumi.kubernetes.apps.v1beta1.kotlin.outputs.StatefulSetStatusPatch.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.apps.v1beta1.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* StatefulSetStatus represents the current state of a 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 by the StatefulSet controller that have 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 StatefulSetStatusPatch(
public val collisionCount: Int? = null,
public val conditions: List? = null,
public val currentReplicas: Int? = null,
public val currentRevision: String? = null,
public val observedGeneration: Int? = null,
public val readyReplicas: Int? = null,
public val replicas: Int? = null,
public val updateRevision: String? = null,
public val updatedReplicas: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.apps.v1beta1.outputs.StatefulSetStatusPatch): StatefulSetStatusPatch = StatefulSetStatusPatch(
collisionCount = javaType.collisionCount().map({ args0 -> args0 }).orElse(null),
conditions = javaType.conditions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.apps.v1beta1.kotlin.outputs.StatefulSetConditionPatch.Companion.toKotlin(args0)
})
}),
currentReplicas = javaType.currentReplicas().map({ args0 -> args0 }).orElse(null),
currentRevision = javaType.currentRevision().map({ args0 -> args0 }).orElse(null),
observedGeneration = javaType.observedGeneration().map({ args0 -> args0 }).orElse(null),
readyReplicas = javaType.readyReplicas().map({ args0 -> args0 }).orElse(null),
replicas = javaType.replicas().map({ args0 -> args0 }).orElse(null),
updateRevision = javaType.updateRevision().map({ args0 -> args0 }).orElse(null),
updatedReplicas = javaType.updatedReplicas().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy