Skip to content

Commit

Permalink
Mjmadhu playwrighttesting microsoft.azure playwright service 2023 10 …
Browse files Browse the repository at this point in the history
…01 preview cp (#27611)

* Base commit to add new version folders

* Moving unrequired stable version back to preview
  • Loading branch information
mjmadhu authored Feb 5, 2024
1 parent a9b45c2 commit abb30bf
Show file tree
Hide file tree
Showing 27 changed files with 32 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "AccountQuotas_Get",
"operationId": "AccountQuotas_Get",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "dummyrg",
"accountName": "myPlaywrightAccount",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "AccountQuotas_ListByAccount",
"operationId": "AccountQuotas_ListByAccount",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "dummyrg",
"accountName": "myPlaywrightAccount"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Accounts_CheckNameAvailability",
"operationId": "Accounts_CheckNameAvailability",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"body": {
"name": "dummyName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Accounts_CreateOrUpdate",
"operationId": "Accounts_CreateOrUpdate",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "dummyrg",
"accountName": "myPlaywrightAccount",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Accounts_Delete",
"operationId": "Accounts_Delete",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "dummyrg",
"accountName": "myPlaywrightAccount"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Accounts_Get",
"operationId": "Accounts_Get",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "dummyrg",
"accountName": "myPlaywrightAccount"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Accounts_ListByResourceGroup",
"operationId": "Accounts_ListByResourceGroup",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "dummyrg"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Accounts_ListBySubscription",
"operationId": "Accounts_ListBySubscription",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Accounts_Update",
"operationId": "Accounts_Update",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "dummyrg",
"accountName": "myPlaywrightAccount",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Operations_List",
"operationId": "Operations_List",
"parameters": {
"api-version": "2024-02-01"
"api-version": "2024-02-01-preview"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Quotas_Get",
"operationId": "Quotas_Get",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"location": "eastus",
"quotaName": "ScalableExecution"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Quotas_ListBySubscription",
"operationId": "Quotas_ListBySubscription",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"location": "eastus"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ namespace Microsoft.AzurePlaywrightService;

@doc("Microsoft.AzurePlaywrightService Management API Versions.")
enum Versions {
/** 2024-02-01 version */
/** 2024-02-01-preview version */
@useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
`2024-02-01`,
`2024-02-01-preview`,
}

interface Operations extends Azure.ResourceManager.Operations {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "AccountQuotas_Get",
"operationId": "AccountQuotas_Get",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "dummyrg",
"accountName": "myPlaywrightAccount",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "AccountQuotas_ListByAccount",
"operationId": "AccountQuotas_ListByAccount",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "dummyrg",
"accountName": "myPlaywrightAccount"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Accounts_CheckNameAvailability",
"operationId": "Accounts_CheckNameAvailability",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"body": {
"name": "dummyName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Accounts_CreateOrUpdate",
"operationId": "Accounts_CreateOrUpdate",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "dummyrg",
"accountName": "myPlaywrightAccount",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Accounts_Delete",
"operationId": "Accounts_Delete",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "dummyrg",
"accountName": "myPlaywrightAccount"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Accounts_Get",
"operationId": "Accounts_Get",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "dummyrg",
"accountName": "myPlaywrightAccount"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Accounts_ListByResourceGroup",
"operationId": "Accounts_ListByResourceGroup",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "dummyrg"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Accounts_ListBySubscription",
"operationId": "Accounts_ListBySubscription",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Accounts_Update",
"operationId": "Accounts_Update",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "dummyrg",
"accountName": "myPlaywrightAccount",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Operations_List",
"operationId": "Operations_List",
"parameters": {
"api-version": "2024-02-01"
"api-version": "2024-02-01-preview"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Quotas_Get",
"operationId": "Quotas_Get",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"location": "eastus",
"quotaName": "ScalableExecution"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Quotas_ListBySubscription",
"operationId": "Quotas_ListBySubscription",
"parameters": {
"api-version": "2024-02-01",
"api-version": "2024-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"location": "eastus"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"swagger": "2.0",
"info": {
"title": "Microsoft AzurePlaywrightService Management API",
"version": "2024-02-01",
"version": "2024-02-01-preview",
"description": "Microsoft.AzurePlaywrightService Resource Provider Management API.",
"x-typespec-generated": [
{
Expand Down
13 changes: 5 additions & 8 deletions specification/playwrighttesting/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,20 @@ title: PlaywrightTestingClient
description: Azure Playwright testing management service
openapi-type: arm
openapi-subtype: rpaas
tag: package-2024-02-01
tag: package-2024-02-01-preview
```
### Tag: package-2024-02-01
### Tag: package-2024-02-01-preview
These settings apply only when `--tag=package-2024-02-01` is specified on the command line.
These settings apply only when `--tag=package-2024-02-01-preview` is specified on the command line.

```yaml $(tag) == 'package-2024-02-01'
```yaml $(tag) == 'package-2024-02-01-preview'
input-file:
- Microsoft.AzurePlaywrightService/stable/2024-02-01/playwrighttesting.json
- Microsoft.AzurePlaywrightService/preview/2024-02-01-preview/playwrighttesting.json
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
- code: ProvisioningStateMustBeReadOnly
from: playwrighttesting.json
reason: Seems like a tool bug, as the visibility is set to read only in the TypeSpec already.
Expand Down

0 comments on commit abb30bf

Please sign in to comment.