<reponame>pierskarsenbarg/pulumi-nutanix<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>
    /// Provides a Nutanix Karbon Registry resource to Create a private registry entry in Karbon.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Nutanix = PiersKarsenbarg.Nutanix;
    /// using Nutanix = Pulumi.Nutanix;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var registries = Output.Create(Nutanix.GetKarbonPrivateRegistry.InvokeAsync());
    ///         var registry = new Nutanix.KarbonPrivateRegistry("registry", new Nutanix.KarbonPrivateRegistryArgs
    ///         {
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// </summary>
    [NutanixResourceType("nutanix:index/karbonPrivateRegistry:KarbonPrivateRegistry")]
    public partial class KarbonPrivateRegistry : Pulumi.CustomResource
    {
        [Output("cert")]
        public Output<string?> Cert { get; private set; } = null!;

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

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

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

        [Output("port")]
        public Output<int> Port { get; private set; } = null!;

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

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


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

        private KarbonPrivateRegistry(string name, Input<string> id, KarbonPrivateRegistryState? state = null, CustomResourceOptions? options = null)
            : base("nutanix:index/karbonPrivateRegistry:KarbonPrivateRegistry", name, state, MakeResourceOptions(options, id))
        {
        }

        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;
        }
        /// <summary>
        /// Get an existing KarbonPrivateRegistry 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 KarbonPrivateRegistry Get(string name, Input<string> id, KarbonPrivateRegistryState? state = null, CustomResourceOptions? options = null)
        {
            return new KarbonPrivateRegistry(name, id, state, options);
        }
    }

    public sealed class KarbonPrivateRegistryArgs : Pulumi.ResourceArgs
    {
        [Input("cert")]
        public Input<string>? Cert { get; set; }

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

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

        [Input("port", required: true)]
        public Input<int> Port { get; set; } = null!;

        [Input("url", required: true)]
        public Input<string> Url { get; set; } = null!;

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

        public KarbonPrivateRegistryArgs()
        {
        }
    }

    public sealed class KarbonPrivateRegistryState : Pulumi.ResourceArgs
    {
        [Input("cert")]
        public Input<string>? Cert { get; set; }

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

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

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

        [Input("port")]
        public Input<int>? Port { get; set; }

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

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

        public KarbonPrivateRegistryState()
        {
        }
    }
}
