// *** 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.Vcd
{
    public static class GetOrgGroup
    {
        public static Task<GetOrgGroupResult> InvokeAsync(GetOrgGroupArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetOrgGroupResult>("vcd:index/getOrgGroup:getOrgGroup", args ?? new GetOrgGroupArgs(), options.WithDefaults());

        public static Output<GetOrgGroupResult> Invoke(GetOrgGroupInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetOrgGroupResult>("vcd:index/getOrgGroup:getOrgGroup", args ?? new GetOrgGroupInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetOrgGroupArgs : global::Pulumi.InvokeArgs
    {
        [Input("name", required: true)]
        public string Name { get; set; } = null!;

        [Input("org")]
        public string? Org { get; set; }

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

    public sealed class GetOrgGroupInvokeArgs : global::Pulumi.InvokeArgs
    {
        [Input("name", required: true)]
        public Input<string> Name { get; set; } = null!;

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

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


    [OutputType]
    public sealed class GetOrgGroupResult
    {
        public readonly string Description;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string Name;
        public readonly string? Org;
        public readonly string ProviderType;
        public readonly string Role;
        public readonly ImmutableArray<string> UserNames;

        [OutputConstructor]
        private GetOrgGroupResult(
            string description,

            string id,

            string name,

            string? org,

            string providerType,

            string role,

            ImmutableArray<string> userNames)
        {
            Description = description;
            Id = id;
            Name = name;
            Org = org;
            ProviderType = providerType;
            Role = role;
            UserNames = userNames;
        }
    }
}
