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

com.pulumi.azure.lab.kotlin.outputs.LabVirtualMachine.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.lab.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property additionalCapabilityGpuDriversInstalled Is flagged to pre-install dedicated GPU drivers? Defaults to `false`. Changing this forces a new resource to be created.
 * @property adminUser An `admin_user` block as defined below.
 * @property createOption The create option to indicate what Lab Service Lab VMs are created from. Possible values are `Image` and `TemplateVM`. Defaults to `Image`. Changing this forces a new resource to be created.
 * @property imageReference An `image_reference` block as defined below.
 * @property nonAdminUser A `non_admin_user` block as defined below.
 * @property sharedPasswordEnabled Is the shared password enabled with the same password for all user VMs? Defaults to `false`. Changing this forces a new resource to be created.
 * @property sku A `sku` block as defined below.
 * @property usageQuota The initial quota allocated to each Lab Service Lab user. Defaults to `PT0S`. This value must be formatted as an ISO 8601 string.
 */
public data class LabVirtualMachine(
    public val additionalCapabilityGpuDriversInstalled: Boolean? = null,
    public val adminUser: LabVirtualMachineAdminUser,
    public val createOption: String? = null,
    public val imageReference: LabVirtualMachineImageReference,
    public val nonAdminUser: LabVirtualMachineNonAdminUser? = null,
    public val sharedPasswordEnabled: Boolean? = null,
    public val sku: LabVirtualMachineSku,
    public val usageQuota: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.lab.outputs.LabVirtualMachine): LabVirtualMachine = LabVirtualMachine(
            additionalCapabilityGpuDriversInstalled = javaType.additionalCapabilityGpuDriversInstalled().map({ args0 ->
                args0
            }).orElse(null),
            adminUser = javaType.adminUser().let({ args0 ->
                com.pulumi.azure.lab.kotlin.outputs.LabVirtualMachineAdminUser.Companion.toKotlin(args0)
            }),
            createOption = javaType.createOption().map({ args0 -> args0 }).orElse(null),
            imageReference = javaType.imageReference().let({ args0 ->
                com.pulumi.azure.lab.kotlin.outputs.LabVirtualMachineImageReference.Companion.toKotlin(args0)
            }),
            nonAdminUser = javaType.nonAdminUser().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.lab.kotlin.outputs.LabVirtualMachineNonAdminUser.Companion.toKotlin(args0)
                })
            }).orElse(null),
            sharedPasswordEnabled = javaType.sharedPasswordEnabled().map({ args0 -> args0 }).orElse(null),
            sku = javaType.sku().let({ args0 ->
                com.pulumi.azure.lab.kotlin.outputs.LabVirtualMachineSku.Companion.toKotlin(args0)
            }),
            usageQuota = javaType.usageQuota().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy