com.pulumi.azure.batch.kotlin.outputs.PoolUserAccount.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.batch.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property elevationLevel The elevation level of the user account. "NonAdmin" - The auto user is a standard user without elevated access. "Admin" - The auto user is a user with elevated access and operates with full Administrator permissions. The default value is nonAdmin.
* @property linuxUserConfigurations The `linux_user_configuration` block defined below is a linux-specific user configuration for the user account. This property is ignored if specified on a Windows pool. If not specified, the user is created with the default options.
* @property name The name of the user account.
* @property password The password for the user account.
* @property windowsUserConfigurations The `windows_user_configuration` block defined below is a windows-specific user configuration for the user account. This property can only be specified if the user is on a Windows pool. If not specified and on a Windows pool, the user is created with the default options.
*/
public data class PoolUserAccount(
public val elevationLevel: String,
public val linuxUserConfigurations: List? = null,
public val name: String,
public val password: String,
public val windowsUserConfigurations: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.batch.outputs.PoolUserAccount): PoolUserAccount =
PoolUserAccount(
elevationLevel = javaType.elevationLevel(),
linuxUserConfigurations = javaType.linuxUserConfigurations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.batch.kotlin.outputs.PoolUserAccountLinuxUserConfiguration.Companion.toKotlin(args0)
})
}),
name = javaType.name(),
password = javaType.password(),
windowsUserConfigurations = javaType.windowsUserConfigurations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.batch.kotlin.outputs.PoolUserAccountWindowsUserConfiguration.Companion.toKotlin(args0)
})
}),
)
}
}