<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;

namespace Pulumi.AliCloud.Oos
{
    public static class GetPatchBaselines
    {
        /// <summary>
        /// This data source provides the Oos Patch Baselines of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.146.0+.
        /// </summary>
        public static Task<GetPatchBaselinesResult> InvokeAsync(GetPatchBaselinesArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetPatchBaselinesResult>("alicloud:oos/getPatchBaselines:getPatchBaselines", args ?? new GetPatchBaselinesArgs(), options.WithDefaults());

        /// <summary>
        /// This data source provides the Oos Patch Baselines of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.146.0+.
        /// </summary>
        public static Output<GetPatchBaselinesResult> Invoke(GetPatchBaselinesInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetPatchBaselinesResult>("alicloud:oos/getPatchBaselines:getPatchBaselines", args ?? new GetPatchBaselinesInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetPatchBaselinesArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Default to `false`. Set it to `true` can output more details about resource attributes.
        /// </summary>
        [Input("enableDetails")]
        public bool? EnableDetails { get; set; }

        [Input("ids")]
        private List<string>? _ids;

        /// <summary>
        /// A list of Patch Baseline IDs. Its element value is same as Patch Baseline Name.
        /// </summary>
        public List<string> Ids
        {
            get => _ids ?? (_ids = new List<string>());
            set => _ids = value;
        }

        /// <summary>
        /// A regex string to filter results by Patch Baseline name.
        /// </summary>
        [Input("nameRegex")]
        public string? NameRegex { get; set; }

        /// <summary>
        /// Operating system type.
        /// </summary>
        [Input("operationSystem")]
        public string? OperationSystem { get; set; }

        [Input("outputFile")]
        public string? OutputFile { get; set; }

        /// <summary>
        /// Patch baseline sharing type.
        /// </summary>
        [Input("shareType")]
        public string? ShareType { get; set; }

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

    public sealed class GetPatchBaselinesInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Default to `false`. Set it to `true` can output more details about resource attributes.
        /// </summary>
        [Input("enableDetails")]
        public Input<bool>? EnableDetails { get; set; }

        [Input("ids")]
        private InputList<string>? _ids;

        /// <summary>
        /// A list of Patch Baseline IDs. Its element value is same as Patch Baseline Name.
        /// </summary>
        public InputList<string> Ids
        {
            get => _ids ?? (_ids = new InputList<string>());
            set => _ids = value;
        }

        /// <summary>
        /// A regex string to filter results by Patch Baseline name.
        /// </summary>
        [Input("nameRegex")]
        public Input<string>? NameRegex { get; set; }

        /// <summary>
        /// Operating system type.
        /// </summary>
        [Input("operationSystem")]
        public Input<string>? OperationSystem { get; set; }

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

        /// <summary>
        /// Patch baseline sharing type.
        /// </summary>
        [Input("shareType")]
        public Input<string>? ShareType { get; set; }

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


    [OutputType]
    public sealed class GetPatchBaselinesResult
    {
        public readonly ImmutableArray<Outputs.GetPatchBaselinesBaselineResult> Baselines;
        public readonly bool? EnableDetails;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly ImmutableArray<string> Ids;
        public readonly string? NameRegex;
        public readonly ImmutableArray<string> Names;
        public readonly string? OperationSystem;
        public readonly string? OutputFile;
        public readonly string? ShareType;

        [OutputConstructor]
        private GetPatchBaselinesResult(
            ImmutableArray<Outputs.GetPatchBaselinesBaselineResult> baselines,

            bool? enableDetails,

            string id,

            ImmutableArray<string> ids,

            string? nameRegex,

            ImmutableArray<string> names,

            string? operationSystem,

            string? outputFile,

            string? shareType)
        {
            Baselines = baselines;
            EnableDetails = enableDetails;
            Id = id;
            Ids = ids;
            NameRegex = nameRegex;
            Names = names;
            OperationSystem = operationSystem;
            OutputFile = outputFile;
            ShareType = shareType;
        }
    }
}
