Skip to content

Commit 061d3d6

Browse files
authored
[refresh]service-map refresh (Azure#24270)
* [refresh]service-map refresh * update files * update files * update file
1 parent fd24d29 commit 061d3d6

File tree

101 files changed

+4943
-718
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+4943
-718
lines changed

common/config/rush/pnpm-lock.yaml

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

sdk/service-map/arm-servicemap/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Release History
22

3-
## 3.0.0-beta.1 (2022-01-21)
3+
## 3.0.0-beta.2 (2022-12-21)
44

5-
The package of @azure/arm-servicemap is using our next generation design principles since version 3.0.0-beta.1, which contains breaking changes.
5+
The package of @azure/arm-servicemap is using our next generation design principles since version 3.0.0-beta.2, which contains breaking changes.
66

77
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
88

sdk/service-map/arm-servicemap/README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Azure Service client library for JavaScript
1+
# Azure ServiceMap client library for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Service client.
3+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ServiceMap client.
44

55
Service Map API Reference
66

@@ -16,22 +16,24 @@ Service Map API Reference
1616
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
1717
- Latest versions of Safari, Chrome, Edge and Firefox.
1818

19+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
20+
1921
### Prerequisites
2022

2123
- An [Azure subscription][azure_sub].
2224

2325
### Install the `@azure/arm-servicemap` package
2426

25-
Install the Azure Service client library for JavaScript with `npm`:
27+
Install the Azure ServiceMap client library for JavaScript with `npm`:
2628

2729
```bash
2830
npm install @azure/arm-servicemap
2931
```
3032

3133
### Create and authenticate a `ServiceMap`
3234

33-
To create a client object to access the Azure Service API, you will need the `endpoint` of your Azure Service resource and a `credential`. The Azure Service client can use Azure Active Directory credentials to authenticate.
34-
You can find the endpoint for your Azure Service resource in the [Azure Portal][azure_portal].
35+
To create a client object to access the Azure ServiceMap API, you will need the `endpoint` of your Azure ServiceMap resource and a `credential`. The Azure ServiceMap client can use Azure Active Directory credentials to authenticate.
36+
You can find the endpoint for your Azure ServiceMap resource in the [Azure Portal][azure_portal].
3537

3638
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
3739

@@ -41,16 +43,25 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below
4143
npm install @azure/identity
4244
```
4345

44-
You will also need to **register a new AAD application and grant access to Azure Service** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
46+
You will also need to **register a new AAD application and grant access to Azure ServiceMap** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
4547
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`.
4648

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

4951
```javascript
5052
const { ServiceMap } = require("@azure/arm-servicemap");
5153
const { DefaultAzureCredential } = require("@azure/identity");
54+
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
55+
5256
const subscriptionId = "00000000-0000-0000-0000-000000000000";
5357
const client = new ServiceMap(new DefaultAzureCredential(), subscriptionId);
58+
59+
// For client-side applications running in the browser, use this code instead:
60+
// const credential = new InteractiveBrowserCredential({
61+
// tenantId: "<YOUR_TENANT_ID>",
62+
// clientId: "<YOUR_CLIENT_ID>"
63+
// });
64+
// const client = new ServiceMap(credential, subscriptionId);
5465
```
5566

5667

@@ -61,7 +72,7 @@ To use this client library in the browser, first you need to use a bundler. For
6172

6273
### ServiceMap
6374

64-
`ServiceMap` is the primary interface for developers using the Azure Service client library. Explore the methods on this client object to understand the different features of the Azure Service service that you can access.
75+
`ServiceMap` is the primary interface for developers using the Azure ServiceMap client library. Explore the methods on this client object to understand the different features of the Azure ServiceMap service that you can access.
6576

6677
## Troubleshooting
6778

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb",
2+
"commit": "d6b9d9d7ea3fa4e6c0c2122f7641b9b009ce482e",
33
"readme": "specification/service-map/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/service-map/resource-manager/readme.md --use=@autorest/[email protected]alpha.16.20220114.1 --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=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\service-map\\resource-manager\\readme.md --use=@autorest/[email protected]rc.5.20221215.1 --generate-sample=true",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/[email protected]"
6+
"release_tool": "@azure-tools/[email protected]",
7+
"use": "@autorest/[email protected]"
78
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/arm-servicemap.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}

