Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
15a11a9
First commit with existing playwright service apis
mjmadhu Apr 11, 2025
d2781da
Added API specs for new RT - PlaywrightWorkspaces
mjmadhu Apr 11, 2025
195b5cc
Fixing Swagger Avocado CI failure
mjmadhu Apr 11, 2025
d90f656
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu Apr 11, 2025
589b277
Fixing Swagger LintDiff and TypeSpec Validation CI failures
mjmadhu Apr 11, 2025
7a663e9
Merge branch 'cp-malt-mpt-integration' of https://github.com/Azure/az…
mjmadhu Apr 11, 2025
82c3750
Added srmresourceidentifier scalar as mentioned in the comment
mjmadhu Apr 14, 2025
88de410
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu Apr 14, 2025
73288d3
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu Apr 14, 2025
092f9fa
Minor renaming of file to fix typo error
mjmadhu Apr 14, 2025
602f0a6
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu Apr 15, 2025
6d9fdb1
Removed kind property as not required
mjmadhu Apr 15, 2025
5c53618
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu Apr 16, 2025
43c91f1
Added readme files for playwright
mjmadhu Apr 16, 2025
ef5e526
Rectify the path for json files
mjmadhu Apr 16, 2025
d2a233b
Updated package names
mjmadhu Apr 16, 2025
135f1b3
Minor changes
mjmadhu Apr 16, 2025
a502eea
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu Apr 17, 2025
e5bf159
Added operations folder
mjmadhu Apr 17, 2025
04cce46
Reorganised resource-manager as per suggested folder structure
mjmadhu Apr 17, 2025
550b28e
Renaming operations folder
mjmadhu Apr 17, 2025
e029a43
Renaming operations folder
mjmadhu Apr 17, 2025
90ef6b9
Minor comment change
mjmadhu Apr 17, 2025
9a319b1
Removed all readme.language.md files as suggested
mjmadhu Apr 17, 2025
1ae2796
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu Apr 17, 2025
16251b4
Suggested changes
mjmadhu Apr 18, 2025
af9c23d
Regenerated loadtest swagger files from tsp
mjmadhu Apr 18, 2025
b240ff7
Merge branch 'cp-malt-mpt-integration' of https://github.com/Azure/az…
mjmadhu Apr 18, 2025
22d9452
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu Apr 18, 2025
9f5470d
Removed sdk gen references from readme.md
mjmadhu Apr 18, 2025
0ee9aa9
Merge branch 'cp-malt-mpt-integration' of https://github.com/Azure/az…
mjmadhu Apr 18, 2025
a93b46b
Deleted shared folder as suggested
mjmadhu Apr 18, 2025
c19c09d
Added newline in tspconfig.yaml
mjmadhu Apr 18, 2025
5708f03
Trying to fix tspconfig formatting failure
mjmadhu Apr 18, 2025
aaa667e
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu Apr 18, 2025
bd47b50
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu Apr 22, 2025
96f7799
Feedback comments done
mjmadhu Apr 23, 2025
e675776
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu Apr 28, 2025
f6b4156
Removed deprecated api-versions from loadtesting
mjmadhu Apr 28, 2025
0297b95
Added sdk configs in tspconfig.yaml
mjmadhu Apr 28, 2025
168d960
Suppressions for old loadtesting files for swagger-lintdiff
mjmadhu Apr 28, 2025
4a86e20
Added suppressionf for swagger lintdiff in existing files
mjmadhu Apr 28, 2025
41e5e7d
Added suppressionf for swagger lintdiff in existing files
mjmadhu Apr 28, 2025
85a0ca2
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu Apr 28, 2025
468d60e
As per review comment
mjmadhu Apr 29, 2025
f9d7940
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu Apr 29, 2025
66ceb0e
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu May 13, 2025
1c9d50a
Added Playwright Quota Resource
mjmadhu May 14, 2025
c95def9
Swagger LintDiff CI Fix
mjmadhu May 14, 2025
d09a611
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu May 14, 2025
1820bde
Minor data0type change
mjmadhu May 14, 2025
1f3c6c2
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu May 19, 2025
0e224d3
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu May 19, 2025
6b39503
TSV fix as per error
mjmadhu May 19, 2025
1b0de70
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu May 19, 2025
379b6e0
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu May 19, 2025
87653fb
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu May 20, 2025
6ec3357
Removed the suppressions
mjmadhu May 20, 2025
a0571d4
Overidden tracked operations for swagger lintdiff errors
mjmadhu May 20, 2025
925fa7e
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu May 20, 2025
87c90a4
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu May 21, 2025
c088103
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu May 21, 2025
82d8515
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu May 22, 2025
1b257e2
Merge branch 'main' into cp-malt-mpt-integration
qiaozha May 22, 2025
fb57d9f
Merge branch 'main' into cp-malt-mpt-integration
kazrael2119 May 23, 2025
3c1175c
Merge branch 'main' into cp-malt-mpt-integration
mjmadhu May 23, 2025
f2b2066
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu May 26, 2025
dbdd52c
Feedback comment python sdk
mjmadhu May 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reorganised resource-manager as per suggested folder structure
  • Loading branch information
