<reponame>Dwonczykj/gember_deploy// *** 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 TencentCloudIAC.PulumiPackage.Tencentcloud.Kubernetes
{
    public static class GetAvailableClusterVersions
    {
        /// <summary>
        /// Use this data source to query detailed information of kubernetes available_cluster_versions
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var queryById = Output.Create(Tencentcloud.Kubernetes.GetAvailableClusterVersions.InvokeAsync(new Tencentcloud.Kubernetes.GetAvailableClusterVersionsArgs
        ///         {
        ///             ClusterId = "xxx",
        ///         }));
        ///         this.VersionsId = queryById.Apply(queryById =&gt; queryById.Versions);
        ///         var queryByIds = Output.Create(Tencentcloud.Kubernetes.GetAvailableClusterVersions.InvokeAsync(new Tencentcloud.Kubernetes.GetAvailableClusterVersionsArgs
        ///         {
        ///             ClusterIds = 
        ///             {
        ///                 "xxx",
        ///             },
        ///         }));
        ///         this.VersionsIds = queryByIds.Apply(queryByIds =&gt; queryByIds.Clusters);
        ///     }
        /// 
        ///     [Output("versionsId")]
        ///     public Output&lt;string&gt; VersionsId { get; set; }
        ///     [Output("versionsIds")]
        ///     public Output&lt;string&gt; VersionsIds { get; set; }
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetAvailableClusterVersionsResult> InvokeAsync(GetAvailableClusterVersionsArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetAvailableClusterVersionsResult>("tencentcloud:Kubernetes/getAvailableClusterVersions:getAvailableClusterVersions", args ?? new GetAvailableClusterVersionsArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of kubernetes available_cluster_versions
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var queryById = Output.Create(Tencentcloud.Kubernetes.GetAvailableClusterVersions.InvokeAsync(new Tencentcloud.Kubernetes.GetAvailableClusterVersionsArgs
        ///         {
        ///             ClusterId = "xxx",
        ///         }));
        ///         this.VersionsId = queryById.Apply(queryById =&gt; queryById.Versions);
        ///         var queryByIds = Output.Create(Tencentcloud.Kubernetes.GetAvailableClusterVersions.InvokeAsync(new Tencentcloud.Kubernetes.GetAvailableClusterVersionsArgs
        ///         {
        ///             ClusterIds = 
        ///             {
        ///                 "xxx",
        ///             },
        ///         }));
        ///         this.VersionsIds = queryByIds.Apply(queryByIds =&gt; queryByIds.Clusters);
        ///     }
        /// 
        ///     [Output("versionsId")]
        ///     public Output&lt;string&gt; VersionsId { get; set; }
        ///     [Output("versionsIds")]
        ///     public Output&lt;string&gt; VersionsIds { get; set; }
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetAvailableClusterVersionsResult> Invoke(GetAvailableClusterVersionsInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetAvailableClusterVersionsResult>("tencentcloud:Kubernetes/getAvailableClusterVersions:getAvailableClusterVersions", args ?? new GetAvailableClusterVersionsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetAvailableClusterVersionsArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Cluster Id.
        /// </summary>
        [Input("clusterId")]
        public string? ClusterId { get; set; }

        [Input("clusterIds")]
        private List<string>? _clusterIds;

        /// <summary>
        /// list of cluster IDs.
        /// </summary>
        public List<string> ClusterIds
        {
            get => _clusterIds ?? (_clusterIds = new List<string>());
            set => _clusterIds = value;
        }

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        public GetAvailableClusterVersionsArgs()
        {
        }
    }

    public sealed class GetAvailableClusterVersionsInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Cluster Id.
        /// </summary>
        [Input("clusterId")]
        public Input<string>? ClusterId { get; set; }

        [Input("clusterIds")]
        private InputList<string>? _clusterIds;

        /// <summary>
        /// list of cluster IDs.
        /// </summary>
        public InputList<string> ClusterIds
        {
            get => _clusterIds ?? (_clusterIds = new InputList<string>());
            set => _clusterIds = value;
        }

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public Input<string>? ResultOutputFile { get; set; }

        public GetAvailableClusterVersionsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetAvailableClusterVersionsResult
    {
        /// <summary>
        /// Cluster ID.
        /// </summary>
        public readonly string? ClusterId;
        public readonly ImmutableArray<string> ClusterIds;
        /// <summary>
        /// cluster information. Note: This field may return null, indicating that no valid value can be obtained.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetAvailableClusterVersionsClusterResult> Clusters;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? ResultOutputFile;
        /// <summary>
        /// Upgradable cluster version number. Note: This field may return null, indicating that no valid value can be obtained.
        /// </summary>
        public readonly ImmutableArray<string> Versions;

        [OutputConstructor]
        private GetAvailableClusterVersionsResult(
            string? clusterId,

            ImmutableArray<string> clusterIds,

            ImmutableArray<Outputs.GetAvailableClusterVersionsClusterResult> clusters,

            string id,

            string? resultOutputFile,

            ImmutableArray<string> versions)
        {
            ClusterId = clusterId;
            ClusterIds = clusterIds;
            Clusters = clusters;
            Id = id;
            ResultOutputFile = resultOutputFile;
            Versions = versions;
        }
    }
}
