Skip to content

Commit 08e11de

Browse files
author
SDKAuto
committed
CodeGen from PR 26712 in Azure/azure-rest-api-specs
Merge 6970c8db497399ba952f52a2a9e6d8431bb5137e into bf204aab860f2eb58a9d346b00d44760f2a9b0a2
1 parent e45c07d commit 08e11de

File tree

7 files changed

+93
-41
lines changed

7 files changed

+93
-41
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 31 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storage/arm-storage/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "2888f49ff0b4ce0587780b83530a7974dae71015",
2+
"commit": "5e2ec79b203a555050fe8827e73ae28e86b478c7",
33
"readme": "specification/storage/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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\storage\\resource-manager\\readme.md --use=@autorest/[email protected].5 --generate-sample=true",
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/storage/resource-manager/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/[email protected].0",
7-
"use": "@autorest/[email protected].5"
6+
"release_tool": "@azure-tools/[email protected].4",
7+
"use": "@autorest/typescript@^6.0.12"
88
}

sdk/storage/arm-storage/package.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
"node": ">=18.0.0"
99
},
1010
"dependencies": {
11-
"@azure/core-lro": "^2.5.3",
11+
"@azure/core-lro": "^2.5.4",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
1414
"@azure/core-client": "^1.7.0",
1515
"@azure/core-auth": "^1.3.0",
16-
"@azure/core-rest-pipeline": "^1.8.0",
16+
"@azure/core-rest-pipeline": "^1.12.0",
1717
"tslib": "^2.2.0"
1818
},
1919
"keywords": [
@@ -32,17 +32,19 @@
3232
"mkdirp": "^2.1.2",
3333
"typescript": "~5.2.0",
3434
"uglify-js": "^3.4.9",
35-
"rimraf": "^3.0.0",
35+
"rimraf": "^5.0.0",
3636
"dotenv": "^16.0.0",
37+
"@azure/dev-tool": "^1.0.0",
3738
"@azure/identity": "^3.3.0",
3839
"@azure-tools/test-recorder": "^3.0.0",
3940
"@azure-tools/test-credential": "^1.0.0",
4041
"mocha": "^10.0.0",
42+
"@types/mocha": "^10.0.0",
43+
"esm": "^3.2.18",
4144
"@types/chai": "^4.2.8",
4245
"chai": "^4.2.0",
4346
"cross-env": "^7.0.2",
4447
"@types/node": "^18.0.0",
45-
"@azure/dev-tool": "^1.0.0",
4648
"ts-node": "^10.0.0"
4749
},
4850
"repository": {
@@ -77,7 +79,7 @@
7779
"extract-api": "api-extractor run --local",
7880
"lint": "echo skipped",
7981
"audit": "echo skipped",
80-
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
82+
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
8183
"build:node": "echo skipped",
8284
"build:browser": "echo skipped",
8385
"build:test": "echo skipped",
@@ -105,13 +107,5 @@
105107
]
106108
},
107109
"autoPublish": true,
108-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/arm-storage",
109-
"//sampleConfiguration": {
110-
"productName": "",
111-
"productSlugs": [
112-
"azure"
113-
],
114-
"disableDocsMs": true,
115-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-storage?view=azure-node-preview"
116-
}
117-
}
110+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/arm-storage"
111+
}

sdk/storage/arm-storage/src/operations/storageAccounts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ export class StorageAccountsImpl implements StorageAccounts {
524524
* primary and secondary endpoints are available. The primary use case of a Planned Failover is
525525
* disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
526526
* to 'Planned'. Learn more about the failover options here-
527-
* https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
527+
* https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
528528
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
529529
* case insensitive.
530530
* @param accountName The name of the storage account within the specified resource group. Storage
@@ -600,7 +600,7 @@ export class StorageAccountsImpl implements StorageAccounts {
600600
* primary and secondary endpoints are available. The primary use case of a Planned Failover is
601601
* disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
602602
* to 'Planned'. Learn more about the failover options here-
603-
* https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
603+
* https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
604604
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
605605
* case insensitive.
606606
* @param accountName The name of the storage account within the specified resource group. Storage

sdk/storage/arm-storage/src/operationsInterfaces/storageAccounts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export interface StorageAccounts {
250250
* primary and secondary endpoints are available. The primary use case of a Planned Failover is
251251
* disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
252252
* to 'Planned'. Learn more about the failover options here-
253-
* https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
253+
* https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
254254
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
255255
* case insensitive.
256256
* @param accountName The name of the storage account within the specified resource group. Storage
@@ -273,7 +273,7 @@ export interface StorageAccounts {
273273
* primary and secondary endpoints are available. The primary use case of a Planned Failover is
274274
* disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
275275
* to 'Planned'. Learn more about the failover options here-
276-
* https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
276+
* https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
277277
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
278278
* case insensitive.
279279
* @param accountName The name of the storage account within the specified resource group. Storage
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
import {
10+
Recorder,
11+
RecorderStartOptions,
12+
env
13+
} from "@azure-tools/test-recorder";
14+
import { assert } from "chai";
15+
import { Context } from "mocha";
16+
17+
const replaceableVariables: Record<string, string> = {
18+
AZURE_CLIENT_ID: "azure_client_id",
19+
AZURE_CLIENT_SECRET: "azure_client_secret",
20+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
21+
SUBSCRIPTION_ID: "azure_subscription_id"
22+
};
23+
24+
const recorderOptions: RecorderStartOptions = {
25+
envSetupForPlayback: replaceableVariables
26+
};
27+
28+
describe("My test", () => {
29+
let recorder: Recorder;
30+
31+
beforeEach(async function(this: Context) {
32+
recorder = new Recorder(this.currentTest);
33+
await recorder.start(recorderOptions);
34+
});
35+
36+
afterEach(async function() {
37+
await recorder.stop();
38+
});
39+
40+
it("sample test", async function() {
41+
console.log("Hi, I'm a test!");
42+
});
43+
});

sdk/storage/arm-storage/tsconfig.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,11 @@
1515
],
1616
"declaration": true,
1717
"outDir": "./dist-esm",
18-
"importHelpers": true,
19-
"paths": {
20-
"@azure/arm-storage": [
21-
"./src/index"
22-
]
23-
}
18+
"importHelpers": true
2419
},
2520
"include": [
2621
"./src/**/*.ts",
27-
"./test/**/*.ts",
28-
"samples-dev/**/*.ts"
22+
"./test/**/*.ts"
2923
],
3024
"exclude": [
3125
"node_modules"

0 commit comments

Comments
 (0)