"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.VmwareAdminCluster = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * A Google VMware Admin Cluster.
 *
 * To get more information about VmwareAdminCluster, see:
 *
 * * [API documentation](https://cloud.google.com/kubernetes-engine/distributed-cloud/reference/on-prem-api/rest/v1/projects.locations.vmwareAdminClusters)
 *
 * ## Example Usage
 *
 * ### Gkeonprem Vmware Admin Cluster Basic
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const admin_cluster_basic = new gcp.gkeonprem.VmwareAdminCluster("admin-cluster-basic", {
 *     name: "basic",
 *     location: "us-west1",
 *     description: "test admin cluster",
 *     bootstrapClusterMembership: "projects/870316890899/locations/global/memberships/gkeonprem-terraform-test",
 *     onPremVersion: "1.31.0-gke.35",
 *     imageType: "ubuntu_containerd",
 *     vcenter: {
 *         resourcePool: "test resource pool",
 *         datastore: "test data store",
 *         datacenter: "test data center",
 *         cluster: "test cluster",
 *         folder: "test folder",
 *         caCertData: "test ca cert data",
 *         address: "10.0.0.1",
 *         dataDisk: "test data disk",
 *     },
 *     networkConfig: {
 *         serviceAddressCidrBlocks: ["10.96.0.0/12"],
 *         podAddressCidrBlocks: ["192.168.0.0/16"],
 *         dhcpIpConfig: {
 *             enabled: true,
 *         },
 *     },
 *     controlPlaneNode: {
 *         cpus: 4,
 *         memory: 8192,
 *     },
 *     loadBalancer: {
 *         vipConfig: {
 *             controlPlaneVip: "10.251.133.5",
 *             addonsVip: "10.251.135.19",
 *         },
 *         f5Config: {
 *             address: "10.251.135.22",
 *             partition: "test-parition",
 *             snatPool: "test-snat-pool",
 *         },
 *     },
 *     privateRegistryConfig: {
 *         address: "test-address",
 *         caCert: "test-ca-cert",
 *     },
 * });
 * ```
 * ### Gkeonprem Vmware Admin Cluster Full
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const admin_cluster_full = new gcp.gkeonprem.VmwareAdminCluster("admin-cluster-full", {
 *     name: "full",
 *     location: "us-west1",
 *     description: "test admin cluster",
 *     bootstrapClusterMembership: "projects/870316890899/locations/global/memberships/gkeonprem-terraform-test",
 *     onPremVersion: "1.31.0-gke.35",
 *     imageType: "ubuntu_containerd",
 *     annotations: {},
 *     vcenter: {
 *         resourcePool: "test resource pool",
 *         datastore: "test data store",
 *         datacenter: "test data center",
 *         cluster: "test cluster",
 *         folder: "test folder",
 *         caCertData: "test ca cert data",
 *         address: "10.0.0.1",
 *         dataDisk: "test data disk",
 *         storagePolicyName: "storage_policy_name",
 *     },
 *     networkConfig: {
 *         serviceAddressCidrBlocks: ["10.96.0.0/12"],
 *         podAddressCidrBlocks: ["192.168.0.0/16"],
 *         haControlPlaneConfig: {
 *             controlPlaneIpBlock: {
 *                 gateway: "10.0.0.3",
 *                 ips: [{
 *                     hostname: "hostname",
 *                     ip: "10.0.0.4",
 *                 }],
 *                 netmask: "10.0.0.3/32",
 *             },
 *         },
 *         hostConfig: {
 *             dnsServers: ["10.254.41.1"],
 *             ntpServers: ["216.239.35.8"],
 *             dnsSearchDomains: ["test-domain"],
 *         },
 *         staticIpConfig: {
 *             ipBlocks: [{
 *                 gateway: "10.0.0.1",
 *                 ips: [{
 *                     hostname: "hostname",
 *                     ip: "10.0.0.2",
 *                 }],
 *                 netmask: "10.0.0.3/32",
 *             }],
 *         },
 *         vcenterNetwork: "test-vcenter-network",
 *     },
 *     controlPlaneNode: {
 *         cpus: 4,
 *         memory: 8192,
 *         replicas: 3,
 *     },
 *     loadBalancer: {
 *         vipConfig: {
 *             controlPlaneVip: "10.251.133.5",
 *             addonsVip: "10.251.135.19",
 *         },
 *         manualLbConfig: {
 *             addonsNodePort: 30005,
 *             controlPlaneNodePort: 30006,
 *             ingressHttpNodePort: 30007,
 *             ingressHttpsNodePort: 30008,
 *             konnectivityServerNodePort: 30009,
 *         },
 *     },
 *     addonNode: {
 *         autoResizeConfig: {
 *             enabled: true,
 *         },
 *     },
 *     antiAffinityGroups: {
 *         aagConfigDisabled: true,
 *     },
 *     authorization: {
 *         viewerUsers: [{
 *             username: "user1@gmail.com",
 *         }],
 *     },
 *     autoRepairConfig: {
 *         enabled: true,
 *     },
 *     platformConfig: {
 *         requiredPlatformVersion: "1.31.0",
 *     },
 *     privateRegistryConfig: {
 *         address: "test-address",
 *         caCert: "test-ca-cert",
 *     },
 *     proxy: {
 *         url: "http://my-proxy.example.local:80",
 *         noProxy: "10.151.222.0/24,my-host.example.local,10.151.2.1",
 *     },
 * });
 * ```
 * ### Gkeonprem Vmware Admin Cluster Metallb
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const admin_cluster_metallb = new gcp.gkeonprem.VmwareAdminCluster("admin-cluster-metallb", {
 *     name: "metallb",
 *     location: "us-west1",
 *     description: "test admin cluster",
 *     bootstrapClusterMembership: "projects/870316890899/locations/global/memberships/gkeonprem-terraform-test",
 *     onPremVersion: "1.33.0-gke.35",
 *     imageType: "ubuntu_containerd",
 *     enableAdvancedCluster: true,
 *     vcenter: {
 *         resourcePool: "test resource pool",
 *         datastore: "test data store",
 *         datacenter: "test data center",
 *         cluster: "test cluster",
 *         folder: "test folder",
 *         caCertData: "test ca cert data",
 *         address: "10.0.0.1",
 *         dataDisk: "test data disk",
 *     },
 *     networkConfig: {
 *         serviceAddressCidrBlocks: ["10.96.0.0/12"],
 *         podAddressCidrBlocks: ["192.168.0.0/16"],
 *         dhcpIpConfig: {
 *             enabled: true,
 *         },
 *     },
 *     controlPlaneNode: {
 *         cpus: 4,
 *         memory: 8192,
 *     },
 *     loadBalancer: {
 *         vipConfig: {
 *             controlPlaneVip: "10.251.133.5",
 *             addonsVip: "10.251.135.19",
 *         },
 *         metalLbConfig: {
 *             enabled: true,
 *         },
 *     },
 *     privateRegistryConfig: {
 *         address: "test-address",
 *         caCert: "test-ca-cert",
 *     },
 *     proxy: {
 *         url: "http://my-proxy.example.local:80",
 *         noProxy: "10.151.222.0/24,my-host.example.local,10.151.2.1",
 *     },
 * });
 * ```
 *
 * ## Import
 *
 * VmwareAdminCluster can be imported using any of these accepted formats:
 *
 * * `projects/{{project}}/locations/{{location}}/vmwareAdminClusters/{{name}}`
 *
 * * `{{project}}/{{location}}/{{name}}`
 *
 * * `{{location}}/{{name}}`
 *
 * When using the `pulumi import` command, VmwareAdminCluster can be imported using one of the formats above. For example:
 *
 * ```sh
 * $ pulumi import gcp:gkeonprem/vmwareAdminCluster:VmwareAdminCluster default projects/{{project}}/locations/{{location}}/vmwareAdminClusters/{{name}}
 * ```
 *
 * ```sh
 * $ pulumi import gcp:gkeonprem/vmwareAdminCluster:VmwareAdminCluster default {{project}}/{{location}}/{{name}}
 * ```
 *
 * ```sh
 * $ pulumi import gcp:gkeonprem/vmwareAdminCluster:VmwareAdminCluster default {{location}}/{{name}}
 * ```
 */
class VmwareAdminCluster extends pulumi.CustomResource {
    /**
     * Get an existing VmwareAdminCluster resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, state, opts) {
        return new VmwareAdminCluster(name, state, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of VmwareAdminCluster.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === VmwareAdminCluster.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["addonNode"] = state?.addonNode;
            resourceInputs["annotations"] = state?.annotations;
            resourceInputs["antiAffinityGroups"] = state?.antiAffinityGroups;
            resourceInputs["authorization"] = state?.authorization;
            resourceInputs["autoRepairConfig"] = state?.autoRepairConfig;
            resourceInputs["bootstrapClusterMembership"] = state?.bootstrapClusterMembership;
            resourceInputs["controlPlaneNode"] = state?.controlPlaneNode;
            resourceInputs["createTime"] = state?.createTime;
            resourceInputs["description"] = state?.description;
            resourceInputs["effectiveAnnotations"] = state?.effectiveAnnotations;
            resourceInputs["enableAdvancedCluster"] = state?.enableAdvancedCluster;
            resourceInputs["endpoint"] = state?.endpoint;
            resourceInputs["etag"] = state?.etag;
            resourceInputs["fleets"] = state?.fleets;
            resourceInputs["imageType"] = state?.imageType;
            resourceInputs["loadBalancer"] = state?.loadBalancer;
            resourceInputs["localName"] = state?.localName;
            resourceInputs["location"] = state?.location;
            resourceInputs["name"] = state?.name;
            resourceInputs["networkConfig"] = state?.networkConfig;
            resourceInputs["onPremVersion"] = state?.onPremVersion;
            resourceInputs["platformConfig"] = state?.platformConfig;
            resourceInputs["privateRegistryConfig"] = state?.privateRegistryConfig;
            resourceInputs["project"] = state?.project;
            resourceInputs["proxy"] = state?.proxy;
            resourceInputs["reconciling"] = state?.reconciling;
            resourceInputs["state"] = state?.state;
            resourceInputs["statuses"] = state?.statuses;
            resourceInputs["uid"] = state?.uid;
            resourceInputs["updateTime"] = state?.updateTime;
            resourceInputs["vcenter"] = state?.vcenter;
        }
        else {
            const args = argsOrState;
            if (args?.location === undefined && !opts.urn) {
                throw new Error("Missing required property 'location'");
            }
            if (args?.networkConfig === undefined && !opts.urn) {
                throw new Error("Missing required property 'networkConfig'");
            }
            resourceInputs["addonNode"] = args?.addonNode;
            resourceInputs["annotations"] = args?.annotations;
            resourceInputs["antiAffinityGroups"] = args?.antiAffinityGroups;
            resourceInputs["authorization"] = args?.authorization;
            resourceInputs["autoRepairConfig"] = args?.autoRepairConfig;
            resourceInputs["bootstrapClusterMembership"] = args?.bootstrapClusterMembership;
            resourceInputs["controlPlaneNode"] = args?.controlPlaneNode;
            resourceInputs["description"] = args?.description;
            resourceInputs["enableAdvancedCluster"] = args?.enableAdvancedCluster;
            resourceInputs["imageType"] = args?.imageType;
            resourceInputs["loadBalancer"] = args?.loadBalancer;
            resourceInputs["location"] = args?.location;
            resourceInputs["name"] = args?.name;
            resourceInputs["networkConfig"] = args?.networkConfig;
            resourceInputs["onPremVersion"] = args?.onPremVersion;
            resourceInputs["platformConfig"] = args?.platformConfig;
            resourceInputs["privateRegistryConfig"] = args?.privateRegistryConfig;
            resourceInputs["project"] = args?.project;
            resourceInputs["proxy"] = args?.proxy;
            resourceInputs["vcenter"] = args?.vcenter;
            resourceInputs["createTime"] = undefined /*out*/;
            resourceInputs["effectiveAnnotations"] = undefined /*out*/;
            resourceInputs["endpoint"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["fleets"] = undefined /*out*/;
            resourceInputs["localName"] = undefined /*out*/;
            resourceInputs["reconciling"] = undefined /*out*/;
            resourceInputs["state"] = undefined /*out*/;
            resourceInputs["statuses"] = undefined /*out*/;
            resourceInputs["uid"] = undefined /*out*/;
            resourceInputs["updateTime"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(VmwareAdminCluster.__pulumiType, name, resourceInputs, opts);
    }
}
exports.VmwareAdminCluster = VmwareAdminCluster;
/** @internal */
VmwareAdminCluster.__pulumiType = 'gcp:gkeonprem/vmwareAdminCluster:VmwareAdminCluster';
//# sourceMappingURL=vmwareAdminCluster.js.map