<filename>sdk/dotnet/ExternalNetwork.cs<gh_stars>0// *** 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
{
    [VcdResourceType("vcd:index/externalNetwork:ExternalNetwork")]
    public partial class ExternalNetwork : global::Pulumi.CustomResource
    {
        [Output("description")]
        public Output<string?> Description { get; private set; } = null!;

        /// <summary>
        /// A list of IP scopes for the network
        /// </summary>
        [Output("ipScopes")]
        public Output<ImmutableArray<Outputs.ExternalNetworkIpScope>> IpScopes { get; private set; } = null!;

        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        /// <summary>
        /// Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Default is false.
        /// </summary>
        [Output("retainNetInfoAcrossDeployments")]
        public Output<bool?> RetainNetInfoAcrossDeployments { get; private set; } = null!;

        /// <summary>
        /// A list of port groups that back this network. Each referenced DV_PORTGROUP or NETWORK must exist on a vCenter server
        /// registered with the system.
        /// </summary>
        [Output("vsphereNetworks")]
        public Output<ImmutableArray<Outputs.ExternalNetworkVsphereNetwork>> VsphereNetworks { get; private set; } = null!;


        /// <summary>
        /// Create a ExternalNetwork resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public ExternalNetwork(string name, ExternalNetworkArgs args, CustomResourceOptions? options = null)
            : base("vcd:index/externalNetwork:ExternalNetwork", name, args ?? new ExternalNetworkArgs(), MakeResourceOptions(options, ""))
        {
        }

        private ExternalNetwork(string name, Input<string> id, ExternalNetworkState? state = null, CustomResourceOptions? options = null)
            : base("vcd:index/externalNetwork:ExternalNetwork", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing ExternalNetwork resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static ExternalNetwork Get(string name, Input<string> id, ExternalNetworkState? state = null, CustomResourceOptions? options = null)
        {
            return new ExternalNetwork(name, id, state, options);
        }
    }

    public sealed class ExternalNetworkArgs : global::Pulumi.ResourceArgs
    {
        [Input("description")]
        public Input<string>? Description { get; set; }

        [Input("ipScopes", required: true)]
        private InputList<Inputs.ExternalNetworkIpScopeArgs>? _ipScopes;

        /// <summary>
        /// A list of IP scopes for the network
        /// </summary>
        public InputList<Inputs.ExternalNetworkIpScopeArgs> IpScopes
        {
            get => _ipScopes ?? (_ipScopes = new InputList<Inputs.ExternalNetworkIpScopeArgs>());
            set => _ipScopes = value;
        }

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

        /// <summary>
        /// Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Default is false.
        /// </summary>
        [Input("retainNetInfoAcrossDeployments")]
        public Input<bool>? RetainNetInfoAcrossDeployments { get; set; }

        [Input("vsphereNetworks", required: true)]
        private InputList<Inputs.ExternalNetworkVsphereNetworkArgs>? _vsphereNetworks;

        /// <summary>
        /// A list of port groups that back this network. Each referenced DV_PORTGROUP or NETWORK must exist on a vCenter server
        /// registered with the system.
        /// </summary>
        public InputList<Inputs.ExternalNetworkVsphereNetworkArgs> VsphereNetworks
        {
            get => _vsphereNetworks ?? (_vsphereNetworks = new InputList<Inputs.ExternalNetworkVsphereNetworkArgs>());
            set => _vsphereNetworks = value;
        }

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

    public sealed class ExternalNetworkState : global::Pulumi.ResourceArgs
    {
        [Input("description")]
        public Input<string>? Description { get; set; }

        [Input("ipScopes")]
        private InputList<Inputs.ExternalNetworkIpScopeGetArgs>? _ipScopes;

        /// <summary>
        /// A list of IP scopes for the network
        /// </summary>
        public InputList<Inputs.ExternalNetworkIpScopeGetArgs> IpScopes
        {
            get => _ipScopes ?? (_ipScopes = new InputList<Inputs.ExternalNetworkIpScopeGetArgs>());
            set => _ipScopes = value;
        }

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

        /// <summary>
        /// Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Default is false.
        /// </summary>
        [Input("retainNetInfoAcrossDeployments")]
        public Input<bool>? RetainNetInfoAcrossDeployments { get; set; }

        [Input("vsphereNetworks")]
        private InputList<Inputs.ExternalNetworkVsphereNetworkGetArgs>? _vsphereNetworks;

        /// <summary>
        /// A list of port groups that back this network. Each referenced DV_PORTGROUP or NETWORK must exist on a vCenter server
        /// registered with the system.
        /// </summary>
        public InputList<Inputs.ExternalNetworkVsphereNetworkGetArgs> VsphereNetworks
        {
            get => _vsphereNetworks ?? (_vsphereNetworks = new InputList<Inputs.ExternalNetworkVsphereNetworkGetArgs>());
            set => _vsphereNetworks = value;
        }

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