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

com.pulumi.azurenative.storagepool.DiskPool Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.storagepool;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.storagepool.DiskPoolArgs;
import com.pulumi.azurenative.storagepool.outputs.DiskResponse;
import com.pulumi.azurenative.storagepool.outputs.SystemMetadataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Response for Disk Pool request.
 * Azure REST API version: 2021-08-01. Prior API version in Azure Native 1.x: 2020-03-15-preview.
 * 
 * Other available API versions: 2020-03-15-preview.
 * 
 * ## Example Usage
 * ### Create or Update Disk pool
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.storagepool.DiskPool;
 * import com.pulumi.azurenative.storagepool.DiskPoolArgs;
 * import com.pulumi.azurenative.storagepool.inputs.DiskArgs;
 * import com.pulumi.azurenative.storagepool.inputs.SkuArgs;
 * 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 diskPool = new DiskPool("diskPool", DiskPoolArgs.builder()
 *             .availabilityZones("1")
 *             .diskPoolName("myDiskPool")
 *             .disks(            
 *                 DiskArgs.builder()
 *                     .id("/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0")
 *                     .build(),
 *                 DiskArgs.builder()
 *                     .id("/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1")
 *                     .build())
 *             .location("westus")
 *             .resourceGroupName("myResourceGroup")
 *             .sku(SkuArgs.builder()
 *                 .name("Basic_V1")
 *                 .tier("Basic")
 *                 .build())
 *             .subnetId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet")
 *             .tags(Map.of("key", "value"))
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:storagepool:DiskPool myDiskPool /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName} * ``` * */ @ResourceType(type="azure-native:storagepool:DiskPool") public class DiskPool extends com.pulumi.resources.CustomResource { /** * List of additional capabilities for Disk Pool. * */ @Export(name="additionalCapabilities", refs={List.class,String.class}, tree="[0,1]") private Output> additionalCapabilities; /** * @return List of additional capabilities for Disk Pool. * */ public Output>> additionalCapabilities() { return Codegen.optional(this.additionalCapabilities); } /** * Logical zone for Disk Pool resource; example: ["1"]. * */ @Export(name="availabilityZones", refs={List.class,String.class}, tree="[0,1]") private Output> availabilityZones; /** * @return Logical zone for Disk Pool resource; example: ["1"]. * */ public Output> availabilityZones() { return this.availabilityZones; } /** * List of Azure Managed Disks to attach to a Disk Pool. * */ @Export(name="disks", refs={List.class,DiskResponse.class}, tree="[0,1]") private Output> disks; /** * @return List of Azure Managed Disks to attach to a Disk Pool. * */ public Output>> disks() { return Codegen.optional(this.disks); } /** * The geo-location where the resource lives. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The geo-location where the resource lives. * */ public Output location() { return this.location; } /** * Azure resource id. Indicates if this resource is managed by another Azure resource. * */ @Export(name="managedBy", refs={String.class}, tree="[0]") private Output managedBy; /** * @return Azure resource id. Indicates if this resource is managed by another Azure resource. * */ public Output managedBy() { return this.managedBy; } /** * List of Azure resource ids that manage this resource. * */ @Export(name="managedByExtended", refs={List.class,String.class}, tree="[0,1]") private Output> managedByExtended; /** * @return List of Azure resource ids that manage this resource. * */ public Output> managedByExtended() { return this.managedByExtended; } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * State of the operation on the resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return State of the operation on the resource. * */ public Output provisioningState() { return this.provisioningState; } /** * Operational status of the Disk Pool. * */ @Export(name="status", refs={String.class}, tree="[0]") private Output status; /** * @return Operational status of the Disk Pool. * */ public Output status() { return this.status; } /** * Azure Resource ID of a Subnet for the Disk Pool. * */ @Export(name="subnetId", refs={String.class}, tree="[0]") private Output subnetId; /** * @return Azure Resource ID of a Subnet for the Disk Pool. * */ public Output subnetId() { return this.subnetId; } /** * Resource metadata required by ARM RPC * */ @Export(name="systemData", refs={SystemMetadataResponse.class}, tree="[0]") private Output systemData; /** * @return Resource metadata required by ARM RPC * */ public Output systemData() { return this.systemData; } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * Sku tier * */ @Export(name="tier", refs={String.class}, tree="[0]") private Output tier; /** * @return Sku tier * */ public Output> tier() { return Codegen.optional(this.tier); } /** * The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public DiskPool(java.lang.String name) { this(name, DiskPoolArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public DiskPool(java.lang.String name, DiskPoolArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public DiskPool(java.lang.String name, DiskPoolArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:storagepool:DiskPool", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private DiskPool(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:storagepool:DiskPool", name, null, makeResourceOptions(options, id), false); } private static DiskPoolArgs makeArgs(DiskPoolArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? DiskPoolArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:storagepool/v20200315preview:DiskPool").build()), Output.of(Alias.builder().type("azure-native:storagepool/v20210401preview:DiskPool").build()), Output.of(Alias.builder().type("azure-native:storagepool/v20210801:DiskPool").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static DiskPool get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DiskPool(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy