com.pulumi.kubernetes.meta.v1.kotlin.inputs.OwnerReferencePatchArgs.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.meta.v1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.meta.v1.inputs.OwnerReferencePatchArgs.builder
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.
* @property apiVersion API version of the referent.
* @property blockOwnerDeletion If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
* @property controller If true, this reference points to the managing controller.
* @property kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
* @property name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
* @property uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
*/
public data class OwnerReferencePatchArgs(
public val apiVersion: Output? = null,
public val blockOwnerDeletion: Output? = null,
public val controller: Output? = null,
public val kind: Output? = null,
public val name: Output? = null,
public val uid: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.meta.v1.inputs.OwnerReferencePatchArgs =
com.pulumi.kubernetes.meta.v1.inputs.OwnerReferencePatchArgs.builder()
.apiVersion(apiVersion?.applyValue({ args0 -> args0 }))
.blockOwnerDeletion(blockOwnerDeletion?.applyValue({ args0 -> args0 }))
.controller(controller?.applyValue({ args0 -> args0 }))
.kind(kind?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.uid(uid?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [OwnerReferencePatchArgs].
*/
@PulumiTagMarker
public class OwnerReferencePatchArgsBuilder internal constructor() {
private var apiVersion: Output? = null
private var blockOwnerDeletion: Output? = null
private var controller: Output? = null
private var kind: Output? = null
private var name: Output? = null
private var uid: Output? = null
/**
* @param value API version of the referent.
*/
@JvmName("gexdtjcuwojctftv")
public suspend fun apiVersion(`value`: Output) {
this.apiVersion = value
}
/**
* @param value If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
*/
@JvmName("ambhrimdknpfoocx")
public suspend fun blockOwnerDeletion(`value`: Output) {
this.blockOwnerDeletion = value
}
/**
* @param value If true, this reference points to the managing controller.
*/
@JvmName("yevrbhiemogdvhpy")
public suspend fun controller(`value`: Output) {
this.controller = value
}
/**
* @param value Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*/
@JvmName("rmbpimpvobocfpga")
public suspend fun kind(`value`: Output) {
this.kind = value
}
/**
* @param value Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
*/
@JvmName("twaddgrkpvldhgkk")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
*/
@JvmName("alpspwitgnwnkroj")
public suspend fun uid(`value`: Output) {
this.uid = value
}
/**
* @param value API version of the referent.
*/
@JvmName("fkxrlmabvhveecue")
public suspend fun apiVersion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.apiVersion = mapped
}
/**
* @param value If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
*/
@JvmName("qescknskokhbspsy")
public suspend fun blockOwnerDeletion(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.blockOwnerDeletion = mapped
}
/**
* @param value If true, this reference points to the managing controller.
*/
@JvmName("kgvcrepuombemwye")
public suspend fun controller(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.controller = mapped
}
/**
* @param value Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*/
@JvmName("ekvhisbxofycjixu")
public suspend fun kind(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
*/
@JvmName("fkttmwqwjmhysfxy")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
*/
@JvmName("gbfgpnkmlakifkau")
public suspend fun uid(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.uid = mapped
}
internal fun build(): OwnerReferencePatchArgs = OwnerReferencePatchArgs(
apiVersion = apiVersion,
blockOwnerDeletion = blockOwnerDeletion,
controller = controller,
kind = kind,
name = name,
uid = uid,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy