<reponame>lbrlabs/pulumi-ovh// *** 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 Lbrlabs.PulumiPackage.Ovh.Vrack
{
    /// <summary>
    /// &gt; **NOTE:** The resource `ovh.Vrack.DedicatedServer` is DEPRECATED and will be removed in a future version.
    /// Use the resource `ovh.Vrack.DedicatedServerInterface` instead.
    /// 
    /// Attach a dedicated server to a VRack.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using System.Linq;
    /// using Pulumi;
    /// using Ovh = Lbrlabs.PulumiPackage.Ovh;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var vds = new Ovh.Vrack.DedicatedServer("vds", new()
    ///     {
    ///         ServerId = "67890",
    ///         ServiceName = "XXXX",
    ///     });
    /// 
    /// });
    /// ```
    /// </summary>
    [OvhResourceType("ovh:Vrack/dedicatedServer:DedicatedServer")]
    public partial class DedicatedServer : global::Pulumi.CustomResource
    {
        /// <summary>
        /// The id of the dedicated server.
        /// </summary>
        [Output("serverId")]
        public Output<string> ServerId { get; private set; } = null!;

        /// <summary>
        /// The service name of the vrack. If omitted,
        /// the `OVH_VRACK_SERVICE` environment variable is used.
        /// </summary>
        [Output("serviceName")]
        public Output<string> ServiceName { get; private set; } = null!;


        /// <summary>
        /// Create a DedicatedServer 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 DedicatedServer(string name, DedicatedServerArgs args, CustomResourceOptions? options = null)
            : base("ovh:Vrack/dedicatedServer:DedicatedServer", name, args ?? new DedicatedServerArgs(), MakeResourceOptions(options, ""))
        {
        }

        private DedicatedServer(string name, Input<string> id, DedicatedServerState? state = null, CustomResourceOptions? options = null)
            : base("ovh:Vrack/dedicatedServer:DedicatedServer", 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/lbrlabs",
            };
            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 DedicatedServer 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 DedicatedServer Get(string name, Input<string> id, DedicatedServerState? state = null, CustomResourceOptions? options = null)
        {
            return new DedicatedServer(name, id, state, options);
        }
    }

    public sealed class DedicatedServerArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The id of the dedicated server.
        /// </summary>
        [Input("serverId", required: true)]
        public Input<string> ServerId { get; set; } = null!;

        /// <summary>
        /// The service name of the vrack. If omitted,
        /// the `OVH_VRACK_SERVICE` environment variable is used.
        /// </summary>
        [Input("serviceName", required: true)]
        public Input<string> ServiceName { get; set; } = null!;

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

    public sealed class DedicatedServerState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The id of the dedicated server.
        /// </summary>
        [Input("serverId")]
        public Input<string>? ServerId { get; set; }

        /// <summary>
        /// The service name of the vrack. If omitted,
        /// the `OVH_VRACK_SERVICE` environment variable is used.
        /// </summary>
        [Input("serviceName")]
        public Input<string>? ServiceName { get; set; }

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