Skip to content

Commit

Permalink
new-generator-for-apimanagement-track2 (Azure#18835)
Browse files Browse the repository at this point in the history
* new-generator-for-apimanagement-track2

* GA
  • Loading branch information
colawwj authored Dec 13, 2021
1 parent d787219 commit b804830
Show file tree
Hide file tree
Showing 87 changed files with 37,355 additions and 58,652 deletions.
22 changes: 5 additions & 17 deletions sdk/apimanagement/arm-apimanagement/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
# Release History

## 8.0.0-beta.2 (2021-11-17)

**Features**

- Added Interface PerformConnectivityCheckAsyncOptionalParams
- Added Type Alias PerformConnectivityCheckAsyncResponse

## 8.0.0-beta.1 (2021-10-09)
## 8.0.0 (2021-12-13)

This is the first preview for the new version of the `@azure/arm-apimanagement` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
The package of @azure/arm-apimanagement is using our next generation design principles since version 8.0.0, which contains breaking changes.

While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).

Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).

**Noteworthy changes and features**
- Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
- Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
- List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
- Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
- The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
2 changes: 1 addition & 1 deletion sdk/apimanagement/arm-apimanagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ApiManagement Client

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-apimanagement) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement?view=azure-node-preview) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down
6 changes: 3 additions & 3 deletions sdk/apimanagement/arm-apimanagement/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "c4d6f92d3fd35a69ebce68f4c73c35c4238c2ac5",
"commit": "b8cae07c799a07f2e779a9e301f639e9b85124b1",
"readme": "specification/apimanagement/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.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/apimanagement/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.15.20211116.1",
"autorest_command": "autorest --version=3.1.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/apimanagement/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-alpha.15.20211116.1"
"use": "@autorest/typescript@6.0.0-alpha.16.20211130.1"
}
2 changes: 1 addition & 1 deletion sdk/apimanagement/arm-apimanagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ApiManagementClient.",
"version": "8.0.0-beta.2",
"version": "8.0.0",
"engines": { "node": ">=12.0.0" },
"dependencies": {
"@azure/core-lro": "^2.2.0",
Expand Down
Loading

0 comments on commit b804830

Please sign in to comment.