com.pulumi.azure.compute.kotlin.outputs.ImageOsDisk.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.compute.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property blobUri Specifies the URI in Azure storage of the blob that you want to use to create the image. Changing this forces a new resource to be created.
* @property caching Specifies the caching mode as `ReadWrite`, `ReadOnly`, or `None`. The default is `None`.
* @property diskEncryptionSetId The ID of the Disk Encryption Set which should be used to encrypt this image. Changing this forces a new resource to be created.
* @property managedDiskId Specifies the ID of the managed disk resource that you want to use to create the image.
* @property osState Specifies the state of the operating system contained in the blob. Currently, the only value is Generalized. Possible values are `Generalized` and `Specialized`.
* @property osType Specifies the type of operating system contained in the virtual machine image. Possible values are: `Windows` or `Linux`.
* @property sizeGb Specifies the size of the image to be created. Changing this forces a new resource to be created.
*/
public data class ImageOsDisk(
public val blobUri: String? = null,
public val caching: String? = null,
public val diskEncryptionSetId: String? = null,
public val managedDiskId: String? = null,
public val osState: String? = null,
public val osType: String? = null,
public val sizeGb: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.compute.outputs.ImageOsDisk): ImageOsDisk =
ImageOsDisk(
blobUri = javaType.blobUri().map({ args0 -> args0 }).orElse(null),
caching = javaType.caching().map({ args0 -> args0 }).orElse(null),
diskEncryptionSetId = javaType.diskEncryptionSetId().map({ args0 -> args0 }).orElse(null),
managedDiskId = javaType.managedDiskId().map({ args0 -> args0 }).orElse(null),
osState = javaType.osState().map({ args0 -> args0 }).orElse(null),
osType = javaType.osType().map({ args0 -> args0 }).orElse(null),
sizeGb = javaType.sizeGb().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy