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

com.pulumi.kubernetes.meta.v1.kotlin.outputs.OwnerReferencePatch.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.meta.v1.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 * 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 OwnerReferencePatch(
    public val apiVersion: String? = null,
    public val blockOwnerDeletion: Boolean? = null,
    public val controller: Boolean? = null,
    public val kind: String? = null,
    public val name: String? = null,
    public val uid: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.meta.v1.outputs.OwnerReferencePatch): OwnerReferencePatch = OwnerReferencePatch(
            apiVersion = javaType.apiVersion().map({ args0 -> args0 }).orElse(null),
            blockOwnerDeletion = javaType.blockOwnerDeletion().map({ args0 -> args0 }).orElse(null),
            controller = javaType.controller().map({ args0 -> args0 }).orElse(null),
            kind = javaType.kind().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            uid = javaType.uid().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy