<gh_stars>0// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Vcd
{
    [VcdResourceType("vcd:index/independentDisk:IndependentDisk")]
    public partial class IndependentDisk : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Set of VM IDs which are using the disk
        /// </summary>
        [Output("attachedVmIds")]
        public Output<ImmutableArray<string>> AttachedVmIds { get; private set; } = null!;

        [Output("busSubType")]
        public Output<string> BusSubType { get; private set; } = null!;

        [Output("busType")]
        public Output<string> BusType { get; private set; } = null!;

        /// <summary>
        /// Datastore name
        /// </summary>
        [Output("datastoreName")]
        public Output<string> DatastoreName { get; private set; } = null!;

        /// <summary>
        /// independent disk description
        /// </summary>
        [Output("description")]
        public Output<string?> Description { get; private set; } = null!;

        /// <summary>
        /// True if disk is encrypted
        /// </summary>
        [Output("encrypted")]
        public Output<bool> Encrypted { get; private set; } = null!;

        /// <summary>
        /// IOPS request for the created disk
        /// </summary>
        [Output("iops")]
        public Output<int> Iops { get; private set; } = null!;

        /// <summary>
        /// True if the disk is already attached
        /// </summary>
        [Output("isAttached")]
        public Output<bool> IsAttached { get; private set; } = null!;

        /// <summary>
        /// Key value map of metadata to assign to this disk. Key and value can be any string.
        /// </summary>
        [Output("metadata")]
        public Output<ImmutableDictionary<string, object>> Metadata { get; private set; } = null!;

        /// <summary>
        /// Metadata entries for the given Disk
        /// </summary>
        [Output("metadataEntries")]
        public Output<ImmutableArray<Outputs.IndependentDiskMetadataEntry>> MetadataEntries { get; private set; } = null!;

        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        /// <summary>
        /// The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across
        /// different organizations
        /// </summary>
        [Output("org")]
        public Output<string?> Org { get; private set; } = null!;

        /// <summary>
        /// The owner name of the disk
        /// </summary>
        [Output("ownerName")]
        public Output<string> OwnerName { get; private set; } = null!;

        /// <summary>
        /// This is the sharing type. This attribute can only have values defined one of: `DiskSharing`,`ControllerSharing`, `None`
        /// </summary>
        [Output("sharingType")]
        public Output<string> SharingType { get; private set; } = null!;

        /// <summary>
        /// size in MB
        /// </summary>
        [Output("sizeInMb")]
        public Output<int> SizeInMb { get; private set; } = null!;

        [Output("storageProfile")]
        public Output<string> StorageProfile { get; private set; } = null!;

        /// <summary>
        /// The UUID of this named disk's device backing
        /// </summary>
        [Output("uuid")]
        public Output<string> Uuid { get; private set; } = null!;

        /// <summary>
        /// The name of VDC to use, optional if defined at provider level
        /// </summary>
        [Output("vdc")]
        public Output<string?> Vdc { get; private set; } = null!;


        /// <summary>
        /// Create a IndependentDisk resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public IndependentDisk(string name, IndependentDiskArgs args, CustomResourceOptions? options = null)
            : base("vcd:index/independentDisk:IndependentDisk", name, args ?? new IndependentDiskArgs(), MakeResourceOptions(options, ""))
        {
        }

        private IndependentDisk(string name, Input<string> id, IndependentDiskState? state = null, CustomResourceOptions? options = null)
            : base("vcd:index/independentDisk:IndependentDisk", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing IndependentDisk resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static IndependentDisk Get(string name, Input<string> id, IndependentDiskState? state = null, CustomResourceOptions? options = null)
        {
            return new IndependentDisk(name, id, state, options);
        }
    }

    public sealed class IndependentDiskArgs : global::Pulumi.ResourceArgs
    {
        [Input("busSubType")]
        public Input<string>? BusSubType { get; set; }

        [Input("busType")]
        public Input<string>? BusType { get; set; }

        /// <summary>
        /// independent disk description
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        [Input("metadata")]
        private InputMap<object>? _metadata;

        /// <summary>
        /// Key value map of metadata to assign to this disk. Key and value can be any string.
        /// </summary>
        [Obsolete(@"Use metadata_entry instead")]
        public InputMap<object> Metadata
        {
            get => _metadata ?? (_metadata = new InputMap<object>());
            set => _metadata = value;
        }

        [Input("metadataEntries")]
        private InputList<Inputs.IndependentDiskMetadataEntryArgs>? _metadataEntries;

        /// <summary>
        /// Metadata entries for the given Disk
        /// </summary>
        public InputList<Inputs.IndependentDiskMetadataEntryArgs> MetadataEntries
        {
            get => _metadataEntries ?? (_metadataEntries = new InputList<Inputs.IndependentDiskMetadataEntryArgs>());
            set => _metadataEntries = value;
        }

        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across
        /// different organizations
        /// </summary>
        [Input("org")]
        public Input<string>? Org { get; set; }

        /// <summary>
        /// This is the sharing type. This attribute can only have values defined one of: `DiskSharing`,`ControllerSharing`, `None`
        /// </summary>
        [Input("sharingType")]
        public Input<string>? SharingType { get; set; }

        /// <summary>
        /// size in MB
        /// </summary>
        [Input("sizeInMb", required: true)]
        public Input<int> SizeInMb { get; set; } = null!;

        [Input("storageProfile")]
        public Input<string>? StorageProfile { get; set; }

        /// <summary>
        /// The name of VDC to use, optional if defined at provider level
        /// </summary>
        [Input("vdc")]
        public Input<string>? Vdc { get; set; }

        public IndependentDiskArgs()
        {
        }
        public static new IndependentDiskArgs Empty => new IndependentDiskArgs();
    }

    public sealed class IndependentDiskState : global::Pulumi.ResourceArgs
    {
        [Input("attachedVmIds")]
        private InputList<string>? _attachedVmIds;

        /// <summary>
        /// Set of VM IDs which are using the disk
        /// </summary>
        public InputList<string> AttachedVmIds
        {
            get => _attachedVmIds ?? (_attachedVmIds = new InputList<string>());
            set => _attachedVmIds = value;
        }

        [Input("busSubType")]
        public Input<string>? BusSubType { get; set; }

        [Input("busType")]
        public Input<string>? BusType { get; set; }

        /// <summary>
        /// Datastore name
        /// </summary>
        [Input("datastoreName")]
        public Input<string>? DatastoreName { get; set; }

        /// <summary>
        /// independent disk description
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        /// <summary>
        /// True if disk is encrypted
        /// </summary>
        [Input("encrypted")]
        public Input<bool>? Encrypted { get; set; }

        /// <summary>
        /// IOPS request for the created disk
        /// </summary>
        [Input("iops")]
        public Input<int>? Iops { get; set; }

        /// <summary>
        /// True if the disk is already attached
        /// </summary>
        [Input("isAttached")]
        public Input<bool>? IsAttached { get; set; }

        [Input("metadata")]
        private InputMap<object>? _metadata;

        /// <summary>
        /// Key value map of metadata to assign to this disk. Key and value can be any string.
        /// </summary>
        [Obsolete(@"Use metadata_entry instead")]
        public InputMap<object> Metadata
        {
            get => _metadata ?? (_metadata = new InputMap<object>());
            set => _metadata = value;
        }

        [Input("metadataEntries")]
        private InputList<Inputs.IndependentDiskMetadataEntryGetArgs>? _metadataEntries;

        /// <summary>
        /// Metadata entries for the given Disk
        /// </summary>
        public InputList<Inputs.IndependentDiskMetadataEntryGetArgs> MetadataEntries
        {
            get => _metadataEntries ?? (_metadataEntries = new InputList<Inputs.IndependentDiskMetadataEntryGetArgs>());
            set => _metadataEntries = value;
        }

        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across
        /// different organizations
        /// </summary>
        [Input("org")]
        public Input<string>? Org { get; set; }

        /// <summary>
        /// The owner name of the disk
        /// </summary>
        [Input("ownerName")]
        public Input<string>? OwnerName { get; set; }

        /// <summary>
        /// This is the sharing type. This attribute can only have values defined one of: `DiskSharing`,`ControllerSharing`, `None`
        /// </summary>
        [Input("sharingType")]
        public Input<string>? SharingType { get; set; }

        /// <summary>
        /// size in MB
        /// </summary>
        [Input("sizeInMb")]
        public Input<int>? SizeInMb { get; set; }

        [Input("storageProfile")]
        public Input<string>? StorageProfile { get; set; }

        /// <summary>
        /// The UUID of this named disk's device backing
        /// </summary>
        [Input("uuid")]
        public Input<string>? Uuid { get; set; }

        /// <summary>
        /// The name of VDC to use, optional if defined at provider level
        /// </summary>
        [Input("vdc")]
        public Input<string>? Vdc { get; set; }

        public IndependentDiskState()
        {
        }
        public static new IndependentDiskState Empty => new IndependentDiskState();
    }
}
