// *** 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 GetExternalNetworkV2
    {
        public static Task<GetExternalNetworkV2Result> InvokeAsync(GetExternalNetworkV2Args args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetExternalNetworkV2Result>("vcd:index/getExternalNetworkV2:getExternalNetworkV2", args ?? new GetExternalNetworkV2Args(), options.WithDefaults());

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


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

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

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

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


    [OutputType]
    public sealed class GetExternalNetworkV2Result
    {
        public readonly string Description;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly ImmutableArray<Outputs.GetExternalNetworkV2IpScopeResult> IpScopes;
        public readonly string Name;
        public readonly ImmutableArray<Outputs.GetExternalNetworkV2NsxtNetworkResult> NsxtNetworks;
        public readonly ImmutableArray<Outputs.GetExternalNetworkV2VsphereNetworkResult> VsphereNetworks;

        [OutputConstructor]
        private GetExternalNetworkV2Result(
            string description,

            string id,

            ImmutableArray<Outputs.GetExternalNetworkV2IpScopeResult> ipScopes,

            string name,

            ImmutableArray<Outputs.GetExternalNetworkV2NsxtNetworkResult> nsxtNetworks,

            ImmutableArray<Outputs.GetExternalNetworkV2VsphereNetworkResult> vsphereNetworks)
        {
            Description = description;
            Id = id;
            IpScopes = ipScopes;
            Name = name;
            NsxtNetworks = nsxtNetworks;
            VsphereNetworks = vsphereNetworks;
        }
    }
}
