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

com.pulumi.kubernetes.rbac.v1.kotlin.inputs.SubjectPatchArgs.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.rbac.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.rbac.v1.inputs.SubjectPatchArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Subject contains a reference to the object or user identities a role binding applies to.  This can either hold a direct API object reference, or a value for non-objects such as user and group names.
 * @property apiGroup APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
 * @property kind Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error.
 * @property name Name of the object being referenced.
 * @property namespace Namespace of the referenced object.  If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error.
 */
public data class SubjectPatchArgs(
    public val apiGroup: Output? = null,
    public val kind: Output? = null,
    public val name: Output? = null,
    public val namespace: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.rbac.v1.inputs.SubjectPatchArgs =
        com.pulumi.kubernetes.rbac.v1.inputs.SubjectPatchArgs.builder()
            .apiGroup(apiGroup?.applyValue({ args0 -> args0 }))
            .kind(kind?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .namespace(namespace?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SubjectPatchArgs].
 */
@PulumiTagMarker
public class SubjectPatchArgsBuilder internal constructor() {
    private var apiGroup: Output? = null

    private var kind: Output? = null

    private var name: Output? = null

    private var namespace: Output? = null

    /**
     * @param value APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
     */
    @JvmName("lwhrilbxigeciiki")
    public suspend fun apiGroup(`value`: Output) {
        this.apiGroup = value
    }

    /**
     * @param value Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error.
     */
    @JvmName("jjwjvjcptegcodte")
    public suspend fun kind(`value`: Output) {
        this.kind = value
    }

    /**
     * @param value Name of the object being referenced.
     */
    @JvmName("fvbckoceuaagvfks")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Namespace of the referenced object.  If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error.
     */
    @JvmName("exnsgqsfhpncqesi")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
     */
    @JvmName("rnqsreqvtofrlgdd")
    public suspend fun apiGroup(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiGroup = mapped
    }

    /**
     * @param value Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error.
     */
    @JvmName("vakrsdyypayimepy")
    public suspend fun kind(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kind = mapped
    }

    /**
     * @param value Name of the object being referenced.
     */
    @JvmName("gbajcudejovnqfqi")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Namespace of the referenced object.  If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error.
     */
    @JvmName("utxkkkmgsqkiiqng")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    internal fun build(): SubjectPatchArgs = SubjectPatchArgs(
        apiGroup = apiGroup,
        kind = kind,
        name = name,
        namespace = namespace,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy