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

com.pulumi.kubernetes.apps.v1.kotlin.outputs.ReplicaSetStatusPatch.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.

There is a newer version: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.apps.v1.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 readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.
 * @property replicas Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
 */
public data class ReplicaSetStatusPatch(
    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? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.apps.v1.outputs.ReplicaSetStatusPatch): ReplicaSetStatusPatch = ReplicaSetStatusPatch(
            availableReplicas = javaType.availableReplicas().map({ args0 -> args0 }).orElse(null),
            conditions = javaType.conditions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.apps.v1.kotlin.outputs.ReplicaSetConditionPatch.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().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy