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

com.pulumi.gcp.accesscontextmanager.kotlin.inputs.AccessLevelBasicConditionDevicePolicyArgs.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.AccessLevelBasicConditionDevicePolicyArgs.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 AccessLevelBasicConditionDevicePolicyArgs(
    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.AccessLevelBasicConditionDevicePolicyArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelBasicConditionDevicePolicyArgs.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 [AccessLevelBasicConditionDevicePolicyArgs].
 */
@PulumiTagMarker
public class AccessLevelBasicConditionDevicePolicyArgsBuilder 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("ycjhwkfpjsjbublj")
    public suspend fun allowedDeviceManagementLevels(`value`: Output>) {
        this.allowedDeviceManagementLevels = value
    }

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

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

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

    /**
     * @param value Whether the device needs to be corp owned.
     */
    @JvmName("ejmlrukrixyhlsgo")
    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("ynkwcysfwdvecjad")
    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("yajtmjtswayyojqk")
    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("mywdknryeuvhvxwa")
    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("pvegeghnbwwjexqa")
    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("ooybdueykigvbxyi")
    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("xfmskuubmsjpqyvf")
    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("javncabtjptsoiig")
    public suspend fun osConstraints(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AccessLevelBasicConditionDevicePolicyOsConstraintArgsBuilder().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("rnnlmcvkttqhpuqn")
    public suspend fun osConstraints(vararg argument: suspend AccessLevelBasicConditionDevicePolicyOsConstraintArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AccessLevelBasicConditionDevicePolicyOsConstraintArgsBuilder().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("nvjwgqgqlarnhjvs")
    public suspend fun osConstraints(argument: suspend AccessLevelBasicConditionDevicePolicyOsConstraintArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                AccessLevelBasicConditionDevicePolicyOsConstraintArgsBuilder().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("cwnongboffjlmbuf")
    public suspend fun osConstraints(vararg values: AccessLevelBasicConditionDevicePolicyOsConstraintArgs) {
        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("yvygkcmtvrnubwyn")
    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("urnngxmrlaltpeij")
    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("pesiybsdtugmhswb")
    public suspend fun requireScreenLock(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireScreenLock = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy