<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;
using Pulumi;

namespace PiersKarsenbarg.Nutanix
{
    /// <summary>
    /// The provider type for the nutanix package. By default, resources use package-wide configuration
    /// settings, however an explicit `Provider` instance may be created and passed during resource
    /// construction to achieve fine-grained programmatic control over provider settings. See the
    /// [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
    /// </summary>
    [NutanixResourceType("pulumi:providers:nutanix")]
    public partial class Provider : Pulumi.ProviderResource
    {
        /// <summary>
        /// URL for Nutanix Prism (e.g IP or FQDN for cluster VIP note, this is never the data services VIP, and should not be an
        /// individual CVM address, as this would cause calls to fail during cluster lifecycle management operations, such as AOS
        /// upgrades.
        /// </summary>
        [Output("endpoint")]
        public Output<string?> Endpoint { get; private set; } = null!;

        /// <summary>
        /// endpoint for foundation VM (eg. Foundation VM IP)
        /// </summary>
        [Output("foundationEndpoint")]
        public Output<string?> FoundationEndpoint { get; private set; } = null!;

        /// <summary>
        /// Port for foundation VM
        /// </summary>
        [Output("foundationPort")]
        public Output<string?> FoundationPort { get; private set; } = null!;

        /// <summary>
        /// Password for provided user name.
        /// </summary>
        [Output("password")]
        public Output<string?> Password { get; private set; } = null!;

        /// <summary>
        /// Port for Nutanix Prism.
        /// </summary>
        [Output("port")]
        public Output<string?> Port { get; private set; } = null!;

        [Output("proxyUrl")]
        public Output<string?> ProxyUrl { get; private set; } = null!;

        /// <summary>
        /// User name for Nutanix Prism. Could be local cluster auth (e.g. 'admin') or directory auth.
        /// </summary>
        [Output("username")]
        public Output<string?> Username { get; private set; } = null!;


        /// <summary>
        /// Create a Provider 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 Provider(string name, ProviderArgs? args = null, CustomResourceOptions? options = null)
            : base("nutanix", name, args ?? new ProviderArgs(), MakeResourceOptions(options, ""))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "https://github.com/pierskarsenbarg/pulumi-nutanix/releases/download/${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;
        }
    }

    public sealed class ProviderArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// URL for Nutanix Prism (e.g IP or FQDN for cluster VIP note, this is never the data services VIP, and should not be an
        /// individual CVM address, as this would cause calls to fail during cluster lifecycle management operations, such as AOS
        /// upgrades.
        /// </summary>
        [Input("endpoint")]
        public Input<string>? Endpoint { get; set; }

        /// <summary>
        /// endpoint for foundation VM (eg. Foundation VM IP)
        /// </summary>
        [Input("foundationEndpoint")]
        public Input<string>? FoundationEndpoint { get; set; }

        /// <summary>
        /// Port for foundation VM
        /// </summary>
        [Input("foundationPort")]
        public Input<string>? FoundationPort { get; set; }

        /// <summary>
        /// Explicitly allow the provider to perform "insecure" SSL requests. If omitted,default value is `false`
        /// </summary>
        [Input("insecure", json: true)]
        public Input<bool>? Insecure { get; set; }

        /// <summary>
        /// Password for provided user name.
        /// </summary>
        [Input("password")]
        public Input<string>? Password { get; set; }

        /// <summary>
        /// Port for Nutanix Prism.
        /// </summary>
        [Input("port")]
        public Input<string>? Port { get; set; }

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

        /// <summary>
        /// Use session authentification instead of basic auth for each request
        /// </summary>
        [Input("sessionAuth", json: true)]
        public Input<bool>? SessionAuth { get; set; }

        /// <summary>
        /// User name for Nutanix Prism. Could be local cluster auth (e.g. 'admin') or directory auth.
        /// </summary>
        [Input("username")]
        public Input<string>? Username { get; set; }

        /// <summary>
        /// Set if you know that the creation o update of a resource may take long time (minutes)
        /// </summary>
        [Input("waitTimeout", json: true)]
        public Input<int>? WaitTimeout { get; set; }

        public ProviderArgs()
        {
        }
    }
}
