com.pulumi.kubernetes.rbac.v1alpha1.kotlin.inputs.SubjectPatchArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.rbac.v1alpha1.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.v1alpha1.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 apiVersion APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" 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 apiVersion: 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.v1alpha1.inputs.SubjectPatchArgs =
com.pulumi.kubernetes.rbac.v1alpha1.inputs.SubjectPatchArgs.builder()
.apiVersion(apiVersion?.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 apiVersion: Output? = null
private var kind: Output? = null
private var name: Output? = null
private var namespace: Output? = null
/**
* @param value APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects.
*/
@JvmName("lumeljtgkhibcdtf")
public suspend fun apiVersion(`value`: Output) {
this.apiVersion = 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("ouatowctewgoaibu")
public suspend fun kind(`value`: Output) {
this.kind = value
}
/**
* @param value Name of the object being referenced.
*/
@JvmName("qpvblipowwfdfllr")
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("xuyqttwddchaghqq")
public suspend fun namespace(`value`: Output) {
this.namespace = value
}
/**
* @param value APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects.
*/
@JvmName("iduyhfhiqaltipot")
public suspend fun apiVersion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.apiVersion = 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("qtmcxcdehsoylgip")
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("jqkhjkaciiiahuiu")
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("aiibbgxgugcsuqin")
public suspend fun namespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.namespace = mapped
}
internal fun build(): SubjectPatchArgs = SubjectPatchArgs(
apiVersion = apiVersion,
kind = kind,
name = name,
namespace = namespace,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy