<filename>sdk/dotnet/Storageprofile/Azure.cs// *** 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;
using Pulumi;

namespace Pulumiverse.Vra.Storageprofile
{
    /// <summary>
    /// ## Example Usage
    /// ### S
    /// This is an example of how to create a storage profile azure resource.
    /// 
    /// **Vra storage profile azure:**
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using Vra = Pulumiverse.Vra;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Azure storage profile using vra_storage_profile_azure resource with managed disk.
    ///     var thisAzure = new Vra.Storageprofile.Azure("thisAzure", new()
    ///     {
    ///         Description = "Azure Storage Profile with managed disks.",
    ///         RegionId = data.Vra_region.This.Id,
    ///         DefaultItem = false,
    ///         SupportsEncryption = false,
    ///         DataDiskCaching = "None",
    ///         DiskType = "Standard_LRS",
    ///         OsDiskCaching = "None",
    ///         Tags = new[]
    ///         {
    ///             new Vra.Storageprofile.Inputs.AzureTagArgs
    ///             {
    ///                 Key = "foo",
    ///                 Value = "bar",
    ///             },
    ///         },
    ///     });
    /// 
    ///     // Azure storage profile using vra_storage_profile_azure resource with unmanaged disk.
    ///     var thisStorageprofile_azureAzure = new Vra.Storageprofile.Azure("thisStorageprofile/azureAzure", new()
    ///     {
    ///         Description = "Azure Storage Profile with unmanaged disks.",
    ///         RegionId = data.Vra_region.This.Id,
    ///         DefaultItem = false,
    ///         SupportsEncryption = false,
    ///         DataDiskCaching = "None",
    ///         OsDiskCaching = "None",
    ///         Tags = new[]
    ///         {
    ///             new Vra.Storageprofile.Inputs.AzureTagArgs
    ///             {
    ///                 Key = "foo",
    ///                 Value = "bar",
    ///             },
    ///         },
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// A storage profile azure resource supports the following arguments:
    /// </summary>
    [VraResourceType("vra:storageprofile/azure:Azure")]
    public partial class Azure : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Date when the entity was created. The date is in ISO 6801 and UTC.
        /// </summary>
        [Output("createdAt")]
        public Output<string> CreatedAt { get; private set; } = null!;

        /// <summary>
        /// Indicates the caching mechanism for additional disk.
        /// </summary>
        [Output("dataDiskCaching")]
        public Output<string> DataDiskCaching { get; private set; } = null!;

        /// <summary>
        /// Indicates if this storage profile is a default profile.
        /// </summary>
        [Output("defaultItem")]
        public Output<bool> DefaultItem { get; private set; } = null!;

        /// <summary>
        /// A human-friendly description.
        /// </summary>
        [Output("description")]
        public Output<string> Description { get; private set; } = null!;

        /// <summary>
        /// Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.
        /// </summary>
        [Output("diskType")]
        public Output<string> DiskType { get; private set; } = null!;

        /// <summary>
        /// The id of the region as seen in the cloud provider for which this profile is defined.
        /// </summary>
        [Output("externalRegionId")]
        public Output<string> ExternalRegionId { get; private set; } = null!;

        /// <summary>
        /// HATEOAS of the entity
        /// </summary>
        [Output("links")]
        public Output<ImmutableArray<Outputs.AzureLink>> Links { get; private set; } = null!;

        /// <summary>
        /// A human-friendly name used as an identifier in APIs that support this option.
        /// </summary>
        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        /// <summary>
        /// The id of the organization this entity belongs to.
        /// </summary>
        [Output("organizationId")]
        public Output<string> OrganizationId { get; private set; } = null!;

        /// <summary>
        /// Indicates the caching mechanism for OS disk. Default policy for OS disks is Read/Write.
        /// </summary>
        [Output("osDiskCaching")]
        public Output<string> OsDiskCaching { get; private set; } = null!;

        /// <summary>
        /// Email of the user that owns the entity.
        /// </summary>
        [Output("owner")]
        public Output<string> Owner { get; private set; } = null!;

        /// <summary>
        /// A link to the region that is associated with the storage profile.
        /// </summary>
        [Output("regionId")]
        public Output<string> RegionId { get; private set; } = null!;

        /// <summary>
        /// Id of a storage account where in the disk is placed.
        /// </summary>
        [Output("storageAccountId")]
        public Output<string> StorageAccountId { get; private set; } = null!;

        /// <summary>
        /// Indicates whether this storage policy should support encryption or not.
        /// </summary>
        [Output("supportsEncryption")]
        public Output<bool> SupportsEncryption { get; private set; } = null!;

        /// <summary>
        /// A set of tag keys and optional values that were set on this Network Profile.
        /// example:[ { "key" : "ownedBy", "value": "Rainpole" } ]
        /// </summary>
        [Output("tags")]
        public Output<ImmutableArray<Outputs.AzureTag>> Tags { get; private set; } = null!;

        /// <summary>
        /// Date when the entity was last updated. The date is ISO 8601 and UTC.
        /// </summary>
        [Output("updatedAt")]
        public Output<string> UpdatedAt { get; private set; } = null!;


        /// <summary>
        /// Create a Azure 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 Azure(string name, AzureArgs args, CustomResourceOptions? options = null)
            : base("vra:storageprofile/azure:Azure", name, args ?? new AzureArgs(), MakeResourceOptions(options, ""))
        {
        }

