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 dad65926bcf41c836545c8f5ac3e133291732850 into 49456eb149e3bb5d0528cbca714cfa1806415484
  • Loading branch information
SDKAuto committed Jan 7, 2025
1 parent e66b66a commit 31d40bb
Show file tree
Hide file tree
Showing 105 changed files with 1,532 additions and 1,920 deletions.
6 changes: 3 additions & 3 deletions sdk/clientcore/optional-dependency-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<groupId>io.clientcore</groupId>
<artifactId>optional-dependency-tests</artifactId>
<packaging>jar</packaging>
<version>1.0.0-beta.1</version> <!-- {x-version-update;io.clientcore:core;current} -->
<version>1.0.0-beta.2</version> <!-- {x-version-update;io.clientcore:core;current} -->

<name>Java Core library tests for optional dependencies and features.</name>
<description>Tests that validate optional dependencies and features of the Core library.</description>
Expand Down Expand Up @@ -56,14 +56,14 @@
<dependency>
<groupId>io.clientcore</groupId>
<artifactId>core</artifactId>
<version>1.0.0-beta.2</version> <!-- {x-version-update;io.clientcore:core;dependency} -->
<version>1.0.0-beta.1</version> <!-- {x-version-update;io.clientcore:core;dependency} -->
</dependency>

<!-- Test dependencies -->
<dependency>
<groupId>io.clientcore</groupId>
<artifactId>core</artifactId>
<version>1.0.0-beta.2</version> <!-- {x-version-update;io.clientcore:core;dependency} -->
<version>1.0.0-beta.1</version> <!-- {x-version-update;io.clientcore:core;dependency} -->
<type>test-jar</type>
<scope>test</scope>
</dependency>
Expand Down
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 (2025-01-07)

### 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
Loading

0 comments on commit 31d40bb

Please sign in to comment.