// *** 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.Fortios
{
    /// <summary>
    /// This resource supports adding/deleting online FortiGate to/from FortiManager
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using System.Linq;
    /// using Pulumi;
    /// using Fortios = Pulumiverse.Fortios;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var test1 = new Fortios.FmgDevicemanagerDevice("test1", new()
    ///     {
    ///         DeviceName = "FGVM64-test",
    ///         Ipaddr = "192.168.88.101",
    ///         Password = "",
    ///         Userid = "admin",
    ///     });
    /// 
    /// });
    /// ```
    /// </summary>
    [FortiosResourceType("fortios:index/fmgDevicemanagerDevice:FmgDevicemanagerDevice")]
    public partial class FmgDevicemanagerDevice : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Name or ID of the ADOM where the command is to be executed on.
        /// </summary>
        [Output("adom")]
        public Output<string?> Adom { get; private set; } = null!;

        /// <summary>
        /// Fortigate's device name.
        /// </summary>
        [Output("deviceName")]
        public Output<string> DeviceName { get; private set; } = null!;

        /// <summary>
        /// Fortigate's ipaddress.
        /// </summary>
        [Output("ipaddr")]
        public Output<string> Ipaddr { get; private set; } = null!;

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

        /// <summary>
        /// User name.
        /// </summary>
        [Output("userid")]
        public Output<string> Userid { get; private set; } = null!;


        /// <summary>
        /// Create a FmgDevicemanagerDevice 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 FmgDevicemanagerDevice(string name, FmgDevicemanagerDeviceArgs args, CustomResourceOptions? options = null)
            : base("fortios:index/fmgDevicemanagerDevice:FmgDevicemanagerDevice", name, args ?? new FmgDevicemanagerDeviceArgs(), MakeResourceOptions(options, ""))
        {
        }

        private FmgDevicemanagerDevice(string name, Input<string> id, FmgDevicemanagerDeviceState? state = null, CustomResourceOptions? options = null)
            : base("fortios:index/fmgDevicemanagerDevice:FmgDevicemanagerDevice", 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/pulumi-fortios",
            };
            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 FmgDevicemanagerDevice 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 FmgDevicemanagerDevice Get(string name, Input<string> id, FmgDevicemanagerDeviceState? state = null, CustomResourceOptions? options = null)
        {
            return new FmgDevicemanagerDevice(name, id, state, options);
        }
    }

    public sealed class FmgDevicemanagerDeviceArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name or ID of the ADOM where the command is to be executed on.
        /// </summary>
        [Input("adom")]
        public Input<string>? Adom { get; set; }

        /// <summary>
        /// Fortigate's device name.
        /// </summary>
        [Input("deviceName", required: true)]
        public Input<string> DeviceName { get; set; } = null!;

        /// <summary>
        /// Fortigate's ipaddress.
        /// </summary>
        [Input("ipaddr", required: true)]
        public Input<string> Ipaddr { get; set; } = null!;

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

        /// <summary>
        /// User name.
        /// </summary>
        [Input("userid", required: true)]
        public Input<string> Userid { get; set; } = null!;

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

    public sealed class FmgDevicemanagerDeviceState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name or ID of the ADOM where the command is to be executed on.
        /// </summary>
        [Input("adom")]
        public Input<string>? Adom { get; set; }

        /// <summary>
        /// Fortigate's device name.
        /// </summary>
        [Input("deviceName")]
        public Input<string>? DeviceName { get; set; }

        /// <summary>
        /// Fortigate's ipaddress.
        /// </summary>
        [Input("ipaddr")]
        public Input<string>? Ipaddr { get; set; }

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

        /// <summary>
        /// User name.
        /// </summary>
        [Input("userid")]
        public Input<string>? Userid { get; set; }

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