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

com.pulumi.azurenative.networkcloud.kotlin.StorageApplianceArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.networkcloud.kotlin

import com.pulumi.azurenative.networkcloud.StorageApplianceArgs.builder
import com.pulumi.azurenative.networkcloud.kotlin.inputs.AdministrativeCredentialsArgs
import com.pulumi.azurenative.networkcloud.kotlin.inputs.AdministrativeCredentialsArgsBuilder
import com.pulumi.azurenative.networkcloud.kotlin.inputs.ExtendedLocationArgs
import com.pulumi.azurenative.networkcloud.kotlin.inputs.ExtendedLocationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * Azure REST API version: 2023-10-01-preview. Prior API version in Azure Native 1.x: 2022-12-12-preview.
 * Other available API versions: 2023-07-01, 2024-06-01-preview.
 * ## Example Usage
 * ### Create or update storage appliance
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var storageAppliance = new AzureNative.NetworkCloud.StorageAppliance("storageAppliance", new()
 *     {
 *         AdministratorCredentials = new AzureNative.NetworkCloud.Inputs.AdministrativeCredentialsArgs
 *         {
 *             Password = "{password}",
 *             Username = "adminUser",
 *         },
 *         ExtendedLocation = new AzureNative.NetworkCloud.Inputs.ExtendedLocationArgs
 *         {
 *             Name = "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName",
 *             Type = "CustomLocation",
 *         },
 *         Location = "location",
 *         RackId = "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName",
 *         RackSlot = 1,
 *         ResourceGroupName = "resourceGroupName",
 *         SerialNumber = "BM1219XXX",
 *         StorageApplianceName = "storageApplianceName",
 *         StorageApplianceSkuId = "684E-3B16-399E",
 *         Tags =
 *         {
 *             { "key1", "myvalue1" },
 *             { "key2", "myvalue2" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	networkcloud "github.com/pulumi/pulumi-azure-native-sdk/networkcloud/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := networkcloud.NewStorageAppliance(ctx, "storageAppliance", &networkcloud.StorageApplianceArgs{
 * 			AdministratorCredentials: &networkcloud.AdministrativeCredentialsArgs{
 * 				Password: pulumi.String("{password}"),
 * 				Username: pulumi.String("adminUser"),
 * 			},
 * 			ExtendedLocation: &networkcloud.ExtendedLocationArgs{
 * 				Name: pulumi.String("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName"),
 * 				Type: pulumi.String("CustomLocation"),
 * 			},
 * 			Location:              pulumi.String("location"),
 * 			RackId:                pulumi.String("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"),
 * 			RackSlot:              pulumi.Float64(1),
 * 			ResourceGroupName:     pulumi.String("resourceGroupName"),
 * 			SerialNumber:          pulumi.String("BM1219XXX"),
 * 			StorageApplianceName:  pulumi.String("storageApplianceName"),
 * 			StorageApplianceSkuId: pulumi.String("684E-3B16-399E"),
 * 			Tags: pulumi.StringMap{
 * 				"key1": pulumi.String("myvalue1"),
 * 				"key2": pulumi.String("myvalue2"),
 * 			},
 * 		})
 * 		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.networkcloud.StorageAppliance;
 * import com.pulumi.azurenative.networkcloud.StorageApplianceArgs;
 * import com.pulumi.azurenative.networkcloud.inputs.AdministrativeCredentialsArgs;
 * import com.pulumi.azurenative.networkcloud.inputs.ExtendedLocationArgs;
 * 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 storageAppliance = new StorageAppliance("storageAppliance", StorageApplianceArgs.builder()
 *             .administratorCredentials(AdministrativeCredentialsArgs.builder()
 *                 .password("{password}")
 *                 .username("adminUser")
 *                 .build())
 *             .extendedLocation(ExtendedLocationArgs.builder()
 *                 .name("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
 *                 .type("CustomLocation")
 *                 .build())
 *             .location("location")
 *             .rackId("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName")
 *             .rackSlot(1)
 *             .resourceGroupName("resourceGroupName")
 *             .serialNumber("BM1219XXX")
 *             .storageApplianceName("storageApplianceName")
 *             .storageApplianceSkuId("684E-3B16-399E")
 *             .tags(Map.ofEntries(
 *                 Map.entry("key1", "myvalue1"),
 *                 Map.entry("key2", "myvalue2")
 *             ))
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:networkcloud:StorageAppliance storageApplianceName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}
 * ```
 * @property administratorCredentials The credentials of the administrative interface on this storage appliance.
 * @property extendedLocation The extended location of the cluster associated with the resource.
 * @property location The geo-location where the resource lives
 * @property rackId The resource ID of the rack where this storage appliance resides.
 * @property rackSlot The slot the storage appliance is in the rack based on the BOM configuration.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property serialNumber The serial number for the storage appliance.
 * @property storageApplianceName The name of the storage appliance.
 * @property storageApplianceSkuId The SKU for the storage appliance.
 * @property tags Resource tags.
 */
public data class StorageApplianceArgs(
    public val administratorCredentials: Output? = null,
    public val extendedLocation: Output? = null,
    public val location: Output? = null,
    public val rackId: Output? = null,
    public val rackSlot: Output? = null,
    public val resourceGroupName: Output? = null,
    public val serialNumber: Output? = null,
    public val storageApplianceName: Output? = null,
    public val storageApplianceSkuId: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.networkcloud.StorageApplianceArgs =
        com.pulumi.azurenative.networkcloud.StorageApplianceArgs.builder()
            .administratorCredentials(
                administratorCredentials?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .extendedLocation(extendedLocation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .rackId(rackId?.applyValue({ args0 -> args0 }))
            .rackSlot(rackSlot?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .serialNumber(serialNumber?.applyValue({ args0 -> args0 }))
            .storageApplianceName(storageApplianceName?.applyValue({ args0 -> args0 }))
            .storageApplianceSkuId(storageApplianceSkuId?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [StorageApplianceArgs].
 */
@PulumiTagMarker
public class StorageApplianceArgsBuilder internal constructor() {
    private var administratorCredentials: Output? = null

    private var extendedLocation: Output? = null

    private var location: Output? = null

    private var rackId: Output? = null

    private var rackSlot: Output? = null

    private var resourceGroupName: Output? = null

    private var serialNumber: Output? = null

    private var storageApplianceName: Output? = null

    private var storageApplianceSkuId: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The credentials of the administrative interface on this storage appliance.
     */
    @JvmName("xjqypillbwtjbitc")
    public suspend fun administratorCredentials(`value`: Output) {
        this.administratorCredentials = value
    }

    /**
     * @param value The extended location of the cluster associated with the resource.
     */
    @JvmName("npkwlvxlxbrsrjwb")
    public suspend fun extendedLocation(`value`: Output) {
        this.extendedLocation = value
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("fyvxlaoeeqowefcv")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The resource ID of the rack where this storage appliance resides.
     */
    @JvmName("klamggmfmnxhvkpm")
    public suspend fun rackId(`value`: Output) {
        this.rackId = value
    }

    /**
     * @param value The slot the storage appliance is in the rack based on the BOM configuration.
     */
    @JvmName("dwpsmpdhikxslcdl")
    public suspend fun rackSlot(`value`: Output) {
        this.rackSlot = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("rjueitkaljfgcuuj")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The serial number for the storage appliance.
     */
    @JvmName("mwrwqsxtdimetcwm")
    public suspend fun serialNumber(`value`: Output) {
        this.serialNumber = value
    }

    /**
     * @param value The name of the storage appliance.
     */
    @JvmName("bhiavybkmvruimyr")
    public suspend fun storageApplianceName(`value`: Output) {
        this.storageApplianceName = value
    }

    /**
     * @param value The SKU for the storage appliance.
     */
    @JvmName("xsjcjkdkodesmcvh")
    public suspend fun storageApplianceSkuId(`value`: Output) {
        this.storageApplianceSkuId = value
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("ptjnwfnrswiabowr")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The credentials of the administrative interface on this storage appliance.
     */
    @JvmName("wrrxjmfukkstmdsl")
    public suspend fun administratorCredentials(`value`: AdministrativeCredentialsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.administratorCredentials = mapped
    }

    /**
     * @param argument The credentials of the administrative interface on this storage appliance.
     */
    @JvmName("sdgkytbbdsagmtjx")
    public suspend fun administratorCredentials(argument: suspend AdministrativeCredentialsArgsBuilder.() -> Unit) {
        val toBeMapped = AdministrativeCredentialsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.administratorCredentials = mapped
    }

    /**
     * @param value The extended location of the cluster associated with the resource.
     */
    @JvmName("mgjsxrjdnklbioer")
    public suspend fun extendedLocation(`value`: ExtendedLocationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extendedLocation = mapped
    }

    /**
     * @param argument The extended location of the cluster associated with the resource.
     */
    @JvmName("phbqjhbsxyadfpsb")
    public suspend fun extendedLocation(argument: suspend ExtendedLocationArgsBuilder.() -> Unit) {
        val toBeMapped = ExtendedLocationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.extendedLocation = mapped
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("vbisebxcqsxodnok")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The resource ID of the rack where this storage appliance resides.
     */
    @JvmName("yqmonknlqwxangyu")
    public suspend fun rackId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rackId = mapped
    }

    /**
     * @param value The slot the storage appliance is in the rack based on the BOM configuration.
     */
    @JvmName("ionqbcxjfaamfmar")
    public suspend fun rackSlot(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rackSlot = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("veqpyhhuueyunxqb")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The serial number for the storage appliance.
     */
    @JvmName("ffjtuyernjthnywt")
    public suspend fun serialNumber(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serialNumber = mapped
    }

    /**
     * @param value The name of the storage appliance.
     */
    @JvmName("epnxnnukkclvvnih")
    public suspend fun storageApplianceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageApplianceName = mapped
    }

    /**
     * @param value The SKU for the storage appliance.
     */
    @JvmName("lcogoixtuuswiqcp")
    public suspend fun storageApplianceSkuId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageApplianceSkuId = mapped
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("huxylwbyetdytfyp")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags.
     */
    @JvmName("cffslmubyyvdcnup")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): StorageApplianceArgs = StorageApplianceArgs(
        administratorCredentials = administratorCredentials,
        extendedLocation = extendedLocation,
        location = location,
        rackId = rackId,
        rackSlot = rackSlot,
        resourceGroupName = resourceGroupName,
        serialNumber = serialNumber,
        storageApplianceName = storageApplianceName,
        storageApplianceSkuId = storageApplianceSkuId,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy