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

com.pulumi.kubernetes.apiextensions.v1.kotlin.inputs.CustomResourceDefinitionStatusArgs.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.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceDefinitionStatusArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * 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 CustomResourceDefinitionStatusArgs(
    public val acceptedNames: Output,
    public val conditions: Output>? = null,
    public val storedVersions: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceDefinitionStatusArgs =
        com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceDefinitionStatusArgs.builder()
            .acceptedNames(acceptedNames.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .conditions(
                conditions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .storedVersions(storedVersions.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [CustomResourceDefinitionStatusArgs].
 */
@PulumiTagMarker
public class CustomResourceDefinitionStatusArgsBuilder internal constructor() {
    private var acceptedNames: Output? = null

    private var conditions: Output>? = null

    private var storedVersions: Output>? = null

    /**
     * @param value acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec.
     */
    @JvmName("neyeiuvnrvhslbye")
    public suspend fun acceptedNames(`value`: Output) {
        this.acceptedNames = value
    }

    /**
     * @param value conditions indicate state for particular aspects of a CustomResourceDefinition
     */
    @JvmName("ghdkjrhexdgscyvy")
    public suspend fun conditions(`value`: Output>) {
        this.conditions = value
    }

    @JvmName("befbvacioexyhnql")
    public suspend fun conditions(vararg values: Output) {
        this.conditions = Output.all(values.asList())
    }

    /**
     * @param values conditions indicate state for particular aspects of a CustomResourceDefinition
     */
    @JvmName("vnqbnfxlggbaxulx")
    public suspend fun conditions(values: List>) {
        this.conditions = Output.all(values)
    }

    /**
     * @param value 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.
     */
    @JvmName("qlydhkxakdmysken")
    public suspend fun storedVersions(`value`: Output>) {
        this.storedVersions = value
    }

    @JvmName("rncaoiouowbfiefr")
    public suspend fun storedVersions(vararg values: Output) {
        this.storedVersions = Output.all(values.asList())
    }

    /**
     * @param values 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.
     */
    @JvmName("qtkkqkflppgtvmuy")
    public suspend fun storedVersions(values: List>) {
        this.storedVersions = Output.all(values)
    }

    /**
     * @param value acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec.
     */
    @JvmName("mifoetemgakgasyc")
    public suspend fun acceptedNames(`value`: CustomResourceDefinitionNamesArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.acceptedNames = mapped
    }

    /**
     * @param argument acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec.
     */
    @JvmName("hbgmuabbkqldkfod")
    public suspend fun acceptedNames(argument: suspend CustomResourceDefinitionNamesArgsBuilder.() -> Unit) {
        val toBeMapped = CustomResourceDefinitionNamesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.acceptedNames = mapped
    }

    /**
     * @param value conditions indicate state for particular aspects of a CustomResourceDefinition
     */
    @JvmName("ppgevvanoanjteuo")
    public suspend fun conditions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param argument conditions indicate state for particular aspects of a CustomResourceDefinition
     */
    @JvmName("jpilvkhrjdypatyl")
    public suspend fun conditions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CustomResourceDefinitionConditionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument conditions indicate state for particular aspects of a CustomResourceDefinition
     */
    @JvmName("viesbsxecqwyutao")
    public suspend fun conditions(vararg argument: suspend CustomResourceDefinitionConditionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CustomResourceDefinitionConditionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument conditions indicate state for particular aspects of a CustomResourceDefinition
     */
    @JvmName("uvhoqejtlqmfvqhf")
    public suspend fun conditions(argument: suspend CustomResourceDefinitionConditionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CustomResourceDefinitionConditionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param values conditions indicate state for particular aspects of a CustomResourceDefinition
     */
    @JvmName("kpcvdkvnyemcydtt")
    public suspend fun conditions(vararg values: CustomResourceDefinitionConditionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("jobgtrxcwnomilob")
    public suspend fun storedVersions(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storedVersions = mapped
    }

    /**
     * @param values 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.
     */
    @JvmName("acpbuaqkurbqallb")
    public suspend fun storedVersions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storedVersions = mapped
    }

    internal fun build(): CustomResourceDefinitionStatusArgs = CustomResourceDefinitionStatusArgs(
        acceptedNames = acceptedNames ?: throw PulumiNullFieldException("acceptedNames"),
        conditions = conditions,
        storedVersions = storedVersions ?: throw PulumiNullFieldException("storedVersions"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy