com.pulumi.kubernetes.apps.v1.kotlin.outputs.DeploymentStatusPatch.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.v1.kotlin.outputs
import kotlin.Int
import kotlin.Suppress
import kotlin.collections.List
/**
* 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 readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.
* @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 DeploymentStatusPatch(
public val availableReplicas: Int? = null,
public val collisionCount: Int? = null,
public val conditions: List? = null,
public val observedGeneration: Int? = null,
public val readyReplicas: Int? = null,
public val replicas: Int? = null,
public val unavailableReplicas: Int? = null,
public val updatedReplicas: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.apps.v1.outputs.DeploymentStatusPatch): DeploymentStatusPatch = DeploymentStatusPatch(
availableReplicas = javaType.availableReplicas().map({ args0 -> args0 }).orElse(null),
collisionCount = javaType.collisionCount().map({ args0 -> args0 }).orElse(null),
conditions = javaType.conditions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.apps.v1.kotlin.outputs.DeploymentConditionPatch.Companion.toKotlin(args0)
})
}),
observedGeneration = javaType.observedGeneration().map({ args0 -> args0 }).orElse(null),
readyReplicas = javaType.readyReplicas().map({ args0 -> args0 }).orElse(null),
replicas = javaType.replicas().map({ args0 -> args0 }).orElse(null),
unavailableReplicas = javaType.unavailableReplicas().map({ args0 -> args0 }).orElse(null),
updatedReplicas = javaType.updatedReplicas().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy