Skip to content

Commit

Permalink
[Automation] Generate Fluent Lite from Swagger purview#package-2021-0…
Browse files Browse the repository at this point in the history
…7-01 (#43660)
  • Loading branch information
azure-sdk authored Jan 2, 2025
1 parent b6caa39 commit 0b2283b
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 4 additions & 6 deletions sdk/purview/azure-resourcemanager-purview/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# Release History

## 1.0.0-beta.4 (Unreleased)
## 1.0.0 (2025-01-02)

### Features Added

### Breaking Changes

### Bugs Fixed
- 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).
Expand Down
2 changes: 1 addition & 1 deletion sdk/purview/azure-resourcemanager-purview/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-purview</artifactId>
<version>1.0.0-beta.3</version>
<version>1.0.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
4 changes: 2 additions & 2 deletions sdk/purview/azure-resourcemanager-purview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-purview</artifactId>
<version>1.0.0-beta.4</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-purview;current} -->
<version>1.0.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-purview;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Purview Management</name>
Expand Down Expand Up @@ -45,7 +45,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
<spotless.skip>false</spotless.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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"))
Expand Down Expand Up @@ -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()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}
Expand Down

0 comments on commit 0b2283b

Please sign in to comment.