"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.Workspace = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * A workspace
 *
 * Uses Azure REST API version 2021-06-01. In version 2.x of the Azure Native provider, it used API version 2021-06-01.
 *
 * Other available API versions: 2021-04-01-preview, 2021-05-01, 2021-06-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native synapse [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class Workspace extends pulumi.CustomResource {
    /**
     * Get an existing Workspace 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 Workspace(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of Workspace.  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'] === Workspace.__pulumiType;
    }
    /**
     * Create a Workspace 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["azureADOnlyAuthentication"] = args?.azureADOnlyAuthentication;
            resourceInputs["cspWorkspaceAdminProperties"] = args?.cspWorkspaceAdminProperties;
            resourceInputs["defaultDataLakeStorage"] = args?.defaultDataLakeStorage;
            resourceInputs["encryption"] = args?.encryption;
            resourceInputs["identity"] = args?.identity;
            resourceInputs["location"] = args?.location;
            resourceInputs["managedResourceGroupName"] = args?.managedResourceGroupName;
            resourceInputs["managedVirtualNetwork"] = args?.managedVirtualNetwork;
            resourceInputs["managedVirtualNetworkSettings"] = args?.managedVirtualNetworkSettings;
            resourceInputs["privateEndpointConnections"] = args?.privateEndpointConnections;
            resourceInputs["publicNetworkAccess"] = (args?.publicNetworkAccess) ?? "Enabled";
            resourceInputs["purviewConfiguration"] = args?.purviewConfiguration;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["sqlAdministratorLogin"] = args?.sqlAdministratorLogin;
            resourceInputs["sqlAdministratorLoginPassword"] = args?.sqlAdministratorLoginPassword;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["trustedServiceBypassEnabled"] = (args?.trustedServiceBypassEnabled) ?? false;
            resourceInputs["virtualNetworkProfile"] = args?.virtualNetworkProfile;
            resourceInputs["workspaceName"] = args?.workspaceName;
            resourceInputs["workspaceRepositoryConfiguration"] = args?.workspaceRepositoryConfiguration;
            resourceInputs["adlaResourceId"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["connectivityEndpoints"] = undefined /*out*/;
            resourceInputs["extraProperties"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["settings"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["workspaceUID"] = undefined /*out*/;
        }
        else {
            resourceInputs["adlaResourceId"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["connectivityEndpoints"] = undefined /*out*/;
            resourceInputs["cspWorkspaceAdminProperties"] = undefined /*out*/;
            resourceInputs["defaultDataLakeStorage"] = undefined /*out*/;
            resourceInputs["encryption"] = undefined /*out*/;
            resourceInputs["extraProperties"] = undefined /*out*/;
            resourceInputs["identity"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["managedResourceGroupName"] = undefined /*out*/;
            resourceInputs["managedVirtualNetwork"] = undefined /*out*/;
            resourceInputs["managedVirtualNetworkSettings"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["privateEndpointConnections"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["publicNetworkAccess"] = undefined /*out*/;
            resourceInputs["purviewConfiguration"] = undefined /*out*/;
            resourceInputs["settings"] = undefined /*out*/;
            resourceInputs["sqlAdministratorLogin"] = undefined /*out*/;
            resourceInputs["sqlAdministratorLoginPassword"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["trustedServiceBypassEnabled"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["virtualNetworkProfile"] = undefined /*out*/;
            resourceInputs["workspaceRepositoryConfiguration"] = undefined /*out*/;
            resourceInputs["workspaceUID"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:synapse/v20190601preview:Workspace" }, { type: "azure-native:synapse/v20201201:Workspace" }, { type: "azure-native:synapse/v20210301:Workspace" }, { type: "azure-native:synapse/v20210401preview:Workspace" }, { type: "azure-native:synapse/v20210501:Workspace" }, { type: "azure-native:synapse/v20210601:Workspace" }, { type: "azure-native:synapse/v20210601preview:Workspace" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(Workspace.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Workspace = Workspace;
/** @internal */
Workspace.__pulumiType = 'azure-native:synapse:Workspace';
//# sourceMappingURL=data:application/json;base64, 