Skip to content

Commit

Permalink
CodeGen from PR 25445 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[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
  • Loading branch information
SDKAuto committed Sep 12, 2023
1 parent 4bd5052 commit e3d849b
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 0 deletions.
123 changes: 123 additions & 0 deletions schemas/2023-10-01-preview/Microsoft.AzurePlaywrightService.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
3 changes: 3 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit e3d849b

Please sign in to comment.