Skip to content

Commit be4c248

Browse files
authored
[Hub Generated] Review request for Microsoft.PlaywrightTesting to add version preview/2023-10-01-preview (#25445)
* Generate new Service for playwrighttesting * Adding Management APIs for Microsoft.AzurePlaywrightService public preview api-version 2023-10-01-preview * CI failures Fix * Removed description form properties as it's not required * Added new resource type * Spell check fix * Renamed quota resource type * Rectifying the typespec issue for location based resource * Renamed enum value * Review comments addressed * Swagger build errors resolution * Swagger model validation error fix for example * Added dashboard URI in examples * Revert "Added dashboard URI in examples" This reverts commit 8b1a7cb. * Mjmadhu playwrighttesting microsoft.azure playwright service 2023 10 01 preview data plane (#25681) * Renamed entity from access-key to access-token * Added subscription state to handle appropriate action for clients * Added account state as a property * Updated regex for names * Updated example * Added readonly properties in PUT request examples
1 parent 4ae85dc commit be4c248

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2252
-157
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"title": "Accounts_CreateOrUpdate",
3+
"operationId": "Accounts_CreateOrUpdate",
4+
"parameters": {
5+
"api-version": "2023-10-01-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
7+
"resourceGroupName": "dummyrg",
8+
"name": "myPlaywrightAccount",
9+
"resource": {
10+
"location": "westus",
11+
"tags": {
12+
"Team": "Dev Exp"
13+
},
14+
"properties": {
15+
"regionalAffinity": "Enabled",
16+
"dashboardUri": "https://dashboard.00000000-0000-0000-0000-000000000000.domain.com"
17+
}
18+
}
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"location": "westus",
24+
"properties": {
25+
"dashboardUri": "https://dashboard.00000000-0000-0000-0000-000000000000.domain.com",
26+
"provisioningState": "Succeeded",
27+
"regionalAffinity": "Enabled",
28+
"scalableExecution": "Enabled",
29+
"reporting": "Enabled"
30+
},
31+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount",
32+
"name": "myPlaywrightAccount",
33+
"type": "Microsoft.AzurePlaywrightService/accounts",
34+
"tags": {
35+
"Team": "Dev Exp"
36+
},
37+
"systemData": {
38+
"createdBy": "userId1001",
39+
"createdByType": "User",
40+
"createdAt": "2021-09-28T12:32:33Z",
41+
"lastModifiedBy": "userId1001",
42+
"lastModifiedByType": "User",
43+
"lastModifiedAt": "2021-09-28T12:32:33Z"
44+
}
45+
}
46+
},
47+
"201": {
48+
"headers": {
49+
"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"
50+
},
51+
"body": {
52+
"location": "westus",
53+
"properties": {
54+
"dashboardUri": "https://dashboard.00000000-0000-0000-0000-000000000000.domain.com",
55+
"provisioningState": "Succeeded",
56+
"regionalAffinity": "Enabled",
57+
"scalableExecution": "Enabled",
58+
"reporting": "Enabled"
59+
},
60+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount",
61+
"name": "myPlaywrightAccount",
62+
"type": "Microsoft.AzurePlaywrightService/accounts",
63+
"tags": {
64+
"Team": "Dev Exp"
65+
},
66+
"systemData": {
67+
"createdBy": "userId1001",
68+
"createdByType": "User",
69+
"createdAt": "2021-09-28T12:32:33Z",
70+
"lastModifiedBy": "userId1001",
71+
"lastModifiedByType": "User",
72+
"lastModifiedAt": "2021-09-28T12:32:33Z"
73+
}
74+
}
75+
}
76+
}
77+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"title": "Accounts_Delete",
3+
"operationId": "Accounts_Delete",
4+
"parameters": {
5+
"api-version": "2023-10-01-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
7+
"resourceGroupName": "dummyrg",
8+
"name": "myPlaywrightAccount"
9+
},
10+
"responses": {
11+
"202": {
12+
"headers": {
13+
"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"
14+
}
15+
},
16+
"204": {},
17+
"200": {}
18+
}
19+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"title": "Accounts_Get",
3+
"operationId": "Accounts_Get",
4+
"parameters": {
5+
"api-version": "2023-10-01-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
7+
"resourceGroupName": "dummyrg",
8+
"name": "myPlaywrightAccount"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"location": "westus",
14+
"properties": {
15+
"dashboardUri": "https://dashboard.00000000-0000-0000-0000-000000000000.domain.com",
16+
"provisioningState": "Succeeded",
17+
"regionalAffinity": "Enabled",
18+
"scalableExecution": "Enabled",
19+
"reporting": "Enabled"
20+
},
21+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount",
22+
"name": "myPlaywrightAccount",
23+
"type": "Microsoft.AzurePlaywrightService/accounts",
24+
"tags": {
25+
"Team": "Dev Exp"
26+
},
27+
"systemData": {
28+
"createdBy": "userId1001",
29+
"createdByType": "User",
30+
"createdAt": "2021-09-28T12:32:33Z",
31+
"lastModifiedBy": "userId1001",
32+
"lastModifiedByType": "User",
33+
"lastModifiedAt": "2021-09-28T12:32:33Z"
34+
}
35+
}
36+
}
37+
}
38+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"title": "Accounts_ListByResourceGroup",
3+
"operationId": "Accounts_ListByResourceGroup",
4+
"parameters": {
5+
"api-version": "2023-10-01-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
7+
"resourceGroupName": "dummyrg"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"location": "westus",
15+
"properties": {
16+
"dashboardUri": "https://dashboard.00000000-0000-0000-0000-000000000000.domain.com",
17+
"provisioningState": "Succeeded",
18+
"regionalAffinity": "Enabled",
19+
"scalableExecution": "Enabled",
20+
"reporting": "Enabled"
21+
},
22+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount",
23+
"name": "myPlaywrightAccount",
24+
"type": "Microsoft.AzurePlaywrightService/accounts",
25+
"tags": {
26+
"Team": "Dev Exp"
27+
},
28+
"systemData": {
29+
"createdBy": "userId1001",
30+
"createdByType": "User",
31+
"createdAt": "2021-09-28T12:32:33Z",
32+
"lastModifiedBy": "userId1001",
33+
"lastModifiedByType": "User",
34+
"lastModifiedAt": "2021-09-28T12:32:33Z"
35+
}
36+
}
37+
]
38+
}
39+
}
40+
}
41+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"title": "Accounts_ListBySubscription",
3+
"operationId": "Accounts_ListBySubscription",
4+
"parameters": {
5+
"api-version": "2023-10-01-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"location": "westus",
14+
"properties": {
15+
"dashboardUri": "https://dashboard.00000000-0000-0000-0000-000000000000.domain.com",
16+
"provisioningState": "Succeeded",
17+
"regionalAffinity": "Enabled",
18+
"scalableExecution": "Enabled",
19+
"reporting": "Enabled"
20+
},
21+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount",
22+
"name": "myPlaywrightAccount",
23+
"type": "Microsoft.AzurePlaywrightService/accounts",
24+
"tags": {
25+
"Team": "Dev Exp"
26+
},
27+
"systemData": {
28+
"createdBy": "userId1001",
29+
"createdByType": "User",
30+
"createdAt": "2021-09-28T12:32:33Z",
31+
"lastModifiedBy": "userId1001",
32+
"lastModifiedByType": "User",
33+
"lastModifiedAt": "2021-09-28T12:32:33Z"
34+
}
35+
}
36+
]
37+
}
38+
}
39+
}
40+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"title": "Accounts_Update",
3+
"operationId": "Accounts_Update",
4+
"parameters": {
5+
"api-version": "2023-10-01-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
7+
"resourceGroupName": "dummyrg",
8+
"name": "myPlaywrightAccount",
9+
"properties": {
10+
"tags": {
11+
"Team": "Dev Exp",
12+
"Division": "LT"
13+
},
14+
"properties": {
15+
"regionalAffinity": "Enabled"
16+
}
17+
}
18+
},
19+
"responses": {
20+
"200": {
21+
"body": {
22+
"location": "westus",
23+
"properties": {
24+
"dashboardUri": "https://dashboard.00000000-0000-0000-0000-000000000000.domain.com",
25+
"provisioningState": "Succeeded",
26+
"regionalAffinity": "Enabled",
27+
"scalableExecution": "Enabled",
28+
"reporting": "Enabled"
29+
},
30+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount",
31+
"name": "myPlaywrightAccount",
32+
"type": "Microsoft.AzurePlaywrightService/accounts",
33+
"tags": {
34+
"Team": "Dev Exp"
35+
},
36+
"systemData": {
37+
"createdBy": "userId1001",
38+
"createdByType": "User",
39+
"createdAt": "2021-09-28T12:32:33Z",
40+
"lastModifiedBy": "userId1001",
41+
"lastModifiedByType": "User",
42+
"lastModifiedAt": "2021-09-28T12:32:33Z"
43+
}
44+
}
45+
}
46+
}
47+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"title": "Operations_List",
3+
"operationId": "Operations_List",
4+
"parameters": {
5+
"api-version": "2023-10-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"name": "Microsoft.AzurePlaywrightService/accounts/Write",
13+
"isDataAction": false,
14+
"display": {
15+
"provider": "Microsoft.AzurePlaywrightService",
16+
"resource": "accounts",
17+
"operation": "Creates or updates the PlaywrightAccounts",
18+
"description": "Set PlaywrightAccounts"
19+
}
20+
},
21+
{
22+
"name": "Microsoft.AzurePlaywrightService/accounts/Delete",
23+
"isDataAction": false,
24+
"display": {
25+
"provider": "Microsoft.AzurePlaywrightService",
26+
"resource": "accounts",
27+
"operation": "Deletes the PlaywrightAccounts",
28+
"description": "Delete PlaywrightAccounts"
29+
}
30+
},
31+
{
32+
"name": "Microsoft.AzurePlaywrightService/accounts/Read",
33+
"isDataAction": false,
34+
"display": {
35+
"provider": "Microsoft.AzurePlaywrightService",
36+
"resource": "accounts",
37+
"operation": "Reads the PlaywrightAccounts",
38+
"description": "Read PlaywrightAccounts"
39+
}
40+
}
41+
],
42+
"nextLink": "http://nextlink.contoso.com"
43+
}
44+
}
45+
}
46+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"title": "Quotas_Get",
3+
"operationId": "Quotas_Get",
4+
"parameters": {
5+
"api-version": "2023-10-01-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
7+
"location": "eastus",
8+
"name": "ScalableExecution"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzurePlaywrightService/locations/eastus/quotas/ScalableExecution",
14+
"name": "ScalableExecution",
15+
"type": "Microsoft.AzurePlaywrightService/Locations/Quotas",
16+
"properties": {
17+
"freeTrial": {
18+
"accountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
19+
"createdAt": "2023-08-31T10:19:36.081Z",
20+
"expiryAt": "2023-08-31T10:19:36.081Z",
21+
"allocatedValue": 0,
22+
"usedValue": 0,
23+
"percentageUsed": 100,
24+
"state": "Active"
25+
},
26+
"provisioningState": "Succeeded"
27+
}
28+
}
29+
}
30+
}
31+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"title": "Quotas_ListBySubscription",
3+
"operationId": "Quotas_ListBySubscription",
4+
"parameters": {
5+
"api-version": "2023-10-01-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
7+
"location": "eastus"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"properties": {
15+
"freeTrial": {
16+
"accountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
17+
"createdAt": "2023-08-31T10:19:36.081Z",
18+
"expiryAt": "2023-08-31T10:19:36.081Z",
19+
"allocatedValue": 0,
20+
"usedValue": 0,
21+
"percentageUsed": 100,
22+
"state": "Active"
23+
},
24+
"provisioningState": "Succeeded"
25+
},
26+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzurePlaywrightService/locations/eastus/quotas/ScalableExecution",
27+
"name": "ScalableExecution",
28+
"type": "Microsoft.AzurePlaywrightService/Locations/Quotas"
29+
}
30+
]
31+
}
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)