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

com.pulumi.gcp.accesscontextmanager.kotlin.outputs.AccessLevelsAccessLevel.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.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.accesscontextmanager.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property basic A set of predefined conditions for the access level and a combining function.
 * Structure is documented below.
 * @property custom Custom access level conditions are set using the Cloud Common Expression Language to represent the necessary conditions for the level to apply to a request.
 * See CEL spec at: https://github.com/google/cel-spec.
 * Structure is documented below.
 * @property description Description of the AccessLevel and its use. Does not affect behavior.
 * @property name Resource name for the Access Level. The short_name component must begin
 * with a letter and only include alphanumeric and '_'.
 * Format: accessPolicies/{policy_id}/accessLevels/{short_name}
 * @property title Human readable title. Must be unique within the Policy.
 */
public data class AccessLevelsAccessLevel(
    public val basic: AccessLevelsAccessLevelBasic? = null,
    public val custom: AccessLevelsAccessLevelCustom? = null,
    public val description: String? = null,
    public val name: String,
    public val title: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.accesscontextmanager.outputs.AccessLevelsAccessLevel): AccessLevelsAccessLevel = AccessLevelsAccessLevel(
            basic = javaType.basic().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.accesscontextmanager.kotlin.outputs.AccessLevelsAccessLevelBasic.Companion.toKotlin(args0)
                })
            }).orElse(null),
            custom = javaType.custom().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.accesscontextmanager.kotlin.outputs.AccessLevelsAccessLevelCustom.Companion.toKotlin(args0)
                })
            }).orElse(null),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            name = javaType.name(),
            title = javaType.title(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy