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

com.pulumi.gcp.accesscontextmanager.kotlin.inputs.AccessLevelConditionDevicePolicyArgs.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.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelConditionDevicePolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowedDeviceManagementLevels A list of allowed device management levels.
 * An empty list allows all management levels.
 * Each value may be one of: `MANAGEMENT_UNSPECIFIED`, `NONE`, `BASIC`, `COMPLETE`.
 * @property allowedEncryptionStatuses A list of allowed encryptions statuses.
 * An empty list allows all statuses.
 * Each value may be one of: `ENCRYPTION_UNSPECIFIED`, `ENCRYPTION_UNSUPPORTED`, `UNENCRYPTED`, `ENCRYPTED`.
 * @property osConstraints A list of allowed OS versions.
 * An empty list allows all types and all versions.
 * Structure is documented below.
 * @property requireAdminApproval Whether the device needs to be approved by the customer admin.
 * @property requireCorpOwned Whether the device needs to be corp owned.
 * @property requireScreenLock Whether or not screenlock is required for the DevicePolicy
 * to be true. Defaults to false.
 */
public data class AccessLevelConditionDevicePolicyArgs(
    public val allowedDeviceManagementLevels: Output>? = null,
    public val allowedEncryptionStatuses: Output>? = null,
    public val osConstraints: Output>? = null,
    public val requireAdminApproval: Output? = null,
    public val requireCorpOwned: Output? = null,
    public val requireScreenLock: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelConditionDevicePolicyArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelConditionDevicePolicyArgs.builder()
            .allowedDeviceManagementLevels(
                allowedDeviceManagementLevels?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .allowedEncryptionStatuses(
                allowedEncryptionStatuses?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .osConstraints(
                osConstraints?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .requireAdminApproval(requireAdminApproval?.applyValue({ args0 -> args0 }))
            .requireCorpOwned(requireCorpOwned?.applyValue({ args0 -> args0 }))
            .requireScreenLock(requireScreenLock?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccessLevelConditionDevicePolicyArgs].
 */
@PulumiTagMarker
public class AccessLevelConditionDevicePolicyArgsBuilder internal constructor() {
    private var allowedDeviceManagementLevels: Output>? = null

    private var allowedEncryptionStatuses: Output>? = null

    private var osConstraints: Output>? = null

    private var requireAdminApproval: Output? = null

    private var requireCorpOwned: Output? = null

    private var requireScreenLock: Output? = null

    /**
     * @param value A list of allowed device management levels.
     * An empty list allows all management levels.
     * Each value may be one of: `MANAGEMENT_UNSPECIFIED`, `NONE`, `BASIC`, `COMPLETE`.
     */
    @JvmName("lrwfkyvcynfalduq")
    public suspend fun allowedDeviceManagementLevels(`value`: Output>) {
        this.allowedDeviceManagementLevels = value
    }

    @JvmName("nnfjuuwrtsjaighc")
    public suspend fun allowedDeviceManagementLevels(vararg values: Output) {
        this.allowedDeviceManagementLevels = Output.all(values.asList())
    }

    /**
     * @param values A list of allowed device management levels.
     * An empty list allows all management levels.
     * Each value may be one of: `MANAGEMENT_UNSPECIFIED`, `NONE`, `BASIC`, `COMPLETE`.
     */
    @JvmName("aigifstmsourxuha")
    public suspend fun allowedDeviceManagementLevels(values: List>) {
        this.allowedDeviceManagementLevels = Output.all(values)
    }

    /**
     * @param value A list of allowed encryptions statuses.
     * An empty list allows all statuses.
     * Each value may be one of: `ENCRYPTION_UNSPECIFIED`, `ENCRYPTION_UNSUPPORTED`, `UNENCRYPTED`, `ENCRYPTED`.
     */
    @JvmName("hhwaohtpofvwhjdo")
    public suspend fun allowedEncryptionStatuses(`value`: Output>) {
        this.allowedEncryptionStatuses = value
    }

    @JvmName("ihfqjgqpxpljpwkl")
    public suspend fun allowedEncryptionStatuses(vararg values: Output) {
        this.allowedEncryptionStatuses = Output.all(values.asList())
    }

    /**
     * @param values A list of allowed encryptions statuses.
     * An empty list allows all statuses.
     * Each value may be one of: `ENCRYPTION_UNSPECIFIED`, `ENCRYPTION_UNSUPPORTED`, `UNENCRYPTED`, `ENCRYPTED`.
     */
    @JvmName("wjsgjablgarxnpqx")
    public suspend fun allowedEncryptionStatuses(values: List>) {
        this.allowedEncryptionStatuses = Output.all(values)
    }

    /**
     * @param value A list of allowed OS versions.
     * An empty list allows all types and all versions.
     * Structure is documented below.
     */
    @JvmName("awnxejqviajtbysr")
    public suspend fun osConstraints(`value`: Output>) {
        this.osConstraints = value
    }

    @JvmName("qifrkriyykbuwtgx")
    public suspend fun osConstraints(vararg values: Output) {
        this.osConstraints = Output.all(values.asList())
    }

    /**
     * @param values A list of allowed OS versions.
     * An empty list allows all types and all versions.
     * Structure is documented below.
     */
    @JvmName("cpldakbehbffpros")
    public suspend fun osConstraints(values: List>) {
        this.osConstraints = Output.all(values)
    }

    /**
     * @param value Whether the device needs to be approved by the customer admin.
     */
    @JvmName("lkxwevmsskgkunpp")
    public suspend fun requireAdminApproval(`value`: Output) {
        this.requireAdminApproval = value
    }

    /**
     * @param value Whether the device needs to be corp owned.
     */
    @JvmName("pjceimljmdwvdnxm")
    public suspend fun requireCorpOwned(`value`: Output) {
        this.requireCorpOwned = value
    }

    /**
     * @param value Whether or not screenlock is required for the DevicePolicy
     * to be true. Defaults to false.
     */
    @JvmName("ljkcvbmigxkflxeu")
    public suspend fun requireScreenLock(`value`: Output) {
        this.requireScreenLock = value
    }

    /**
     * @param value A list of allowed device management levels.
     * An empty list allows all management levels.
     * Each value may be one of: `MANAGEMENT_UNSPECIFIED`, `NONE`, `BASIC`, `COMPLETE`.
     */
    @JvmName("rqflwbloptqfruxw")
    public suspend fun allowedDeviceManagementLevels(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedDeviceManagementLevels = mapped
    }

    /**
     * @param values A list of allowed device management levels.
     * An empty list allows all management levels.
     * Each value may be one of: `MANAGEMENT_UNSPECIFIED`, `NONE`, `BASIC`, `COMPLETE`.
     */
    @JvmName("snjuqbhxuyahhelh")
    public suspend fun allowedDeviceManagementLevels(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedDeviceManagementLevels = mapped
    }

    /**
     * @param value A list of allowed encryptions statuses.
     * An empty list allows all statuses.
     * Each value may be one of: `ENCRYPTION_UNSPECIFIED`, `ENCRYPTION_UNSUPPORTED`, `UNENCRYPTED`, `ENCRYPTED`.
     */
    @JvmName("froqqnviubygyncd")
    public suspend fun allowedEncryptionStatuses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedEncryptionStatuses = mapped
    }

    /**
     * @param values A list of allowed encryptions statuses.
     * An empty list allows all statuses.
     * Each value may be one of: `ENCRYPTION_UNSPECIFIED`, `ENCRYPTION_UNSUPPORTED`, `UNENCRYPTED`, `ENCRYPTED`.
     */
    @JvmName("dhqorlbaafdgvqrq")
    public suspend fun allowedEncryptionStatuses(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedEncryptionStatuses = mapped
    }

    /**
     * @param value A list of allowed OS versions.
     * An empty list allows all types and all versions.
     * Structure is documented below.
     */
    @JvmName("dxewnpaquxdruogn")
    public suspend fun osConstraints(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.osConstraints = mapped
    }

    /**
     * @param argument A list of allowed OS versions.
     * An empty list allows all types and all versions.
     * Structure is documented below.
     */
    @JvmName("vtypggrpwyrxaihb")
    public suspend fun osConstraints(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AccessLevelConditionDevicePolicyOsConstraintArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.osConstraints = mapped
    }

    /**
     * @param argument A list of allowed OS versions.
     * An empty list allows all types and all versions.
     * Structure is documented below.
     */
    @JvmName("uvclxqkekvfrnexf")
    public suspend fun osConstraints(vararg argument: suspend AccessLevelConditionDevicePolicyOsConstraintArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AccessLevelConditionDevicePolicyOsConstraintArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.osConstraints = mapped
    }

    /**
     * @param argument A list of allowed OS versions.
     * An empty list allows all types and all versions.
     * Structure is documented below.
     */
    @JvmName("yhyggacgmhvdwgop")
    public suspend fun osConstraints(argument: suspend AccessLevelConditionDevicePolicyOsConstraintArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AccessLevelConditionDevicePolicyOsConstraintArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.osConstraints = mapped
    }

    /**
     * @param values A list of allowed OS versions.
     * An empty list allows all types and all versions.
     * Structure is documented below.
     */
    @JvmName("cgsmktsegeutdrba")
    public suspend fun osConstraints(vararg values: AccessLevelConditionDevicePolicyOsConstraintArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.osConstraints = mapped
    }

    /**
     * @param value Whether the device needs to be approved by the customer admin.
     */
    @JvmName("qsgcpqbifvkgystp")
    public suspend fun requireAdminApproval(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireAdminApproval = mapped
    }

    /**
     * @param value Whether the device needs to be corp owned.
     */
    @JvmName("ugvmwgikdsrwhlgj")
    public suspend fun requireCorpOwned(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireCorpOwned = mapped
    }

    /**
     * @param value Whether or not screenlock is required for the DevicePolicy
     * to be true. Defaults to false.
     */
    @JvmName("mnyeiytavrsmtjgq")
    public suspend fun requireScreenLock(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireScreenLock = mapped
    }

    internal fun build(): AccessLevelConditionDevicePolicyArgs = AccessLevelConditionDevicePolicyArgs(
        allowedDeviceManagementLevels = allowedDeviceManagementLevels,
        allowedEncryptionStatuses = allowedEncryptionStatuses,
        osConstraints = osConstraints,
        requireAdminApproval = requireAdminApproval,
        requireCorpOwned = requireCorpOwned,
        requireScreenLock = requireScreenLock,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy