Skip to content

Commit

Permalink
CodeGen from PR 31855 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 20388cf46d1439b69e0d92739ad9e2313fc575fe into 64f6997950d8bee63f314563cedaa20148db2186
  • Loading branch information
SDKAuto committed Dec 26, 2024
1 parent 51c5fab commit 1b4914c
Show file tree
Hide file tree
Showing 104 changed files with 1,529 additions and 1,917 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,40 @@
# Release History

## 1.1.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2024-12-26)

### Features Added
- 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).

### Breaking Changes

### Bugs Fixed
#### `implementation.models.AccountListResult` was removed

#### `implementation.models.OperationListResult` was removed

#### `implementation.models.AccountQuotaListResult` was removed

#### `implementation.models.QuotaListResult` was removed

#### `models.AccountFreeTrialProperties` was modified

* `double percentageUsed()` -> `float percentageUsed()`

### Features Added

* `models.AccountListResult` was added

* `models.AccountQuotaListResult` was added

* `models.OperationListResult` was added

* `models.QuotaListResult` was added

#### `models.QuotaProperties` was modified

* `withFreeTrial(models.FreeTrialProperties)` was added

#### `models.AccountQuotaProperties` was modified

### Other Changes
* `withFreeTrial(models.AccountFreeTrialProperties)` was added

## 1.0.0 (2024-12-16)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager Playwright Testing client library for Java.

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).
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).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-playwrighttesting</artifactId>
<version>1.0.0</version>
<version>1.1.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -70,6 +70,14 @@ See [API design][design] for general introduction on design and key concepts on

## Examples

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