        private Azure(string name, Input<string> id, AzureState? state = null, CustomResourceOptions? options = null)
            : base("vra:storageprofile/azure:Azure", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/pulumiverse",
            };
            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 Azure 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 Azure Get(string name, Input<string> id, AzureState? state = null, CustomResourceOptions? options = null)
        {
            return new Azure(name, id, state, options);
        }
    }

    public sealed class AzureArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Indicates the caching mechanism for additional disk.
        /// </summary>
        [Input("dataDiskCaching")]
        public Input<string>? DataDiskCaching { get; set; }

        /// <summary>
        /// Indicates if this storage profile is a default profile.
        /// </summary>
        [Input("defaultItem", required: true)]
        public Input<bool> DefaultItem { get; set; } = null!;

        /// <summary>
        /// A human-friendly description.
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        /// <summary>
        /// Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.
        /// </summary>
        [Input("diskType")]
        public Input<string>? DiskType { get; set; }

        /// <summary>
        /// A human-friendly name used as an identifier in APIs that support this option.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// Indicates the caching mechanism for OS disk. Default policy for OS disks is Read/Write.
        /// </summary>
        [Input("osDiskCaching")]
        public Input<string>? OsDiskCaching { get; set; }

        /// <summary>
        /// A link to the region that is associated with the storage profile.
        /// </summary>
        [Input("regionId", required: true)]
        public Input<string> RegionId { get; set; } = null!;

        /// <summary>
        /// Id of a storage account where in the disk is placed.
        /// </summary>
        [Input("storageAccountId")]
        public Input<string>? StorageAccountId { get; set; }

        /// <summary>
        /// Indicates whether this storage policy should support encryption or not.
        /// </summary>
        [Input("supportsEncryption")]
        public Input<bool>? SupportsEncryption { get; set; }

        [Input("tags")]
        private InputList<Inputs.AzureTagArgs>? _tags;

        /// <summary>
        /// A set of tag keys and optional values that were set on this Network Profile.
        /// example:[ { "key" : "ownedBy", "value": "Rainpole" } ]
        /// </summary>
        public InputList<Inputs.AzureTagArgs> Tags
        {
            get => _tags ?? (_tags = new InputList<Inputs.AzureTagArgs>());
            set => _tags = value;
        }

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

    public sealed class AzureState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Date when the entity was created. The date is in ISO 6801 and UTC.
        /// </summary>
        [Input("createdAt")]
        public Input<string>? CreatedAt { get; set; }

        /// <summary>
        /// Indicates the caching mechanism for additional disk.
        /// </summary>
        [Input("dataDiskCaching")]
        public Input<string>? DataDiskCaching { get; set; }

        /// <summary>
        /// Indicates if this storage profile is a default profile.
        /// </summary>
        [Input("defaultItem")]
        public Input<bool>? DefaultItem { get; set; }

        /// <summary>
        /// A human-friendly description.
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        /// <summary>
        /// Indicates the performance tier for the storage type. Premium disks are SSD backed and Standard disks are HDD backed.
        /// </summary>
        [Input("diskType")]
        public Input<string>? DiskType { get; set; }

        /// <summary>
        /// The id of the region as seen in the cloud provider for which this profile is defined.
        /// </summary>
        [Input("externalRegionId")]
        public Input<string>? ExternalRegionId { get; set; }

        [Input("links")]
        private InputList<Inputs.AzureLinkGetArgs>? _links;

        /// <summary>
        /// HATEOAS of the entity
        /// </summary>
        public InputList<Inputs.AzureLinkGetArgs> Links
        {
            get => _links ?? (_links = new InputList<Inputs.AzureLinkGetArgs>());
            set => _links = value;
        }

        /// <summary>
        /// A human-friendly name used as an identifier in APIs that support this option.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// The id of the organization this entity belongs to.
        /// </summary>
        [Input("organizationId")]
        public Input<string>? OrganizationId { get; set; }

        /// <summary>
        /// Indicates the caching mechanism for OS disk. Default policy for OS disks is Read/Write.
        /// </summary>
        [Input("osDiskCaching")]
        public Input<string>? OsDiskCaching { get; set; }

        /// <summary>
        /// Email of the user that owns the entity.
        /// </summary>
        [Input("owner")]
        public Input<string>? Owner { get; set; }

        /// <summary>
        /// A link to the region that is associated with the storage profile.
        /// </summary>
        [Input("regionId")]
        public Input<string>? RegionId { get; set; }

        /// <summary>
        /// Id of a storage account where in the disk is placed.
        /// </summary>
        [Input("storageAccountId")]
        public Input<string>? StorageAccountId { get; set; }

        /// <summary>
        /// Indicates whether this storage policy should support encryption or not.
        /// </summary>
        [Input("supportsEncryption")]
        public Input<bool>? SupportsEncryption { get; set; }

        [Input("tags")]
        private InputList<Inputs.AzureTagGetArgs>? _tags;

        /// <summary>
        /// A set of tag keys and optional values that were set on this Network Profile.
        /// example:[ { "key" : "ownedBy", "value": "Rainpole" } ]
        /// </summary>
        public InputList<Inputs.AzureTagGetArgs> Tags
        {
            get => _tags ?? (_tags = new InputList<Inputs.AzureTagGetArgs>());
            set => _tags = value;
        }

        /// <summary>
        /// Date when the entity was last updated. The date is ISO 8601 and UTC.
        /// </summary>
        [Input("updatedAt")]
        public Input<string>? UpdatedAt { get; set; }

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