From 45abed7be5334b8237f0b8d35756562ac12e23d4 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 24 Dec 2024 18:16:14 -0800 Subject: [PATCH] [Automation] Generate Fluent Lite from Swagger peering#package-2021-01-01 (#43587) --- eng/versioning/version_client.txt | 2 +- sdk/peering/azure-resourcemanager-peering/CHANGELOG.md | 10 ++++------ sdk/peering/azure-resourcemanager-peering/README.md | 2 +- sdk/peering/azure-resourcemanager-peering/pom.xml | 4 ++-- .../azure/resourcemanager/peering/PeeringManager.java | 6 +++--- 5 files changed, 11 insertions(+), 13 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index ebad06a1c96a6..2ef8f8e70b1ec 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -350,7 +350,7 @@ com.azure.resourcemanager:azure-resourcemanager-maintenance;1.0.0;1.1.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-machinelearningservices;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-mariadb;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-servicefabric;1.0.0;1.1.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-peering;1.0.0-beta.3;1.0.0-beta.4 +com.azure.resourcemanager:azure-resourcemanager-peering;1.0.0-beta.3;1.0.0 com.azure.resourcemanager:azure-resourcemanager-policyinsights;1.0.0-beta.4;1.0.0-beta.5 com.azure.resourcemanager:azure-resourcemanager-support;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-subscription;1.0.0-beta.3;1.0.0-beta.4 diff --git a/sdk/peering/azure-resourcemanager-peering/CHANGELOG.md b/sdk/peering/azure-resourcemanager-peering/CHANGELOG.md index 7cb6b530af7c5..ff4592d94f88d 100644 --- a/sdk/peering/azure-resourcemanager-peering/CHANGELOG.md +++ b/sdk/peering/azure-resourcemanager-peering/CHANGELOG.md @@ -1,15 +1,13 @@ # Release History -## 1.0.0-beta.4 (Unreleased) +## 1.0.0 (2024-12-25) -### Features Added - -### Breaking Changes - -### Bugs Fixed +- Azure Resource Manager Peering client library for Java. This package contains Microsoft Azure SDK for Peering Management SDK. Peering Client. Package tag package-2021-01-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 Peering client library for Java. + ## 1.0.0-beta.3 (2024-10-17) - Azure Resource Manager Peering client library for Java. This package contains Microsoft Azure SDK for Peering Management SDK. Peering Client. Package tag package-2021-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). diff --git a/sdk/peering/azure-resourcemanager-peering/README.md b/sdk/peering/azure-resourcemanager-peering/README.md index eb56beb1495f4..0565bd424133d 100644 --- a/sdk/peering/azure-resourcemanager-peering/README.md +++ b/sdk/peering/azure-resourcemanager-peering/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-peering - 1.0.0-beta.3 + 1.0.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/peering/azure-resourcemanager-peering/pom.xml b/sdk/peering/azure-resourcemanager-peering/pom.xml index 2b06c5935d52d..586c26bcc74b3 100644 --- a/sdk/peering/azure-resourcemanager-peering/pom.xml +++ b/sdk/peering/azure-resourcemanager-peering/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-peering - 1.0.0-beta.4 + 1.0.0 jar Microsoft Azure SDK for Peering Management @@ -45,7 +45,7 @@ UTF-8 0 0 - true + false diff --git a/sdk/peering/azure-resourcemanager-peering/src/main/java/com/azure/resourcemanager/peering/PeeringManager.java b/sdk/peering/azure-resourcemanager-peering/src/main/java/com/azure/resourcemanager/peering/PeeringManager.java index c56217d219d63..8c652f775f7e6 100644 --- a/sdk/peering/azure-resourcemanager-peering/src/main/java/com/azure/resourcemanager/peering/PeeringManager.java +++ b/sdk/peering/azure-resourcemanager-peering/src/main/java/com/azure/resourcemanager/peering/PeeringManager.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; @@ -261,7 +261,7 @@ public PeeringManager authenticate(TokenCredential credential, AzureProfile prof .append("-") .append("com.azure.resourcemanager.peering") .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")) @@ -294,7 +294,7 @@ public PeeringManager 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()));