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

com.pulumi.gcp.accesscontextmanager.kotlin.outputs.AccessLevelBasicConditionDevicePolicy.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 AccessLevelBasicConditionDevicePolicy(
    public val allowedDeviceManagementLevels: List? = null,
    public val allowedEncryptionStatuses: List? = null,
    public val osConstraints: List? = null,
    public val requireAdminApproval: Boolean? = null,
    public val requireCorpOwned: Boolean? = null,
    public val requireScreenLock: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.accesscontextmanager.outputs.AccessLevelBasicConditionDevicePolicy): AccessLevelBasicConditionDevicePolicy = AccessLevelBasicConditionDevicePolicy(
            allowedDeviceManagementLevels = javaType.allowedDeviceManagementLevels().map({ args0 -> args0 }),
            allowedEncryptionStatuses = javaType.allowedEncryptionStatuses().map({ args0 -> args0 }),
            osConstraints = javaType.osConstraints().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.accesscontextmanager.kotlin.outputs.AccessLevelBasicConditionDevicePolicyOsConstraint.Companion.toKotlin(args0)
                })
            }),
            requireAdminApproval = javaType.requireAdminApproval().map({ args0 -> args0 }).orElse(null),
            requireCorpOwned = javaType.requireCorpOwned().map({ args0 -> args0 }).orElse(null),
            requireScreenLock = javaType.requireScreenLock().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy