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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.devtestlab.kotlin
import com.pulumi.azurenative.devtestlab.DiskArgs.builder
import com.pulumi.azurenative.devtestlab.kotlin.enums.StorageType
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.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* A Disk.
* Azure REST API version: 2018-09-15. Prior API version in Azure Native 1.x: 2018-09-15.
* Other available API versions: 2016-05-15.
* ## Example Usage
* ### Disks_CreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var disk = new AzureNative.DevTestLab.Disk("disk", new()
* {
* DiskSizeGiB = 1023,
* DiskType = AzureNative.DevTestLab.StorageType.Standard,
* LabName = "{labName}",
* LeasedByLabVmId = "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName",
* Name = "{diskName}",
* ResourceGroupName = "resourceGroupName",
* UserName = "{userId}",
* });
* });
* ```
* ```go
* package main
* import (
* devtestlab "github.com/pulumi/pulumi-azure-native-sdk/devtestlab/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := devtestlab.NewDisk(ctx, "disk", &devtestlab.DiskArgs{
* DiskSizeGiB: pulumi.Int(1023),
* DiskType: pulumi.String(devtestlab.StorageTypeStandard),
* LabName: pulumi.String("{labName}"),
* LeasedByLabVmId: pulumi.String("/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName"),
* Name: pulumi.String("{diskName}"),
* ResourceGroupName: pulumi.String("resourceGroupName"),
* UserName: pulumi.String("{userId}"),
* })
* 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.devtestlab.Disk;
* import com.pulumi.azurenative.devtestlab.DiskArgs;
* 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 disk = new Disk("disk", DiskArgs.builder()
* .diskSizeGiB(1023)
* .diskType("Standard")
* .labName("{labName}")
* .leasedByLabVmId("/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/vmName")
* .name("{diskName}")
* .resourceGroupName("resourceGroupName")
* .userName("{userId}")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:devtestlab:Disk {diskName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}
* ```
* @property diskBlobName When backed by a blob, the name of the VHD blob without extension.
* @property diskSizeGiB The size of the disk in Gibibytes.
* @property diskType The storage type for the disk (i.e. Standard, Premium).
* @property diskUri When backed by a blob, the URI of underlying blob.
* @property hostCaching The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).
* @property labName The name of the lab.
* @property leasedByLabVmId The resource ID of the VM to which this disk is leased.
* @property location The location of the resource.
* @property managedDiskId When backed by managed disk, this is the ID of the compute disk resource.
* @property name The name of the disk.
* @property resourceGroupName The name of the resource group.
* @property storageAccountId When backed by a blob, the storage account where the blob is.
* @property tags The tags of the resource.
* @property userName The name of the user profile.
*/
public data class DiskArgs(
public val diskBlobName: Output? = null,
public val diskSizeGiB: Output? = null,
public val diskType: Output>? = null,
public val diskUri: Output? = null,
public val hostCaching: Output? = null,
public val labName: Output? = null,
public val leasedByLabVmId: Output? = null,
public val location: Output? = null,
public val managedDiskId: Output? = null,
public val name: Output? = null,
public val resourceGroupName: Output? = null,
public val storageAccountId: Output? = null,
public val tags: Output