mjmadhu committed Apr 17, 2025
commit 04cce463646fb0f0ad5d19449bc051189600846c
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ parameters:
default: "sdk/loadtesting"
"service-directory-name":
default: "loadtestservice"
"provider-name":
default: "Microsoft.LoadTestService"
"service-name":
default: "loadtesting"
options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "resource-manager"
emit-common-types-schema: "never"
# `arm-resource-flattening` is only used for back-compat for specs existed on July 2024. All new service spec should NOT use this flag
arm-resource-flattening: true
emitter-output-dir: "{project-root}/.."
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/loadtestservice.json"
output-file: "{azure-resource-provider-folder}/{provider-name}/{service-name}/{version-status}/{version}/loadtestservice.json"
omit-unreachable-types: true
use-read-only-status-schema: true
"@azure-tools/typespec-ts":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ using Azure.ResourceManager;
@service(#{ title: "Operations API" })
@doc("Operations API is an ARM RPC requirement.")
@versioned(Versions)
namespace Operations;
namespace Operations.Management;

@doc("Operations API Versions.")
enum Versions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ linter:
disable:
"@azure-tools/typespec-azure-resource-manager/arm-common-types-version": "New rule"
parameters:
"service-dir":
default: "sdk/playwright"
"service-directory-name":
default: "loadtestservice"
"provider-name":
default: "Microsoft.LoadTestService"
"service-name":
default: "operations"
options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "resource-manager"
emit-common-types-schema: "never"
# `arm-resource-flattening` is only used for back-compat for specs existed on July 2024. All new service spec should NOT use this flag
arm-resource-flattening: true
emitter-output-dir: "{project-root}/.."
output-file: "{azure-resource-provider-folder}/{provider-name}/{service-name}/{version-status}/{version}/playwright.json"
output-file: "{azure-resource-provider-folder}/{provider-name}/{service-name}/{version-status}/{version}/operations.json"
omit-unreachable-types: true
use-read-only-status-schema: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import "../Playwright.Shared";
using TypeSpec.Versioning;
using Azure.ResourceManager;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Operations is an independent service"
@armProviderNamespace("Microsoft.LoadTestService")
@service(#{ title: "Playwright Service Management API" })
@doc("Playwright service provides access to Playwright workspace resource and it's operations.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ using Azure.ResourceManager;

namespace Playwright.Management;

interface Operations extends Azure.ResourceManager.Operations {}

@armResourceOperations
interface PlaywrightWorkspaces
extends TrackedResourceOperations<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ parameters:
default: "loadtestservice"
"provider-name":
default: "Microsoft.LoadTestService"
"service-name":
default: "playwright"
options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "resource-manager"
Expand Down

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# loadtestservice

> see https://aka.ms/autorest
This is the AutoRest configuration file for loadtestservice.

## Getting Started

To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run:

> `autorest readme.md`
To see additional help and options, run:

> `autorest --help`
For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page.

---

## Configuration

### Basic Information

These are the global settings for the loadtestservice.

``` yaml
openapi-type: arm
openapi-subtype: rpaas
tag: package-2022-12-01
```
### Tag: package-2024-12-01-preview
These settings apply only when `--tag=package-2024-12-01-preview` is specified on the command line.

```yaml $(tag) == 'package-2024-12-01-preview'
input-file:
- Microsoft.LoadTestService/preview/2024-12-01-preview/loadtestservice.json
directive:
- where:
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}/limits/maxMonthlyVirtualUserHours"]
suppress: PathForNestedResource
reason: Load test resource limits API design.
- where:
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}/limits/maxMonthlyVirtualUserHours"]
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}/limits/maxMonthlyVirtualUserHours/set"]
suppress: ResourceNameRestriction
reason: The parent loadTests resource (existing API) does not have pattern restriction.
- where:
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}/limits/maxMonthlyVirtualUserHours/set"]
suppress: PathForResourceAction
reason: API design for post action for the load testing resource limits.
```

### Tag: package-2023-12-01-preview

These settings apply only when `--tag=package-2023-12-01` is specified on the command line.

```yaml $(tag) == 'package-2023-12-01-preview'
input-file:
- Microsoft.LoadTestService/preview/2023-12-01-preview/loadtestservice.json
```

### Tag: package-2022-12-01

These settings apply only when `--tag=package-2022-12-01` is specified on the command line.

```yaml $(tag) == 'package-2022-12-01'
input-file:
- Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json
```

### Tag: package-2022-04-15-preview

These settings apply only when `--tag=package-2022-04-15-preview` is specified on the command line.

```yaml $(tag) == 'package-2022-04-15-preview'
input-file:
- Microsoft.LoadTestService/preview/2022-04-15-preview/loadtestservice.json
```
### Tag: package-2021-12-01-preview

These settings apply only when `--tag=package-2021-12-01-preview` is specified on the command line.

``` yaml $(tag) == 'package-2021-12-01-preview'
input-file:
- Microsoft.LoadTestService/preview/2021-12-01-preview/loadtestservice.json
```

# Code Generation

## Swagger to SDK

This section describes what SDK should be generated by the automatic system.
This is not used by Autorest itself.

``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_loadtesting']
- repo: azure-powershell
```

## Go

See configuration in [readme.go.md](./readme.go.md)

## Python

See configuration in [readme.python.md](./readme.python.md)

## Ruby

See configuration in [readme.ruby.md](./readme.ruby.md)

## TypeScript

See configuration in [readme.typescript.md](./readme.typescript.md)

## CSharp

See configuration in [readme.csharp.md](./readme.csharp.md)

## Java

See configuration in [readme.java.md](./readme.java.md)
Original file line number Diff line number Diff line change
Expand Up @@ -39,50 +39,11 @@
}
},
"tags": [
{
"name": "Operations"
},
{
"name": "PlaywrightWorkspaces"
}
],
"paths": {
"/providers/Microsoft.LoadTestService/operations": {
"get": {
"operationId": "Operations_List",
"tags": [
"Operations"
],
"description": "List the operations for the provider",
"parameters": [
{
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Azure operation completed successfully.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/OperationListResult"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Operations_List": {
"$ref": "./examples/Operations_List.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/checkNameAvailability": {
"post": {
"operationId": "PlaywrightWorkspaces_CheckNameAvailability",
Expand Down
13 changes: 7 additions & 6 deletions specification/loadtestservice/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ These settings apply only when `--tag=2025-07-01-preview` is specified on the co

```yaml $(tag) == 'package-2025-07-01-preview'
input-file:
- Microsoft.LoadTestService/Playwright.Management/preview/2025-07-01-preview/playwright.json
- Microsoft.LoadTestService/playwright/preview/2025-07-01-preview/playwright.json
- Microsoft.LoadTestService/operations/preview/2025-07-01-preview/operations.json
suppressions:
- code: PatchBodyParametersSchema
from: playwright.json
Expand All @@ -53,7 +54,7 @@ These settings apply only when `--tag=package-2024-12-01-preview` is specified o

```yaml $(tag) == 'package-2024-12-01-preview'
input-file:
- Microsoft.LoadTestService/preview/2024-12-01-preview/loadtestservice.json
- Microsoft.LoadTestService/loadtesting/preview/2024-12-01-preview/loadtestservice.json

directive:
- where:
Expand All @@ -77,7 +78,7 @@ These settings apply only when `--tag=package-2023-12-01` is specified on the co

```yaml $(tag) == 'package-2023-12-01-preview'
input-file:
- Microsoft.LoadTestService/preview/2023-12-01-preview/loadtestservice.json
- Microsoft.LoadTestService/loadtesting/preview/2023-12-01-preview/loadtestservice.json
```

### Tag: package-2022-12-01
Expand All @@ -86,7 +87,7 @@ These settings apply only when `--tag=package-2022-12-01` is specified on the co

```yaml $(tag) == 'package-2022-12-01'
input-file:
- Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json
- Microsoft.LoadTestService/loadtesting/stable/2022-12-01/loadtestservice.json
```

### Tag: package-2022-04-15-preview
Expand All @@ -95,15 +96,15 @@ These settings apply only when `--tag=package-2022-04-15-preview` is specified o

```yaml $(tag) == 'package-2022-04-15-preview'
input-file:
- Microsoft.LoadTestService/preview/2022-04-15-preview/loadtestservice.json
- Microsoft.LoadTestService/loadtesting/preview/2022-04-15-preview/loadtestservice.json
```
### Tag: package-2021-12-01-preview

These settings apply only when `--tag=package-2021-12-01-preview` is specified on the command line.

``` yaml $(tag) == 'package-2021-12-01-preview'
input-file:
- Microsoft.LoadTestService/preview/2021-12-01-preview/loadtestservice.json
- Microsoft.LoadTestService/loadtesting/preview/2021-12-01-preview/loadtestservice.json
```

# Code Generation
Expand Down
Loading