@azure/arm-batch 7.0.0-alpha.20211214.1 → 7.0.0-alpha.20211227.1

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +7 -10
  2. package/README.md +1 -1
  3. package/dist/index.js +4 -25
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/batchManagementClient.d.ts +5 -2
  8. package/dist-esm/src/batchManagementClient.d.ts.map +1 -1
  9. package/dist-esm/src/batchManagementClient.js +32 -3
  10. package/dist-esm/src/batchManagementClient.js.map +1 -1
  11. package/dist-esm/src/index.d.ts +0 -1
  12. package/dist-esm/src/index.d.ts.map +1 -1
  13. package/dist-esm/src/index.js +0 -1
  14. package/dist-esm/src/index.js.map +1 -1
  15. package/dist-esm/src/operations/applicationOperations.d.ts +2 -2
  16. package/dist-esm/src/operations/applicationOperations.d.ts.map +1 -1
  17. package/dist-esm/src/operations/applicationOperations.js.map +1 -1
  18. package/dist-esm/src/operations/applicationPackageOperations.d.ts +2 -2
  19. package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -1
  20. package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -1
  21. package/dist-esm/src/operations/batchAccountOperations.d.ts +2 -2
  22. package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
  23. package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
  24. package/dist-esm/src/operations/certificateOperations.d.ts +2 -2
  25. package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -1
  26. package/dist-esm/src/operations/certificateOperations.js.map +1 -1
  27. package/dist-esm/src/operations/location.d.ts +2 -2
  28. package/dist-esm/src/operations/location.d.ts.map +1 -1
  29. package/dist-esm/src/operations/location.js.map +1 -1
  30. package/dist-esm/src/operations/operations.d.ts +2 -2
  31. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  32. package/dist-esm/src/operations/operations.js.map +1 -1
  33. package/dist-esm/src/operations/poolOperations.d.ts +2 -2
  34. package/dist-esm/src/operations/poolOperations.d.ts.map +1 -1
  35. package/dist-esm/src/operations/poolOperations.js.map +1 -1
  36. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +2 -2
  37. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
  38. package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
  39. package/dist-esm/src/operations/privateLinkResourceOperations.d.ts +2 -2
  40. package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -1
  41. package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -1
  42. package/package.json +4 -4
  43. package/review/arm-batch.api.md +5 -10
  44. package/src/batchManagementClient.ts +46 -3
  45. package/src/index.ts +0 -1
  46. package/src/operations/applicationOperations.ts +3 -3
  47. package/src/operations/applicationPackageOperations.ts +3 -3
  48. package/src/operations/batchAccountOperations.ts +3 -3
  49. package/src/operations/certificateOperations.ts +3 -3
  50. package/src/operations/location.ts +3 -3
  51. package/src/operations/operations.ts +3 -3
  52. package/src/operations/poolOperations.ts +3 -3
  53. package/src/operations/privateEndpointConnectionOperations.ts +3 -3
  54. package/src/operations/privateLinkResourceOperations.ts +3 -3
  55. package/types/arm-batch.d.ts +4 -15
  56. package/dist-esm/src/batchManagementClientContext.d.ts +0 -17
  57. package/dist-esm/src/batchManagementClientContext.d.ts.map +0 -1
  58. package/dist-esm/src/batchManagementClientContext.js +0 -50
  59. package/dist-esm/src/batchManagementClientContext.js.map +0 -1
  60. package/src/batchManagementClientContext.ts +0 -71
package/CHANGELOG.md CHANGED
@@ -1,14 +1,11 @@
1
- ## 7.0.0-beta.1 (2021-11-18)
1
+ # Release History
2
+
3
+ ## 7.0.0 (2021-12-24)
2
4
 
3
- 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.
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
- 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/).
7
+ To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
6
8
 
7
- 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.
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
- **Noteworthy changes and features**
10
- - 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.
11
- - Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
12
- - 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.
13
- - 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`.
14
- - 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?view=azure-node-preview) |
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 BatchManagementClientContext extends coreClient.ServiceClient {
6800
+ class BatchManagementClient extends coreClient.ServiceClient {
6801
6801
  /**
6802
- * Initializes a new instance of the BatchManagementClientContext class.
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-beta.1`;
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