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

com.pulumi.kubernetes.apps.v1beta1.kotlin.outputs.DeploymentStatusPatch.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.apps.v1beta1.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 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 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.v1beta1.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.v1beta1.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