From 768c90cd2afc34484e5c595d1b4657920fb4a846 Mon Sep 17 00:00:00 2001 From: Madhuri Jain Date: Tue, 19 Dec 2023 13:21:42 +0530 Subject: [PATCH 01/12] First commit with existing version files in new version folder --- .../examples/Accounts_CreateOrUpdate.json | 76 ++ .../2024-02-01/examples/Accounts_Delete.json | 19 + .../2024-02-01/examples/Accounts_Get.json | 38 + .../Accounts_ListByResourceGroup.json | 41 + .../examples/Accounts_ListBySubscription.json | 40 + .../2024-02-01/examples/Accounts_Update.json | 47 + .../2024-02-01/examples/Operations_List.json | 46 + .../2024-02-01/examples/Quotas_Get.json | 31 + .../examples/Quotas_ListBySubscription.json | 34 + .../stable/2024-02-01/playwrighttesting.json | 841 ++++++++++++++++++ 10 files changed, 1213 insertions(+) create mode 100644 specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_CreateOrUpdate.json create mode 100644 specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Delete.json create mode 100644 specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Get.json create mode 100644 specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListByResourceGroup.json create mode 100644 specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListBySubscription.json create mode 100644 specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Update.json create mode 100644 specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Operations_List.json create mode 100644 specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_Get.json create mode 100644 specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_ListBySubscription.json create mode 100644 specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_CreateOrUpdate.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_CreateOrUpdate.json new file mode 100644 index 000000000000..d6a0cc6f066f --- /dev/null +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_CreateOrUpdate.json @@ -0,0 +1,76 @@ +{ + "title": "Accounts_CreateOrUpdate", + "operationId": "Accounts_CreateOrUpdate", + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "name": "myPlaywrightAccount", + "resource": { + "location": "westus", + "tags": { + "Team": "Dev Exp" + }, + "properties": { + "regionalAffinity": "Enabled" + } + } + }, + "responses": { + "200": { + "body": { + "location": "westus", + "properties": { + "dashboardUri": "https://dashboard.00000000-0000-0000-0000-000000000000.domain.com", + "provisioningState": "Succeeded", + "regionalAffinity": "Enabled", + "scalableExecution": "Enabled", + "reporting": "Enabled" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount", + "name": "myPlaywrightAccount", + "type": "Microsoft.AzurePlaywrightService/accounts", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.PlaywrightTesting/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000/Spring/default?api-version=2023-06-01-preview" + }, + "body": { + "location": "westus", + "properties": { + "dashboardUri": "https://dashboard.00000000-0000-0000-0000-000000000000.domain.com", + "provisioningState": "Succeeded", + "regionalAffinity": "Enabled", + "scalableExecution": "Enabled", + "reporting": "Enabled" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount", + "name": "myPlaywrightAccount", + "type": "Microsoft.AzurePlaywrightService/accounts", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + } + } +} diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Delete.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Delete.json new file mode 100644 index 000000000000..ab0312eaad4d --- /dev/null +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Delete.json @@ -0,0 +1,19 @@ +{ + "title": "Accounts_Delete", + "operationId": "Accounts_Delete", + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "name": "myPlaywrightAccount" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.PlaywrightTesting/locations/eastus/operationStatus/default/operationId/00000000-0000-0000-0000-000000000000?api-version=2023-06-01-preview" + } + }, + "204": {}, + "200": {} + } +} diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Get.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Get.json new file mode 100644 index 000000000000..393f21fbb9fa --- /dev/null +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Get.json @@ -0,0 +1,38 @@ +{ + "title": "Accounts_Get", + "operationId": "Accounts_Get", + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "name": "myPlaywrightAccount" + }, + "responses": { + "200": { + "body": { + "location": "westus", + "properties": { + "dashboardUri": "https://dashboard.00000000-0000-0000-0000-000000000000.domain.com", + "provisioningState": "Succeeded", + "regionalAffinity": "Enabled", + "scalableExecution": "Enabled", + "reporting": "Enabled" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount", + "name": "myPlaywrightAccount", + "type": "Microsoft.AzurePlaywrightService/accounts", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + } + } +} diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListByResourceGroup.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListByResourceGroup.json new file mode 100644 index 000000000000..09f407425f0c --- /dev/null +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListByResourceGroup.json @@ -0,0 +1,41 @@ +{ + "title": "Accounts_ListByResourceGroup", + "operationId": "Accounts_ListByResourceGroup", + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "westus", + "properties": { + "dashboardUri": "https://dashboard.00000000-0000-0000-0000-000000000000.domain.com", + "provisioningState": "Succeeded", + "regionalAffinity": "Enabled", + "scalableExecution": "Enabled", + "reporting": "Enabled" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount", + "name": "myPlaywrightAccount", + "type": "Microsoft.AzurePlaywrightService/accounts", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + ] + } + } + } +} diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListBySubscription.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListBySubscription.json new file mode 100644 index 000000000000..2d851e0c6100 --- /dev/null +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListBySubscription.json @@ -0,0 +1,40 @@ +{ + "title": "Accounts_ListBySubscription", + "operationId": "Accounts_ListBySubscription", + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "westus", + "properties": { + "dashboardUri": "https://dashboard.00000000-0000-0000-0000-000000000000.domain.com", + "provisioningState": "Succeeded", + "regionalAffinity": "Enabled", + "scalableExecution": "Enabled", + "reporting": "Enabled" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount", + "name": "myPlaywrightAccount", + "type": "Microsoft.AzurePlaywrightService/accounts", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + ] + } + } + } +} diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Update.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Update.json new file mode 100644 index 000000000000..0cff87eeeb43 --- /dev/null +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Update.json @@ -0,0 +1,47 @@ +{ + "title": "Accounts_Update", + "operationId": "Accounts_Update", + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "name": "myPlaywrightAccount", + "properties": { + "tags": { + "Team": "Dev Exp", + "Division": "LT" + }, + "properties": { + "regionalAffinity": "Enabled" + } + } + }, + "responses": { + "200": { + "body": { + "location": "westus", + "properties": { + "dashboardUri": "https://dashboard.00000000-0000-0000-0000-000000000000.domain.com", + "provisioningState": "Succeeded", + "regionalAffinity": "Enabled", + "scalableExecution": "Enabled", + "reporting": "Enabled" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount", + "name": "myPlaywrightAccount", + "type": "Microsoft.AzurePlaywrightService/accounts", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + } + } +} diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Operations_List.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Operations_List.json new file mode 100644 index 000000000000..9516db396631 --- /dev/null +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Operations_List.json @@ -0,0 +1,46 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.AzurePlaywrightService/accounts/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzurePlaywrightService", + "resource": "accounts", + "operation": "Creates or updates the PlaywrightAccounts", + "description": "Set PlaywrightAccounts" + } + }, + { + "name": "Microsoft.AzurePlaywrightService/accounts/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzurePlaywrightService", + "resource": "accounts", + "operation": "Deletes the PlaywrightAccounts", + "description": "Delete PlaywrightAccounts" + } + }, + { + "name": "Microsoft.AzurePlaywrightService/accounts/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzurePlaywrightService", + "resource": "accounts", + "operation": "Reads the PlaywrightAccounts", + "description": "Read PlaywrightAccounts" + } + } + ], + "nextLink": "http://nextlink.contoso.com" + } + } + } +} diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_Get.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_Get.json new file mode 100644 index 000000000000..266052bb14a8 --- /dev/null +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_Get.json @@ -0,0 +1,31 @@ +{ + "title": "Quotas_Get", + "operationId": "Quotas_Get", + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus", + "name": "ScalableExecution" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzurePlaywrightService/locations/eastus/quotas/ScalableExecution", + "name": "ScalableExecution", + "type": "Microsoft.AzurePlaywrightService/Locations/Quotas", + "properties": { + "freeTrial": { + "accountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "createdAt": "2023-08-31T10:19:36.081Z", + "expiryAt": "2023-08-31T10:19:36.081Z", + "allocatedValue": 0, + "usedValue": 0, + "percentageUsed": 100, + "state": "Active" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_ListBySubscription.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_ListBySubscription.json new file mode 100644 index 000000000000..90637aa1559c --- /dev/null +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_ListBySubscription.json @@ -0,0 +1,34 @@ +{ + "title": "Quotas_ListBySubscription", + "operationId": "Quotas_ListBySubscription", + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "freeTrial": { + "accountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "createdAt": "2023-08-31T10:19:36.081Z", + "expiryAt": "2023-08-31T10:19:36.081Z", + "allocatedValue": 0, + "usedValue": 0, + "percentageUsed": 100, + "state": "Active" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzurePlaywrightService/locations/eastus/quotas/ScalableExecution", + "name": "ScalableExecution", + "type": "Microsoft.AzurePlaywrightService/Locations/Quotas" + } + ] + } + } + } +} diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json new file mode 100644 index 000000000000..273331e44acf --- /dev/null +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json @@ -0,0 +1,841 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft AzurePlaywrightService Management API", + "version": "2023-10-01-preview", + "description": "Microsoft.AzurePlaywrightService Resource Provider management API.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "Accounts" + }, + { + "name": "Quotas" + } + ], + "paths": { + "/providers/Microsoft.AzurePlaywrightService/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/accounts": { + "get": { + "operationId": "Accounts_ListBySubscription", + "tags": [ + "Accounts" + ], + "description": "List Account resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/AccountListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Accounts_ListBySubscription": { + "$ref": "./examples/Accounts_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas": { + "get": { + "operationId": "Quotas_ListBySubscription", + "tags": [ + "Quotas" + ], + "description": "List quotas for a given subscription Id.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "location", + "in": "path", + "description": "The location of quota in ARM Normalized format like eastus, southeastasia etc.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/QuotaListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Quotas_ListBySubscription": { + "$ref": "./examples/Quotas_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas/{name}": { + "get": { + "operationId": "Quotas_Get", + "tags": [ + "Quotas" + ], + "description": "Get quota by name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "location", + "in": "path", + "description": "The location of quota in ARM Normalized format like eastus, southeastasia etc.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "The quota name.", + "required": true, + "type": "string", + "enum": [ + "ScalableExecution" + ], + "x-ms-enum": { + "name": "QuotaNames", + "modelAsString": true, + "values": [ + { + "name": "ScalableExecution", + "value": "ScalableExecution", + "description": "The quota details for scalable execution feature. 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." + } + ] + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/Quota" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Quotas_Get": { + "$ref": "./examples/Quotas_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts": { + "get": { + "operationId": "Accounts_ListByResourceGroup", + "tags": [ + "Accounts" + ], + "description": "List Account resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/AccountListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Accounts_ListByResourceGroup": { + "$ref": "./examples/Accounts_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}": { + "get": { + "operationId": "Accounts_Get", + "tags": [ + "Accounts" + ], + "description": "Get a Account", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of account", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 64, + "pattern": "^[a-zA-Z]{1}[a-zA-Z0-9]{2,63}$" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Accounts_Get": { + "$ref": "./examples/Accounts_Get.json" + } + } + }, + "put": { + "operationId": "Accounts_CreateOrUpdate", + "tags": [ + "Accounts" + ], + "description": "Create a Account", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of account", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 64, + "pattern": "^[a-zA-Z]{1}[a-zA-Z0-9]{2,63}$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/Account" + } + } + ], + "responses": { + "200": { + "description": "Resource 'Account' update operation succeeded", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "201": { + "description": "Resource 'Account' create operation succeeded", + "schema": { + "$ref": "#/definitions/Account" + }, + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Accounts_CreateOrUpdate": { + "$ref": "./examples/Accounts_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Accounts_Update", + "tags": [ + "Accounts" + ], + "description": "Update a Account", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of account", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 64, + "pattern": "^[a-zA-Z]{1}[a-zA-Z0-9]{2,63}$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/AccountUpdate" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Accounts_Update": { + "$ref": "./examples/Accounts_Update.json" + } + } + }, + "delete": { + "operationId": "Accounts_Delete", + "tags": [ + "Accounts" + ], + "description": "Delete a Account", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of account", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 64, + "pattern": "^[a-zA-Z]{1}[a-zA-Z0-9]{2,63}$" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "204": { + "description": "Resource deleted successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Accounts_Delete": { + "$ref": "./examples/Accounts_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "Account": { + "type": "object", + "description": "An account resource", + "properties": { + "properties": { + "$ref": "#/definitions/AccountProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] + }, + "AccountListResult": { + "type": "object", + "description": "The response of a Account list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Account items on this page", + "items": { + "$ref": "#/definitions/Account" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "AccountProperties": { + "type": "object", + "description": "Account properties", + "properties": { + "dashboardUri": { + "type": "string", + "format": "uri", + "description": "The Playwright testing dashboard URI for the account resource.", + "readOnly": true + }, + "regionalAffinity": { + "$ref": "#/definitions/EnablementStatus", + "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.", + "default": "Enabled" + }, + "scalableExecution": { + "$ref": "#/definitions/EnablementStatus", + "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.", + "default": "Enabled" + }, + "reporting": { + "$ref": "#/definitions/EnablementStatus", + "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.", + "default": "Disabled" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The status of the last operation.", + "readOnly": true + } + } + }, + "AccountUpdate": { + "type": "object", + "description": "The type used for update operations of the Account.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/AccountUpdateProperties", + "x-ms-client-flatten": true + } + } + }, + "AccountUpdateProperties": { + "type": "object", + "description": "The updatable properties of the Account.", + "properties": { + "regionalAffinity": { + "$ref": "#/definitions/EnablementStatus", + "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.", + "default": "Enabled" + }, + "scalableExecution": { + "$ref": "#/definitions/EnablementStatus", + "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.", + "default": "Enabled" + }, + "reporting": { + "$ref": "#/definitions/EnablementStatus", + "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.", + "default": "Disabled" + } + } + }, + "EnablementStatus": { + "type": "string", + "description": "The enablement status of a feature.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnablementStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The feature is Enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The feature is Disabled." + } + ] + } + }, + "FreeTrialProperties": { + "type": "object", + "description": "The free-trial properties", + "properties": { + "accountId": { + "type": "string", + "description": "The playwright account id.", + "readOnly": true + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The free-trial createdAt utcDateTime.", + "readOnly": true + }, + "expiryAt": { + "type": "string", + "format": "date-time", + "description": "The free-trial expiryAt utcDateTime.", + "readOnly": true + }, + "allocatedValue": { + "type": "integer", + "format": "int32", + "description": "The free-trial allocated limit value eg. allocated free minutes.", + "readOnly": true + }, + "usedValue": { + "type": "integer", + "format": "int32", + "description": "The free-trial used value eg. used free minutes.", + "readOnly": true + }, + "percentageUsed": { + "type": "number", + "format": "decimal", + "description": "The free-trial percentage used.", + "minimum": 0, + "maximum": 100, + "readOnly": true + }, + "state": { + "$ref": "#/definitions/FreeTrialState", + "description": "The free-trial state.", + "readOnly": true + } + }, + "required": [ + "accountId", + "createdAt", + "expiryAt", + "allocatedValue", + "usedValue", + "percentageUsed", + "state" + ] + }, + "FreeTrialState": { + "type": "string", + "description": "The free-trial state.", + "enum": [ + "Active", + "Expired" + ], + "x-ms-enum": { + "name": "FreeTrialState", + "modelAsString": true, + "values": [ + { + "name": "Active", + "value": "Active", + "description": "The free-trial is Active." + }, + { + "name": "Expired", + "value": "Expired", + "description": "The free-trial is Expired." + } + ] + } + }, + "ProvisioningState": { + "type": "string", + "description": "The status of the current operation.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Deleting", + "Accepted" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Deletion in progress" + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "Change accepted for processing" + } + ] + } + }, + "Quota": { + "type": "object", + "description": "A quota resource", + "properties": { + "properties": { + "$ref": "#/definitions/QuotaProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "QuotaListResult": { + "type": "object", + "description": "The response of a Quota list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Quota items on this page", + "items": { + "$ref": "#/definitions/Quota" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "QuotaProperties": { + "type": "object", + "description": "Quota properties", + "properties": { + "freeTrial": { + "$ref": "#/definitions/FreeTrialProperties", + "description": "The free-trial quota." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The status of the last operation.", + "readOnly": true + } + } + } + }, + "parameters": {} +} From 0e31391199eb8d735d31fd041c5f07fbf54d12c5 Mon Sep 17 00:00:00 2001 From: Madhuri Jain Date: Tue, 19 Dec 2023 13:29:23 +0530 Subject: [PATCH 02/12] Added new ARM stable api-version for GA --- .../examples/AccountQuotas_Get.json | 30 ++ .../examples/AccountQuotas_ListByAccount.json | 33 ++ .../Accounts_CheckNameAvailability.json | 20 + .../examples/Accounts_CreateOrUpdate.json | 4 +- .../examples/Accounts_Delete.json | 4 +- .../examples/Accounts_Get.json | 4 +- .../Accounts_ListByResourceGroup.json | 2 +- .../examples/Accounts_ListBySubscription.json | 2 +- .../examples/Accounts_Update.json | 4 +- .../examples/Operations_List.json | 2 +- .../examples/Quotas_Get.json | 9 +- .../examples/Quotas_ListBySubscription.json | 7 +- .../PlaywrightTesting.Management/main.tsp | 88 +++-- .../examples/AccountQuotas_Get.json | 30 ++ .../examples/AccountQuotas_ListByAccount.json | 33 ++ .../Accounts_CheckNameAvailability.json | 20 + .../examples/Accounts_CreateOrUpdate.json | 4 +- .../2024-02-01/examples/Accounts_Delete.json | 4 +- .../2024-02-01/examples/Accounts_Get.json | 4 +- .../Accounts_ListByResourceGroup.json | 2 +- .../examples/Accounts_ListBySubscription.json | 2 +- .../2024-02-01/examples/Accounts_Update.json | 4 +- .../2024-02-01/examples/Operations_List.json | 2 +- .../2024-02-01/examples/Quotas_Get.json | 9 +- .../examples/Quotas_ListBySubscription.json | 7 +- .../stable/2024-02-01/playwrighttesting.json | 374 +++++++++++++++--- 26 files changed, 573 insertions(+), 131 deletions(-) create mode 100644 specification/playwrighttesting/PlaywrightTesting.Management/examples/AccountQuotas_Get.json create mode 100644 specification/playwrighttesting/PlaywrightTesting.Management/examples/AccountQuotas_ListByAccount.json create mode 100644 specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_CheckNameAvailability.json create mode 100644 specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/AccountQuotas_Get.json create mode 100644 specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/AccountQuotas_ListByAccount.json create mode 100644 specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_CheckNameAvailability.json diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/AccountQuotas_Get.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/AccountQuotas_Get.json new file mode 100644 index 000000000000..4bbab16c74f2 --- /dev/null +++ b/specification/playwrighttesting/PlaywrightTesting.Management/examples/AccountQuotas_Get.json @@ -0,0 +1,30 @@ +{ + "title": "AccountQuotas_Get", + "operationId": "AccountQuotas_Get", + "parameters": { + "api-version": "2024-02-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "accountName": "myPlaywrightAccount", + "quotaName": "ScalableExecution" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount/quotas/ScalableExecution", + "name": "ScalableExecution", + "type": "Microsoft.AzurePlaywrightService/Accounts/Quotas", + "properties": { + "freeTrial": { + "createdAt": "2023-08-31T10:19:36.081Z", + "expiryAt": "2023-08-31T10:19:36.081Z", + "allocatedValue": 0, + "usedValue": 0, + "percentageUsed": 100 + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/AccountQuotas_ListByAccount.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/AccountQuotas_ListByAccount.json new file mode 100644 index 000000000000..0d087084b0df --- /dev/null +++ b/specification/playwrighttesting/PlaywrightTesting.Management/examples/AccountQuotas_ListByAccount.json @@ -0,0 +1,33 @@ +{ + "title": "AccountQuotas_ListByAccount", + "operationId": "AccountQuotas_ListByAccount", + "parameters": { + "api-version": "2024-02-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "accountName": "myPlaywrightAccount" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount/quotas/ScalableExecution", + "name": "ScalableExecution", + "type": "Microsoft.AzurePlaywrightService/Accounts/Quotas", + "properties": { + "freeTrial": { + "createdAt": "2023-08-31T10:19:36.081Z", + "expiryAt": "2023-08-31T10:19:36.081Z", + "allocatedValue": 0, + "usedValue": 0, + "percentageUsed": 100 + }, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_CheckNameAvailability.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_CheckNameAvailability.json new file mode 100644 index 000000000000..d251005d1323 --- /dev/null +++ b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_CheckNameAvailability.json @@ -0,0 +1,20 @@ +{ + "title": "Accounts_CheckNameAvailability", + "operationId": "Accounts_CheckNameAvailability", + "parameters": { + "api-version": "2024-02-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "body": { + "name": "dummyName", + "type": "Microsoft.AzurePlaywrightService/Accounts" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "message": "Test message." + } + } + } +} diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_CreateOrUpdate.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_CreateOrUpdate.json index d6a0cc6f066f..f17750340bf4 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_CreateOrUpdate.json +++ b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_CreateOrUpdate.json @@ -2,10 +2,10 @@ "title": "Accounts_CreateOrUpdate", "operationId": "Accounts_CreateOrUpdate", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg", - "name": "myPlaywrightAccount", + "accountName": "myPlaywrightAccount", "resource": { "location": "westus", "tags": { diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Delete.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Delete.json index ab0312eaad4d..f50f3cec23e9 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Delete.json +++ b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Delete.json @@ -2,10 +2,10 @@ "title": "Accounts_Delete", "operationId": "Accounts_Delete", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg", - "name": "myPlaywrightAccount" + "accountName": "myPlaywrightAccount" }, "responses": { "202": { diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Get.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Get.json index 393f21fbb9fa..f6980545f4d7 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Get.json +++ b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Get.json @@ -2,10 +2,10 @@ "title": "Accounts_Get", "operationId": "Accounts_Get", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg", - "name": "myPlaywrightAccount" + "accountName": "myPlaywrightAccount" }, "responses": { "200": { diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_ListByResourceGroup.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_ListByResourceGroup.json index 09f407425f0c..462b79389851 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_ListByResourceGroup.json +++ b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_ListByResourceGroup.json @@ -2,7 +2,7 @@ "title": "Accounts_ListByResourceGroup", "operationId": "Accounts_ListByResourceGroup", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg" }, diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_ListBySubscription.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_ListBySubscription.json index 2d851e0c6100..5a38310a8dc7 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_ListBySubscription.json +++ b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_ListBySubscription.json @@ -2,7 +2,7 @@ "title": "Accounts_ListBySubscription", "operationId": "Accounts_ListBySubscription", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Update.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Update.json index 0cff87eeeb43..673ee23285b1 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Update.json +++ b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Update.json @@ -2,10 +2,10 @@ "title": "Accounts_Update", "operationId": "Accounts_Update", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg", - "name": "myPlaywrightAccount", + "accountName": "myPlaywrightAccount", "properties": { "tags": { "Team": "Dev Exp", diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Operations_List.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Operations_List.json index 9516db396631..3f437274a34c 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Operations_List.json +++ b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Operations_List.json @@ -2,7 +2,7 @@ "title": "Operations_List", "operationId": "Operations_List", "parameters": { - "api-version": "2023-10-01-preview" + "api-version": "2024-02-01" }, "responses": { "200": { diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Quotas_Get.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Quotas_Get.json index 266052bb14a8..e6824227a6ab 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Quotas_Get.json +++ b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Quotas_Get.json @@ -2,10 +2,10 @@ "title": "Quotas_Get", "operationId": "Quotas_Get", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "location": "eastus", - "name": "ScalableExecution" + "quotaName": "ScalableExecution" }, "responses": { "200": { @@ -16,11 +16,6 @@ "properties": { "freeTrial": { "accountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", - "createdAt": "2023-08-31T10:19:36.081Z", - "expiryAt": "2023-08-31T10:19:36.081Z", - "allocatedValue": 0, - "usedValue": 0, - "percentageUsed": 100, "state": "Active" }, "provisioningState": "Succeeded" diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Quotas_ListBySubscription.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Quotas_ListBySubscription.json index 90637aa1559c..09bf98f70898 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Quotas_ListBySubscription.json +++ b/specification/playwrighttesting/PlaywrightTesting.Management/examples/Quotas_ListBySubscription.json @@ -2,7 +2,7 @@ "title": "Quotas_ListBySubscription", "operationId": "Quotas_ListBySubscription", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "location": "eastus" }, @@ -14,11 +14,6 @@ "properties": { "freeTrial": { "accountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", - "createdAt": "2023-08-31T10:19:36.081Z", - "expiryAt": "2023-08-31T10:19:36.081Z", - "allocatedValue": 0, - "usedValue": 0, - "percentageUsed": 100, "state": "Active" }, "provisioningState": "Succeeded" diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp b/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp index 3eb3ce51e3cb..2f86dfd2ed85 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp +++ b/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp @@ -13,28 +13,28 @@ using Azure.Core; @armProviderNamespace("Microsoft.AzurePlaywrightService") @service({ title: "Microsoft AzurePlaywrightService Management API", - version: "2023-10-01-preview", + version: "2024-02-01", }) -@doc("Microsoft.AzurePlaywrightService Resource Provider management API.") +@doc("Microsoft.AzurePlaywrightService Resource Provider Management API.") @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) @useDependency(Azure.Core.Versions.v1_0_Preview_2) namespace Microsoft.AzurePlaywrightService; interface Operations extends Azure.ResourceManager.Operations {} -@doc("An account resource") +@doc("A Playwright service account resource.") model Account is TrackedResource { - @doc("Name of account") + @doc("Name of account.") @minLength(3) @maxLength(64) @pattern("^[a-zA-Z]{1}[a-zA-Z0-9]{2,63}$") - @key("name") + @key("accountName") @path @segment("accounts") name: string; } -@doc("Account properties") +@doc("Account resource properties.") model AccountProperties { @visibility("read") @doc("The Playwright testing dashboard URI for the account resource.") @@ -68,18 +68,24 @@ enum EnablementStatus { enum ProvisioningState { ...ResourceProvisioningState, - @doc("Deletion in progress") + @doc("Creation in progress..") + Creating, + + @doc("Deletion in progress..") Deleting, - @doc("Change accepted for processing") + @doc("Change accepted for processing..") Accepted, } @armResourceOperations interface Accounts - extends TrackedResourceOperations {} + extends TrackedResourceOperations { + @doc("Adds check global name availability operation, normally used if a resource name must be globally unique.") + checkNameAvailability is checkGlobalNameAvailability; +} -@doc("The location of quota resource") +@doc("The location of subscription quota resource.") @subscriptionResource model Location { @doc("The location of quota in ARM Normalized format like eastus, southeastasia etc.") @@ -90,25 +96,25 @@ model Location { name: string; } -@doc("A quota resource") +@doc("A subscription quota resource.") @parentResource(Location) model Quota is ProxyResource { @doc("The quota name.") - @key("name") + @key("quotaName") @path @segment("quotas") name: QuotaNames; } -@doc("The quota name.") +@doc("The enum for quota name.") enum QuotaNames { @doc("The quota details for scalable execution feature. 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.") ScalableExecution, } -@doc("Quota properties") +@doc("The subscription quota resource properties.") model QuotaProperties { - @doc("The free-trial quota.") + @doc("The subscription quota resource free-trial properties.") freeTrial?: FreeTrialProperties; @visibility("read") @@ -116,12 +122,39 @@ model QuotaProperties { provisioningState?: ProvisioningState; } -@doc("The free-trial properties") +@doc("The subscription quota resource free-trial properties.") model FreeTrialProperties { - @doc("The playwright account id.") + @doc("The Playwright service account id.") @visibility("read") accountId: string; + @doc("The free-trial state.") + @visibility("read") + state: FreeTrialState; +} + +@doc("A quota resource for a Playwright service account.") +@parentResource(Account) +model AccountQuota is ProxyResource { + @doc("The Playwright service account quota name.") + @key("quotaName") + @path + @segment("quotas") + name: QuotaNames; +} + +@doc("The Playwright service account quota resource properties.") +model AccountQuotaProperties { + @doc("The Playwright service account quota resource free-trial properties.") + freeTrial?: AccountFreeTrialProperties; + + @visibility("read") + @doc("The status of the last operation.") + provisioningState?: ProvisioningState; +} + +@doc("The Playwright service account quota resource free-trial properties.") +model AccountFreeTrialProperties { @doc("The free-trial createdAt utcDateTime.") @visibility("read") createdAt: utcDateTime; @@ -143,10 +176,6 @@ model FreeTrialProperties { @minValue(0) @maxValue(100) percentageUsed: decimal; - - @doc("The free-trial state.") - @visibility("read") - state: FreeTrialState; } @doc("The free-trial state.") @@ -156,13 +185,28 @@ enum FreeTrialState { @doc("The free-trial is Expired.") Expired, + + @doc("The free-trial is Not Eligible.") + NotEligible, + + @doc("The free-trial is Not Registered.") + NotRegistered, } @armResourceOperations interface Quotas { - @doc("Get quota by name.") + @doc("Get subscription quota by name.") get is ArmResourceRead; @doc("List quotas for a given subscription Id.") listBySubscription is ArmListBySubscription; } + +@armResourceOperations +interface AccountQuotas { + @doc("Get quota by name for an account.") + get is ArmResourceRead; + + @doc("List quotas for a given account.") + listByAccount is ArmResourceListByParent; +} diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/AccountQuotas_Get.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/AccountQuotas_Get.json new file mode 100644 index 000000000000..4bbab16c74f2 --- /dev/null +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/AccountQuotas_Get.json @@ -0,0 +1,30 @@ +{ + "title": "AccountQuotas_Get", + "operationId": "AccountQuotas_Get", + "parameters": { + "api-version": "2024-02-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "accountName": "myPlaywrightAccount", + "quotaName": "ScalableExecution" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount/quotas/ScalableExecution", + "name": "ScalableExecution", + "type": "Microsoft.AzurePlaywrightService/Accounts/Quotas", + "properties": { + "freeTrial": { + "createdAt": "2023-08-31T10:19:36.081Z", + "expiryAt": "2023-08-31T10:19:36.081Z", + "allocatedValue": 0, + "usedValue": 0, + "percentageUsed": 100 + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/AccountQuotas_ListByAccount.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/AccountQuotas_ListByAccount.json new file mode 100644 index 000000000000..0d087084b0df --- /dev/null +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/AccountQuotas_ListByAccount.json @@ -0,0 +1,33 @@ +{ + "title": "AccountQuotas_ListByAccount", + "operationId": "AccountQuotas_ListByAccount", + "parameters": { + "api-version": "2024-02-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "accountName": "myPlaywrightAccount" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount/quotas/ScalableExecution", + "name": "ScalableExecution", + "type": "Microsoft.AzurePlaywrightService/Accounts/Quotas", + "properties": { + "freeTrial": { + "createdAt": "2023-08-31T10:19:36.081Z", + "expiryAt": "2023-08-31T10:19:36.081Z", + "allocatedValue": 0, + "usedValue": 0, + "percentageUsed": 100 + }, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_CheckNameAvailability.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_CheckNameAvailability.json new file mode 100644 index 000000000000..d251005d1323 --- /dev/null +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_CheckNameAvailability.json @@ -0,0 +1,20 @@ +{ + "title": "Accounts_CheckNameAvailability", + "operationId": "Accounts_CheckNameAvailability", + "parameters": { + "api-version": "2024-02-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "body": { + "name": "dummyName", + "type": "Microsoft.AzurePlaywrightService/Accounts" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "message": "Test message." + } + } + } +} diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_CreateOrUpdate.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_CreateOrUpdate.json index d6a0cc6f066f..f17750340bf4 100644 --- a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_CreateOrUpdate.json +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_CreateOrUpdate.json @@ -2,10 +2,10 @@ "title": "Accounts_CreateOrUpdate", "operationId": "Accounts_CreateOrUpdate", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg", - "name": "myPlaywrightAccount", + "accountName": "myPlaywrightAccount", "resource": { "location": "westus", "tags": { diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Delete.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Delete.json index ab0312eaad4d..f50f3cec23e9 100644 --- a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Delete.json +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Delete.json @@ -2,10 +2,10 @@ "title": "Accounts_Delete", "operationId": "Accounts_Delete", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg", - "name": "myPlaywrightAccount" + "accountName": "myPlaywrightAccount" }, "responses": { "202": { diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Get.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Get.json index 393f21fbb9fa..f6980545f4d7 100644 --- a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Get.json +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Get.json @@ -2,10 +2,10 @@ "title": "Accounts_Get", "operationId": "Accounts_Get", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg", - "name": "myPlaywrightAccount" + "accountName": "myPlaywrightAccount" }, "responses": { "200": { diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListByResourceGroup.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListByResourceGroup.json index 09f407425f0c..462b79389851 100644 --- a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListByResourceGroup.json +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListByResourceGroup.json @@ -2,7 +2,7 @@ "title": "Accounts_ListByResourceGroup", "operationId": "Accounts_ListByResourceGroup", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg" }, diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListBySubscription.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListBySubscription.json index 2d851e0c6100..5a38310a8dc7 100644 --- a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListBySubscription.json +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_ListBySubscription.json @@ -2,7 +2,7 @@ "title": "Accounts_ListBySubscription", "operationId": "Accounts_ListBySubscription", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Update.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Update.json index 0cff87eeeb43..673ee23285b1 100644 --- a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Update.json +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Accounts_Update.json @@ -2,10 +2,10 @@ "title": "Accounts_Update", "operationId": "Accounts_Update", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg", - "name": "myPlaywrightAccount", + "accountName": "myPlaywrightAccount", "properties": { "tags": { "Team": "Dev Exp", diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Operations_List.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Operations_List.json index 9516db396631..3f437274a34c 100644 --- a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Operations_List.json +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Operations_List.json @@ -2,7 +2,7 @@ "title": "Operations_List", "operationId": "Operations_List", "parameters": { - "api-version": "2023-10-01-preview" + "api-version": "2024-02-01" }, "responses": { "200": { diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_Get.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_Get.json index 266052bb14a8..e6824227a6ab 100644 --- a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_Get.json +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_Get.json @@ -2,10 +2,10 @@ "title": "Quotas_Get", "operationId": "Quotas_Get", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "location": "eastus", - "name": "ScalableExecution" + "quotaName": "ScalableExecution" }, "responses": { "200": { @@ -16,11 +16,6 @@ "properties": { "freeTrial": { "accountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", - "createdAt": "2023-08-31T10:19:36.081Z", - "expiryAt": "2023-08-31T10:19:36.081Z", - "allocatedValue": 0, - "usedValue": 0, - "percentageUsed": 100, "state": "Active" }, "provisioningState": "Succeeded" diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_ListBySubscription.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_ListBySubscription.json index 90637aa1559c..09bf98f70898 100644 --- a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_ListBySubscription.json +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/examples/Quotas_ListBySubscription.json @@ -2,7 +2,7 @@ "title": "Quotas_ListBySubscription", "operationId": "Quotas_ListBySubscription", "parameters": { - "api-version": "2023-10-01-preview", + "api-version": "2024-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "location": "eastus" }, @@ -14,11 +14,6 @@ "properties": { "freeTrial": { "accountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", - "createdAt": "2023-08-31T10:19:36.081Z", - "expiryAt": "2023-08-31T10:19:36.081Z", - "allocatedValue": 0, - "usedValue": 0, - "percentageUsed": 100, "state": "Active" }, "provisioningState": "Succeeded" diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json index 273331e44acf..311fc03436fe 100644 --- a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json @@ -2,8 +2,8 @@ "swagger": "2.0", "info": { "title": "Microsoft AzurePlaywrightService Management API", - "version": "2023-10-01-preview", - "description": "Microsoft.AzurePlaywrightService Resource Provider management API.", + "version": "2024-02-01", + "description": "Microsoft.AzurePlaywrightService Resource Provider Management API.", "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" @@ -47,6 +47,9 @@ }, { "name": "Quotas" + }, + { + "name": "AccountQuotas" } ], "paths": { @@ -125,6 +128,51 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/checkNameAvailability": { + "post": { + "operationId": "Accounts_CheckNameAvailability", + "tags": [ + "Accounts" + ], + "description": "Adds check global name availability operation, normally used if a resource name must be globally unique.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "body", + "in": "body", + "description": "The CheckAvailability request", + "required": true, + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Accounts_CheckNameAvailability": { + "$ref": "./examples/Accounts_CheckNameAvailability.json" + } + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas": { "get": { "operationId": "Quotas_ListBySubscription", @@ -171,13 +219,13 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas/{name}": { + "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas/{quotaName}": { "get": { "operationId": "Quotas_Get", "tags": [ "Quotas" ], - "description": "Get quota by name.", + "description": "Get subscription quota by name.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -193,7 +241,7 @@ "type": "string" }, { - "name": "name", + "name": "quotaName", "in": "path", "description": "The quota name.", "required": true, @@ -277,7 +325,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}": { "get": { "operationId": "Accounts_Get", "tags": [ @@ -295,9 +343,9 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "accountName", "in": "path", - "description": "Name of account", + "description": "Name of account.", "required": true, "type": "string", "minLength": 3, @@ -342,9 +390,9 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "accountName", "in": "path", - "description": "Name of account", + "description": "Name of account.", "required": true, "type": "string", "minLength": 3, @@ -415,9 +463,9 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "accountName", "in": "path", - "description": "Name of account", + "description": "Name of account.", "required": true, "type": "string", "minLength": 3, @@ -471,9 +519,9 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", + "name": "accountName", "in": "path", - "description": "Name of account", + "description": "Name of account.", "required": true, "type": "string", "minLength": 3, @@ -519,12 +567,134 @@ }, "x-ms-long-running-operation": true } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas": { + "get": { + "operationId": "AccountQuotas_ListByAccount", + "tags": [ + "AccountQuotas" + ], + "description": "List quotas for a given account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "Name of account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 64, + "pattern": "^[a-zA-Z]{1}[a-zA-Z0-9]{2,63}$" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/AccountQuotaListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AccountQuotas_ListByAccount": { + "$ref": "./examples/AccountQuotas_ListByAccount.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas/{quotaName}": { + "get": { + "operationId": "AccountQuotas_Get", + "tags": [ + "AccountQuotas" + ], + "description": "Get quota by name for an account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "Name of account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 64, + "pattern": "^[a-zA-Z]{1}[a-zA-Z0-9]{2,63}$" + }, + { + "name": "quotaName", + "in": "path", + "description": "The Playwright service account quota name.", + "required": true, + "type": "string", + "enum": [ + "ScalableExecution" + ], + "x-ms-enum": { + "name": "QuotaNames", + "modelAsString": true, + "values": [ + { + "name": "ScalableExecution", + "value": "ScalableExecution", + "description": "The quota details for scalable execution feature. 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." + } + ] + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/AccountQuota" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AccountQuotas_Get": { + "$ref": "./examples/AccountQuotas_Get.json" + } + } + } } }, "definitions": { "Account": { "type": "object", - "description": "An account resource", + "description": "A Playwright service account resource.", "properties": { "properties": { "$ref": "#/definitions/AccountProperties", @@ -542,6 +712,51 @@ } ] }, + "AccountFreeTrialProperties": { + "type": "object", + "description": "The Playwright service account quota resource free-trial properties.", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The free-trial createdAt utcDateTime.", + "readOnly": true + }, + "expiryAt": { + "type": "string", + "format": "date-time", + "description": "The free-trial expiryAt utcDateTime.", + "readOnly": true + }, + "allocatedValue": { + "type": "integer", + "format": "int32", + "description": "The free-trial allocated limit value eg. allocated free minutes.", + "readOnly": true + }, + "usedValue": { + "type": "integer", + "format": "int32", + "description": "The free-trial used value eg. used free minutes.", + "readOnly": true + }, + "percentageUsed": { + "type": "number", + "format": "decimal", + "description": "The free-trial percentage used.", + "minimum": 0, + "maximum": 100, + "readOnly": true + } + }, + "required": [ + "createdAt", + "expiryAt", + "allocatedValue", + "usedValue", + "percentageUsed" + ] + }, "AccountListResult": { "type": "object", "description": "The response of a Account list operation.", @@ -565,7 +780,7 @@ }, "AccountProperties": { "type": "object", - "description": "Account properties", + "description": "Account resource properties.", "properties": { "dashboardUri": { "type": "string", @@ -595,6 +810,62 @@ } } }, + "AccountQuota": { + "type": "object", + "description": "A quota resource for a Playwright service account.", + "properties": { + "properties": { + "$ref": "#/definitions/AccountQuotaProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "AccountQuotaListResult": { + "type": "object", + "description": "The response of a AccountQuota list operation.", + "properties": { + "value": { + "type": "array", + "description": "The AccountQuota items on this page", + "items": { + "$ref": "#/definitions/AccountQuota" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "AccountQuotaProperties": { + "type": "object", + "description": "The Playwright service account quota resource properties.", + "properties": { + "freeTrial": { + "$ref": "#/definitions/AccountFreeTrialProperties", + "description": "The Playwright service account quota resource free-trial properties." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The status of the last operation.", + "readOnly": true + } + } + }, "AccountUpdate": { "type": "object", "description": "The type used for update operations of the Account.", @@ -659,43 +930,11 @@ }, "FreeTrialProperties": { "type": "object", - "description": "The free-trial properties", + "description": "The subscription quota resource free-trial properties.", "properties": { "accountId": { "type": "string", - "description": "The playwright account id.", - "readOnly": true - }, - "createdAt": { - "type": "string", - "format": "date-time", - "description": "The free-trial createdAt utcDateTime.", - "readOnly": true - }, - "expiryAt": { - "type": "string", - "format": "date-time", - "description": "The free-trial expiryAt utcDateTime.", - "readOnly": true - }, - "allocatedValue": { - "type": "integer", - "format": "int32", - "description": "The free-trial allocated limit value eg. allocated free minutes.", - "readOnly": true - }, - "usedValue": { - "type": "integer", - "format": "int32", - "description": "The free-trial used value eg. used free minutes.", - "readOnly": true - }, - "percentageUsed": { - "type": "number", - "format": "decimal", - "description": "The free-trial percentage used.", - "minimum": 0, - "maximum": 100, + "description": "The Playwright service account id.", "readOnly": true }, "state": { @@ -706,11 +945,6 @@ }, "required": [ "accountId", - "createdAt", - "expiryAt", - "allocatedValue", - "usedValue", - "percentageUsed", "state" ] }, @@ -719,7 +953,9 @@ "description": "The free-trial state.", "enum": [ "Active", - "Expired" + "Expired", + "NotEligible", + "NotRegistered" ], "x-ms-enum": { "name": "FreeTrialState", @@ -734,6 +970,16 @@ "name": "Expired", "value": "Expired", "description": "The free-trial is Expired." + }, + { + "name": "NotEligible", + "value": "NotEligible", + "description": "The free-trial is Not Eligible." + }, + { + "name": "NotRegistered", + "value": "NotRegistered", + "description": "The free-trial is Not Registered." } ] } @@ -745,6 +991,7 @@ "Succeeded", "Failed", "Canceled", + "Creating", "Deleting", "Accepted" ], @@ -767,22 +1014,27 @@ "value": "Canceled", "description": "Resource creation was canceled." }, + { + "name": "Creating", + "value": "Creating", + "description": "Creation in progress.." + }, { "name": "Deleting", "value": "Deleting", - "description": "Deletion in progress" + "description": "Deletion in progress.." }, { "name": "Accepted", "value": "Accepted", - "description": "Change accepted for processing" + "description": "Change accepted for processing.." } ] } }, "Quota": { "type": "object", - "description": "A quota resource", + "description": "A subscription quota resource.", "properties": { "properties": { "$ref": "#/definitions/QuotaProperties", @@ -823,11 +1075,11 @@ }, "QuotaProperties": { "type": "object", - "description": "Quota properties", + "description": "The subscription quota resource properties.", "properties": { "freeTrial": { "$ref": "#/definitions/FreeTrialProperties", - "description": "The free-trial quota." + "description": "The subscription quota resource free-trial properties." }, "provisioningState": { "$ref": "#/definitions/ProvisioningState", From cbb87286c2669a362e0222f4c656ccd606e9931d Mon Sep 17 00:00:00 2001 From: Madhuri Jain Date: Tue, 19 Dec 2023 13:31:53 +0530 Subject: [PATCH 03/12] Readme changes --- .../playwrighttesting/resource-manager/readme.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/specification/playwrighttesting/resource-manager/readme.md b/specification/playwrighttesting/resource-manager/readme.md index 0db53daa3b81..e3606f8c2f39 100644 --- a/specification/playwrighttesting/resource-manager/readme.md +++ b/specification/playwrighttesting/resource-manager/readme.md @@ -29,7 +29,16 @@ title: PlaywrightTestingClient description: Azure Playwright testing management service openapi-type: arm openapi-subtype: rpaas -tag: package-2023-10-01-preview +tag: package-2024-02-01 +``` + +### Tag: package-2024-02-01 + +These settings apply only when `--tag=package-2024-02-01` is specified on the command line. + +```yaml $(tag) == 'package-2024-02-01' +input-file: + - Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json ``` ### Tag: package-2023-10-01-preview From e257200e554d2b1bb6c32d115fd30d85150e2f24 Mon Sep 17 00:00:00 2001 From: Madhuri Jain Date: Tue, 23 Jan 2024 13:20:49 +0530 Subject: [PATCH 04/12] Addressed review comments --- .../{ => 2024-02-01}/AccountQuotas_Get.json | 0 .../AccountQuotas_ListByAccount.json | 0 .../Accounts_CheckNameAvailability.json | 0 .../Accounts_CreateOrUpdate.json | 0 .../{ => 2024-02-01}/Accounts_Delete.json | 0 .../{ => 2024-02-01}/Accounts_Get.json | 0 .../Accounts_ListByResourceGroup.json | 0 .../Accounts_ListBySubscription.json | 0 .../{ => 2024-02-01}/Accounts_Update.json | 0 .../{ => 2024-02-01}/Operations_List.json | 0 .../examples/{ => 2024-02-01}/Quotas_Get.json | 0 .../Quotas_ListBySubscription.json | 0 .../PlaywrightTesting.Management/main.tsp | 16 +++- .../stable/2024-02-01/playwrighttesting.json | 96 +++++++++---------- 14 files changed, 59 insertions(+), 53 deletions(-) rename specification/playwrighttesting/PlaywrightTesting.Management/examples/{ => 2024-02-01}/AccountQuotas_Get.json (100%) rename specification/playwrighttesting/PlaywrightTesting.Management/examples/{ => 2024-02-01}/AccountQuotas_ListByAccount.json (100%) rename specification/playwrighttesting/PlaywrightTesting.Management/examples/{ => 2024-02-01}/Accounts_CheckNameAvailability.json (100%) rename specification/playwrighttesting/PlaywrightTesting.Management/examples/{ => 2024-02-01}/Accounts_CreateOrUpdate.json (100%) rename specification/playwrighttesting/PlaywrightTesting.Management/examples/{ => 2024-02-01}/Accounts_Delete.json (100%) rename specification/playwrighttesting/PlaywrightTesting.Management/examples/{ => 2024-02-01}/Accounts_Get.json (100%) rename specification/playwrighttesting/PlaywrightTesting.Management/examples/{ => 2024-02-01}/Accounts_ListByResourceGroup.json (100%) rename specification/playwrighttesting/PlaywrightTesting.Management/examples/{ => 2024-02-01}/Accounts_ListBySubscription.json (100%) rename specification/playwrighttesting/PlaywrightTesting.Management/examples/{ => 2024-02-01}/Accounts_Update.json (100%) rename specification/playwrighttesting/PlaywrightTesting.Management/examples/{ => 2024-02-01}/Operations_List.json (100%) rename specification/playwrighttesting/PlaywrightTesting.Management/examples/{ => 2024-02-01}/Quotas_Get.json (100%) rename specification/playwrighttesting/PlaywrightTesting.Management/examples/{ => 2024-02-01}/Quotas_ListBySubscription.json (100%) diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/AccountQuotas_Get.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/AccountQuotas_Get.json similarity index 100% rename from specification/playwrighttesting/PlaywrightTesting.Management/examples/AccountQuotas_Get.json rename to specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/AccountQuotas_Get.json diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/AccountQuotas_ListByAccount.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/AccountQuotas_ListByAccount.json similarity index 100% rename from specification/playwrighttesting/PlaywrightTesting.Management/examples/AccountQuotas_ListByAccount.json rename to specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/AccountQuotas_ListByAccount.json diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_CheckNameAvailability.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Accounts_CheckNameAvailability.json similarity index 100% rename from specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_CheckNameAvailability.json rename to specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Accounts_CheckNameAvailability.json diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_CreateOrUpdate.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Accounts_CreateOrUpdate.json similarity index 100% rename from specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_CreateOrUpdate.json rename to specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Accounts_CreateOrUpdate.json diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Delete.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Accounts_Delete.json similarity index 100% rename from specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Delete.json rename to specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Accounts_Delete.json diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Get.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Accounts_Get.json similarity index 100% rename from specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Get.json rename to specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Accounts_Get.json diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_ListByResourceGroup.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Accounts_ListByResourceGroup.json similarity index 100% rename from specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_ListByResourceGroup.json rename to specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Accounts_ListByResourceGroup.json diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_ListBySubscription.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Accounts_ListBySubscription.json similarity index 100% rename from specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_ListBySubscription.json rename to specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Accounts_ListBySubscription.json diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Update.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Accounts_Update.json similarity index 100% rename from specification/playwrighttesting/PlaywrightTesting.Management/examples/Accounts_Update.json rename to specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Accounts_Update.json diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Operations_List.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Operations_List.json similarity index 100% rename from specification/playwrighttesting/PlaywrightTesting.Management/examples/Operations_List.json rename to specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Operations_List.json diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Quotas_Get.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Quotas_Get.json similarity index 100% rename from specification/playwrighttesting/PlaywrightTesting.Management/examples/Quotas_Get.json rename to specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Quotas_Get.json diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/examples/Quotas_ListBySubscription.json b/specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Quotas_ListBySubscription.json similarity index 100% rename from specification/playwrighttesting/PlaywrightTesting.Management/examples/Quotas_ListBySubscription.json rename to specification/playwrighttesting/PlaywrightTesting.Management/examples/2024-02-01/Quotas_ListBySubscription.json diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp b/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp index 2f86dfd2ed85..7c33cdad85ef 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp +++ b/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp @@ -7,19 +7,25 @@ import "@azure-tools/typespec-azure-resource-manager"; using TypeSpec.Http; using TypeSpec.Rest; using TypeSpec.Versioning; -using Azure.ResourceManager; using Azure.Core; +using Azure.ResourceManager; @armProviderNamespace("Microsoft.AzurePlaywrightService") @service({ title: "Microsoft AzurePlaywrightService Management API", - version: "2024-02-01", }) @doc("Microsoft.AzurePlaywrightService Resource Provider Management API.") -@useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) -@useDependency(Azure.Core.Versions.v1_0_Preview_2) +@versioned(Versions) namespace Microsoft.AzurePlaywrightService; +@doc("Microsoft.AzurePlaywrightService Management API Versions.") +enum Versions { + /** 2024-02-01 version */ + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5) + `2024-02-01`, +} + interface Operations extends Azure.ResourceManager.Operations {} @doc("A Playwright service account resource.") @@ -64,7 +70,7 @@ enum EnablementStatus { } @doc("The status of the current operation.") -@Azure.Core.lroStatus +@lroStatus enum ProvisioningState { ...ResourceProvisioningState, diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json index 311fc03436fe..81dff068d6e3 100644 --- a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json @@ -62,20 +62,20 @@ "description": "List the operations for the provider", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "ARM operation completed successfully.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" } }, "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -98,10 +98,10 @@ "description": "List Account resources by subscription ID", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -114,7 +114,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -137,10 +137,10 @@ "description": "Adds check global name availability operation, normally used if a resource name must be globally unique.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "name": "body", @@ -148,7 +148,7 @@ "description": "The CheckAvailability request", "required": true, "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityRequest" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/CheckNameAvailabilityRequest" } } ], @@ -156,13 +156,13 @@ "200": { "description": "The request has succeeded.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/CheckNameAvailabilityResponse" } }, "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -182,10 +182,10 @@ "description": "List quotas for a given subscription Id.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "name": "location", @@ -205,7 +205,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -228,10 +228,10 @@ "description": "Get subscription quota by name.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "name": "location", @@ -272,7 +272,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -292,13 +292,13 @@ "description": "List Account resources by resource group", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" } ], "responses": { @@ -311,7 +311,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -334,13 +334,13 @@ "description": "Get a Account", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "accountName", @@ -363,7 +363,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -381,13 +381,13 @@ "description": "Create a Account", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "accountName", @@ -432,7 +432,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -454,13 +454,13 @@ "description": "Update a Account", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "accountName", @@ -492,7 +492,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -510,13 +510,13 @@ "description": "Delete a Account", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "accountName", @@ -553,7 +553,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -577,13 +577,13 @@ "description": "List quotas for a given account.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "accountName", @@ -606,7 +606,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -629,13 +629,13 @@ "description": "Get quota by name for an account.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "accountName", @@ -679,7 +679,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -708,7 +708,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" } ] }, @@ -826,7 +826,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } ] }, @@ -1048,7 +1048,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } ] }, From a33b2506483f8f3e6ddfdd63e4c368f0a84ccd0e Mon Sep 17 00:00:00 2001 From: Madhuri Jain Date: Wed, 24 Jan 2024 09:37:37 +0530 Subject: [PATCH 05/12] Changed data type to float as discussed in the comments --- .../playwrighttesting/PlaywrightTesting.Management/main.tsp | 2 +- .../stable/2024-02-01/playwrighttesting.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp b/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp index 7c33cdad85ef..9f05d2c999c2 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp +++ b/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp @@ -181,7 +181,7 @@ model AccountFreeTrialProperties { @visibility("read") @minValue(0) @maxValue(100) - percentageUsed: decimal; + percentageUsed: float32; } @doc("The free-trial state.") diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json index 81dff068d6e3..7d7c5e05772e 100644 --- a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json @@ -742,7 +742,7 @@ }, "percentageUsed": { "type": "number", - "format": "decimal", + "format": "float", "description": "The free-trial percentage used.", "minimum": 0, "maximum": 100, From bf4799af4939b4c0c0174171bd87dee1d51ceaeb Mon Sep 17 00:00:00 2001 From: Madhuri Jain Date: Wed, 24 Jan 2024 09:57:51 +0530 Subject: [PATCH 06/12] Added suppression rules for SwaggerLintDiff as per review comment --- .../resource-manager/readme.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/specification/playwrighttesting/resource-manager/readme.md b/specification/playwrighttesting/resource-manager/readme.md index e3606f8c2f39..6324c573a197 100644 --- a/specification/playwrighttesting/resource-manager/readme.md +++ b/specification/playwrighttesting/resource-manager/readme.md @@ -18,6 +18,25 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor --- +## Suppression + +```yaml $(suppression) +directive: + - suppress: ResourceNameRestriction + from: + - Microsoft.AzurePlaywrightService/stable/ + reason: We have enums defined for quota resource names which doesn't support string pattern validation. + - suppress: ProvisioningStateMustBeReadOnly + from: + - Microsoft.AzurePlaywrightService/stable/ + reason: Seems like a took bug, as the visibility is set to read in the TypeSpec already. + - suppress: DeleteResponseCode + from: + - Microsoft.AzurePlaywrightService/stable/ + reason: Seems like a took bug, as default operations are generated from the TrackedResourceOperations in the TypeSpec. +``` +--- + ## Configuration ### Basic Information From 74f2bbeed4d055ad7acbff747d6edf95d574ba19 Mon Sep 17 00:00:00 2001 From: Madhuri Jain Date: Wed, 24 Jan 2024 10:03:48 +0530 Subject: [PATCH 07/12] Added suppression rules for SwaggerLintDiff as per review comment --- specification/playwrighttesting/resource-manager/readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/playwrighttesting/resource-manager/readme.md b/specification/playwrighttesting/resource-manager/readme.md index 6324c573a197..7db22abab351 100644 --- a/specification/playwrighttesting/resource-manager/readme.md +++ b/specification/playwrighttesting/resource-manager/readme.md @@ -24,15 +24,15 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor directive: - suppress: ResourceNameRestriction from: - - Microsoft.AzurePlaywrightService/stable/ + - playwrighttesting.json reason: We have enums defined for quota resource names which doesn't support string pattern validation. - suppress: ProvisioningStateMustBeReadOnly from: - - Microsoft.AzurePlaywrightService/stable/ + - playwrighttesting.json reason: Seems like a took bug, as the visibility is set to read in the TypeSpec already. - suppress: DeleteResponseCode from: - - Microsoft.AzurePlaywrightService/stable/ + - playwrighttesting.json reason: Seems like a took bug, as default operations are generated from the TrackedResourceOperations in the TypeSpec. ``` --- From e2919ada5d958c3405ee0600b6dee0da8ad37aa5 Mon Sep 17 00:00:00 2001 From: Madhuri Jain Date: Mon, 29 Jan 2024 10:56:57 +0530 Subject: [PATCH 08/12] Fix for suppressions not working --- .../playwrighttesting/resource-manager/readme.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/specification/playwrighttesting/resource-manager/readme.md b/specification/playwrighttesting/resource-manager/readme.md index 7db22abab351..77267b1db028 100644 --- a/specification/playwrighttesting/resource-manager/readme.md +++ b/specification/playwrighttesting/resource-manager/readme.md @@ -23,17 +23,14 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor ```yaml $(suppression) directive: - suppress: ResourceNameRestriction - from: - - playwrighttesting.json + from: playwrighttesting.json reason: We have enums defined for quota resource names which doesn't support string pattern validation. - suppress: ProvisioningStateMustBeReadOnly - from: - - playwrighttesting.json - reason: Seems like a took bug, as the visibility is set to read in the TypeSpec already. + from: playwrighttesting.json + reason: Seems like a tool bug, as the visibility is set to read in the TypeSpec already. - suppress: DeleteResponseCode - from: - - playwrighttesting.json - reason: Seems like a took bug, as default operations are generated from the TrackedResourceOperations in the TypeSpec. + from: playwrighttesting.json + reason: Seems like a tool bug, as default operations are generated from the TrackedResourceOperations in the TypeSpec. ``` --- From cd1b96a08e1709e923b24f118162cb2934d59f5a Mon Sep 17 00:00:00 2001 From: Madhuri Jain Date: Mon, 29 Jan 2024 11:09:46 +0530 Subject: [PATCH 09/12] Modified suppression syntax to the new one as per TSG. --- .../resource-manager/readme.md | 26 +++++++------------ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/specification/playwrighttesting/resource-manager/readme.md b/specification/playwrighttesting/resource-manager/readme.md index 77267b1db028..ae8400533a9e 100644 --- a/specification/playwrighttesting/resource-manager/readme.md +++ b/specification/playwrighttesting/resource-manager/readme.md @@ -18,22 +18,6 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor --- -## Suppression - -```yaml $(suppression) -directive: - - suppress: ResourceNameRestriction - from: playwrighttesting.json - reason: We have enums defined for quota resource names which doesn't support string pattern validation. - - suppress: ProvisioningStateMustBeReadOnly - from: playwrighttesting.json - reason: Seems like a tool bug, as the visibility is set to read in the TypeSpec already. - - suppress: DeleteResponseCode - from: playwrighttesting.json - reason: Seems like a tool bug, as default operations are generated from the TrackedResourceOperations in the TypeSpec. -``` ---- - ## Configuration ### Basic Information @@ -55,6 +39,16 @@ These settings apply only when `--tag=package-2024-02-01` is specified on the co ```yaml $(tag) == 'package-2024-02-01' input-file: - Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json +suppressions: + - code: ResourceNameRestriction + from: playwrighttesting.json + reason: We have enums defined for quota resource names which doesn't support string pattern validation. + - code: ProvisioningStateMustBeReadOnly + from: playwrighttesting.json + reason: Seems like a tool bug, as the visibility is set to read only in the TypeSpec already. + - code: DeleteResponseCodes + from: playwrighttesting.json + reason: Seems like a tool bug, as default operations with codes are generated from the TrackedResourceOperations in the TypeSpec. ``` ### Tag: package-2023-10-01-preview From 246fe78598d63e7495f3b9d8265bef1e62d0083e Mon Sep 17 00:00:00 2001 From: Madhuri Jain Date: Tue, 30 Jan 2024 09:50:06 +0530 Subject: [PATCH 10/12] Added paths in suppressions --- specification/playwrighttesting/resource-manager/readme.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specification/playwrighttesting/resource-manager/readme.md b/specification/playwrighttesting/resource-manager/readme.md index ae8400533a9e..43fa0f70ab38 100644 --- a/specification/playwrighttesting/resource-manager/readme.md +++ b/specification/playwrighttesting/resource-manager/readme.md @@ -43,12 +43,17 @@ suppressions: - code: ResourceNameRestriction from: playwrighttesting.json reason: We have enums defined for quota resource names which doesn't support string pattern validation. + where: + - $.paths["/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas/{quotaName}"].get + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas/{quotaName}"].get - code: ProvisioningStateMustBeReadOnly from: playwrighttesting.json reason: Seems like a tool bug, as the visibility is set to read only in the TypeSpec already. - code: DeleteResponseCodes from: playwrighttesting.json reason: Seems like a tool bug, as default operations with codes are generated from the TrackedResourceOperations in the TypeSpec. + where: + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}"].delete ``` ### Tag: package-2023-10-01-preview From db39d21a6e7fc6b13446b4450767040cf5415674 Mon Sep 17 00:00:00 2001 From: Madhuri Jain Date: Tue, 30 Jan 2024 10:00:42 +0530 Subject: [PATCH 11/12] Rectifying path for ResourceNameRestriction Suppression --- specification/playwrighttesting/resource-manager/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/playwrighttesting/resource-manager/readme.md b/specification/playwrighttesting/resource-manager/readme.md index 43fa0f70ab38..98e8542c4863 100644 --- a/specification/playwrighttesting/resource-manager/readme.md +++ b/specification/playwrighttesting/resource-manager/readme.md @@ -44,8 +44,8 @@ suppressions: from: playwrighttesting.json reason: We have enums defined for quota resource names which doesn't support string pattern validation. where: - - $.paths["/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas/{quotaName}"].get - - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas/{quotaName}"].get + - $.paths["/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas/{quotaName}"].get.parameters.3 + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas/{quotaName}"].get.parameters.4 - code: ProvisioningStateMustBeReadOnly from: playwrighttesting.json reason: Seems like a tool bug, as the visibility is set to read only in the TypeSpec already. From 95f8d07c1f906dc05414b4c04edd2174fde7d500 Mon Sep 17 00:00:00 2001 From: Madhuri Jain Date: Tue, 30 Jan 2024 11:41:52 +0530 Subject: [PATCH 12/12] Paths not working correctly with ResourceNameRestriction suppression --- specification/playwrighttesting/resource-manager/readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/playwrighttesting/resource-manager/readme.md b/specification/playwrighttesting/resource-manager/readme.md index 98e8542c4863..50602ce48ffa 100644 --- a/specification/playwrighttesting/resource-manager/readme.md +++ b/specification/playwrighttesting/resource-manager/readme.md @@ -43,9 +43,9 @@ suppressions: - code: ResourceNameRestriction from: playwrighttesting.json reason: We have enums defined for quota resource names which doesn't support string pattern validation. - where: - - $.paths["/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas/{quotaName}"].get.parameters.3 - - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas/{quotaName}"].get.parameters.4 + # where: + # - $.paths["/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas/{quotaName}"].get.parameters.3 + # - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas/{quotaName}"].get.parameters.4 - code: ProvisioningStateMustBeReadOnly from: playwrighttesting.json reason: Seems like a tool bug, as the visibility is set to read only in the TypeSpec already.