Skip to content

Commit 247fef1

Browse files
author
SDKAuto
committed
CodeGen from PR 33888 in Azure/azure-rest-api-specs
Merge 5959b29d90c516bd52f1d1094aad4a769709449b into 6ea706e86e0f35817367e394146d337154536350
1 parent 41e7411 commit 247fef1

File tree

104 files changed

+1518
-1908
lines changed

Some content is hidden

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

104 files changed

+1518
-1908
lines changed

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

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

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2025-04-15)
44

5-
### Features Added
5+
- Azure Resource Manager Playwright Testing client library for Java. This package contains Microsoft Azure SDK for Playwright Testing Management SDK. Azure Playwright testing management service. Package tag package-2024-12-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
### Breaking Changes
88

9-
### Bugs Fixed
9+
#### `implementation.models.AccountListResult` was removed
10+
11+
#### `implementation.models.OperationListResult` was removed
12+
13+
#### `implementation.models.AccountQuotaListResult` was removed
14+
15+
#### `implementation.models.QuotaListResult` was removed
16+
17+
#### `models.AccountFreeTrialProperties` was modified
18+
19+
* `double percentageUsed()` -> `float percentageUsed()`
20+
21+
### Features Added
22+
23+
* `models.AccountListResult` was added
24+
25+
* `models.AccountQuotaListResult` was added
26+
27+
* `models.OperationListResult` was added
28+
29+
* `models.QuotaListResult` was added
30+
31+
#### `models.QuotaProperties` was modified
32+
33+
* `withFreeTrial(models.FreeTrialProperties)` was added
34+
35+
#### `models.AccountQuotaProperties` was modified
1036

11-
### Other Changes
37+
* `withFreeTrial(models.AccountFreeTrialProperties)` was added
1238

1339
## 1.0.0 (2024-12-16)
1440

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

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

33
Azure Resource Manager Playwright Testing client library for Java.
44

5-
This package contains Microsoft Azure SDK for Playwright Testing Management SDK. Microsoft.AzurePlaywrightService Resource Provider Management API. 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 Testing Management SDK. Azure Playwright testing management service. Package tag package-2024-12-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

@@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
5252
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5353

5454
```java
55-
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
55+
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
5656
TokenCredential credential = new DefaultAzureCredentialBuilder()
5757
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
5858
.build();
5959
PlaywrightTestingManager manager = PlaywrightTestingManager
6060
.authenticate(credential, profile);
6161
```
6262

63-
The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
63+
The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
6464

6565
See [Authentication][authenticate] for more options.
6666

@@ -70,6 +70,14 @@ See [API design][design] for general introduction on design and key concepts on
7070

7171
## Examples
7272

73+
```java
74+
account = playwrightTestingManager.accounts()
75+
.define(accountName)
76+
.withRegion(REGION)
77+
.withExistingResourceGroup(resourceGroupName)
78+
.withProperties(new AccountProperties().withRegionalAffinity(EnablementStatus.ENABLED))
79+
.create();
80+
```
7381
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/playwrighttesting/azure-resourcemanager-playwrighttesting/SAMPLE.md)
7482

7583

@@ -100,5 +108,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
100108
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
101109
[coc]: https://opensource.microsoft.com/codeofconduct/
102110
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
103-
104-

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

