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

com.pulumi.kubernetes.apiextensions.v1.kotlin.outputs.CustomResourceDefinitionStatus.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.apiextensions.v1.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition
 * @property acceptedNames acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec.
 * @property conditions conditions indicate state for particular aspects of a CustomResourceDefinition
 * @property storedVersions storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.
 */
public data class CustomResourceDefinitionStatus(
    public val acceptedNames: CustomResourceDefinitionNames,
    public val conditions: List? = null,
    public val storedVersions: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceDefinitionStatus): CustomResourceDefinitionStatus = CustomResourceDefinitionStatus(
            acceptedNames = javaType.acceptedNames().let({ args0 ->
                com.pulumi.kubernetes.apiextensions.v1.kotlin.outputs.CustomResourceDefinitionNames.Companion.toKotlin(args0)
            }),
            conditions = javaType.conditions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.apiextensions.v1.kotlin.outputs.CustomResourceDefinitionCondition.Companion.toKotlin(args0)
                })
            }),
            storedVersions = javaType.storedVersions().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy