// *** 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 PiersKarsenbarg.Nutanix
{
    public static class GetServiceGroups
    {
        public static Task<GetServiceGroupsResult> InvokeAsync(GetServiceGroupsArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetServiceGroupsResult>("nutanix:index/getServiceGroups:getServiceGroups", args ?? new GetServiceGroupsArgs(), options.WithDefaults());

        public static Output<GetServiceGroupsResult> Invoke(GetServiceGroupsInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetServiceGroupsResult>("nutanix:index/getServiceGroups:getServiceGroups", args ?? new GetServiceGroupsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetServiceGroupsArgs : Pulumi.InvokeArgs
    {
        [Input("metadatas")]
        private List<Inputs.GetServiceGroupsMetadataArgs>? _metadatas;
        public List<Inputs.GetServiceGroupsMetadataArgs> Metadatas
        {
            get => _metadatas ?? (_metadatas = new List<Inputs.GetServiceGroupsMetadataArgs>());
            set => _metadatas = value;
        }

        public GetServiceGroupsArgs()
        {
        }
    }

    public sealed class GetServiceGroupsInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("metadatas")]
        private InputList<Inputs.GetServiceGroupsMetadataInputArgs>? _metadatas;
        public InputList<Inputs.GetServiceGroupsMetadataInputArgs> Metadatas
        {
            get => _metadatas ?? (_metadatas = new InputList<Inputs.GetServiceGroupsMetadataInputArgs>());
            set => _metadatas = value;
        }

        public GetServiceGroupsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetServiceGroupsResult
    {
        public readonly ImmutableArray<Outputs.GetServiceGroupsEntityResult> Entities;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly ImmutableArray<Outputs.GetServiceGroupsMetadataResult> Metadatas;

        [OutputConstructor]
        private GetServiceGroupsResult(
            ImmutableArray<Outputs.GetServiceGroupsEntityResult> entities,

            string id,

            ImmutableArray<Outputs.GetServiceGroupsMetadataResult> metadatas)
        {
            Entities = entities;
            Id = id;
            Metadatas = metadatas;
        }
    }
}
