Java Code Examples for com.microsoft.azure.AzureEnvironment#AZURE_US_GOVERNMENT
The following examples show how to use
com.microsoft.azure.AzureEnvironment#AZURE_US_GOVERNMENT .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AzureAuthHelper.java From azure-gradle-plugins with MIT License | 6 votes |
protected AzureEnvironment getAzureEnvironment(String environment) { if (StringUtils.isEmpty(environment)) { return AzureEnvironment.AZURE; } switch (environment.toUpperCase(Locale.ENGLISH)) { case "AZURE_CHINA": return AzureEnvironment.AZURE_CHINA; case "AZURE_GERMANY": return AzureEnvironment.AZURE_GERMANY; case "AZURE_US_GOVERNMENT": return AzureEnvironment.AZURE_US_GOVERNMENT; default: return AzureEnvironment.AZURE; } }
Example 2
Source File: AzureAuthHelper.java From azure-gradle-plugins with MIT License | 6 votes |
private AzureEnvironment getAzureEnvironment(String environment) { if (StringUtils.isEmpty(environment)) { return AzureEnvironment.AZURE; } switch (environment.toUpperCase(Locale.ENGLISH)) { case "AZURE_CHINA": return AzureEnvironment.AZURE_CHINA; case "AZURE_GERMANY": return AzureEnvironment.AZURE_GERMANY; case "AZURE_US_GOVERNMENT": return AzureEnvironment.AZURE_US_GOVERNMENT; default: return AzureEnvironment.AZURE; } }
Example 3
Source File: AzureCliSubscription.java From autorest-clientruntime-for-java with MIT License | 5 votes |
AzureEnvironment environment() { if (environmentName == null) { return null; } else if (environmentName.equalsIgnoreCase("AzureCloud")) { return AzureEnvironment.AZURE; } else if (environmentName.equalsIgnoreCase("AzureChinaCloud")) { return AzureEnvironment.AZURE_CHINA; } else if (environmentName.equalsIgnoreCase("AzureGermanCloud")) { return AzureEnvironment.AZURE_GERMANY; } else if (environmentName.equalsIgnoreCase("AzureUSGovernment")) { return AzureEnvironment.AZURE_US_GOVERNMENT; } else { return null; } }