
com.microsoft.commondatamodel.objectmodel.enums.AzureCloudEndpointConvertor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectmodel Show documentation
Show all versions of objectmodel Show documentation
CDM SDK to work with semantic metadata of the Data
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
package com.microsoft.commondatamodel.objectmodel.enums;
public class AzureCloudEndpointConvertor {
/**
* @deprecated This function is extremely likely to be removed in the public interface, and not meant
* to be called externally at all. Please refrain from using it.
* @param endpointType AzureCloudEndpoint
* @return AzureCloudEndpoint
*/
@Deprecated
public static com.microsoft.aad.msal4j.AzureCloudEndpoint azureCloudEndpointToInstance(AzureCloudEndpoint endpointType)
{
switch (endpointType) {
case AzurePublic:
return com.microsoft.aad.msal4j.AzureCloudEndpoint.AzurePublic;
case AzureChina:
return com.microsoft.aad.msal4j.AzureCloudEndpoint.AzureChina;
case AzureGermany:
return com.microsoft.aad.msal4j.AzureCloudEndpoint.AzureGermany;
case AzureUsGovernment:
return com.microsoft.aad.msal4j.AzureCloudEndpoint.AzureUsGovernment;
default:
throw new UnsupportedOperationException();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy