Skip to content

Commit 0fbd18e

Browse files
author
SDKAuto
committed
CodeGen from PR 24216 in Azure/azure-rest-api-specs
Merge aa4c6b172fd36d592be2e351d6f6e3df852c7bfc into a81abb255dcdc7c04052f6d7d78c019d4ba5dc1a
1 parent 06220e0 commit 0fbd18e

File tree

6 files changed

+98
-50
lines changed

6 files changed

+98
-50
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 39 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "2b5927fd07bfb51809a06ca35b6142f63ba77bab",
2+
"commit": "cfe198da9c33053639cd4e8da4098af15daabf14",
33
"readme": "specification/resources/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\\resources\\resource-manager\\readme.md --use=@autorest/[email protected].2 --generate-sample=true",
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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resources/resource-manager/readme.md --use=@autorest/[email protected].0-rc.10",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
7-
"use": "@autorest/[email protected].2"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
7+
"use": "@autorest/[email protected].0-rc.10"
88
}

sdk/resources-subscriptions/arm-resources-subscriptions/package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for SubscriptionClient.",
6-
"version": "2.1.0",
6+
"version": "2.1.1",
77
"engines": {
88
"node": ">=14.0.0"
99
},
@@ -34,7 +34,7 @@
3434
"mkdirp": "^2.1.2",
3535
"rollup": "^2.66.1",
3636
"rollup-plugin-sourcemaps": "^0.6.3",
37-
"typescript": "~5.0.0",
37+
"typescript": "~4.8.0",
3838
"uglify-js": "^3.4.9",
3939
"rimraf": "^3.0.0",
4040
"dotenv": "^16.0.0",
@@ -109,13 +109,5 @@
109109
]
110110
},
111111
"autoPublish": true,
112-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources-subscriptions/arm-resources-subscriptions",
113-
"//sampleConfiguration": {
114-
"productName": "",
115-
"productSlugs": [
116-
"azure"
117-
],
118-
"disableDocsMs": true,
119-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-resources-subscriptions?view=azure-node-preview"
120-
}
112+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources-subscriptions/arm-resources-subscriptions"
121113
}

sdk/resources-subscriptions/arm-resources-subscriptions/src/subscriptionClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class SubscriptionClient extends coreClient.ServiceClient {
5050
credential: credentials
5151
};
5252

53-
const packageDetails = `azsdk-js-arm-resources-subscriptions/2.1.0`;
53+
const packageDetails = `azsdk-js-arm-resources-subscriptions/2.1.1`;
5454
const userAgentPrefix =
5555
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
5656
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
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/resources-subscriptions/arm-resources-subscriptions/tsconfig.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@
1515
],
1616
"declaration": true,
1717
"outDir": "./dist-esm",
18-
"importHelpers": true,
19-
"paths": {
20-
"@azure/arm-resources-subscriptions": [
21-
"./src/index"
22-
]
23-
}
18+
"importHelpers": true
2419
},
2520
"include": [
2621
"./src/**/*.ts",
2722
"./test/**/*.ts",
28-
"samples-dev/**/*.ts"
23+
"./test/**/*.ts",
24+
"./test/**/*.ts",
25+
"./test/**/*.ts",
26+
"./test/**/*.ts",
27+
"./test/**/*.ts",
28+
"./test/**/*.ts",
29+
"./test/**/*.ts"
2930
],
3031
"exclude": [
3132
"node_modules"

0 commit comments

Comments
 (0)