<filename>sdk/dotnet/Sqlserver/Backups.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;

namespace Pulumi.Tctest.Sqlserver
{
    public static class Backups
    {
        public static Task<BackupsResult> InvokeAsync(BackupsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<BackupsResult>("tctest:Sqlserver/backups:Backups", args ?? new BackupsArgs(), options.WithDefaults());

        public static Output<BackupsResult> Invoke(BackupsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<BackupsResult>("tctest:Sqlserver/backups:Backups", args ?? new BackupsInvokeArgs(), options.WithDefaults());
    }


    public sealed class BackupsArgs : Pulumi.InvokeArgs
    {
        [Input("endTime", required: true)]
        public string EndTime { get; set; } = null!;

        [Input("instanceId", required: true)]
        public string InstanceId { get; set; } = null!;

        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        [Input("startTime", required: true)]
        public string StartTime { get; set; } = null!;

        public BackupsArgs()
        {
        }
    }

    public sealed class BackupsInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("endTime", required: true)]
        public Input<string> EndTime { get; set; } = null!;

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

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

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

        public BackupsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class BackupsResult
    {
        public readonly string EndTime;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string InstanceId;
        public readonly ImmutableArray<Outputs.BackupsListResult> Lists;
        public readonly string? ResultOutputFile;
        public readonly string StartTime;

        [OutputConstructor]
        private BackupsResult(
            string endTime,

            string id,

            string instanceId,

            ImmutableArray<Outputs.BackupsListResult> lists,

            string? resultOutputFile,

            string startTime)
        {
            EndTime = endTime;
            Id = id;
            InstanceId = instanceId;
            Lists = lists;
            ResultOutputFile = resultOutputFile;
            StartTime = startTime;
        }
    }
}