Lines changed: 103 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
- [CheckNameAvailability](#accounts_checknameavailability)
1212
- [CreateOrUpdate](#accounts_createorupdate)
1313
- [Delete](#accounts_delete)
14+
- [GetByResourceGroup](#accounts_getbyresourcegroup)
15+
- [List](#accounts_list)
16+
- [ListByResourceGroup](#accounts_listbyresourcegroup)
1417
- [Update](#accounts_update)
1518

1619
## Operations
@@ -31,7 +34,9 @@ import com.azure.resourcemanager.playwrighttesting.models.QuotaNames;
3134
*/
3235
public final class AccountQuotasGetSamples {
3336
/*
34-
* x-ms-original-file: 2024-12-01/AccountQuotas_Get.json
37+
* x-ms-original-file:
38+
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
39+
* AccountQuotas_Get.json
3540
*/
3641
/**
3742
* Sample code: AccountQuotas_Get.
@@ -54,7 +59,9 @@ public final class AccountQuotasGetSamples {
5459
*/
5560
public final class AccountQuotasListByAccountSamples {
5661
/*
57-
* x-ms-original-file: 2024-12-01/AccountQuotas_ListByAccount.json
62+
* x-ms-original-file:
63+
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
64+
* AccountQuotas_ListByAccount.json
5865
*/
5966
/**
6067
* Sample code: AccountQuotas_ListByAccount.
@@ -78,7 +85,9 @@ import com.azure.resourcemanager.playwrighttesting.models.CheckNameAvailabilityR
7885
*/
7986
public final class AccountsCheckNameAvailabilitySamples {
8087
/*
81-
* x-ms-original-file: 2024-12-01/Accounts_CheckNameAvailability.json
88+
* x-ms-original-file:
89+
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
90+
* Accounts_CheckNameAvailability.json
8291
*/
8392
/**
8493
* Sample code: Accounts_CheckNameAvailability.
@@ -107,7 +116,9 @@ import java.util.Map;
107116
*/
108117
public final class AccountsCreateOrUpdateSamples {
109118
/*
110-
* x-ms-original-file: 2024-12-01/Accounts_CreateOrUpdate.json
119+
* x-ms-original-file:
120+
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
121+
* Accounts_CreateOrUpdate.json
111122
*/
112123
/**
113124
* Sample code: Accounts_CreateOrUpdate.
@@ -147,7 +158,9 @@ public final class AccountsCreateOrUpdateSamples {
147158
*/
148159
public final class AccountsDeleteSamples {
149160
/*
150-
* x-ms-original-file: 2024-12-01/Accounts_Delete.json
161+
* x-ms-original-file:
162+
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
163+
* Accounts_Delete.json
151164
*/
152165
/**
153166
* Sample code: Accounts_Delete.
@@ -160,6 +173,78 @@ public final class AccountsDeleteSamples {
160173
}
161174
```
162175

176+
### Accounts_GetByResourceGroup
177+
178+
```java
179+
/**
180+
* Samples for Accounts GetByResourceGroup.
181+
*/
182+
public final class AccountsGetByResourceGroupSamples {
183+
/*
184+
* x-ms-original-file:
185+
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
186+
* Accounts_Get.json
187+
*/
188+
/**
189+
* Sample code: Accounts_Get.
190+
*
191+
* @param manager Entry point to PlaywrightTestingManager.
192+
*/
193+
public static void accountsGet(com.azure.resourcemanager.playwrighttesting.PlaywrightTestingManager manager) {
194+
manager.accounts()
195+
.getByResourceGroupWithResponse("dummyrg", "myPlaywrightAccount", com.azure.core.util.Context.NONE);
196+
}
197+
}
198+
```
199+
200+
### Accounts_List
201+
202+
```java
203+
/**
204+
* Samples for Accounts List.
205+
*/
206+
public final class AccountsListSamples {
207+
/*
208+
* x-ms-original-file:
209+
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
210+
* Accounts_ListBySubscription.json
211+
*/
212+
/**
213+
* Sample code: Accounts_ListBySubscription.
214+
*
215+
* @param manager Entry point to PlaywrightTestingManager.
216+
*/
217+
public static void
218+
accountsListBySubscription(com.azure.resourcemanager.playwrighttesting.PlaywrightTestingManager manager) {
219+
manager.accounts().list(com.azure.core.util.Context.NONE);
220+
}
221+
}
222+
```
223+
224+
### Accounts_ListByResourceGroup
225+
226+
```java
227+
/**
228+
* Samples for Accounts ListByResourceGroup.
229+
*/
230+
public final class AccountsListByResourceGroupSamples {
231+
/*
232+
* x-ms-original-file:
233+
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
234+
* Accounts_ListByResourceGroup.json
235+
*/
236+
/**
237+
* Sample code: Accounts_ListByResourceGroup.
238+
*
239+
* @param manager Entry point to PlaywrightTestingManager.
240+
*/
241+
public static void
242+
accountsListByResourceGroup(com.azure.resourcemanager.playwrighttesting.PlaywrightTestingManager manager) {
243+
manager.accounts().listByResourceGroup("dummyrg", com.azure.core.util.Context.NONE);
244+
}
245+
}
246+
```
247+
163248
### Accounts_Update
164249

165250
```java
@@ -174,7 +259,9 @@ import java.util.Map;
174259
*/
175260
public final class AccountsUpdateSamples {
176261
/*
177-
* x-ms-original-file: 2024-12-01/Accounts_Update.json
262+
* x-ms-original-file:
263+
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
264+
* Accounts_Update.json
178265
*/
179266
/**
180267
* Sample code: Accounts_Update.
@@ -186,7 +273,7 @@ public final class AccountsUpdateSamples {
186273
.getByResourceGroupWithResponse("dummyrg", "myPlaywrightAccount", com.azure.core.util.Context.NONE)
187274
.getValue();
188275
resource.update()
189-
.withTags(mapOf("Team", "Dev Exp", "Division", "LT"))
276+
.withTags(mapOf("Division", "LT", "Team", "Dev Exp"))
190277
.withProperties(new AccountUpdateProperties().withRegionalAffinity(EnablementStatus.ENABLED))
191278
.apply();
192279
}
@@ -213,7 +300,9 @@ public final class AccountsUpdateSamples {
213300
*/
214301
public final class OperationsListSamples {
215302
/*
216-
* x-ms-original-file: 2024-12-01/Operations_List.json
303+
* x-ms-original-file:
304+
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
305+
* Operations_List.json
217306
*/
218307
/**
219308
* Sample code: Operations_List.
@@ -236,7 +325,9 @@ import com.azure.resourcemanager.playwrighttesting.models.QuotaNames;
236325
*/
237326
public final class QuotasGetSamples {
238327
/*
239-
* x-ms-original-file: 2024-12-01/Quotas_Get.json
328+
* x-ms-original-file:
329+
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
330+
* Quotas_Get.json
240331
*/
241332
/**
242333
* Sample code: Quotas_Get.
@@ -257,7 +348,9 @@ public final class QuotasGetSamples {
257348
*/
258349
public final class QuotasListBySubscriptionSamples {
259350
/*
260-
* x-ms-original-file: 2024-12-01/Quotas_ListBySubscription.json
351+
* x-ms-original-file:
352+
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
353+
* Quotas_ListBySubscription.json
261354
*/
262355
/**
263356
* Sample code: Quotas_ListBySubscription.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--
22
~ Copyright (c) Microsoft Corporation. All rights reserved.
33
~ Licensed under the MIT License.
4-
~ Code generated by Microsoft (R) TypeSpec Code Generator.
4+
~ Code generated by Microsoft (R) AutoRest Code Generator.
55
-->
66
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
77
<modelVersion>4.0.0</modelVersion>
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for Playwright Testing Management</name>
21-
<description>This package contains Microsoft Azure SDK for Playwright Testing Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft.AzurePlaywrightService Resource Provider Management API.</description>
21+
<description>This package contains Microsoft Azure SDK for Playwright Testing Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Playwright testing management service. Package tag package-2024-12-01.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>

sdk/playwrighttesting/azure-resourcemanager-playwrighttesting/src/main/java/com/azure/resourcemanager/playwrighttesting/PlaywrightTestingManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
3-
// Code generated by Microsoft (R) TypeSpec Code Generator.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
44

55
package com.azure.resourcemanager.playwrighttesting;
66

@@ -44,7 +44,7 @@
4444

4545
/**
4646
* Entry point to PlaywrightTestingManager.
47-
* Microsoft.AzurePlaywrightService Resource Provider Management API.
47+
* Azure Playwright testing management service.
4848
*/
4949
public final class PlaywrightTestingManager {
5050
private Operations operations;

0 commit comments

Comments
 (0)