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

@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("hagqmbvyejyiwsyr")
    public suspend fun allowedDeviceManagementLevels(`value`: Output>) {
        this.allowedDeviceManagementLevels = value
    }

    @JvmName("wjjldjstaqjfwexp")
    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("hxhqqnkhakadkixm")
    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("tosbdwymfcriulhm")
    public suspend fun allowedEncryptionStatuses(`value`: Output>) {
        this.allowedEncryptionStatuses = value
    }

    @JvmName("oecbbdcghvndfgkj")
    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("fanapbygtshlndnr")
    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("cpyhmxjyqhbbwpgx")
    public suspend fun osConstraints(`value`: Output>) {
        this.osConstraints = value
    }

    @JvmName("xptbegbtwbwgsjxs")
    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("gpqduartcisrsesv")
    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("jowtrlwjggterfry")
    public suspend fun requireAdminApproval(`value`: Output) {
        this.requireAdminApproval = value
    }

    /**
     * @param value Whether the device needs to be corp owned.
     */
    @JvmName("sfeetruirtpkhuau")
    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("klmnuxjnpsvyqsdn")
    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("fcmwcikmkfmviyxh")
    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("eealwsnqefhnjasu")
    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("pgowsvixetiolyeo")
    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("bmjabpbthgdfavat")
    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("owysynsaocwiutqf")
    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("aeuudaeqokuxjcvj")
    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("lrxhkjrlpssctpwb")
    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("mqkglyxkaymrygft")
    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("jdqdmbqgugrbmqku")
    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("jlgyoslfknvmrkqv")
    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("bslmibeuuvdcjjee")
    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("otmkqlhyorxsgvup")
    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 - 2025 Weber Informatics LLC | Privacy Policy