From 3ec940ea65cb698598eeb013a95f88e10891e687 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Wed, 25 Dec 2024 03:26:35 +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 1b9bcded542a..469db89f7370 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -428,7 +428,7 @@ com.azure.resourcemanager:azure-resourcemanager-servicenetworking;1.0.0;1.1.0-be com.azure.resourcemanager:azure-resourcemanager-recoveryservicessiterecovery;1.2.0;1.3.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-billingbenefits;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-providerhub;1.1.0;1.2.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-reservations;1.0.0-beta.3;1.0.0-beta.4 +com.azure.resourcemanager:azure-resourcemanager-reservations;1.0.0-beta.3;1.0.0 com.azure.resourcemanager:azure-resourcemanager-containerservicefleet;1.1.0;1.2.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-storagemover;1.3.0;1.4.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-graphservices;1.1.0;1.2.0-beta.1 From ca581ff5cbca9447713a0454bfa01ac4ffcdaefd Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Wed, 25 Dec 2024 03:26:44 +0000 Subject: [PATCH 2/3] [Automation] Generate Fluent Lite from Swagger reservations#package-2022-11 --- .../azure-resourcemanager-reservations/CHANGELOG.md | 10 ++-------- .../azure-resourcemanager-reservations/README.md | 2 +- .../azure-resourcemanager-reservations/pom.xml | 3 +-- .../reservations/ReservationsManager.java | 6 +++--- 4 files changed, 7 insertions(+), 14 deletions(-) diff --git a/sdk/reservations/azure-resourcemanager-reservations/CHANGELOG.md b/sdk/reservations/azure-resourcemanager-reservations/CHANGELOG.md index 3421cc1ff580..9dd92945961f 100644 --- a/sdk/reservations/azure-resourcemanager-reservations/CHANGELOG.md +++ b/sdk/reservations/azure-resourcemanager-reservations/CHANGELOG.md @@ -1,14 +1,8 @@ # Release History -## 1.0.0-beta.4 (Unreleased) +## 1.0.0 (2024-12-25) -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Azure Resource Manager reservations client library for Java. This package contains Microsoft Azure SDK for reservations Management SDK. This API describe Azure Reservation. Package tag package-2022-11. 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-31) diff --git a/sdk/reservations/azure-resourcemanager-reservations/README.md b/sdk/reservations/azure-resourcemanager-reservations/README.md index 436ef5260f6d..2458858fb7f5 100644 --- a/sdk/reservations/azure-resourcemanager-reservations/README.md +++ b/sdk/reservations/azure-resourcemanager-reservations/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-reservations - 1.0.0-beta.3 + 1.0.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/reservations/azure-resourcemanager-reservations/pom.xml b/sdk/reservations/azure-resourcemanager-reservations/pom.xml index 275123b44ffe..0fa20fe4c092 100644 --- a/sdk/reservations/azure-resourcemanager-reservations/pom.xml +++ b/sdk/reservations/azure-resourcemanager-reservations/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-reservations - 1.0.0-beta.4 + 1.0.0 jar Microsoft Azure SDK for reservations Management @@ -45,7 +45,6 @@ UTF-8 0 0 - true false diff --git a/sdk/reservations/azure-resourcemanager-reservations/src/main/java/com/azure/resourcemanager/reservations/ReservationsManager.java b/sdk/reservations/azure-resourcemanager-reservations/src/main/java/com/azure/resourcemanager/reservations/ReservationsManager.java index b077a5c54f3b..ff2544ef6bcd 100644 --- a/sdk/reservations/azure-resourcemanager-reservations/src/main/java/com/azure/resourcemanager/reservations/ReservationsManager.java +++ b/sdk/reservations/azure-resourcemanager-reservations/src/main/java/com/azure/resourcemanager/reservations/ReservationsManager.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; @@ -240,7 +240,7 @@ public ReservationsManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.reservations") .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")) @@ -273,7 +273,7 @@ public ReservationsManager authenticate(TokenCredential credential, AzureProfile 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())); From 26a310e5fa7a27498fdf4a7b6440590ba756e017 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Wed, 25 Dec 2024 11:30:21 +0800 Subject: [PATCH 3/3] Add release notes for version 1.0.0 --- .../azure-resourcemanager-reservations/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/reservations/azure-resourcemanager-reservations/CHANGELOG.md b/sdk/reservations/azure-resourcemanager-reservations/CHANGELOG.md index 9dd92945961f..21e200a3809c 100644 --- a/sdk/reservations/azure-resourcemanager-reservations/CHANGELOG.md +++ b/sdk/reservations/azure-resourcemanager-reservations/CHANGELOG.md @@ -4,6 +4,10 @@ - Azure Resource Manager reservations client library for Java. This package contains Microsoft Azure SDK for reservations Management SDK. This API describe Azure Reservation. Package tag package-2022-11. 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 reservations client library for Java. + ## 1.0.0-beta.3 (2024-10-31) - Azure Resource Manager reservations client library for Java. This package contains Microsoft Azure SDK for reservations Management SDK. This API describe Azure Reservation. Package tag package-2022-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).