Skip to content

Commit eeaf1e4

Browse files
author
SDKAuto
committed
CodeGen from PR 33897 in Azure/azure-rest-api-specs
Merge ab4d223c3c4a8a487e9171ded0f70783cad9e75d into 1e06393fe545b07c42a71830ba0fdb366f22fb93
1 parent ea025c7 commit eeaf1e4

File tree

695 files changed

+104851
-65798
lines changed

Some content is hidden

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

695 files changed

+104851
-65798
lines changed

common/config/rush/pnpm-lock.yaml

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

sdk/apimanagement/arm-apimanagement/CHANGELOG.md

Lines changed: 797 additions & 7 deletions
Large diffs are not rendered by default.

sdk/apimanagement/arm-apimanagement/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/apimanagement/arm-apimanagement/README.md

Lines changed: 2 additions & 6 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 ApiManagement** 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,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
6463
import { InteractiveBrowserCredential } from "@azure/identity";
6564
import { ApiManagementClient } from "@azure/arm-apimanagement";
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 ApiManagementClient(credential, subscriptionId);
7371
```
7472

7573
### JavaScript Bundle
76-
7774
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).
7875

7976
## Key concepts
@@ -109,7 +106,6 @@ If you'd like to contribute to this library, please read the [contributing guide
109106
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
110107

111108

112-
113109
[azure_cli]: https://learn.microsoft.com/cli/azure
114110
[azure_sub]: https://azure.microsoft.com/free/
115111
[azure_sub]: https://azure.microsoft.com/free/
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "c2e836ccebb6a08245631ca1d68927abf8a79ba1",
2+
"commit": "65f639a91f4814750be5675e958133ab33ef7369",
33
"readme": "specification/apimanagement/resource-manager/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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\apimanagement\\resource-manager\\readme.md --use=@autorest/[email protected].8 --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/apimanagement/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].2",
7-
"use": "@autorest/[email protected].8"
6+
"release_tool": "@azure-tools/[email protected].26",
7+
"use": "@autorest/typescript@^6.0.12"
88
}

sdk/apimanagement/arm-apimanagement/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-apimanagement.d.ts"
14+
"publicTrimmedFilePath": "./types/arm-apimanagement.d.ts"
1515
},
1616
"messages": {
1717
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
}
31-
}
31+
}

sdk/apimanagement/arm-apimanagement/package.json

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,49 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for ApiManagementClient.",
6-
"version": "9.2.1",
6+
"version": "10.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.7.2",
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.18.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.0.1",
35+
"@azure/identity": "^4.9.1",
36+
"@azure/logger": "^1.1.4",
3737
"@types/node": "^18.0.0",
38+
"@vitest/browser": "^3.0.9",
3839
"@vitest/coverage-istanbul": "^3.0.9",
3940
"dotenv": "^16.0.0",
41+
"playwright": "^1.52.0",
4042
"typescript": "~5.8.2",
4143
"vitest": "^3.0.9"
4244
},
43-
"repository": "github:Azure/azure-sdk-for-js",
45+
"repository": {
46+
"type": "git",
47+
"url": "https://github.com/Azure/azure-sdk-for-js.git"
48+
},
4449
"bugs": {
4550
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
4651
},
@@ -66,7 +71,7 @@
6671
"integration-test:browser": "echo skipped",
6772
"integration-test:node": "dev-tool run test:vitest --esm",
6873
"lint": "echo skipped",
69-
"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",
7075
"pack": "npm pack 2>&1",
7176
"prepack": "npm run build",
7277
"test": "npm run integration-test",
@@ -88,14 +93,6 @@
8893
},
8994
"autoPublish": true,
9095
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement",
91-
"//sampleConfiguration": {
92-
"productName": "",
93-
"productSlugs": [
94-
"azure"
95-
],
96-
"disableDocsMs": true,
97-
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-apimanagement?view=azure-node-preview"
98-
},
9996
"type": "module",
10097
"tshy": {
10198
"project": "./tsconfig.src.json",
@@ -107,11 +104,25 @@
107104
"esm",
108105
"commonjs"
109106
],
107+
"esmDialects": [
108+
"browser",
109+
"react-native"
110+
],
110111
"selfLink": false
111112
},
113+
"browser": "./dist/browser/index.js",
114+
"react-native": "./dist/react-native/index.js",
112115
"exports": {
113116
"./package.json": "./package.json",
114117
".": {
118+
"browser": {
119+
"types": "./dist/browser/index.d.ts",
120+
"default": "./dist/browser/index.js"
121+
},
122+
"react-native": {
123+
"types": "./dist/react-native/index.d.ts",
124+
"default": "./dist/react-native/index.js"
125+
},
115126
"import": {
116127
"types": "./dist/esm/index.d.ts",
117128
"default": "./dist/esm/index.js"
@@ -122,4 +133,4 @@
122133
}
123134
}
124135
}
125-
}
136+
}

0 commit comments

Comments
 (0)