"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
Object.defineProperty(exports, "__esModule", { value: true });
exports.AzureCloudEndpointConvertor = exports.azureCloudEndpoint = void 0;
/**
 * AzureCloudEndpoint is an utility enum containing URLs for each of the national clouds endpoints, as well as the public cloud endpoint
 */
var azureCloudEndpoint;
(function (azureCloudEndpoint) {
    /// <summary>
    /// Microsoft Azure public cloud. Maps to https://login.microsoftonline.com
    /// </summary>
    azureCloudEndpoint[azureCloudEndpoint["AzurePublic"] = 0] = "AzurePublic";
    /// <summary>
    /// Microsoft Chinese national cloud. Maps to https://login.chinacloudapi.cn
    /// </summary>
    azureCloudEndpoint[azureCloudEndpoint["AzureChina"] = 1] = "AzureChina";
    /// <summary>
    /// Microsoft German national cloud ("Black Forest"). Maps to https://login.microsoftonline.de
    /// </summary>
    azureCloudEndpoint[azureCloudEndpoint["AzureGermany"] = 2] = "AzureGermany";
    /// <summary>
    /// US Government cloud. Maps to https://login.microsoftonline.us
    /// </summary>
    azureCloudEndpoint[azureCloudEndpoint["AzureUsGovernment"] = 3] = "AzureUsGovernment";
})(azureCloudEndpoint = exports.azureCloudEndpoint || (exports.azureCloudEndpoint = {}));
/**
 * @internal
 */
class AzureCloudEndpointConvertor {
    /**
     * @internal
     */
    static azureCloudEndpointToURL(endpointType) {
        switch (endpointType) {
            case azureCloudEndpoint.AzurePublic:
                return 'https://login.microsoftonline.com/';
            case azureCloudEndpoint.AzureChina:
                return 'https://login.chinacloudapi.cn/';
            case azureCloudEndpoint.AzureGermany:
                return 'https://login.microsoftonline.de/';
            case azureCloudEndpoint.AzureUsGovernment:
                return 'https://login.microsoftonline.us/';
            default:
                throw new Error('Invalid operation.');
        }
    }
}
exports.AzureCloudEndpointConvertor = AzureCloudEndpointConvertor;
//# sourceMappingURL=azureCloudEndpoint.js.map