com.pulumi.kubernetes.apiextensions.v1.kotlin.inputs.CustomResourceDefinitionStatusArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-kotlin Show documentation
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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy