Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ com.azure.resourcemanager:azure-resourcemanager-cloudhealth;1.0.0-beta.1;1.0.0-b
com.azure.resourcemanager:azure-resourcemanager-resources-deploymentstacks;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-kubernetesconfiguration-privatelinkscopes;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-resources-bicep;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-playwright;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-playwright;1.0.0-beta.1;1.0.0
com.azure.resourcemanager:azure-resourcemanager-containerservicesafeguards;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-azurestackhci-vm;1.0.0-beta.1;1.0.0-beta.2
com.azure.tools:azure-sdk-archetype;1.0.0;1.2.0-beta.1
Expand Down
10 changes: 5 additions & 5 deletions sdk/playwright/azure-resourcemanager-playwright/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Release History

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

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

### Breaking Changes
### Features Added

### Bugs Fixed
#### `models.PlaywrightWorkspaceProperties` was modified

### Other Changes
* `workspaceId()` was added

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

Expand Down
4 changes: 2 additions & 2 deletions sdk/playwright/azure-resourcemanager-playwright/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager Playwright client library for Java.

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

## 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-playwright</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
150 changes: 75 additions & 75 deletions sdk/playwright/azure-resourcemanager-playwright/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,65 +23,44 @@
### Operations_List

```java
import com.azure.resourcemanager.playwright.models.EnablementStatus;
import com.azure.resourcemanager.playwright.models.PlaywrightWorkspace;
import com.azure.resourcemanager.playwright.models.PlaywrightWorkspaceUpdateProperties;
import java.util.HashMap;
import java.util.Map;

/**
* Samples for PlaywrightWorkspaces Update.
* Samples for Operations List.
*/
public final class PlaywrightWorkspacesUpdateSamples {
public final class OperationsListSamples {
/*
* x-ms-original-file: 2025-07-01-preview/PlaywrightWorkspaces_Update.json
* x-ms-original-file: 2025-09-01/Operations_List.json
*/
/**
* Sample code: PlaywrightWorkspaces_Update.
* Sample code: Operations_List.
*
* @param manager Entry point to PlaywrightManager.
*/
public static void playwrightWorkspacesUpdate(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
PlaywrightWorkspace resource = manager.playwrightWorkspaces()
.getByResourceGroupWithResponse("dummyrg", "myWorkspace", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
.withTags(mapOf("Team", "Dev Exp", "Division", "LT"))
.withProperties(new PlaywrightWorkspaceUpdateProperties().withRegionalAffinity(EnablementStatus.DISABLED))
.apply();
}

// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
public static void operationsList(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```

### PlaywrightQuotas_Get

