From e3d849b2a5392b9e4354208fe929449ca5a9e445 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 12 Sep 2023 19:05:02 +0000 Subject: [PATCH] CodeGen from PR 25445 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.PlaywrightTesting to add version preview/2023-10-01-preview (#25445) * Generate new Service for playwrighttesting * Adding Management APIs for Microsoft.AzurePlaywrightService public preview api-version 2023-10-01-preview * CI failures Fix * Removed description form properties as it's not required * Added new resource type * Spell check fix * Renamed quota resource type * Rectifying the typespec issue for location based resource * Renamed enum value * Review comments addressed * Swagger build errors resolution * Swagger model validation error fix for example * Added dashboard URI in examples * Revert "Added dashboard URI in examples" This reverts commit 8b1a7cb8964592d026b176380afea398317f2387. * Mjmadhu playwrighttesting microsoft.azure playwright service 2023 10 01 preview data plane (#25681) * Renamed entity from access-key to access-token * Added subscription state to handle appropriate action for clients * Added account state as a property * Updated regex for names * Updated example * Added readonly properties in PUT request examples --- .../Microsoft.AzurePlaywrightService.json | 123 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 3 + 2 files changed, 126 insertions(+) create mode 100644 schemas/2023-10-01-preview/Microsoft.AzurePlaywrightService.json diff --git a/schemas/2023-10-01-preview/Microsoft.AzurePlaywrightService.json b/schemas/2023-10-01-preview/Microsoft.AzurePlaywrightService.json new file mode 100644 index 0000000000..e2cd571555 --- /dev/null +++ b/schemas/2023-10-01-preview/Microsoft.AzurePlaywrightService.json @@ -0,0 +1,123 @@ +{ + "id": "https://schema.management.azure.com/schemas/2023-10-01-preview/Microsoft.AzurePlaywrightService.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.AzurePlaywrightService", + "description": "Microsoft AzurePlaywrightService Resource Types", + "resourceDefinitions": { + "accounts": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-10-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "enum": [ + "ScalableExecution" + ], + "description": "Name of account" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AccountProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Account properties" + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AzurePlaywrightService/accounts" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzurePlaywrightService/accounts" + } + }, + "definitions": { + "AccountProperties": { + "type": "object", + "properties": { + "regionalAffinity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created." + }, + "reporting": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting." + }, + "scalableExecution": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations." + } + }, + "description": "Account properties" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 954252740c..f190377fce 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -4852,6 +4852,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2019-07-24-preview/Microsoft.AzureData.json#/resourceDefinitions/sqlServerRegistrations_sqlServers" }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-10-01-preview/Microsoft.AzurePlaywrightService.json#/resourceDefinitions/accounts" + }, { "$ref": "https://schema.management.azure.com/schemas/2022-09-01-preview/Microsoft.AzureSphere.json#/resourceDefinitions/catalogs" },