"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.SqlDiscoverySiteDataSourceController = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * A SQL discovery site data source resource.
 *
 * Uses Azure REST API version 2023-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-06-06.
 *
 * Other available API versions: 2023-06-06, 2024-05-01-preview, 2024-07-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native offazure [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class SqlDiscoverySiteDataSourceController extends pulumi.CustomResource {
    /**
     * Get an existing SqlDiscoverySiteDataSourceController 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 SqlDiscoverySiteDataSourceController(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of SqlDiscoverySiteDataSourceController.  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'] === SqlDiscoverySiteDataSourceController.__pulumiType;
    }
    /**
     * Create a SqlDiscoverySiteDataSourceController 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'");
            }
            if (args?.siteName === undefined && !opts.urn) {
                throw new Error("Missing required property 'siteName'");
            }
            if (args?.sqlSiteName === undefined && !opts.urn) {
                throw new Error("Missing required property 'sqlSiteName'");
            }
            resourceInputs["discoverySiteDataSourceName"] = args?.discoverySiteDataSourceName;
            resourceInputs["discoverySiteId"] = args?.discoverySiteId;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["siteName"] = args?.siteName;
            resourceInputs["sqlSiteName"] = args?.sqlSiteName;
            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["discoverySiteId"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:offazure/v20230606:SqlDiscoverySiteDataSourceController" }, { type: "azure-native:offazure/v20231001preview:SqlDiscoverySiteDataSourceController" }, { type: "azure-native:offazure/v20240501preview:SqlDiscoverySiteDataSourceController" }, { type: "azure-native:offazure/v20240701preview:SqlDiscoverySiteDataSourceController" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(SqlDiscoverySiteDataSourceController.__pulumiType, name, resourceInputs, opts);
    }
}
exports.SqlDiscoverySiteDataSourceController = SqlDiscoverySiteDataSourceController;
/** @internal */
SqlDiscoverySiteDataSourceController.__pulumiType = 'azure-native:offazure:SqlDiscoverySiteDataSourceController';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3FsRGlzY292ZXJ5U2l0ZURhdGFTb3VyY2VDb250cm9sbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vb2ZmYXp1cmUvc3FsRGlzY292ZXJ5U2l0ZURhdGFTb3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