```java
import com.azure.resourcemanager.playwright.models.QuotaName;

/**
* Samples for Operations List.
* Samples for PlaywrightQuotas Get.
*/
public final class OperationsListSamples {
public final class PlaywrightQuotasGetSamples {
/*
* x-ms-original-file: 2025-07-01-preview/Operations_List.json
* x-ms-original-file: 2025-09-01/PlaywrightQuotas_Get.json
*/
/**
* Sample code: Operations_List.
* Sample code: PlaywrightQuotas_Get.
*
* @param manager Entry point to PlaywrightManager.
*/
public static void operationsList(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
public static void playwrightQuotasGet(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
manager.playwrightQuotas()
.getWithResponse("eastus", QuotaName.EXECUTION_MINUTES, com.azure.core.util.Context.NONE);
}
}
```
Expand All @@ -90,43 +69,44 @@ public final class OperationsListSamples {

```java
/**
* Samples for PlaywrightWorkspaceQuotas ListByPlaywrightWorkspace.
* Samples for PlaywrightQuotas ListBySubscription.
*/
public final class PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceSamples {
public final class PlaywrightQuotasListBySubscriptionSamples {
/*
* x-ms-original-file: 2025-07-01-preview/PlaywrightWorkspaceQuotas_ListByPlaywrightWorkspace.json
* x-ms-original-file: 2025-09-01/PlaywrightQuotas_ListBySubscription.json
*/
/**
* Sample code: PlaywrightWorkspaceQuotas_ListByPlaywrightWorkspace.
* Sample code: PlaywrightQuotas_ListBySubscription.
*
* @param manager Entry point to PlaywrightManager.
*/
public static void playwrightWorkspaceQuotasListByPlaywrightWorkspace(
com.azure.resourcemanager.playwright.PlaywrightManager manager) {
manager.playwrightWorkspaceQuotas()
.listByPlaywrightWorkspace("dummyrg", "myWorkspace", com.azure.core.util.Context.NONE);
public static void
playwrightQuotasListBySubscription(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
manager.playwrightQuotas().listBySubscription("eastus", com.azure.core.util.Context.NONE);
}
}
```

### PlaywrightWorkspaceQuotas_Get

```java
import com.azure.resourcemanager.playwright.models.QuotaName;

/**
* Samples for PlaywrightQuotas ListBySubscription.
* Samples for PlaywrightWorkspaceQuotas Get.
*/
public final class PlaywrightQuotasListBySubscriptionSamples {
public final class PlaywrightWorkspaceQuotasGetSamples {
/*
* x-ms-original-file: 2025-07-01-preview/PlaywrightQuotas_ListBySubscription.json
* x-ms-original-file: 2025-09-01/PlaywrightWorkspaceQuotas_Get.json
*/
/**
* Sample code: PlaywrightQuotas_ListBySubscription.
* Sample code: PlaywrightWorkspaceQuotas_Get.
*
* @param manager Entry point to PlaywrightManager.
*/
public static void
playwrightQuotasListBySubscription(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
manager.playwrightQuotas().listBySubscription("eastus", com.azure.core.util.Context.NONE);
public static void playwrightWorkspaceQuotasGet(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
manager.playwrightWorkspaceQuotas()
.getWithResponse("dummyrg", "myWorkspace", QuotaName.EXECUTION_MINUTES, com.azure.core.util.Context.NONE);
}
}
```
Expand All @@ -135,19 +115,21 @@ public final class PlaywrightQuotasListBySubscriptionSamples {

```java
/**
* Samples for PlaywrightWorkspaces Delete.
* Samples for PlaywrightWorkspaceQuotas ListByPlaywrightWorkspace.
*/
public final class PlaywrightWorkspacesDeleteSamples {
public final class PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceSamples {
/*
* x-ms-original-file: 2025-07-01-preview/PlaywrightWorkspaces_Delete.json
* x-ms-original-file: 2025-09-01/PlaywrightWorkspaceQuotas_ListByPlaywrightWorkspace.json
*/
/**
* Sample code: PlaywrightWorkspaces_Delete.
* Sample code: PlaywrightWorkspaceQuotas_ListByPlaywrightWorkspace.
*
* @param manager Entry point to PlaywrightManager.
*/
public static void playwrightWorkspacesDelete(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
manager.playwrightWorkspaces().delete("dummyrg", "myWorkspace", com.azure.core.util.Context.NONE);
public static void playwrightWorkspaceQuotasListByPlaywrightWorkspace(
com.azure.resourcemanager.playwright.PlaywrightManager manager) {
manager.playwrightWorkspaceQuotas()
.listByPlaywrightWorkspace("dummyrg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```
Expand All @@ -162,7 +144,7 @@ import com.azure.resourcemanager.playwright.models.CheckNameAvailabilityRequest;
*/
public final class PlaywrightWorkspacesCheckNameAvailabilitySamples {
/*
* x-ms-original-file: 2025-07-01-preview/PlaywrightWorkspaces_CheckNameAvailability.json
* x-ms-original-file: 2025-09-01/PlaywrightWorkspaces_CheckNameAvailability.json
*/
/**
* Sample code: PlaywrightWorkspaces_CheckNameAvailability.
Expand All @@ -181,47 +163,65 @@ public final class PlaywrightWorkspacesCheckNameAvailabilitySamples {
### PlaywrightWorkspaces_Delete

```java
import com.azure.resourcemanager.playwright.models.QuotaName;

/**
* Samples for PlaywrightQuotas Get.
* Samples for PlaywrightWorkspaces Delete.
*/
public final class PlaywrightQuotasGetSamples {
public final class PlaywrightWorkspacesDeleteSamples {
/*
* x-ms-original-file: 2025-07-01-preview/PlaywrightQuotas_Get.json
* x-ms-original-file: 2025-09-01/PlaywrightWorkspaces_Delete.json
*/
/**
* Sample code: PlaywrightQuotas_Get.
* Sample code: PlaywrightWorkspaces_Delete.
*
* @param manager Entry point to PlaywrightManager.
*/
public static void playwrightQuotasGet(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
manager.playwrightQuotas()
.getWithResponse("eastus", QuotaName.EXECUTION_MINUTES, com.azure.core.util.Context.NONE);
public static void playwrightWorkspacesDelete(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
manager.playwrightWorkspaces().delete("dummyrg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```

### PlaywrightWorkspaces_Update

```java
import com.azure.resourcemanager.playwright.models.QuotaName;
import com.azure.resourcemanager.playwright.models.EnablementStatus;
import com.azure.resourcemanager.playwright.models.PlaywrightWorkspace;
import com.azure.resourcemanager.playwright.models.PlaywrightWorkspaceUpdateProperties;
import java.util.HashMap;
import java.util.Map;

/**
* Samples for PlaywrightWorkspaceQuotas Get.
* Samples for PlaywrightWorkspaces Update.
*/
public final class PlaywrightWorkspaceQuotasGetSamples {
public final class PlaywrightWorkspacesUpdateSamples {
/*
* x-ms-original-file: 2025-07-01-preview/PlaywrightWorkspaceQuotas_Get.json
* x-ms-original-file: 2025-09-01/PlaywrightWorkspaces_Update.json
*/
/**
* Sample code: PlaywrightWorkspaceQuotas_Get.
* Sample code: PlaywrightWorkspaces_Update.
*
* @param manager Entry point to PlaywrightManager.
*/
public static void playwrightWorkspaceQuotasGet(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
manager.playwrightWorkspaceQuotas()
.getWithResponse("dummyrg", "myWorkspace", QuotaName.EXECUTION_MINUTES, com.azure.core.util.Context.NONE);
public static void playwrightWorkspacesUpdate(com.azure.resourcemanager.playwright.PlaywrightManager manager) {
PlaywrightWorkspace resource = manager.playwrightWorkspaces()
.getByResourceGroupWithResponse("dummyrg", "myWorkspace", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
.withTags(mapOf("Team", "Dev Exp", "Division", "LT"))
.withProperties(new PlaywrightWorkspaceUpdateProperties().withRegionalAffinity(EnablementStatus.DISABLED))
.apply();
}

// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
```
Expand Down
5 changes: 2 additions & 3 deletions sdk/playwright/azure-resourcemanager-playwright/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

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

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

<licenses>
Expand All @@ -45,7 +45,6 @@
<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>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@

/**
* Entry point to PlaywrightManager.
* Playwright service provides access to Playwright workspace resource and it's operations.
* Playwright Service Management API provides access to Playwright workspace resources and their operations through
* Azure Resource Manager.
*/
public final class PlaywrightManager {
private Operations operations;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,34 @@
*/
public interface PlaywrightQuotasClient {
/**
* Get subscription-level location-based Playwright quota resource by name.
* Gets a subscription-level location-based Playwright quota resource by name.
*
* @param location The name of the Azure region.
* @param playwrightQuotaName The name of the PlaywrightQuota.
* @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 subscription-level location-based Playwright quota resource by name along with {@link Response}.
* @return a subscription-level location-based Playwright quota resource by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<PlaywrightQuotaInner> getWithResponse(String location, QuotaName playwrightQuotaName, Context context);

/**
* Get subscription-level location-based Playwright quota resource by name.
* Gets a subscription-level location-based Playwright quota resource by name.
*
* @param location The name of the Azure region.
* @param playwrightQuotaName The name of the PlaywrightQuota.
* @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 subscription-level location-based Playwright quota resource by name.
* @return a subscription-level location-based Playwright quota resource by name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PlaywrightQuotaInner get(String location, QuotaName playwrightQuotaName);

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

/**
* List Playwright quota resources for a given subscription Id.
* Lists Playwright quota resources for a given subscription ID.
*
* @param location The name of the Azure region.
* @param context The context to associate with this operation.
Expand Down
Loading