@azure/arm-batch 7.0.0-alpha.20211215.1 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -22
- package/README.md +1 -1
- package/dist/index.js +4 -25
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/batchManagementClient.d.ts +5 -2
- package/dist-esm/src/batchManagementClient.d.ts.map +1 -1
- package/dist-esm/src/batchManagementClient.js +32 -3
- package/dist-esm/src/batchManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +0 -1
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +0 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/operations/applicationOperations.d.ts +2 -2
- package/dist-esm/src/operations/applicationOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationOperations.js.map +1 -1
- package/dist-esm/src/operations/applicationPackageOperations.d.ts +2 -2
- package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.d.ts +2 -2
- package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
- package/dist-esm/src/operations/certificateOperations.d.ts +2 -2
- package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/certificateOperations.js.map +1 -1
- package/dist-esm/src/operations/location.d.ts +2 -2
- package/dist-esm/src/operations/location.d.ts.map +1 -1
- package/dist-esm/src/operations/location.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/poolOperations.d.ts +2 -2
- package/dist-esm/src/operations/poolOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/poolOperations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +2 -2
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts +2 -2
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -1
- package/package.json +8 -18
- package/review/arm-batch.api.md +5 -10
- package/src/batchManagementClient.ts +46 -3
- package/src/index.ts +0 -1
- package/src/operations/applicationOperations.ts +3 -3
- package/src/operations/applicationPackageOperations.ts +3 -3
- package/src/operations/batchAccountOperations.ts +3 -3
- package/src/operations/certificateOperations.ts +3 -3
- package/src/operations/location.ts +3 -3
- package/src/operations/operations.ts +3 -3
- package/src/operations/poolOperations.ts +3 -3
- package/src/operations/privateEndpointConnectionOperations.ts +3 -3
- package/src/operations/privateLinkResourceOperations.ts +3 -3
- package/types/arm-batch.d.ts +4 -15
- package/dist-esm/src/batchManagementClientContext.d.ts +0 -17
- package/dist-esm/src/batchManagementClientContext.d.ts.map +0 -1
- package/dist-esm/src/batchManagementClientContext.js +0 -50
- package/dist-esm/src/batchManagementClientContext.js.map +0 -1
- package/src/batchManagementClientContext.ts +0 -71
package/CHANGELOG.md
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
# Release History
|
|
2
|
+
|
|
3
|
+
## 7.0.0 (2021-12-24)
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
The package of @azure/arm-batch is using our next generation design principles since version 7.0.0, which contains breaking changes.
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
#### Other Changes
|
|
12
|
-
|
|
13
|
-
### 7.0.0-beta.1 (2021-11-18)
|
|
14
|
-
|
|
15
|
-
This is the first preview for the new version of the `@azure/arm-batch` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
|
|
16
|
-
|
|
17
|
-
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/).
|
|
18
|
-
|
|
19
|
-
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.
|
|
20
|
-
|
|
21
|
-
**Noteworthy changes and features**
|
|
22
|
-
- 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.
|
|
23
|
-
- Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
|
|
24
|
-
- 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.
|
|
25
|
-
- 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`.
|
|
26
|
-
- The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
|
|
11
|
+
To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Batch Client
|
|
|
6
6
|
|
|
7
7
|
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/batch/arm-batch) |
|
|
8
8
|
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-batch) |
|
|
9
|
-
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-batch
|
|
9
|
+
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-batch) |
|
|
10
10
|
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
|
11
11
|
|
|
12
12
|
## Getting started
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib = require('tslib');
|
|
6
5
|
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
7
|
var coreLro = require('@azure/core-lro');
|
|
8
8
|
|
|
9
9
|
/*
|
|
@@ -6797,9 +6797,9 @@ const listByBatchAccountNextOperationSpec$3 = {
|
|
|
6797
6797
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6798
6798
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6799
6799
|
*/
|
|
6800
|
-
class
|
|
6800
|
+
class BatchManagementClient extends coreClient.ServiceClient {
|
|
6801
6801
|
/**
|
|
6802
|
-
* Initializes a new instance of the
|
|
6802
|
+
* Initializes a new instance of the BatchManagementClient class.
|
|
6803
6803
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
6804
6804
|
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
|
6805
6805
|
* 00000000-0000-0000-0000-000000000000)
|
|
@@ -6820,7 +6820,7 @@ class BatchManagementClientContext extends coreClient.ServiceClient {
|
|
|
6820
6820
|
requestContentType: "application/json; charset=utf-8",
|
|
6821
6821
|
credential: credentials
|
|
6822
6822
|
};
|
|
6823
|
-
const packageDetails = `azsdk-js-arm-batch/7.0.0
|
|
6823
|
+
const packageDetails = `azsdk-js-arm-batch/7.0.0`;
|
|
6824
6824
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
6825
6825
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
6826
6826
|
: `${packageDetails}`;
|
|
@@ -6836,26 +6836,6 @@ class BatchManagementClientContext extends coreClient.ServiceClient {
|
|
|
6836
6836
|
// Assigning values to Constant parameters
|
|
6837
6837
|
this.$host = options.$host || "https://management.azure.com";
|
|
6838
6838
|
this.apiVersion = options.apiVersion || "2021-06-01";
|
|
6839
|
-
}
|
|
6840
|
-
}
|
|
6841
|
-
|
|
6842
|
-
/*
|
|
6843
|
-
* Copyright (c) Microsoft Corporation.
|
|
6844
|
-
* Licensed under the MIT License.
|
|
6845
|
-
*
|
|
6846
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6847
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6848
|
-
*/
|
|
6849
|
-
class BatchManagementClient extends BatchManagementClientContext {
|
|
6850
|
-
/**
|
|
6851
|
-
* Initializes a new instance of the BatchManagementClient class.
|
|
6852
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
6853
|
-
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
|
6854
|
-
* 00000000-0000-0000-0000-000000000000)
|
|
6855
|
-
* @param options The parameter options
|
|
6856
|
-
*/
|
|
6857
|
-
constructor(credentials, subscriptionId, options) {
|
|
6858
|
-
super(credentials, subscriptionId, options);
|
|
6859
6839
|
this.batchAccountOperations = new BatchAccountOperationsImpl(this);
|
|
6860
6840
|
this.applicationPackageOperations = new ApplicationPackageOperationsImpl(this);
|
|
6861
6841
|
this.applicationOperations = new ApplicationOperationsImpl(this);
|
|
@@ -6869,5 +6849,4 @@ class BatchManagementClient extends BatchManagementClientContext {
|
|
|
6869
6849
|
}
|
|
6870
6850
|
|
|
6871
6851
|
exports.BatchManagementClient = BatchManagementClient;
|
|
6872
|
-
exports.BatchManagementClientContext = BatchManagementClientContext;
|
|
6873
6852
|
//# sourceMappingURL=index.js.map
|