From dc887d90dba6968e8356a9a4c00311446ec1d244 Mon Sep 17 00:00:00 2001
From: Chuang <54572251+xccc-msft@users.noreply.github.com>
Date: Fri, 18 Sep 2020 14:51:13 +0800
Subject: [PATCH] mgmt remove azure profile from fluentcore (#15211)
---
.../fluentcore/profile/AzureProfile.java | 80 -------------------
.../fluentcore/profile/package-info.java | 8 --
2 files changed, 88 deletions(-)
delete mode 100644 sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/profile/AzureProfile.java
delete mode 100644 sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/profile/package-info.java
diff --git a/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/profile/AzureProfile.java b/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/profile/AzureProfile.java
deleted file mode 100644
index ebafb33eb7df9..0000000000000
--- a/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/profile/AzureProfile.java
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.resourcemanager.resources.fluentcore.profile;
-
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.util.Configuration;
-
-import java.util.Objects;
-
-/**
- * Azure profile for client.
- */
-public class AzureProfile {
-
- private final String tenantId;
- private final String subscriptionId;
- private final AzureEnvironment environment;
-
- /**
- * Creates AzureProfile instance with Azure environment. The global environment is {@link AzureEnvironment#AZURE}.
- * The tenant ID and subscription ID can be set via environment variables. The environment variables are expected
- * as below:
- *
- * - {@link Configuration#PROPERTY_AZURE_TENANT_ID AZURE_TENANT_ID}
- * - {@link Configuration#PROPERTY_AZURE_SUBSCRIPTION_ID AZURE_SUBSCRIPTION_ID}
- *
- *
- * @param environment the Azure environment
- */
- public AzureProfile(AzureEnvironment environment) {
- Objects.requireNonNull(environment);
- this.environment = environment;
- Configuration configuration = Configuration.getGlobalConfiguration();
- this.tenantId = configuration.get(Configuration.PROPERTY_AZURE_TENANT_ID);
- this.subscriptionId = configuration.get(Configuration.PROPERTY_AZURE_SUBSCRIPTION_ID);
- }
-
- /**
- * Creates AzureProfile instance with tenant ID, subscription ID and Azure environment.
- * The global environment is {@link AzureEnvironment#AZURE}.
- *
- * @param tenantId the tenant ID required for Graph Rbac
- * @param subscriptionId the subscription ID required for resource management
- * @param environment the Azure environment
- */
- public AzureProfile(String tenantId, String subscriptionId, AzureEnvironment environment) {
- Objects.requireNonNull(environment);
- this.tenantId = tenantId;
- this.subscriptionId = subscriptionId;
- this.environment = environment;
- }
-
- /**
- * Gets tenant ID.
- *
- * @return the tenant ID
- */
- public String tenantId() {
- return this.tenantId;
- }
-
- /**
- * Gets subscription ID.
- *
- * @return the subscription ID
- */
- public String subscriptionId() {
- return this.subscriptionId;
- }
-
- /**
- * Gets Azure environment.
- *
- * @return the Azure environment
- */
- public AzureEnvironment environment() {
- return environment;
- }
-}
diff --git a/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/profile/package-info.java b/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/profile/package-info.java
deleted file mode 100644
index 6472c0e99009a..0000000000000
--- a/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/profile/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-
-/**
- * This package contains the base classes for resources azure profile.
- */
-package com.azure.resourcemanager.resources.fluentcore.profile;