
com.pulumi.azure.compute.kotlin.outputs.VirtualMachineOsProfile.kt Maven / Gradle / Ivy
@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 Specifies custom data to supply to the machine. On Linux-based systems, this can be used as a cloud-init script. On other systems, this will be copied as a file on disk. Internally, this provider will base64 encode this value before sending it to the API. The maximum length of the binary array is 65535 bytes. Changing this forces a new resource to be created.
*/
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