com.pulumi.azure.batch.kotlin.outputs.PoolDataDisk.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.batch.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property caching Values are: "none" - The caching mode for the disk is not enabled. "readOnly" - The caching mode for the disk is read only. "readWrite" - The caching mode for the disk is read and write. For information about the caching options see: . Possible values are `None`, `ReadOnly` and `ReadWrite`. Defaults to `ReadOnly`.
* @property diskSizeGb The initial disk size in GB when creating new data disk.
* @property lun The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. The value must be between 0 and 63, inclusive.
* @property storageAccountType The storage account type to be used for the data disk. Values are: Possible values are `Standard_LRS` - The data disk should use standard locally redundant storage. `Premium_LRS` - The data disk should use premium locally redundant storage. Defaults to `Standard_LRS`.
*/
public data class PoolDataDisk(
public val caching: String? = null,
public val diskSizeGb: Int,
public val lun: Int,
public val storageAccountType: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.batch.outputs.PoolDataDisk): PoolDataDisk =
PoolDataDisk(
caching = javaType.caching().map({ args0 -> args0 }).orElse(null),
diskSizeGb = javaType.diskSizeGb(),
lun = javaType.lun(),
storageAccountType = javaType.storageAccountType().map({ args0 -> args0 }).orElse(null),
)
}
}