Skip to content

Commit c8cffce

Browse files
[AutoPR azure-resourcemanager-playwright]-generated-from-SDK Generation - Java-5217656 (#46392)
* Configurations: 'specification/loadtestservice/Playwright.Management/tspconfig.yaml', API Version: 2025-09-01, SDK Release Type: stable, and CommitSHA: '1bdafdbace5d4cc7eb461433adac4a45af87c186' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5217656 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Update CHANGELOG.md --------- Co-authored-by: Weidong Xu <weidxu@microsoft.com>
1 parent bf44853 commit c8cffce

File tree

61 files changed

+324
-307
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+324
-307
lines changed

eng/versioning/version_client.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ com.azure.resourcemanager:azure-resourcemanager-cloudhealth;1.0.0-beta.1;1.0.0-b
502502
com.azure.resourcemanager:azure-resourcemanager-resources-deploymentstacks;1.0.0;1.1.0-beta.1
503503
com.azure.resourcemanager:azure-resourcemanager-kubernetesconfiguration-privatelinkscopes;1.0.0-beta.1;1.0.0-beta.2
504504
com.azure.resourcemanager:azure-resourcemanager-resources-bicep;1.0.0-beta.1;1.0.0-beta.1
505-
com.azure.resourcemanager:azure-resourcemanager-playwright;1.0.0-beta.1;1.0.0-beta.2
505+
com.azure.resourcemanager:azure-resourcemanager-playwright;1.0.0-beta.1;1.0.0
506506
com.azure.resourcemanager:azure-resourcemanager-containerservicesafeguards;1.0.0-beta.1;1.0.0-beta.1
507507
com.azure.resourcemanager:azure-resourcemanager-azurestackhci-vm;1.0.0-beta.1;1.0.0-beta.2
508508
com.azure.tools:azure-sdk-archetype;1.0.0;1.2.0-beta.1

sdk/playwright/azure-resourcemanager-playwright/CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Release History
22

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0 (2025-08-26)
44

5-
### Features Added
5+
- Azure Resource Manager Playwright client library for Java. This package contains Microsoft Azure SDK for Playwright Management SDK. Playwright Service Management API provides access to Playwright workspace resources and their operations through Azure Resource Manager. Package api-version 2025-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

7-
### Breaking Changes
7+
### Features Added
88

9-
### Bugs Fixed
9+
#### `models.PlaywrightWorkspaceProperties` was modified
1010

11-
### Other Changes
11+
* `workspaceId()` was added
1212

1313
## 1.0.0-beta.1 (2025-07-14)
1414

sdk/playwright/azure-resourcemanager-playwright/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager Playwright client library for Java.
44

5-
This package contains Microsoft Azure SDK for Playwright Management SDK. Playwright service provides access to Playwright workspace resource and it's operations. Package api-version 2025-07-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
5+
This package contains Microsoft Azure SDK for Playwright Management SDK. Playwright Service Management API provides access to Playwright workspace resources and their operations through Azure Resource Manager. Package api-version 2025-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-playwright</artifactId>
35-
<version>1.0.0-beta.1</version>
35+
<version>1.0.0</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/playwright/azure-resourcemanager-playwright/SAMPLE.md

Lines changed: 75 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -23,65 +23,44 @@
2323
### Operations_List
2424

2525
```java
26-
import com.azure.resourcemanager.playwright.models.EnablementStatus;
27-
import com.azure.resourcemanager.playwright.models.PlaywrightWorkspace;
28-
import com.azure.resourcemanager.playwright.models.PlaywrightWorkspaceUpdateProperties;
29-
import java.util.HashMap;
30-
import java.util.Map;
31-
3226
/**
33-
* Samples for PlaywrightWorkspaces Update.
27+
* Samples for Operations List.
3428
*/
35-
public final class PlaywrightWorkspacesUpdateSamples {
29+
public final class OperationsListSamples {
3630
/*
37-
* x-ms-original-file: 2025-07-01-preview/PlaywrightWorkspaces_Update.json
31+
* x-ms-original-file: 2025-09-01/Operations_List.json
3832
*/
3933
/**
40-
* Sample code: PlaywrightWorkspaces_Update.
34+
* Sample code: Operations_List.
4135
*
4236
* @param manager Entry point to PlaywrightManager.
4337
*/
44-
public static void playwrightWorkspacesUpdate(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
45-
PlaywrightWorkspace resource = manager.playwrightWorkspaces()
46-
.getByResourceGroupWithResponse("dummyrg", "myWorkspace", com.azure.core.util.Context.NONE)
47-
.getValue();
48-
resource.update()
49-
.withTags(mapOf("Team", "Dev Exp", "Division", "LT"))
50-
.withProperties(new PlaywrightWorkspaceUpdateProperties().withRegionalAffinity(EnablementStatus.DISABLED))
51-
.apply();
52-
}
53-
54-
// Use "Map.of" if available
55-
@SuppressWarnings("unchecked")
56-
private static <T> Map<String, T> mapOf(Object... inputs) {
57-
Map<String, T> map = new HashMap<>();
58-
for (int i = 0; i < inputs.length; i += 2) {
59-
String key = (String) inputs[i];
60-
T value = (T) inputs[i + 1];
61-
map.put(key, value);
62-
}
63-
return map;
38+
public static void operationsList(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
39+
manager.operations().list(com.azure.core.util.Context.NONE);
6440
}
6541
}
6642
```
6743

6844
### PlaywrightQuotas_Get
6945

7046
```java
47+
import com.azure.resourcemanager.playwright.models.QuotaName;
48+
7149
/**
72-
* Samples for Operations List.
50+
* Samples for PlaywrightQuotas Get.
7351
*/
74-
public final class OperationsListSamples {
52+
public final class PlaywrightQuotasGetSamples {
7553
/*
76-
* x-ms-original-file: 2025-07-01-preview/Operations_List.json
54+
* x-ms-original-file: 2025-09-01/PlaywrightQuotas_Get.json
7755
*/
7856
/**
79-
* Sample code: Operations_List.
57+
* Sample code: PlaywrightQuotas_Get.
8058
*
8159
* @param manager Entry point to PlaywrightManager.
8260
*/
83-
public static void operationsList(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
84-
manager.operations().list(com.azure.core.util.Context.NONE);
61+
public static void playwrightQuotasGet(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
62+
manager.playwrightQuotas()
63+
.getWithResponse("eastus", QuotaName.EXECUTION_MINUTES, com.azure.core.util.Context.NONE);
8564
}
8665
}
8766
```
@@ -90,43 +69,44 @@ public final class OperationsListSamples {
9069

9170
```java
9271
/**
93-
* Samples for PlaywrightWorkspaceQuotas ListByPlaywrightWorkspace.
72+
* Samples for PlaywrightQuotas ListBySubscription.
9473
*/
95-
public final class PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceSamples {
74+
public final class PlaywrightQuotasListBySubscriptionSamples {
9675
/*
97-
* x-ms-original-file: 2025-07-01-preview/PlaywrightWorkspaceQuotas_ListByPlaywrightWorkspace.json
76+
* x-ms-original-file: 2025-09-01/PlaywrightQuotas_ListBySubscription.json
9877
*/
9978
/**
100-
* Sample code: PlaywrightWorkspaceQuotas_ListByPlaywrightWorkspace.
79+
* Sample code: PlaywrightQuotas_ListBySubscription.
10180
*
10281
* @param manager Entry point to PlaywrightManager.
10382
*/
104-
public static void playwrightWorkspaceQuotasListByPlaywrightWorkspace(
105-
com.azure.resourcemanager.playwright.PlaywrightManager manager) {
106-
manager.playwrightWorkspaceQuotas()
107-
.listByPlaywrightWorkspace("dummyrg", "myWorkspace", com.azure.core.util.Context.NONE);
83+
public static void
84+
playwrightQuotasListBySubscription(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
85+
manager.playwrightQuotas().listBySubscription("eastus", com.azure.core.util.Context.NONE);
10886
}
10987
}
11088
```
11189

11290
### PlaywrightWorkspaceQuotas_Get
11391

11492
```java
93+
import com.azure.resourcemanager.playwright.models.QuotaName;
94+
11595
/**
116-
* Samples for PlaywrightQuotas ListBySubscription.
96+
* Samples for PlaywrightWorkspaceQuotas Get.
11797
*/
118-
public final class PlaywrightQuotasListBySubscriptionSamples {
98+
public final class PlaywrightWorkspaceQuotasGetSamples {
11999
/*
120-
* x-ms-original-file: 2025-07-01-preview/PlaywrightQuotas_ListBySubscription.json
100+
* x-ms-original-file: 2025-09-01/PlaywrightWorkspaceQuotas_Get.json
121101
*/
122102
/**
123-
* Sample code: PlaywrightQuotas_ListBySubscription.
103+
* Sample code: PlaywrightWorkspaceQuotas_Get.
124104
*
125105
* @param manager Entry point to PlaywrightManager.
126106
*/
127-
public static void
128-
playwrightQuotasListBySubscription(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
129-
manager.playwrightQuotas().listBySubscription("eastus", com.azure.core.util.Context.NONE);
107+
public static void playwrightWorkspaceQuotasGet(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
108+
manager.playwrightWorkspaceQuotas()
109+
.getWithResponse("dummyrg", "myWorkspace", QuotaName.EXECUTION_MINUTES, com.azure.core.util.Context.NONE);
130110
}
131111
}
132112
```
@@ -135,19 +115,21 @@ public final class PlaywrightQuotasListBySubscriptionSamples {
135115

136116
```java
137117
/**
138-
* Samples for PlaywrightWorkspaces Delete.
118+
* Samples for PlaywrightWorkspaceQuotas ListByPlaywrightWorkspace.
139119
*/
140-
public final class PlaywrightWorkspacesDeleteSamples {
120+
public final class PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceSamples {
141121
/*
142-
* x-ms-original-file: 2025-07-01-preview/PlaywrightWorkspaces_Delete.json
122+
* x-ms-original-file: 2025-09-01/PlaywrightWorkspaceQuotas_ListByPlaywrightWorkspace.json
143123
*/
144124
/**
145-
* Sample code: PlaywrightWorkspaces_Delete.
125+
* Sample code: PlaywrightWorkspaceQuotas_ListByPlaywrightWorkspace.
146126
*
147127
* @param manager Entry point to PlaywrightManager.
148128
*/
149-
public static void playwrightWorkspacesDelete(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
150-
manager.playwrightWorkspaces().delete("dummyrg", "myWorkspace", com.azure.core.util.Context.NONE);
129+
public static void playwrightWorkspaceQuotasListByPlaywrightWorkspace(
130+
com.azure.resourcemanager.playwright.PlaywrightManager manager) {
131+
manager.playwrightWorkspaceQuotas()
132+
.listByPlaywrightWorkspace("dummyrg", "myWorkspace", com.azure.core.util.Context.NONE);
151133
}
152134
}
153135
```
@@ -162,7 +144,7 @@ import com.azure.resourcemanager.playwright.models.CheckNameAvailabilityRequest;
162144
*/
163145
public final class PlaywrightWorkspacesCheckNameAvailabilitySamples {
164146
/*
165-
* x-ms-original-file: 2025-07-01-preview/PlaywrightWorkspaces_CheckNameAvailability.json
147+
* x-ms-original-file: 2025-09-01/PlaywrightWorkspaces_CheckNameAvailability.json
166148
*/
167149
/**
168150
* Sample code: PlaywrightWorkspaces_CheckNameAvailability.
@@ -181,47 +163,65 @@ public final class PlaywrightWorkspacesCheckNameAvailabilitySamples {
181163
### PlaywrightWorkspaces_Delete
182164

183165
```java
184-
import com.azure.resourcemanager.playwright.models.QuotaName;
185-
186166
/**
187-
* Samples for PlaywrightQuotas Get.
167+
* Samples for PlaywrightWorkspaces Delete.
188168
*/
189-
public final class PlaywrightQuotasGetSamples {
169+
public final class PlaywrightWorkspacesDeleteSamples {
190170
/*
191-
* x-ms-original-file: 2025-07-01-preview/PlaywrightQuotas_Get.json
171+
* x-ms-original-file: 2025-09-01/PlaywrightWorkspaces_Delete.json
192172
*/
193173
/**
194-
* Sample code: PlaywrightQuotas_Get.
174+
* Sample code: PlaywrightWorkspaces_Delete.
195175
*
196176
* @param manager Entry point to PlaywrightManager.
197177
*/
198-
public static void playwrightQuotasGet(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
199-
manager.playwrightQuotas()
200-
.getWithResponse("eastus", QuotaName.EXECUTION_MINUTES, com.azure.core.util.Context.NONE);
178+
public static void playwrightWorkspacesDelete(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
179+
manager.playwrightWorkspaces().delete("dummyrg", "myWorkspace", com.azure.core.util.Context.NONE);
201180
}
202181
}
203182
```
204183

205184
### PlaywrightWorkspaces_Update
206185

207186
```java
208-
import com.azure.resourcemanager.playwright.models.QuotaName;
187+
import com.azure.resourcemanager.playwright.models.EnablementStatus;
188+
import com.azure.resourcemanager.playwright.models.PlaywrightWorkspace;
189+
import com.azure.resourcemanager.playwright.models.PlaywrightWorkspaceUpdateProperties;
190+
import java.util.HashMap;
191+
import java.util.Map;
209192

210193
/**
211-
* Samples for PlaywrightWorkspaceQuotas Get.
194+
* Samples for PlaywrightWorkspaces Update.
212195
*/
213-
public final class PlaywrightWorkspaceQuotasGetSamples {
196+
public final class PlaywrightWorkspacesUpdateSamples {
214197
/*
215-
* x-ms-original-file: 2025-07-01-preview/PlaywrightWorkspaceQuotas_Get.json
198+
* x-ms-original-file: 2025-09-01/PlaywrightWorkspaces_Update.json
216199
*/
217200
/**
218-
* Sample code: PlaywrightWorkspaceQuotas_Get.
201+
* Sample code: PlaywrightWorkspaces_Update.
219202
*
220203
* @param manager Entry point to PlaywrightManager.
221204
*/
222-
public static void playwrightWorkspaceQuotasGet(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
223-
manager.playwrightWorkspaceQuotas()
224-
.getWithResponse("dummyrg", "myWorkspace", QuotaName.EXECUTION_MINUTES, com.azure.core.util.Context.NONE);
205+
public static void playwrightWorkspacesUpdate(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
206+
PlaywrightWorkspace resource = manager.playwrightWorkspaces()
207+
.getByResourceGroupWithResponse("dummyrg", "myWorkspace", com.azure.core.util.Context.NONE)
208+
.getValue();
209+
resource.update()
210+
.withTags(mapOf("Team", "Dev Exp", "Division", "LT"))
211+
.withProperties(new PlaywrightWorkspaceUpdateProperties().withRegionalAffinity(EnablementStatus.DISABLED))
212+
.apply();
213+
}
214+
215+
// Use "Map.of" if available
216+
@SuppressWarnings("unchecked")
217+
private static <T> Map<String, T> mapOf(Object... inputs) {
218+
Map<String, T> map = new HashMap<>();
219+
for (int i = 0; i < inputs.length; i += 2) {
220+
String key = (String) inputs[i];
221+
T value = (T) inputs[i + 1];
222+
map.put(key, value);
223+
}
224+
return map;
225225
}
226226
}
227227
```

sdk/playwright/azure-resourcemanager-playwright/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
<groupId>com.azure.resourcemanager</groupId>
1616
<artifactId>azure-resourcemanager-playwright</artifactId>
17-
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-playwright;current} -->
17+
<version>1.0.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-playwright;current} -->
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for Playwright Management</name>
21-
<description>This package contains Microsoft Azure SDK for Playwright Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Playwright service provides access to Playwright workspace resource and it's operations. Package api-version 2025-07-01-preview.</description>
21+
<description>This package contains Microsoft Azure SDK for Playwright Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Playwright Service Management API provides access to Playwright workspace resources and their operations through Azure Resource Manager. Package api-version 2025-09-01.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -45,7 +45,6 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48-
<revapi.skip>true</revapi.skip>
4948
</properties>
5049
<dependencies>
5150
<dependency>

sdk/playwright/azure-resourcemanager-playwright/src/main/java/com/azure/resourcemanager/playwright/PlaywrightManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444

4545
/**
4646
* Entry point to PlaywrightManager.
47-
* Playwright service provides access to Playwright workspace resource and it's operations.
47+
* Playwright Service Management API provides access to Playwright workspace resources and their operations through
48+
* Azure Resource Manager.
4849
*/
4950
public final class PlaywrightManager {
5051
private Operations operations;

sdk/playwright/azure-resourcemanager-playwright/src/main/java/com/azure/resourcemanager/playwright/fluent/PlaywrightQuotasClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,34 @@
1717
*/
1818
public interface PlaywrightQuotasClient {
1919
/**
20-
* Get subscription-level location-based Playwright quota resource by name.
20+
* Gets a subscription-level location-based Playwright quota resource by name.
2121
*
2222
* @param location The name of the Azure region.
2323
* @param playwrightQuotaName The name of the PlaywrightQuota.
2424
* @param context The context to associate with this operation.
2525
* @throws IllegalArgumentException thrown if parameters fail the validation.
2626
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2727
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
28-
* @return subscription-level location-based Playwright quota resource by name along with {@link Response}.
28+
* @return a subscription-level location-based Playwright quota resource by name along with {@link Response}.
2929
*/
3030
@ServiceMethod(returns = ReturnType.SINGLE)
3131
Response<PlaywrightQuotaInner> getWithResponse(String location, QuotaName playwrightQuotaName, Context context);
3232

3333
/**
34-
* Get subscription-level location-based Playwright quota resource by name.
34+
* Gets a subscription-level location-based Playwright quota resource by name.
3535
*
3636
* @param location The name of the Azure region.
3737
* @param playwrightQuotaName The name of the PlaywrightQuota.
3838
* @throws IllegalArgumentException thrown if parameters fail the validation.
3939
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
4040
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
41-
* @return subscription-level location-based Playwright quota resource by name.
41+
* @return a subscription-level location-based Playwright quota resource by name.
4242
*/
4343
@ServiceMethod(returns = ReturnType.SINGLE)
4444
PlaywrightQuotaInner get(String location, QuotaName playwrightQuotaName);
4545

4646
/**
47-
* List Playwright quota resources for a given subscription Id.
47+
* Lists Playwright quota resources for a given subscription ID.
4848
*
4949
* @param location The name of the Azure region.
5050
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -56,7 +56,7 @@ public interface PlaywrightQuotasClient {
5656
PagedIterable<PlaywrightQuotaInner> listBySubscription(String location);
5757

5858
/**
59-
* List Playwright quota resources for a given subscription Id.
59+
* Lists Playwright quota resources for a given subscription ID.
6060
*
6161
* @param location The name of the Azure region.
6262
* @param context The context to associate with this operation.

0 commit comments

Comments
 (0)