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

com.pulumi.azure.mssql.kotlin.outputs.VirtualMachineStorageConfiguration.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.mssql.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property dataSettings A `storage_settings` block as defined below.
 * @property diskType The type of disk configuration to apply to the SQL Server. Valid values include `NEW`, `EXTEND`, or `ADD`.
 * @property logSettings A `storage_settings` block as defined below.
 * @property storageWorkloadType The type of storage workload. Valid values include `GENERAL`, `OLTP`, or `DW`.
 * @property systemDbOnDataDiskEnabled Specifies whether to set system databases (except tempDb) location to newly created data storage. Possible values are `true` and `false`. Defaults to `false`.
 * @property tempDbSettings An `temp_db_settings` block as defined below.
 */
public data class VirtualMachineStorageConfiguration(
    public val dataSettings: VirtualMachineStorageConfigurationDataSettings? = null,
    public val diskType: String,
    public val logSettings: VirtualMachineStorageConfigurationLogSettings? = null,
    public val storageWorkloadType: String,
    public val systemDbOnDataDiskEnabled: Boolean? = null,
    public val tempDbSettings: VirtualMachineStorageConfigurationTempDbSettings? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.mssql.outputs.VirtualMachineStorageConfiguration):
            VirtualMachineStorageConfiguration = VirtualMachineStorageConfiguration(
            dataSettings = javaType.dataSettings().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.mssql.kotlin.outputs.VirtualMachineStorageConfigurationDataSettings.Companion.toKotlin(args0)
                })
            }).orElse(null),
            diskType = javaType.diskType(),
            logSettings = javaType.logSettings().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.mssql.kotlin.outputs.VirtualMachineStorageConfigurationLogSettings.Companion.toKotlin(args0)
                })
            }).orElse(null),
            storageWorkloadType = javaType.storageWorkloadType(),
            systemDbOnDataDiskEnabled = javaType.systemDbOnDataDiskEnabled().map({ args0 ->
                args0
            }).orElse(null),
            tempDbSettings = javaType.tempDbSettings().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.mssql.kotlin.outputs.VirtualMachineStorageConfigurationTempDbSettings.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy