Package com.azure.common
Class AzureEnvironment
- java.lang.Object
-
- com.azure.common.AzureEnvironment
-
public final class AzureEnvironment extends Object
An instance of this class describes an environment in Azure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AzureEnvironment.Endpoint
The enum representing available endpoints in an environment.
-
Field Summary
Fields Modifier and Type Field Description static AzureEnvironment
AZURE
Provides the settings for authentication with Azure.static AzureEnvironment
AZURE_CHINA
Provides the settings for authentication with Azure China.static AzureEnvironment
AZURE_GERMANY
Provides the settings for authentication with Azure Germany.static AzureEnvironment
AZURE_US_GOVERNMENT
Provides the settings for authentication with Azure US Government.
-
Constructor Summary
Constructors Constructor Description AzureEnvironment(Map<String,String> endpoints)
Initializes an instance of AzureEnvironment class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
activeDirectoryEndpoint()
String
activeDirectoryGraphApiVersion()
String
activeDirectoryResourceId()
String
applicationInsightsEndpoint()
String
azureDataLakeAnalyticsCatalogAndJobEndpointSuffix()
String
azureDataLakeStoreFileSystemEndpointSuffix()
String
dataLakeEndpointResourceId()
Map<String,String>
endpoints()
String
galleryEndpoint()
String
graphEndpoint()
String
keyVaultDnsSuffix()
static AzureEnvironment[]
knownEnvironments()
String
logAnalyticsEndpoint()
String
managementEndpoint()
String
portal()
String
publishingProfile()
String
resourceManagerEndpoint()
String
sqlManagementEndpoint()
String
sqlServerHostnameSuffix()
String
storageEndpointSuffix()
String
url(AzureEnvironment.Endpoint endpoint)
Get the endpoint URL for the current environment.
-
-
-
Field Detail
-
AZURE
public static final AzureEnvironment AZURE
Provides the settings for authentication with Azure.
-
AZURE_CHINA
public static final AzureEnvironment AZURE_CHINA
Provides the settings for authentication with Azure China.
-
AZURE_US_GOVERNMENT
public static final AzureEnvironment AZURE_US_GOVERNMENT
Provides the settings for authentication with Azure US Government.
-
AZURE_GERMANY
public static final AzureEnvironment AZURE_GERMANY
Provides the settings for authentication with Azure Germany.
-
-
Method Detail
-
endpoints
public Map<String,String> endpoints()
- Returns:
- the entirety of the endpoints associated with the current environment.
-
knownEnvironments
public static AzureEnvironment[] knownEnvironments()
- Returns:
- the array of known environments to Azure SDK.
-
portal
public String portal()
- Returns:
- the management portal URL.
-
publishingProfile
public String publishingProfile()
- Returns:
- the publish settings file URL.
-
managementEndpoint
public String managementEndpoint()
- Returns:
- the management service endpoint.
-
resourceManagerEndpoint
public String resourceManagerEndpoint()
- Returns:
- the resource management endpoint.
-
sqlManagementEndpoint
public String sqlManagementEndpoint()
- Returns:
- the sql server management endpoint for mobile commands.
-
sqlServerHostnameSuffix
public String sqlServerHostnameSuffix()
- Returns:
- the dns suffix for sql servers.
-
activeDirectoryEndpoint
public String activeDirectoryEndpoint()
- Returns:
- the Active Directory login endpoint.
-
activeDirectoryResourceId
public String activeDirectoryResourceId()
- Returns:
- The resource ID to obtain AD tokens for.
-
galleryEndpoint
public String galleryEndpoint()
- Returns:
- the template gallery endpoint.
-
graphEndpoint
public String graphEndpoint()
- Returns:
- the Active Directory resource ID.
-
dataLakeEndpointResourceId
public String dataLakeEndpointResourceId()
- Returns:
- the Data Lake resource ID.
-
activeDirectoryGraphApiVersion
public String activeDirectoryGraphApiVersion()
- Returns:
- the Active Directory api version.
-
storageEndpointSuffix
public String storageEndpointSuffix()
- Returns:
- the endpoint suffix for storage accounts.
-
keyVaultDnsSuffix
public String keyVaultDnsSuffix()
- Returns:
- the keyvault service dns suffix.
-
azureDataLakeStoreFileSystemEndpointSuffix
public String azureDataLakeStoreFileSystemEndpointSuffix()
- Returns:
- the data lake store filesystem service dns suffix.
-
azureDataLakeAnalyticsCatalogAndJobEndpointSuffix
public String azureDataLakeAnalyticsCatalogAndJobEndpointSuffix()
- Returns:
- the data lake analytics job and catalog service dns suffix.
-
logAnalyticsEndpoint
public String logAnalyticsEndpoint()
- Returns:
- the log analytics endpoint.
-
applicationInsightsEndpoint
public String applicationInsightsEndpoint()
- Returns:
- the log analytics endpoint.
-
url
public String url(AzureEnvironment.Endpoint endpoint)
Get the endpoint URL for the current environment.- Parameters:
endpoint
- the endpoint- Returns:
- the URL
-
-