sdk/service-map/arm-servicemap/package.json

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for ServiceMap.",
6-
"version": "3.0.0-beta.1",
6+
"version": "3.0.0-beta.2",
77
"engines": {
88
"node": ">=14.0.0"
99
},
1010
"dependencies": {
1111
"@azure/core-paging": "^1.2.0",
12-
"@azure/core-client": "^1.0.0",
12+
"@azure/core-client": "^1.6.1",
1313
"@azure/core-auth": "^1.3.0",
14-
"@azure/core-rest-pipeline": "^1.1.0",
14+
"@azure/core-rest-pipeline": "^1.8.0",
1515
"tslib": "^2.2.0"
1616
},
1717
"keywords": [
@@ -27,22 +27,27 @@
2727
"types": "./types/arm-servicemap.d.ts",
2828
"devDependencies": {
2929
"@microsoft/api-extractor": "^7.31.1",
30-
"@rollup/plugin-commonjs": "^11.0.2",
31-
"@rollup/plugin-json": "^4.0.0",
32-
"@rollup/plugin-multi-entry": "^3.0.0",
33-
"@rollup/plugin-node-resolve": "^8.0.0",
30+
"@rollup/plugin-commonjs": "^21.0.1",
31+
"@rollup/plugin-json": "^4.1.0",
32+
"@rollup/plugin-multi-entry": "^4.1.0",
33+
"@rollup/plugin-node-resolve": "^13.1.3",
3434
"mkdirp": "^1.0.4",
35-
"rollup": "^1.16.3",
35+
"rollup": "^2.66.1",
3636
"rollup-plugin-sourcemaps": "^0.6.3",
37-
"typescript": "~4.2.0",
37+
"typescript": "~4.8.0",
3838
"uglify-js": "^3.4.9",
3939
"rimraf": "^3.0.0",
40+
"dotenv": "^8.2.0",
4041
"@azure/identity": "^2.0.1",
41-
"@azure-tools/test-recorder": "^1.0.0",
42+
"@azure-tools/test-recorder": "^2.0.0",
43+
"@azure-tools/test-credential": "^1.0.0",
4244
"mocha": "^7.1.1",
43-
"cross-env": "^7.0.2"
45+
"@types/chai": "^4.2.8",
46+
"chai": "^4.2.0",
47+
"cross-env": "^7.0.2",
48+
"@types/node": "^14.0.0",
49+
"@azure/dev-tool": "^1.0.0"
4450
},
45-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/service-map/arm-servicemap",
4651
"repository": {
4752
"type": "git",
4853
"url": "https://github.com/Azure/azure-sdk-for-js.git"
@@ -91,20 +96,20 @@
9196
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
9297
"unit-test:browser": "echo skipped",
9398
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
94-
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
95-
"integration-test:browser": "echo skipped",
96-
"docs": "echo skipped"
99+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
100+
"integration-test:browser": "echo skipped"
97101
},
98102
"sideEffects": false,
99103
"//metadata": {
100104
"constantPaths": [
101105
{
102-
"path": "src/ServiceMap.ts",
106+
"path": "src/serviceMap.ts",
103107
"prefix": "packageDetails"
104108
}
105109
]
106110
},
107111
"autoPublish": true,
112+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/service-map/arm-servicemap",
108113
"//sampleConfiguration": {
109114
"productName": "",
110115
"productSlugs": [
@@ -113,4 +118,4 @@
113118
"disableDocsMs": true,
114119
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-servicemap?view=azure-node-preview"
115120
}
116-
}
121+
}

sdk/service-map/arm-servicemap/recordings/node/my_test/recording_sample_test.json

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

0 commit comments

Comments
 (0)