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

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

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

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property caching Specifies the caching requirements. Possible values include: `None` (default), `ReadOnly`, `ReadWrite`.
 * @property createOption Specifies how the virtual machine should be created. The only possible option is `FromImage`.
 * @property image Specifies the blob URI for user image. A virtual machine scale set creates an os disk in the same container as the user image.
 * Updating the osDisk image causes the existing disk to be deleted and a new one created with the new image. If the VM scale set is in Manual upgrade mode then the virtual machines are not updated until they have manualUpgrade applied to them.
 * When setting this field `os_type` needs to be specified. Cannot be used when `vhd_containers`, `managed_disk_type` or `storage_profile_image_reference` are specified.
 * @property managedDiskType Specifies the type of managed disk to create. Value you must be either `Standard_LRS`, `StandardSSD_LRS` or `Premium_LRS`. Cannot be used when `vhd_containers` or `image` is specified.
 * @property name Specifies the disk name. Must be specified when using unmanaged disk ('managed_disk_type' property not set).
 * @property osType Specifies the operating system Type, valid values are windows, Linux.
 * @property vhdContainers Specifies the VHD URI. Cannot be used when `image` or `managed_disk_type` is specified.
 */
public data class ScaleSetStorageProfileOsDisk(
    public val caching: String? = null,
    public val createOption: String,
    public val image: String? = null,
    public val managedDiskType: String? = null,
    public val name: String? = null,
    public val osType: String? = null,
    public val vhdContainers: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.compute.outputs.ScaleSetStorageProfileOsDisk): ScaleSetStorageProfileOsDisk = ScaleSetStorageProfileOsDisk(
            caching = javaType.caching().map({ args0 -> args0 }).orElse(null),
            createOption = javaType.createOption(),
            image = javaType.image().map({ args0 -> args0 }).orElse(null),
            managedDiskType = javaType.managedDiskType().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            osType = javaType.osType().map({ args0 -> args0 }).orElse(null),
            vhdContainers = javaType.vhdContainers().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy