Skip to content

Commit 921f989

Browse files
author
SDKAuto
committed
CodeGen from PR 33891 in Azure/azure-rest-api-specs
Merge 22d9452657b7967f613a425d8c94baf837bb8d43 into dce18ad6d9dbc9e8c9912339f2c542f168ac4cb0
1 parent cf9e5b3 commit 921f989

32 files changed

+1399
-1500
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 50 additions & 124 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
11
# Release History
2-
3-
## 1.0.1 (Unreleased)
4-
2+
3+
## 2.0.0 (2025-04-18)
4+
55
### Features Added
66

7-
### Breaking Changes
7+
- Added Interface LoadTestResourceListResult
8+
- Added Interface LoadTestResourceUpdate
9+
- Added Interface PagedOutboundEnvironmentEndpoint
10+
- Added Interface ProxyResource
11+
- Added Interface QuotaResourceListResult
12+
- Added Type Alias LoadTestsDeleteResponse
13+
- Interface CheckQuotaAvailabilityResponse has a new optional parameter name
14+
- Interface CheckQuotaAvailabilityResponse has a new optional parameter systemData
15+
- Interface LoadTestsCreateOrUpdateHeaders has a new optional parameter retryAfter
16+
- Interface LoadTestsDeleteHeaders has a new optional parameter retryAfter
17+
- Interface LoadTestsUpdateHeaders has a new optional parameter location
18+
- Interface LoadTestsUpdateHeaders has a new optional parameter retryAfter
819

9-
### Bugs Fixed
10-
11-
### Other Changes
20+
### Breaking Changes
1221

22+
- Operation LoadTests.beginUpdate has a new signature
23+
- Operation LoadTests.beginUpdateAndWait has a new signature
24+
- Interface CheckQuotaAvailabilityResponse has a new required parameter id
25+
- Interface CheckQuotaAvailabilityResponse has a new required parameter type
26+
- Parameter domainName of interface EndpointDependency is now required
27+
28+
1329
## 1.0.0 (2023-01-28)
1430

15-
The package of @azure/arm-loadtesting is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
31+
The package of @azure/arm-loadtesting is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).

sdk/loadtesting/arm-loadtesting/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

sdk/loadtesting/arm-loadtesting/README.md

Lines changed: 3 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ npm install @azure/identity
4444
```
4545

4646
You will also need to **register a new AAD application and grant access to Azure LoadTest** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
47-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
4847

4948
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
5049

@@ -64,141 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
6463
import { InteractiveBrowserCredential } from "@azure/identity";
6564
import { LoadTestClient } from "@azure/arm-loadtesting";
6665

67-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6866
const credential = new InteractiveBrowserCredential({
6967
tenantId: "<YOUR_TENANT_ID>",
70-
clientId: "<YOUR_CLIENT_ID>",
71-
});
68+
clientId: "<YOUR_CLIENT_ID>"
69+
});
7270
const client = new LoadTestClient(credential, subscriptionId);
7371
```
7472

75-
### Create an Azure Load Testing resource
76-
77-
Create a new Azure Load Testing resource.
78-
79-
```ts snippet:ReadmeSampleCreateLoadTestResource
80-
import { LoadTestClient } from "@azure/arm-loadtesting";
81-
import { DefaultAzureCredential } from "@azure/identity";
82-
83-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
84-
const client = new LoadTestClient(new DefaultAzureCredential(), subscriptionId);
85-
86-
const loadTestResourceCreatePayload = {
87-
location: "westus2",
88-
};
89-
90-
const resource = await client.loadTests.beginCreateOrUpdateAndWait(
91-
"sample-rg",
92-
"sample-loadtesting-resource",
93-
loadTestResourceCreatePayload,
94-
);
95-
```
96-
97-
Create a new Azure Load Testing resource with managed identity and customer managed key encryption.
98-
99-
```ts snippet:ReadmeSampleCreateLoadTestResourceWithManagedIdentityAndCMKEncryption
100-
import { LoadTestClient } from "@azure/arm-loadtesting";
101-
import { DefaultAzureCredential } from "@azure/identity";
102-
103-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
104-
const client = new LoadTestClient(new DefaultAzureCredential(), subscriptionId);
105-
106-
const loadTestResourceCreatePayload = {
107-
location: "westus2",
108-
tags: { team: "testing" },
109-
identity: {
110-
type: "SystemAssigned, UserAssigned",
111-
userAssignedIdentities: {
112-
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sample-rg/providers/microsoft.managedidentity/userassignedidentities/identity1":
113-
{},
114-
},
115-
},
116-
encryption: {
117-
identity: {
118-
type: "UserAssigned",
119-
resourceId:
120-
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sample-rg/providers/microsoft.managedidentity/userassignedidentities/identity1",
121-
},
122-
keyUrl: "https://sample-kv.vault.azure.net/keys/cmkkey/2d1ccd5c50234ea2a0858fe148b69cde",
123-
},
124-
};
125-
126-
const resource = await client.loadTests.beginCreateOrUpdateAndWait(
127-
"sample-rg",
128-
"sample-loadtesting-resource",
129-
loadTestResourceCreatePayload,
130-
);
131-
```
132-
133-
### Get an Azure Load Testing resource
134-
135-
```ts snippet:ReadmeSampleGetLoadTestResource
136-
import { LoadTestClient } from "@azure/arm-loadtesting";
137-
import { DefaultAzureCredential } from "@azure/identity";
138-
139-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
140-
const client = new LoadTestClient(new DefaultAzureCredential(), subscriptionId);
141-
142-
const resourceName = "sample-loadtesting-resource";
143-
const resourceGroupName = "sample-rg";
144-
145-
const resource = await client.loadTests.get(resourceGroupName, resourceName);
146-
```
147-
148-
### Update an Azure Load Testing resource
149-
150-
```ts snippet:ReadmeSampleUpdateLoadTestResource
151-
import { LoadTestClient } from "@azure/arm-loadtesting";
152-
import { DefaultAzureCredential } from "@azure/identity";
153-
154-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
155-
const client = new LoadTestClient(new DefaultAzureCredential(), subscriptionId);
156-
157-
const loadTestResourcePatchPayload = {
158-
tags: { team: "testing-dev" },
159-
identity: {
160-
type: "SystemAssigned, UserAssigned",
161-
userAssignedIdentities: {
162-
// removing a user-assigned managed identity by assigning the value in the payload as null
163-
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sample-rg/providers/microsoft.managedidentity/userassignedidentities/identity1":
164-
null,
165-
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sample-rg/providers/microsoft.managedidentity/userassignedidentities/identity2":
166-
{},
167-
},
168-
},
169-
encryption: {
170-
// use system-assigned managed identity for CMK encryption
171-
identity: {
172-
type: "SystemAssigned",
173-
resourceId: null,
174-
},
175-
keyUrl: "https://sample-kv.vault.azure.net/keys/cmkkey/2d1ccd5c50234ea2a0858fe148b69cde",
176-
},
177-
};
178-
const resource = await client.loadTests.beginUpdateAndWait(
179-
"sample-rg",
180-
"sample-loadtesting-resource",
181-
loadTestResourcePatchPayload,
182-
);
183-
```
184-
185-
### Delete an Azure Load Testing resource
186-
187-
```ts snippet:ReadmeSampleDeleteLoadTestResource
188-
import { LoadTestClient } from "@azure/arm-loadtesting";
189-
import { DefaultAzureCredential } from "@azure/identity";
190-
191-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
192-
const client = new LoadTestClient(new DefaultAzureCredential(), subscriptionId);
193-
194-
const resourceName = "sample-loadtesting-resource";
195-
const resourceGroupName = "sample-rg";
196-
197-
const result = await client.loadTests.beginDeleteAndWait(resourceGroupName, resourceName);
198-
```
199-
20073
### JavaScript Bundle
201-
20274
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
20375

20476
## Key concepts
@@ -233,6 +105,7 @@ If you'd like to contribute to this library, please read the [contributing guide
233105

234106
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
235107

108+
236109
[azure_cli]: https://learn.microsoft.com/cli/azure
237110
[azure_sub]: https://azure.microsoft.com/free/
238111
[azure_sub]: https://azure.microsoft.com/free/
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "91af1c93c771c12d8b147f122c3519eae087d0ff",
3-
"readme": "specification/loadtestservice/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\loadtestservice\\resource-manager\\readme.md --use=@autorest/[email protected].0-rc.7 --generate-sample=true",
2+
"commit": "97b1524a3ebb70a532c64a2751b132331489ecf2",
3+
"readme": "specification/loadtestservice/resource-manager/Microsoft.LoadTestService/loadtesting/readme.md",
4+
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/loadtesting/readme.md --use=@autorest/typescript@^6.0.12",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.5.4",
7-
"use": "@autorest/[email protected].0-rc.7"
8-
}
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.26",
7+
"use": "@autorest/typescript@^6.0.12"
8+
}

sdk/loadtesting/arm-loadtesting/api-extractor.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3-
"mainEntryPointFilePath": "dist/esm/index.d.ts",
3+
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
44
"docModel": {
55
"enabled": true
66
},
@@ -11,7 +11,7 @@
1111
"dtsRollup": {
1212
"enabled": true,
1313
"untrimmedFilePath": "",
14-
"publicTrimmedFilePath": "dist/arm-loadtesting.d.ts"
14+
"publicTrimmedFilePath": "./types/arm-loadtesting.d.ts"
1515
},
1616
"messages": {
1717
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
}
31-
}
31+
}

sdk/loadtesting/arm-loadtesting/package.json

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,49 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for LoadTestClient.",
6-
"version": "1.0.1",
6+
"version": "2.0.0",
77
"engines": {
88
"node": ">=18.0.0"
99
},
1010
"dependencies": {
1111
"@azure/abort-controller": "^2.1.2",
1212
"@azure/core-auth": "^1.9.0",
13-
"@azure/core-client": "^1.9.2",
14-
"@azure/core-lro": "^2.2.0",
13+
"@azure/core-client": "^1.9.3",
14+
"@azure/core-lro": "^2.5.4",
1515
"@azure/core-paging": "^1.6.2",
16-
"@azure/core-rest-pipeline": "^1.19.0",
16+
"@azure/core-rest-pipeline": "^1.19.1",
1717
"tslib": "^2.8.1"
1818
},
1919
"keywords": [
2020
"node",
2121
"azure",
2222
"typescript",
2323
"browser",
24-
"isomorphic",
25-
"cloud"
24+
"isomorphic"
2625
],
2726
"license": "MIT",
2827
"main": "./dist/commonjs/index.js",
29-
"module": "./dist/esm/index.js",
28+
"module": "./dist-esm/src/index.js",
3029
"types": "./dist/commonjs/index.d.ts",
3130
"devDependencies": {
3231
"@azure-tools/test-credential": "^2.0.0",
3332
"@azure-tools/test-recorder": "^4.1.0",
3433
"@azure-tools/test-utils-vitest": "^1.0.0",
3534
"@azure/dev-tool": "^1.0.0",
36-
"@azure/identity": "^4.6.0",
35+
"@azure/identity": "^4.9.0",
3736
"@azure/logger": "^1.1.4",
3837
"@types/node": "^18.0.0",
3938
"@vitest/browser": "^3.0.9",
4039
"@vitest/coverage-istanbul": "^3.0.9",
4140
"dotenv": "^16.0.0",
42-
"playwright": "^1.50.1",
41+
"playwright": "^1.52.0",
4342
"typescript": "~5.8.2",
4443
"vitest": "^3.0.9"
4544
},
46-
"repository": "github:Azure/azure-sdk-for-js",
45+
"repository": {
46+
"type": "git",
47+
"url": "https://github.com/Azure/azure-sdk-for-js.git"
48+
},
4749
"bugs": {
4850
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
4951
},
@@ -69,7 +71,7 @@
6971
"integration-test:browser": "echo skipped",
7072
"integration-test:node": "dev-tool run test:vitest --esm",
7173
"lint": "echo skipped",
72-
"minify": "echo skipped",
74+
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
7375
"pack": "npm pack 2>&1",
7476
"prepack": "npm run build",
7577
"test": "npm run integration-test",
@@ -91,14 +93,6 @@
9193
},
9294
"autoPublish": true,
9395
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/loadtesting/arm-loadtesting",
94-
"//sampleConfiguration": {
95-
"productName": "",
96-
"productSlugs": [
97-
"azure"
98-
],
99-
"disableDocsMs": true,
100-
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-loadtesting?view=azure-node-preview"
101-
},
10296
"type": "module",
10397
"tshy": {
10498
"project": "./tsconfig.src.json",
@@ -139,4 +133,4 @@
139133
}
140134
}
141135
}
142-
}
136+
}

0 commit comments

Comments
 (0)