// *** 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.Cloud
{
    public static class TCRNamespaces
    {
        public static Task<TCRNamespacesResult> InvokeAsync(TCRNamespacesArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<TCRNamespacesResult>("tctest:Cloud/tCRNamespaces:TCRNamespaces", args ?? new TCRNamespacesArgs(), options.WithDefaults());

        public static Output<TCRNamespacesResult> Invoke(TCRNamespacesInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<TCRNamespacesResult>("tctest:Cloud/tCRNamespaces:TCRNamespaces", args ?? new TCRNamespacesInvokeArgs(), options.WithDefaults());
    }


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

        [Input("namespaceName")]
        public string? NamespaceName { get; set; }

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

        public TCRNamespacesArgs()
        {
        }
    }

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

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

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

        public TCRNamespacesInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class TCRNamespacesResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string InstanceId;
        public readonly ImmutableArray<Outputs.TCRNamespacesNamespaceListResult> NamespaceLists;
        public readonly string? NamespaceName;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private TCRNamespacesResult(
            string id,

            string instanceId,

            ImmutableArray<Outputs.TCRNamespacesNamespaceListResult> namespaceLists,

            string? namespaceName,

            string? resultOutputFile)
        {
            Id = id;
            InstanceId = instanceId;
            NamespaceLists = namespaceLists;
            NamespaceName = namespaceName;
            ResultOutputFile = resultOutputFile;
        }
    }
}
