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

com.pulumi.azure.containerservice.kotlin.outputs.KubernetesClusterStorageProfile.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.containerservice.kotlin.outputs

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

/**
 *
 * @property blobDriverEnabled Is the Blob CSI driver enabled? Defaults to `false`.
 * @property diskDriverEnabled Is the Disk CSI driver enabled? Defaults to `true`.
 * @property diskDriverVersion Disk CSI Driver version to be used. Possible values are `v1` and `v2`. Defaults to `v1`.
 * > **Note:** `Azure Disk CSI driver v2` is currently in [Public Preview](https://azure.microsoft.com/en-us/updates/public-preview-azure-disk-csi-driver-v2-in-aks/) on an opt-in basis. To use it, the feature `EnableAzureDiskCSIDriverV2` for namespace `Microsoft.ContainerService` must be requested.
 * @property fileDriverEnabled Is the File CSI driver enabled? Defaults to `true`.
 * @property snapshotControllerEnabled Is the Snapshot Controller enabled? Defaults to `true`.
 */
public data class KubernetesClusterStorageProfile(
    public val blobDriverEnabled: Boolean? = null,
    public val diskDriverEnabled: Boolean? = null,
    public val diskDriverVersion: String? = null,
    public val fileDriverEnabled: Boolean? = null,
    public val snapshotControllerEnabled: Boolean? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.containerservice.outputs.KubernetesClusterStorageProfile):
            KubernetesClusterStorageProfile = KubernetesClusterStorageProfile(
            blobDriverEnabled = javaType.blobDriverEnabled().map({ args0 -> args0 }).orElse(null),
            diskDriverEnabled = javaType.diskDriverEnabled().map({ args0 -> args0 }).orElse(null),
            diskDriverVersion = javaType.diskDriverVersion().map({ args0 -> args0 }).orElse(null),
            fileDriverEnabled = javaType.fileDriverEnabled().map({ args0 -> args0 }).orElse(null),
            snapshotControllerEnabled = javaType.snapshotControllerEnabled().map({ args0 ->
                args0
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy