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

com.pulumi.kubernetes.apps.v1beta2.kotlin.outputs.ReplicaSetStatus.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.v1beta2.kotlin.outputs

import kotlin.Int
import kotlin.Suppress
import kotlin.collections.List

/**
 * ReplicaSetStatus represents the current status of a ReplicaSet.
 * @property availableReplicas The number of available replicas (ready for at least minReadySeconds) for this replica set.
 * @property conditions Represents the latest available observations of a replica set's current state.
 * @property fullyLabeledReplicas The number of pods that have labels matching the labels of the pod template of the replicaset.
 * @property observedGeneration ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
 * @property readyReplicas The number of ready replicas for this replica set.
 * @property replicas Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
 */
public data class ReplicaSetStatus(
    public val availableReplicas: Int? = null,
    public val conditions: List? = null,
    public val fullyLabeledReplicas: Int? = null,
    public val observedGeneration: Int? = null,
    public val readyReplicas: Int? = null,
    public val replicas: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.apps.v1beta2.outputs.ReplicaSetStatus): ReplicaSetStatus = ReplicaSetStatus(
            availableReplicas = javaType.availableReplicas().map({ args0 -> args0 }).orElse(null),
            conditions = javaType.conditions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.apps.v1beta2.kotlin.outputs.ReplicaSetCondition.Companion.toKotlin(args0)
                })
            }),
            fullyLabeledReplicas = javaType.fullyLabeledReplicas().map({ args0 -> args0 }).orElse(null),
            observedGeneration = javaType.observedGeneration().map({ args0 -> args0 }).orElse(null),
            readyReplicas = javaType.readyReplicas().map({ args0 -> args0 }).orElse(null),
            replicas = javaType.replicas(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy