<filename>sdk/dotnet/SystemLicenseVm.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.Fortios
{
    /// <summary>
    /// Provides a resource to update VM license using uploaded file for FortiOS. Reboots immediately if successful.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using System.Linq;
    /// using Pulumi;
    /// using Fortios = Pulumiverse.Fortios;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var test2 = new Fortios.SystemLicenseVm("test2", new()
    ///     {
    ///         FileContent = "949d1u22cbffbrarjh182eig55721odj",
    ///     });
    /// 
    /// });
    /// ```
    /// </summary>
    [FortiosResourceType("fortios:index/systemLicenseVm:SystemLicenseVm")]
    public partial class SystemLicenseVm : global::Pulumi.CustomResource
    {
        /// <summary>
        /// The license file, it needs to be base64 encoded, must not contain whitespace or other invalid base64 characters, and must be included in HTTP body.
        /// </summary>
        [Output("fileContent")]
        public Output<string> FileContent { get; private set; } = null!;


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

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

    public sealed class SystemLicenseVmArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The license file, it needs to be base64 encoded, must not contain whitespace or other invalid base64 characters, and must be included in HTTP body.
        /// </summary>
        [Input("fileContent", required: true)]
        public Input<string> FileContent { get; set; } = null!;

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

    public sealed class SystemLicenseVmState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The license file, it needs to be base64 encoded, must not contain whitespace or other invalid base64 characters, and must be included in HTTP body.
        /// </summary>
        [Input("fileContent")]
        public Input<string>? FileContent { get; set; }

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