com.pulumi.gcp.iam.kotlin.inputs.GetTestablePermissionsPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.iam.kotlin.inputs
import com.pulumi.gcp.iam.inputs.GetTestablePermissionsPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getTestablePermissions.
* @property customSupportLevel The level of support for custom roles. Can be one of `"NOT_SUPPORTED"`, `"SUPPORTED"`, `"TESTING"`. Default is `"SUPPORTED"`
* @property fullResourceName See [full resource name documentation](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more detail.
* @property stages The acceptable release stages of the permission in the output. Note that `BETA` does not include permissions in `GA`, but you can specify both with `["GA", "BETA"]` for example. Can be a list of `"ALPHA"`, `"BETA"`, `"GA"`, `"DEPRECATED"`. Default is `["GA"]`.
*/
public data class GetTestablePermissionsPlainArgs(
public val customSupportLevel: String? = null,
public val fullResourceName: String,
public val stages: List? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.iam.inputs.GetTestablePermissionsPlainArgs =
com.pulumi.gcp.iam.inputs.GetTestablePermissionsPlainArgs.builder()
.customSupportLevel(customSupportLevel?.let({ args0 -> args0 }))
.fullResourceName(fullResourceName.let({ args0 -> args0 }))
.stages(stages?.let({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [GetTestablePermissionsPlainArgs].
*/
@PulumiTagMarker
public class GetTestablePermissionsPlainArgsBuilder internal constructor() {
private var customSupportLevel: String? = null
private var fullResourceName: String? = null
private var stages: List? = null
/**
* @param value The level of support for custom roles. Can be one of `"NOT_SUPPORTED"`, `"SUPPORTED"`, `"TESTING"`. Default is `"SUPPORTED"`
*/
@JvmName("qxmoniqfwgnqkiux")
public suspend fun customSupportLevel(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.customSupportLevel = mapped
}
/**
* @param value See [full resource name documentation](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more detail.
*/
@JvmName("qkxoxpwxchiynxuq")
public suspend fun fullResourceName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.fullResourceName = mapped
}
/**
* @param value The acceptable release stages of the permission in the output. Note that `BETA` does not include permissions in `GA`, but you can specify both with `["GA", "BETA"]` for example. Can be a list of `"ALPHA"`, `"BETA"`, `"GA"`, `"DEPRECATED"`. Default is `["GA"]`.
*/
@JvmName("vvwxntolapbynopv")
public suspend fun stages(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.stages = mapped
}
/**
* @param values The acceptable release stages of the permission in the output. Note that `BETA` does not include permissions in `GA`, but you can specify both with `["GA", "BETA"]` for example. Can be a list of `"ALPHA"`, `"BETA"`, `"GA"`, `"DEPRECATED"`. Default is `["GA"]`.
*/
@JvmName("tmnjoigxcatnkwec")
public suspend fun stages(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.stages = mapped
}
internal fun build(): GetTestablePermissionsPlainArgs = GetTestablePermissionsPlainArgs(
customSupportLevel = customSupportLevel,
fullResourceName = fullResourceName ?: throw PulumiNullFieldException("fullResourceName"),
stages = stages,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy