@azure/arm-resourcehealth 3.0.0-alpha.20211215.1 → 3.0.1-alpha.20211222.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +11 -16
- 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/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/microsoftResourceHealth.d.ts +5 -2
- package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -1
- package/dist-esm/src/microsoftResourceHealth.js +32 -3
- package/dist-esm/src/microsoftResourceHealth.js.map +1 -1
- package/dist-esm/src/operations/availabilityStatuses.d.ts +2 -2
- package/dist-esm/src/operations/availabilityStatuses.d.ts.map +1 -1
- package/dist-esm/src/operations/availabilityStatuses.js.map +1 -1
- package/dist-esm/src/operations/childAvailabilityStatuses.d.ts +2 -2
- package/dist-esm/src/operations/childAvailabilityStatuses.d.ts.map +1 -1
- package/dist-esm/src/operations/childAvailabilityStatuses.js.map +1 -1
- package/dist-esm/src/operations/childResources.d.ts +2 -2
- package/dist-esm/src/operations/childResources.d.ts.map +1 -1
- package/dist-esm/src/operations/childResources.js.map +1 -1
- package/dist-esm/src/operations/emergingIssues.d.ts +2 -2
- package/dist-esm/src/operations/emergingIssues.d.ts.map +1 -1
- package/dist-esm/src/operations/emergingIssues.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/package.json +1 -1
- package/review/arm-resourcehealth.api.md +5 -10
- package/src/index.ts +0 -1
- package/src/microsoftResourceHealth.ts +46 -3
- package/src/operations/availabilityStatuses.ts +3 -3
- package/src/operations/childAvailabilityStatuses.ts +3 -3
- package/src/operations/childResources.ts +3 -3
- package/src/operations/emergingIssues.ts +3 -3
- package/src/operations/operations.ts +3 -3
- package/types/arm-resourcehealth.d.ts +4 -15
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/src/microsoftResourceHealthContext.d.ts +0 -17
- package/dist-esm/src/microsoftResourceHealthContext.d.ts.map +0 -1
- package/dist-esm/src/microsoftResourceHealthContext.js +0 -50
- package/dist-esm/src/microsoftResourceHealthContext.js.map +0 -1
- package/src/microsoftResourceHealthContext.ts +0 -71
package/CHANGELOG.md
CHANGED
@@ -1,26 +1,21 @@
|
|
1
|
-
|
1
|
+
# Release History
|
2
2
|
|
3
|
-
|
3
|
+
## 3.0.1 (Unreleased)
|
4
4
|
|
5
|
-
|
5
|
+
### Features Added
|
6
6
|
|
7
|
-
|
7
|
+
### Breaking Changes
|
8
8
|
|
9
|
-
|
9
|
+
### Bugs Fixed
|
10
10
|
|
11
|
-
|
11
|
+
### Other Changes
|
12
12
|
|
13
|
-
|
13
|
+
## 3.0.0 (2021-12-22)
|
14
14
|
|
15
|
-
|
15
|
+
The package of @azure/arm-resourcehealth is using our next generation design principles since version 3.0.0, which contains breaking changes.
|
16
16
|
|
17
|
-
|
17
|
+
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
|
18
18
|
|
19
|
-
|
19
|
+
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
|
20
20
|
|
21
|
-
|
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.
|
21
|
+
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
|
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
|
1742
|
+
class MicrosoftResourceHealth extends coreClient.ServiceClient {
|
1743
1743
|
/**
|
1744
|
-
* Initializes a new instance of the
|
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/
|
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
|