From 65373ce9d2e60cad58ba401dc8e8dbd5b116cdd2 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 2 Jan 2025 02:19:57 +0000 Subject: [PATCH 1/3] [Automation] External Change --- eng/versioning/version_client.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 3a760e7fec6b..f06868d8191e 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -382,7 +382,7 @@ com.azure.resourcemanager:azure-resourcemanager-webpubsub;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-security;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-azurearcdata;1.0.0-beta.4;1.0.0-beta.5 com.azure.resourcemanager:azure-resourcemanager-hybridnetwork;1.1.0;1.2.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-purview;1.0.0-beta.3;1.0.0-beta.4 +com.azure.resourcemanager:azure-resourcemanager-purview;1.0.0-beta.3;1.0.0 com.azure.resourcemanager:azure-resourcemanager-mysqlflexibleserver;1.0.0-beta.6;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-baremetalinfrastructure;1.0.0-beta.4;1.0.0-beta.5 com.azure.resourcemanager:azure-resourcemanager-quota;1.0.0;1.1.0-beta.3 From 5871abc2ff90f648b6d853895fb857a192ff66e3 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 2 Jan 2025 02:20:04 +0000 Subject: [PATCH 2/3] [Automation] Generate Fluent Lite from Swagger purview#package-2021-07-01 --- sdk/purview/azure-resourcemanager-purview/CHANGELOG.md | 10 ++-------- sdk/purview/azure-resourcemanager-purview/README.md | 2 +- sdk/purview/azure-resourcemanager-purview/pom.xml | 4 ++-- .../azure/resourcemanager/purview/PurviewManager.java | 6 +++--- .../DefaultAccountsGetWithResponseMockTests.java | 2 +- .../DefaultAccountsRemoveWithResponseMockTests.java | 2 +- 6 files changed, 10 insertions(+), 16 deletions(-) diff --git a/sdk/purview/azure-resourcemanager-purview/CHANGELOG.md b/sdk/purview/azure-resourcemanager-purview/CHANGELOG.md index c2355655e663..10a415d41c3f 100644 --- a/sdk/purview/azure-resourcemanager-purview/CHANGELOG.md +++ b/sdk/purview/azure-resourcemanager-purview/CHANGELOG.md @@ -1,14 +1,8 @@ # Release History -## 1.0.0-beta.4 (Unreleased) +## 1.0.0 (2025-01-02) -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Azure Resource Manager Purview client library for Java. This package contains Microsoft Azure SDK for Purview Management SDK. Creates a Microsoft.Purview management client. Package tag package-2021-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## 1.0.0-beta.3 (2024-10-17) diff --git a/sdk/purview/azure-resourcemanager-purview/README.md b/sdk/purview/azure-resourcemanager-purview/README.md index 2d2e40731496..a191eb62afe5 100644 --- a/sdk/purview/azure-resourcemanager-purview/README.md +++ b/sdk/purview/azure-resourcemanager-purview/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-purview - 1.0.0-beta.3 + 1.0.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/purview/azure-resourcemanager-purview/pom.xml b/sdk/purview/azure-resourcemanager-purview/pom.xml index 4973f646f217..083c6aa251e6 100644 --- a/sdk/purview/azure-resourcemanager-purview/pom.xml +++ b/sdk/purview/azure-resourcemanager-purview/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-purview - 1.0.0-beta.4 + 1.0.0 jar Microsoft Azure SDK for Purview Management @@ -45,7 +45,7 @@ UTF-8 0 0 - true + false diff --git a/sdk/purview/azure-resourcemanager-purview/src/main/java/com/azure/resourcemanager/purview/PurviewManager.java b/sdk/purview/azure-resourcemanager-purview/src/main/java/com/azure/resourcemanager/purview/PurviewManager.java index b4deeba83b38..d8d09084596c 100644 --- a/sdk/purview/azure-resourcemanager-purview/src/main/java/com/azure/resourcemanager/purview/PurviewManager.java +++ b/sdk/purview/azure-resourcemanager-purview/src/main/java/com/azure/resourcemanager/purview/PurviewManager.java @@ -11,6 +11,7 @@ import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; import com.azure.core.http.policy.AddHeadersFromContextPolicy; +import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; @@ -19,7 +20,6 @@ import com.azure.core.http.policy.RetryOptions; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; -import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; @@ -221,7 +221,7 @@ public PurviewManager authenticate(TokenCredential credential, AzureProfile prof .append("-") .append("com.azure.resourcemanager.purview") .append("/") - .append("1.0.0-beta.3"); + .append("1.0.0"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -254,7 +254,7 @@ public PurviewManager authenticate(TokenCredential credential, AzureProfile prof HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); - policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); + policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0]))); policies.addAll(this.policies.stream() .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) .collect(Collectors.toList())); diff --git a/sdk/purview/azure-resourcemanager-purview/src/test/java/com/azure/resourcemanager/purview/generated/DefaultAccountsGetWithResponseMockTests.java b/sdk/purview/azure-resourcemanager-purview/src/test/java/com/azure/resourcemanager/purview/generated/DefaultAccountsGetWithResponseMockTests.java index 3489b500f0e5..e793af8f77f9 100644 --- a/sdk/purview/azure-resourcemanager-purview/src/test/java/com/azure/resourcemanager/purview/generated/DefaultAccountsGetWithResponseMockTests.java +++ b/sdk/purview/azure-resourcemanager-purview/src/test/java/com/azure/resourcemanager/purview/generated/DefaultAccountsGetWithResponseMockTests.java @@ -33,7 +33,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); DefaultAccountPayload response = manager.defaultAccounts() - .getWithResponse(UUID.fromString("a2f3262c-6042-4b0e-af83-179caf215e91"), ScopeType.SUBSCRIPTION, "pfcqdp", + .getWithResponse(UUID.fromString("035f32b2-fcf6-485b-96e7-1aa23cfcc235"), ScopeType.SUBSCRIPTION, "pfcqdp", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/purview/azure-resourcemanager-purview/src/test/java/com/azure/resourcemanager/purview/generated/DefaultAccountsRemoveWithResponseMockTests.java b/sdk/purview/azure-resourcemanager-purview/src/test/java/com/azure/resourcemanager/purview/generated/DefaultAccountsRemoveWithResponseMockTests.java index 1cd916a6cd87..da9b4a59031d 100644 --- a/sdk/purview/azure-resourcemanager-purview/src/test/java/com/azure/resourcemanager/purview/generated/DefaultAccountsRemoveWithResponseMockTests.java +++ b/sdk/purview/azure-resourcemanager-purview/src/test/java/com/azure/resourcemanager/purview/generated/DefaultAccountsRemoveWithResponseMockTests.java @@ -30,7 +30,7 @@ public void testRemoveWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.defaultAccounts() - .removeWithResponse(UUID.fromString("23db7178-2b95-4cdb-81c3-6ac4e182a60e"), ScopeType.SUBSCRIPTION, + .removeWithResponse(UUID.fromString("3d413161-70c7-4157-8943-e0458db2584e"), ScopeType.SUBSCRIPTION, "jayvblmhv", com.azure.core.util.Context.NONE); } From f2577f7f5000d5eda36a2ebc1e748a76413a658f Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 2 Jan 2025 10:24:26 +0800 Subject: [PATCH 3/3] Update changelog for Azure Purview release --- sdk/purview/azure-resourcemanager-purview/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/purview/azure-resourcemanager-purview/CHANGELOG.md b/sdk/purview/azure-resourcemanager-purview/CHANGELOG.md index 10a415d41c3f..be5b26ecad41 100644 --- a/sdk/purview/azure-resourcemanager-purview/CHANGELOG.md +++ b/sdk/purview/azure-resourcemanager-purview/CHANGELOG.md @@ -4,6 +4,10 @@ - Azure Resource Manager Purview client library for Java. This package contains Microsoft Azure SDK for Purview Management SDK. Creates a Microsoft.Purview management client. Package tag package-2021-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +### Other Changes + +- Release for Azure Resource Manager Purview client library for Java. + ## 1.0.0-beta.3 (2024-10-17) - Azure Resource Manager Purview client library for Java. This package contains Microsoft Azure SDK for Purview Management SDK. Creates a Microsoft.Purview management client. Package tag package-2021-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).