"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.VirtualMachine = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Virtual machine model
 *
 * Uses Azure REST API version 2019-04-01. In version 2.x of the Azure Native provider, it used API version 2019-04-01.
 */
class VirtualMachine extends pulumi.CustomResource {
    /**
     * Get an existing VirtualMachine 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 opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, opts) {
        return new VirtualMachine(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of VirtualMachine.  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'] === VirtualMachine.__pulumiType;
    }
    /**
     * Create a VirtualMachine resource with the given unique name, arguments, and options.
     *
     * @param name The _unique_ name of the resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param opts A bag of options that control this resource's behavior.
     */
    constructor(name, args, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (!opts.id) {
            if (args?.amountOfRam === undefined && !opts.urn) {
                throw new Error("Missing required property 'amountOfRam'");
            }
            if (args?.numberOfCores === undefined && !opts.urn) {
                throw new Error("Missing required property 'numberOfCores'");
            }
            if (args?.privateCloudId === undefined && !opts.urn) {
                throw new Error("Missing required property 'privateCloudId'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["amountOfRam"] = args?.amountOfRam;
            resourceInputs["customization"] = args?.customization;
            resourceInputs["disks"] = args?.disks;
            resourceInputs["exposeToGuestVM"] = args?.exposeToGuestVM;
            resourceInputs["location"] = args?.location;
            resourceInputs["nics"] = args?.nics;
            resourceInputs["numberOfCores"] = args?.numberOfCores;
            resourceInputs["password"] = args?.password;
            resourceInputs["privateCloudId"] = args?.privateCloudId;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["resourcePool"] = args?.resourcePool;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["templateId"] = args?.templateId;
            resourceInputs["username"] = args?.username;
            resourceInputs["vSphereNetworks"] = args?.vSphereNetworks;
            resourceInputs["virtualMachineName"] = args?.virtualMachineName;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["controllers"] = undefined /*out*/;
            resourceInputs["dnsname"] = undefined /*out*/;
            resourceInputs["folder"] = undefined /*out*/;
            resourceInputs["guestOS"] = undefined /*out*/;
            resourceInputs["guestOSType"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["publicIP"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["vmId"] = undefined /*out*/;
            resourceInputs["vmwaretools"] = undefined /*out*/;
        }
        else {
            resourceInputs["amountOfRam"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["controllers"] = undefined /*out*/;
            resourceInputs["customization"] = undefined /*out*/;
            resourceInputs["disks"] = undefined /*out*/;
            resourceInputs["dnsname"] = undefined /*out*/;
            resourceInputs["exposeToGuestVM"] = undefined /*out*/;
            resourceInputs["folder"] = undefined /*out*/;
            resourceInputs["guestOS"] = undefined /*out*/;
            resourceInputs["guestOSType"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["nics"] = undefined /*out*/;
            resourceInputs["numberOfCores"] = undefined /*out*/;
            resourceInputs["password"] = undefined /*out*/;
            resourceInputs["privateCloudId"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["publicIP"] = undefined /*out*/;
            resourceInputs["resourcePool"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["templateId"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["username"] = undefined /*out*/;
            resourceInputs["vSphereNetworks"] = undefined /*out*/;
            resourceInputs["vmId"] = undefined /*out*/;
            resourceInputs["vmwaretools"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:vmwarecloudsimple/v20190401:VirtualMachine" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(VirtualMachine.__pulumiType, name, resourceInputs, opts);
    }
}
exports.VirtualMachine = VirtualMachine;
/** @internal */
VirtualMachine.__pulumiType = 'azure-native:vmwarecloudsimple:VirtualMachine';
//# sourceMappingURL=data:application/json;base64, 