Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.kubernetesruntime.kotlin.StorageClassArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.kubernetesruntime.kotlin
import com.pulumi.azurenative.kubernetesruntime.StorageClassArgs.builder
import com.pulumi.azurenative.kubernetesruntime.kotlin.enums.AccessMode
import com.pulumi.azurenative.kubernetesruntime.kotlin.enums.DataResilienceTier
import com.pulumi.azurenative.kubernetesruntime.kotlin.enums.FailoverTier
import com.pulumi.azurenative.kubernetesruntime.kotlin.enums.PerformanceTier
import com.pulumi.azurenative.kubernetesruntime.kotlin.enums.VolumeBindingMode
import com.pulumi.azurenative.kubernetesruntime.kotlin.enums.VolumeExpansion
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A StorageClass resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters)
* Azure REST API version: 2024-03-01.
* Other available API versions: 2023-10-01-preview.
* ## Example Usage
* ### StorageClass_CreateOrUpdate_0
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var storageClass = new AzureNative.KubernetesRuntime.StorageClass("storageClass", new()
* {
* ResourceUri = "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1",
* StorageClassName = "testrwx",
* TypeProperties = new AzureNative.KubernetesRuntime.Inputs.RwxStorageClassTypePropertiesArgs
* {
* BackingStorageClassName = "default",
* Type = "RWX",
* },
* });
* });
* ```
* ```go
* package main
* import (
* kubernetesruntime "github.com/pulumi/pulumi-azure-native-sdk/kubernetesruntime/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := kubernetesruntime.NewStorageClass(ctx, "storageClass", &kubernetesruntime.StorageClassArgs{
* ResourceUri: pulumi.String("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1"),
* StorageClassName: pulumi.String("testrwx"),
* TypeProperties: &kubernetesruntime.RwxStorageClassTypePropertiesArgs{
* BackingStorageClassName: pulumi.String("default"),
* Type: pulumi.String("RWX"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.kubernetesruntime.StorageClass;
* import com.pulumi.azurenative.kubernetesruntime.StorageClassArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var storageClass = new StorageClass("storageClass", StorageClassArgs.builder()
* .resourceUri("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1")
* .storageClassName("testrwx")
* .typeProperties(BlobStorageClassTypePropertiesArgs.builder()
* .backingStorageClassName("default")
* .type("RWX")
* .build())
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:kubernetesruntime:StorageClass testrwx /{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}
* ```
* @property accessModes The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce]
* @property allowVolumeExpansion Volume can be expanded or not
* @property dataResilience Allow single data node failure
* @property failoverSpeed Failover speed: NA, Slow, Fast
* @property limitations Limitations of the storage class
* @property mountOptions Additional mount options
* @property performance Performance tier
* @property priority Selection priority when multiple storage classes meet the criteria. 0: Highest, -1: Never use
* @property provisioner Provisioner name
* @property resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @property storageClassName The name of the the storage class
* @property typeProperties Properties of the StorageClass
* @property volumeBindingMode Binding mode of volumes: Immediate, WaitForFirstConsumer
*/
public data class StorageClassArgs(
public val accessModes: Output>>? = null,
public val allowVolumeExpansion: Output>? = null,
public val dataResilience: Output>? = null,
public val failoverSpeed: Output>? = null,
public val limitations: Output>? = null,
public val mountOptions: Output>? = null,
public val performance: Output>? = null,
public val priority: Output? = null,
public val provisioner: Output? = null,
public val resourceUri: Output? = null,
public val storageClassName: Output? = null,
public val typeProperties: Output? = null,
public val volumeBindingMode: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.kubernetesruntime.StorageClassArgs =
com.pulumi.azurenative.kubernetesruntime.StorageClassArgs.builder()
.accessModes(
accessModes?.applyValue({ args0 ->
args0.map({ args0 ->
args0.transform({ args0 ->
args0
}, { args0 -> args0.let({ args0 -> args0.toJava() }) })
})
}),
)
.allowVolumeExpansion(
allowVolumeExpansion?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.dataResilience(
dataResilience?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.failoverSpeed(
failoverSpeed?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.limitations(limitations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.mountOptions(mountOptions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.performance(
performance?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.priority(priority?.applyValue({ args0 -> args0 }))
.provisioner(provisioner?.applyValue({ args0 -> args0 }))
.resourceUri(resourceUri?.applyValue({ args0 -> args0 }))
.storageClassName(storageClassName?.applyValue({ args0 -> args0 }))
.typeProperties(typeProperties?.applyValue({ args0 -> args0 }))
.volumeBindingMode(
volumeBindingMode?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
).build()
}
/**
* Builder for [StorageClassArgs].
*/
@PulumiTagMarker
public class StorageClassArgsBuilder internal constructor() {
private var accessModes: Output>>? = null
private var allowVolumeExpansion: Output>? = null
private var dataResilience: Output>? = null
private var failoverSpeed: Output>? = null
private var limitations: Output>? = null
private var mountOptions: Output>? = null
private var performance: Output>? = null
private var priority: Output? = null
private var provisioner: Output? = null
private var resourceUri: Output? = null
private var storageClassName: Output? = null
private var typeProperties: Output? = null
private var volumeBindingMode: Output>? = null
/**
* @param value The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce]
*/
@JvmName("idlgmqfugjtashlg")
public suspend fun accessModes(`value`: Output>>) {
this.accessModes = value
}
@JvmName("yisbxtxcrrmehpdc")
public suspend fun accessModes(vararg values: Output>) {
this.accessModes = Output.all(values.asList())
}
/**
* @param values The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce]
*/
@JvmName("fjjhmiufdfsyvaem")
public suspend fun accessModes(values: List>>) {
this.accessModes = Output.all(values)
}
/**
* @param value Volume can be expanded or not
*/
@JvmName("daekoxbpovmxjjlj")
public suspend fun allowVolumeExpansion(`value`: Output>) {
this.allowVolumeExpansion = value
}
/**
* @param value Allow single data node failure
*/
@JvmName("rsqiaglvbhbnjnxk")
public suspend fun dataResilience(`value`: Output>) {
this.dataResilience = value
}
/**
* @param value Failover speed: NA, Slow, Fast
*/
@JvmName("tpynocqsfaycyube")
public suspend fun failoverSpeed(`value`: Output>) {
this.failoverSpeed = value
}
/**
* @param value Limitations of the storage class
*/
@JvmName("tesktenyqkxrhpdi")
public suspend fun limitations(`value`: Output>) {
this.limitations = value
}
@JvmName("wdivrdoqekxcvffl")
public suspend fun limitations(vararg values: Output) {
this.limitations = Output.all(values.asList())
}
/**
* @param values Limitations of the storage class
*/
@JvmName("uityxiwhixirkadi")
public suspend fun limitations(values: List>) {
this.limitations = Output.all(values)
}
/**
* @param value Additional mount options
*/
@JvmName("ctuhorgaigqfybgd")
public suspend fun mountOptions(`value`: Output>) {
this.mountOptions = value
}
@JvmName("mwcaedtloybsmtdm")
public suspend fun mountOptions(vararg values: Output) {
this.mountOptions = Output.all(values.asList())
}
/**
* @param values Additional mount options
*/
@JvmName("usctobxmqutwbhxj")
public suspend fun mountOptions(values: List>) {
this.mountOptions = Output.all(values)
}
/**
* @param value Performance tier
*/
@JvmName("kkjmbyhyhgbpaxtr")
public suspend fun performance(`value`: Output>) {
this.performance = value
}
/**
* @param value Selection priority when multiple storage classes meet the criteria. 0: Highest, -1: Never use
*/
@JvmName("riaqkqbijmbdkjwt")
public suspend fun priority(`value`: Output) {
this.priority = value
}
/**
* @param value Provisioner name
*/
@JvmName("qncxwcjsnmdflnbc")
public suspend fun provisioner(`value`: Output) {
this.provisioner = value
}
/**
* @param value The fully qualified Azure Resource manager identifier of the resource.
*/
@JvmName("shsspdcdmrqrjsqg")
public suspend fun resourceUri(`value`: Output) {
this.resourceUri = value
}
/**
* @param value The name of the the storage class
*/
@JvmName("umcvqpvtleofbwip")
public suspend fun storageClassName(`value`: Output) {
this.storageClassName = value
}
/**
* @param value Properties of the StorageClass
*/
@JvmName("atlnljsnlahqsxnf")
public suspend fun typeProperties(`value`: Output) {
this.typeProperties = value
}
/**
* @param value Binding mode of volumes: Immediate, WaitForFirstConsumer
*/
@JvmName("pylhbxpxvyqhfgua")
public suspend fun volumeBindingMode(`value`: Output>) {
this.volumeBindingMode = value
}
/**
* @param value The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce]
*/
@JvmName("rmxrsrfcenxjxjxi")
public suspend fun accessModes(`value`: List>?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accessModes = mapped
}
/**
* @param values The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce]
*/
@JvmName("goupumuhwmyynsan")
public suspend fun accessModes(vararg values: Either) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.accessModes = mapped
}
/**
* @param value Volume can be expanded or not
*/
@JvmName("jtttjujmbvumlvbf")
public suspend fun allowVolumeExpansion(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allowVolumeExpansion = mapped
}
/**
* @param value Volume can be expanded or not
*/
@JvmName("fnmmxacpdurmmxjm")
public fun allowVolumeExpansion(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.allowVolumeExpansion = mapped
}
/**
* @param value Volume can be expanded or not
*/
@JvmName("jmeinpxvfctmpccs")
public fun allowVolumeExpansion(`value`: VolumeExpansion) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.allowVolumeExpansion = mapped
}
/**
* @param value Allow single data node failure
*/
@JvmName("wjqnxofjwtuiyxqp")
public suspend fun dataResilience(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dataResilience = mapped
}
/**
* @param value Allow single data node failure
*/
@JvmName("hmvlbkcsnqsfoblm")
public fun dataResilience(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dataResilience = mapped
}
/**
* @param value Allow single data node failure
*/
@JvmName("xprmjisduwdptakq")
public fun dataResilience(`value`: DataResilienceTier) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dataResilience = mapped
}
/**
* @param value Failover speed: NA, Slow, Fast
*/
@JvmName("qemifaphuoxpnvqm")
public suspend fun failoverSpeed(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.failoverSpeed = mapped
}
/**
* @param value Failover speed: NA, Slow, Fast
*/
@JvmName("yhbwpyumchikundt")
public fun failoverSpeed(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.failoverSpeed = mapped
}
/**
* @param value Failover speed: NA, Slow, Fast
*/
@JvmName("lxgjlolkyowivwee")
public fun failoverSpeed(`value`: FailoverTier) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.failoverSpeed = mapped
}
/**
* @param value Limitations of the storage class
*/
@JvmName("kqrpaglshuixheto")
public suspend fun limitations(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.limitations = mapped
}
/**
* @param values Limitations of the storage class
*/
@JvmName("icenexpfsvwsxnri")
public suspend fun limitations(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.limitations = mapped
}
/**
* @param value Additional mount options
*/
@JvmName("npnbcumvxkwmlvut")
public suspend fun mountOptions(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mountOptions = mapped
}
/**
* @param values Additional mount options
*/
@JvmName("hqobltsekxafckwc")
public suspend fun mountOptions(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.mountOptions = mapped
}
/**
* @param value Performance tier
*/
@JvmName("qculhbgycjvoucef")
public suspend fun performance(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.performance = mapped
}
/**
* @param value Performance tier
*/
@JvmName("elyguujbbyoxglfu")
public fun performance(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.performance = mapped
}
/**
* @param value Performance tier
*/
@JvmName("hoctccmvxhiepxnv")
public fun performance(`value`: PerformanceTier) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.performance = mapped
}
/**
* @param value Selection priority when multiple storage classes meet the criteria. 0: Highest, -1: Never use
*/
@JvmName("vprtgrulriybjkyl")
public suspend fun priority(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.priority = mapped
}
/**
* @param value Provisioner name
*/
@JvmName("hcrxwyfvgtoqaxrj")
public suspend fun provisioner(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.provisioner = mapped
}
/**
* @param value The fully qualified Azure Resource manager identifier of the resource.
*/
@JvmName("iscvlxiudyavofbp")
public suspend fun resourceUri(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceUri = mapped
}
/**
* @param value The name of the the storage class
*/
@JvmName("xmrjhqavcuyjksul")
public suspend fun storageClassName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageClassName = mapped
}
/**
* @param value Properties of the StorageClass
*/
@JvmName("nuiwnyamuhtphjeg")
public suspend fun typeProperties(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.typeProperties = mapped
}
/**
* @param value Binding mode of volumes: Immediate, WaitForFirstConsumer
*/
@JvmName("byjsskptrcryoedq")
public suspend fun volumeBindingMode(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.volumeBindingMode = mapped
}
/**
* @param value Binding mode of volumes: Immediate, WaitForFirstConsumer
*/
@JvmName("ntwcluhghmuqacip")
public fun volumeBindingMode(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.volumeBindingMode = mapped
}
/**
* @param value Binding mode of volumes: Immediate, WaitForFirstConsumer
*/
@JvmName("lsqtbspyafbnjwob")
public fun volumeBindingMode(`value`: VolumeBindingMode) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.volumeBindingMode = mapped
}
internal fun build(): StorageClassArgs = StorageClassArgs(
accessModes = accessModes,
allowVolumeExpansion = allowVolumeExpansion,
dataResilience = dataResilience,
failoverSpeed = failoverSpeed,
limitations = limitations,
mountOptions = mountOptions,
performance = performance,
priority = priority,
provisioner = provisioner,
resourceUri = resourceUri,
storageClassName = storageClassName,
typeProperties = typeProperties,
volumeBindingMode = volumeBindingMode,
)
}