"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.AzureBareMetalInstance = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * AzureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties)
 *
 * Uses Azure REST API version 2024-08-01-preview. In version 2.x of the Azure Native provider, it used API version 2024-08-01-preview.
 */
class AzureBareMetalInstance extends pulumi.CustomResource {
    /**
     * Get an existing AzureBareMetalInstance 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 AzureBareMetalInstance(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of AzureBareMetalInstance.  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'] === AzureBareMetalInstance.__pulumiType;
    }
    /**
     * Create a AzureBareMetalInstance 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?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["azureBareMetalInstanceId"] = args?.azureBareMetalInstanceId;
            resourceInputs["azureBareMetalInstanceName"] = args?.azureBareMetalInstanceName;
            resourceInputs["hardwareProfile"] = args?.hardwareProfile;
            resourceInputs["hwRevision"] = args?.hwRevision;
            resourceInputs["location"] = args?.location;
            resourceInputs["networkProfile"] = args?.networkProfile;
            resourceInputs["osProfile"] = args?.osProfile;
            resourceInputs["partnerNodeId"] = args?.partnerNodeId;
            resourceInputs["powerState"] = args?.powerState;
            resourceInputs["proximityPlacementGroup"] = args?.proximityPlacementGroup;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["storageProfile"] = args?.storageProfile;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["azureBareMetalInstanceId"] = undefined /*out*/;
            resourceInputs["hardwareProfile"] = undefined /*out*/;
            resourceInputs["hwRevision"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["networkProfile"] = undefined /*out*/;
            resourceInputs["osProfile"] = undefined /*out*/;
            resourceInputs["partnerNodeId"] = undefined /*out*/;
            resourceInputs["powerState"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["proximityPlacementGroup"] = undefined /*out*/;
            resourceInputs["storageProfile"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:baremetalinfrastructure/v20240801preview:AzureBareMetalInstance" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(AzureBareMetalInstance.__pulumiType, name, resourceInputs, opts);
    }
}
exports.AzureBareMetalInstance = AzureBareMetalInstance;
/** @internal */
AzureBareMetalInstance.__pulumiType = 'azure-native:baremetalinfrastructure:AzureBareMetalInstance';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXp1cmVCYXJlTWV0YWxJbnN0YW5jZS5qcyIsInNv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