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

com.pulumi.azure.compute.kotlin.outputs.VirtualMachineOsProfile.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: 6.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.compute.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property adminPassword (Optional for Windows, Optional for Linux) The password associated with the local administrator account.
 * > **NOTE:** If using Linux, it may be preferable to use SSH Key authentication (available in the `os_profile_linux_config` block) instead of password authentication.
 * @property adminUsername Specifies the name of the local administrator account.
 * @property computerName Specifies the name of the Virtual Machine. Changing this forces a new resource to be created.
 * @property customData
 */
public data class VirtualMachineOsProfile(
    public val adminPassword: String? = null,
    public val adminUsername: String,
    public val computerName: String,
    public val customData: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.compute.outputs.VirtualMachineOsProfile):
            VirtualMachineOsProfile = VirtualMachineOsProfile(
            adminPassword = javaType.adminPassword().map({ args0 -> args0 }).orElse(null),
            adminUsername = javaType.adminUsername(),
            computerName = javaType.computerName(),
            customData = javaType.customData().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy