Skip to content

Commit c9a5b51

Browse files
Harshan01Harshan B
authored andcommitted
Loadtest sdk params (Azure#20861)
* pagination * Add java autorest config * Fix output-folder path * Revert operationId breaking change * Rename patch TestRun OpId Co-authored-by: Harshan B <[email protected]>
1 parent fa0d247 commit c9a5b51

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

specification/loadtestservice/data-plane/Microsoft.LoadTestService/preview/2022-06-01-preview/loadtestservice.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,9 @@
701701
"produces": [
702702
"application/json"
703703
],
704+
"x-ms-pageable": {
705+
"nextLinkName": "nextLink"
706+
},
704707
"parameters": [
705708
{
706709
"in": "query",
@@ -958,6 +961,9 @@
958961
"produces": [
959962
"application/json"
960963
],
964+
"x-ms-pageable": {
965+
"nextLinkName": "nextLink"
966+
},
961967
"parameters": [
962968
{
963969
"$ref": "#/parameters/ApiVersion"
@@ -1238,6 +1244,9 @@
12381244
"produces": [
12391245
"application/json"
12401246
],
1247+
"x-ms-pageable": {
1248+
"nextLinkName": "nextLink"
1249+
},
12411250
"parameters": [
12421251
{
12431252
"in": "query",

specification/loadtestservice/data-plane/readme.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,46 @@ These settings apply only when `--tag=package-2021-07-01-preview` is specified o
4242
```yaml $(tag) == 'package-2021-07-01-preview'
4343
input-file:
4444
- Microsoft.LoadTestService/preview/2021-07-01-preview/loadtestservice.json
45+
```
46+
47+
### Java
48+
49+
These settings apply only when `--java` is specified on the command line.
50+
Please also specify `--azure-sdk-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>`.
51+
52+
```yaml $(java)
53+
input-file:
54+
- Microsoft.LoadTestService/preview/2022-06-01-preview/loadtestservice.json
55+
java: true
56+
regenerate-pom: false
57+
title: LoadTestingClient
58+
security: AADToken
59+
security-scopes: https://loadtest.azure-dev.com/.default
60+
data-plane: true
61+
generate-models: false
62+
generate-samples: false
63+
generate-tests: false
64+
artifact-id: azure-developer-loadtesting
65+
namespace: com.azure.developer.loadtesting
66+
partial-update: true
67+
output-folder: $(azure-sdk-for-java-folder)/sdk/loadtestservice/azure-developer-loadtesting
68+
service-versions:
69+
- 2022-06-01-preview
70+
directive:
71+
- from: swagger-document
72+
where: '$.paths["/testruns/{testRunId}"].patch'
73+
transform: >
74+
$["operationId"] = "TestRun_CreateAndUpdateTestRun";
75+
- from: swagger-document
76+
where: '$.paths.*[?(@.tags=="AppComponent")]'
77+
transform: >
78+
$["operationId"] = $["operationId"].replace("AppComponent_", "LoadTestAdministration_");
79+
- from: swagger-document
80+
where: '$.paths.*[?(@.tags=="ServerMetrics")]'
81+
transform: >
82+
$["operationId"] = $["operationId"].replace("ServerMetrics_", "LoadTestAdministration_");
83+
- from: swagger-document
84+
where: '$.paths.*[?(@.tags=="Test")]'
85+
transform: >
86+
$["operationId"] = $["operationId"].replace("Test_", "LoadTestAdministration_");
4587
```

0 commit comments

Comments
 (0)