Expand Down
113 changes: 103 additions & 10 deletions sdk/playwrighttesting/azure-resourcemanager-playwrighttesting/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
- [CheckNameAvailability](#accounts_checknameavailability)
- [CreateOrUpdate](#accounts_createorupdate)
- [Delete](#accounts_delete)
- [GetByResourceGroup](#accounts_getbyresourcegroup)
- [List](#accounts_list)
- [ListByResourceGroup](#accounts_listbyresourcegroup)
- [Update](#accounts_update)

## Operations
Expand All @@ -31,7 +34,9 @@ import com.azure.resourcemanager.playwrighttesting.models.QuotaNames;
*/
public final class AccountQuotasGetSamples {
/*
* x-ms-original-file: 2024-12-01/AccountQuotas_Get.json
* x-ms-original-file:
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
* AccountQuotas_Get.json
*/
/**
* Sample code: AccountQuotas_Get.
Expand All @@ -54,7 +59,9 @@ public final class AccountQuotasGetSamples {
*/
public final class AccountQuotasListByAccountSamples {
/*
* x-ms-original-file: 2024-12-01/AccountQuotas_ListByAccount.json
* x-ms-original-file:
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
* AccountQuotas_ListByAccount.json
*/
/**
* Sample code: AccountQuotas_ListByAccount.
Expand All @@ -78,7 +85,9 @@ import com.azure.resourcemanager.playwrighttesting.models.CheckNameAvailabilityR
*/
public final class AccountsCheckNameAvailabilitySamples {
/*
* x-ms-original-file: 2024-12-01/Accounts_CheckNameAvailability.json
* x-ms-original-file:
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
* Accounts_CheckNameAvailability.json
*/
/**
* Sample code: Accounts_CheckNameAvailability.
Expand Down Expand Up @@ -107,7 +116,9 @@ import java.util.Map;
*/
public final class AccountsCreateOrUpdateSamples {
/*
* x-ms-original-file: 2024-12-01/Accounts_CreateOrUpdate.json
* x-ms-original-file:
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
* Accounts_CreateOrUpdate.json
*/
/**
* Sample code: Accounts_CreateOrUpdate.
Expand Down Expand Up @@ -147,7 +158,9 @@ public final class AccountsCreateOrUpdateSamples {
*/
public final class AccountsDeleteSamples {
/*
* x-ms-original-file: 2024-12-01/Accounts_Delete.json
* x-ms-original-file:
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
* Accounts_Delete.json
*/
/**
* Sample code: Accounts_Delete.
Expand All @@ -160,6 +173,78 @@ public final class AccountsDeleteSamples {
}
```

### Accounts_GetByResourceGroup

```java
/**
* Samples for Accounts GetByResourceGroup.
*/
public final class AccountsGetByResourceGroupSamples {
/*
* x-ms-original-file:
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
* Accounts_Get.json
*/
/**
* Sample code: Accounts_Get.
*
* @param manager Entry point to PlaywrightTestingManager.
*/
public static void accountsGet(com.azure.resourcemanager.playwrighttesting.PlaywrightTestingManager manager) {
manager.accounts()
.getByResourceGroupWithResponse("dummyrg", "myPlaywrightAccount", com.azure.core.util.Context.NONE);
}
}
```

### Accounts_List

```java
/**
* Samples for Accounts List.
*/
public final class AccountsListSamples {
/*
* x-ms-original-file:
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
* Accounts_ListBySubscription.json
*/
/**
* Sample code: Accounts_ListBySubscription.
*
* @param manager Entry point to PlaywrightTestingManager.
*/
public static void
accountsListBySubscription(com.azure.resourcemanager.playwrighttesting.PlaywrightTestingManager manager) {
manager.accounts().list(com.azure.core.util.Context.NONE);
}
}
```

### Accounts_ListByResourceGroup

```java
/**
* Samples for Accounts ListByResourceGroup.
*/
public final class AccountsListByResourceGroupSamples {
/*
* x-ms-original-file:
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
* Accounts_ListByResourceGroup.json
*/
/**
* Sample code: Accounts_ListByResourceGroup.
*
* @param manager Entry point to PlaywrightTestingManager.
*/
public static void
accountsListByResourceGroup(com.azure.resourcemanager.playwrighttesting.PlaywrightTestingManager manager) {
manager.accounts().listByResourceGroup("dummyrg", com.azure.core.util.Context.NONE);
}
}
```

### Accounts_Update

```java
Expand All @@ -174,7 +259,9 @@ import java.util.Map;
*/
public final class AccountsUpdateSamples {
/*
* x-ms-original-file: 2024-12-01/Accounts_Update.json
* x-ms-original-file:
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
* Accounts_Update.json
*/
/**
* Sample code: Accounts_Update.
Expand All @@ -186,7 +273,7 @@ public final class AccountsUpdateSamples {
.getByResourceGroupWithResponse("dummyrg", "myPlaywrightAccount", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
.withTags(mapOf("Team", "Dev Exp", "Division", "LT"))
.withTags(mapOf("Division", "LT", "Team", "Dev Exp"))
.withProperties(new AccountUpdateProperties().withRegionalAffinity(EnablementStatus.ENABLED))
.apply();
}
Expand All @@ -213,7 +300,9 @@ public final class AccountsUpdateSamples {
*/
public final class OperationsListSamples {
/*
* x-ms-original-file: 2024-12-01/Operations_List.json
* x-ms-original-file:
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
* Operations_List.json
*/
/**
* Sample code: Operations_List.
Expand All @@ -236,7 +325,9 @@ import com.azure.resourcemanager.playwrighttesting.models.QuotaNames;
*/
public final class QuotasGetSamples {
/*
* x-ms-original-file: 2024-12-01/Quotas_Get.json
* x-ms-original-file:
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
* Quotas_Get.json
*/
/**
* Sample code: Quotas_Get.
Expand All @@ -257,7 +348,9 @@ public final class QuotasGetSamples {
*/
public final class QuotasListBySubscriptionSamples {
/*
* x-ms-original-file: 2024-12-01/Quotas_ListBySubscription.json
* x-ms-original-file:
* specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/
* Quotas_ListBySubscription.json
*/
/**
* Sample code: Quotas_ListBySubscription.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) TypeSpec Code Generator.
~ Code generated by Microsoft (R) AutoRest Code Generator.
-->
<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">
<modelVersion>4.0.0</modelVersion>
Expand All @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Playwright Testing Management</name>
<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>
<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>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.playwrighttesting;

Expand Down Expand Up @@ -42,7 +42,7 @@

/**
* Entry point to PlaywrightTestingManager.
* Microsoft.AzurePlaywrightService Resource Provider Management API.
* Azure Playwright testing management service.
*/
public final class PlaywrightTestingManager {
private Operations operations;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.playwrighttesting.fluent;

Expand All @@ -17,59 +17,59 @@
*/
public interface AccountQuotasClient {
/**
* Get quota by name for an account.
* List quotas for a given account.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName Name of account.
* @param quotaName The Playwright service account quota name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return quota by name for an account along with {@link Response}.
* @return the response of a AccountQuota list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AccountQuotaInner> getWithResponse(String resourceGroupName, String accountName, QuotaNames quotaName,
Context context);
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AccountQuotaInner> listByAccount(String resourceGroupName, String accountName);

/**
* Get quota by name for an account.
* List quotas for a given account.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName Name of account.
* @param quotaName The Playwright service account quota name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return quota by name for an account.
* @return the response of a AccountQuota list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AccountQuotaInner get(String resourceGroupName, String accountName, QuotaNames quotaName);
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AccountQuotaInner> listByAccount(String resourceGroupName, String accountName, Context context);

/**
* List quotas for a given account.
* Get quota by name for an account.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName Name of account.
* @param quotaName The Playwright service account quota name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a AccountQuota list operation as paginated response with {@link PagedIterable}.
* @return quota by name for an account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AccountQuotaInner> listByAccount(String resourceGroupName, String accountName);
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AccountQuotaInner> getWithResponse(String resourceGroupName, String accountName, QuotaNames quotaName,
Context context);

/**
* List quotas for a given account.
* Get quota by name for an account.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName Name of account.
* @param context The context to associate with this operation.
* @param quotaName The Playwright service account quota name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a AccountQuota list operation as paginated response with {@link PagedIterable}.
* @return quota by name for an account.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AccountQuotaInner> listByAccount(String resourceGroupName, String accountName, Context context);
@ServiceMethod(returns = ReturnType.SINGLE)
AccountQuotaInner get(String resourceGroupName, String accountName, QuotaNames quotaName);
}
Loading

0 comments on commit 1b4914c

Please sign in to comment.