@azure/arm-resourcehealth 3.0.0-beta.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) 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/index.d.ts +0 -1
  8. package/dist-esm/src/index.d.ts.map +1 -1
  9. package/dist-esm/src/index.js +0 -1
  10. package/dist-esm/src/index.js.map +1 -1
  11. package/dist-esm/src/microsoftResourceHealth.d.ts +5 -2
  12. package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -1
  13. package/dist-esm/src/microsoftResourceHealth.js +32 -3
  14. package/dist-esm/src/microsoftResourceHealth.js.map +1 -1
  15. package/dist-esm/src/operations/availabilityStatuses.d.ts +2 -2
  16. package/dist-esm/src/operations/availabilityStatuses.d.ts.map +1 -1
  17. package/dist-esm/src/operations/availabilityStatuses.js.map +1 -1
  18. package/dist-esm/src/operations/childAvailabilityStatuses.d.ts +2 -2
  19. package/dist-esm/src/operations/childAvailabilityStatuses.d.ts.map +1 -1
  20. package/dist-esm/src/operations/childAvailabilityStatuses.js.map +1 -1
  21. package/dist-esm/src/operations/childResources.d.ts +2 -2
  22. package/dist-esm/src/operations/childResources.d.ts.map +1 -1
  23. package/dist-esm/src/operations/childResources.js.map +1 -1
  24. package/dist-esm/src/operations/emergingIssues.d.ts +2 -2
  25. package/dist-esm/src/operations/emergingIssues.d.ts.map +1 -1
  26. package/dist-esm/src/operations/emergingIssues.js.map +1 -1
  27. package/dist-esm/src/operations/operations.d.ts +2 -2
  28. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  29. package/dist-esm/src/operations/operations.js.map +1 -1
  30. package/package.json +1 -1
  31. package/review/arm-resourcehealth.api.md +5 -10
  32. package/src/index.ts +0 -1
  33. package/src/microsoftResourceHealth.ts +46 -3
  34. package/src/operations/availabilityStatuses.ts +3 -3
  35. package/src/operations/childAvailabilityStatuses.ts +3 -3
  36. package/src/operations/childResources.ts +3 -3
  37. package/src/operations/emergingIssues.ts +3 -3
  38. package/src/operations/operations.ts +3 -3
  39. package/types/arm-resourcehealth.d.ts +4 -15
  40. package/types/tsdoc-metadata.json +1 -1
  41. package/dist-esm/src/microsoftResourceHealthContext.d.ts +0 -17
  42. package/dist-esm/src/microsoftResourceHealthContext.d.ts.map +0 -1
  43. package/dist-esm/src/microsoftResourceHealthContext.js +0 -50
  44. package/dist-esm/src/microsoftResourceHealthContext.js.map +0 -1
  45. package/src/microsoftResourceHealthContext.ts +0 -71
package/CHANGELOG.md CHANGED
@@ -1,14 +1,11 @@
1
- ## 3.0.0-beta.1 (2021-11-23)
1
+ # Release History
2
+
3
+ ## 3.0.0 (2021-12-22)
2
4
 
3
- This is the first preview for the new version of the `@azure/arm-resourcehealth` 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-resourcehealth is using our next generation design principles since version 3.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 @@ The Resource Health Client.
6
6
 
7
7
  [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth) |
8
8
  [Package (NPM)](https://www.npmjs.com/package/@azure/arm-resourcehealth) |
9
- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-resourcehealth?view=azure-node-preview) |
9
+ [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-resourcehealth) |
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
 
8
8
  /*
9
9
  * Copyright (c) Microsoft Corporation.
@@ -1739,9 +1739,9 @@ const listNextOperationSpec$3 = {
1739
1739
  * Code generated by Microsoft (R) AutoRest Code Generator.
1740
1740
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1741
1741
  */
1742
- class MicrosoftResourceHealthContext extends coreClient.ServiceClient {
1742
+ class MicrosoftResourceHealth extends coreClient.ServiceClient {
1743
1743
  /**
1744
- * Initializes a new instance of the MicrosoftResourceHealthContext class.
1744
+ * Initializes a new instance of the MicrosoftResourceHealth class.
1745
1745
  * @param credentials Subscription credentials which uniquely identify client subscription.
1746
1746
  * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
1747
1747
  * The subscription ID forms part of the URI for every service call.
@@ -1762,7 +1762,7 @@ class MicrosoftResourceHealthContext extends coreClient.ServiceClient {
1762
1762
  requestContentType: "application/json; charset=utf-8",
1763
1763
  credential: credentials
1764
1764
  };
1765
- const packageDetails = `azsdk-js-arm-resourcehealth/3.0.0-beta.1`;
1765
+ const packageDetails = `azsdk-js-arm-resourcehealth/1.0.0-beta.1`;
1766
1766
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1767
1767
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1768
1768
  : `${packageDetails}`;
@@ -1778,26 +1778,6 @@ class MicrosoftResourceHealthContext extends coreClient.ServiceClient {
1778
1778
  // Assigning values to Constant parameters
1779
1779
  this.$host = options.$host || "https://management.azure.com";
1780
1780
  this.apiVersion = options.apiVersion || "2017-07-01";
1781
- }
1782
- }
1783
-
1784
- /*
1785
- * Copyright (c) Microsoft Corporation.
1786
- * Licensed under the MIT License.
1787
- *
1788
- * Code generated by Microsoft (R) AutoRest Code Generator.
1789
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1790
- */
1791
- class MicrosoftResourceHealth extends MicrosoftResourceHealthContext {
1792
- /**
1793
- * Initializes a new instance of the MicrosoftResourceHealth class.
1794
- * @param credentials Subscription credentials which uniquely identify client subscription.
1795
- * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
1796
- * The subscription ID forms part of the URI for every service call.
1797
- * @param options The parameter options
1798
- */
1799
- constructor(credentials, subscriptionId, options) {
1800
- super(credentials, subscriptionId, options);
1801
1781
  this.availabilityStatuses = new AvailabilityStatusesImpl(this);
1802
1782
  this.childAvailabilityStatuses = new ChildAvailabilityStatusesImpl(this);
1803
1783
  this.childResources = new ChildResourcesImpl(this);
@@ -1807,5 +1787,4 @@ class MicrosoftResourceHealth extends MicrosoftResourceHealthContext {
1807
1787
  }
1808
1788
 
1809
1789
  exports.MicrosoftResourceHealth = MicrosoftResourceHealth;
1810
- exports.MicrosoftResourceHealthContext = MicrosoftResourceHealthContext;
1811
1790
  //# sourceMappingURL=index.js.map