From 7f518f6dd028db009e124249657698778b94be6c Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 19 Dec 2024 20:49:17 -0800 Subject: [PATCH] [Automation] Generate Fluent Lite from Swagger relay#package-2017-04 (#43514) --- eng/versioning/version_client.txt | 2 +- sdk/relay/azure-resourcemanager-relay/CHANGELOG.md | 8 ++++---- sdk/relay/azure-resourcemanager-relay/README.md | 2 +- sdk/relay/azure-resourcemanager-relay/pom.xml | 4 ++-- .../azure/resourcemanager/relay/RelayManager.java | 6 +++--- .../com/azure/resourcemanager/relay/models/Sku.java | 13 +------------ 6 files changed, 12 insertions(+), 23 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 7c164b1307755..f816704dde617 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -295,7 +295,7 @@ com.azure.resourcemanager:azure-resourcemanager-mysql;1.0.2;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-postgresql;1.0.2;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-hdinsight;1.0.0;1.1.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-sqlvirtualmachine;1.0.0-beta.5;1.0.0-beta.6 -com.azure.resourcemanager:azure-resourcemanager-relay;1.0.0-beta.3;1.0.0-beta.4 +com.azure.resourcemanager:azure-resourcemanager-relay;1.0.0-beta.3;1.0.0 com.azure.resourcemanager:azure-resourcemanager-costmanagement;1.0.0-beta.7;1.0.0-beta.8 com.azure.resourcemanager:azure-resourcemanager-recoveryservices;1.3.0;1.4.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-kusto;1.1.0;1.2.0-beta.1 diff --git a/sdk/relay/azure-resourcemanager-relay/CHANGELOG.md b/sdk/relay/azure-resourcemanager-relay/CHANGELOG.md index 1821f57b88158..2e82f5bf68824 100644 --- a/sdk/relay/azure-resourcemanager-relay/CHANGELOG.md +++ b/sdk/relay/azure-resourcemanager-relay/CHANGELOG.md @@ -1,14 +1,14 @@ # Release History -## 1.0.0-beta.4 (Unreleased) +## 1.0.0 (2024-12-20) -### Features Added +- Azure Resource Manager Relay client library for Java. This package contains Microsoft Azure SDK for Relay Management SDK. Use these API to manage Azure Relay resources through Azure Resource Manager. Package tag package-2017-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.Sku` was modified -### Other Changes +* `withName(java.lang.String)` was removed ## 1.0.0-beta.3 (2024-10-10) diff --git a/sdk/relay/azure-resourcemanager-relay/README.md b/sdk/relay/azure-resourcemanager-relay/README.md index 8b7f8119c6c2d..1b77ae473131e 100644 --- a/sdk/relay/azure-resourcemanager-relay/README.md +++ b/sdk/relay/azure-resourcemanager-relay/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-relay - 1.0.0-beta.3 + 1.0.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/relay/azure-resourcemanager-relay/pom.xml b/sdk/relay/azure-resourcemanager-relay/pom.xml index c338772784058..eab7b5f79cf2a 100644 --- a/sdk/relay/azure-resourcemanager-relay/pom.xml +++ b/sdk/relay/azure-resourcemanager-relay/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-relay - 1.0.0-beta.4 + 1.0.0 jar Microsoft Azure SDK for Relay Management @@ -45,7 +45,7 @@ UTF-8 0 0 - true + false diff --git a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/RelayManager.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/RelayManager.java index e1b49b4832785..dd6f2154f63b3 100644 --- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/RelayManager.java +++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/RelayManager.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; @@ -217,7 +217,7 @@ public RelayManager authenticate(TokenCredential credential, AzureProfile profil .append("-") .append("com.azure.resourcemanager.relay") .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")) @@ -250,7 +250,7 @@ public RelayManager authenticate(TokenCredential credential, AzureProfile profil 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/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/models/Sku.java b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/models/Sku.java index b5730e3b2affe..6a202e22de094 100644 --- a/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/models/Sku.java +++ b/sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/models/Sku.java @@ -19,7 +19,7 @@ public final class Sku implements JsonSerializable { /* * Name of this SKU. */ - private String name = "Standard"; + private final String name = "Standard"; /* * The tier of this SKU. @@ -41,17 +41,6 @@ public String name() { return this.name; } - /** - * Set the name property: Name of this SKU. - * - * @param name the name value to set. - * @return the Sku object itself. - */ - public Sku withName(String name) { - this.name = name; - return this; - } - /** * Get the tier property: The tier of this SKU. *