@azure/arm-resourcehealth 4.0.1-alpha.20231016.1 → 4.1.0-alpha.20231023.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +20 -2
- package/README.md +1 -1
- package/dist/index.js +144 -157
- 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/samples-dev/availabilityStatusesGetByResourceSample.js +2 -4
- package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.js +4 -9
- package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js +4 -9
- package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilityStatusesListSample.js +5 -12
- package/dist-esm/samples-dev/availabilityStatusesListSample.js.map +1 -1
- package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js +2 -4
- package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js +5 -12
- package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js.map +1 -1
- package/dist-esm/samples-dev/childResourcesListSample.js +5 -12
- package/dist-esm/samples-dev/childResourcesListSample.js.map +1 -1
- package/dist-esm/samples-dev/emergingIssuesGetSample.js +2 -4
- package/dist-esm/samples-dev/emergingIssuesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/emergingIssuesListSample.js +5 -12
- package/dist-esm/samples-dev/emergingIssuesListSample.js.map +1 -1
- package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js +1 -1
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js +2 -4
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js.map +1 -1
- package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js +1 -1
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js +2 -4
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js.map +1 -1
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.js +5 -12
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js +4 -9
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js.map +1 -1
- package/dist-esm/samples-dev/eventsListByTenantIdSample.js +5 -12
- package/dist-esm/samples-dev/eventsListByTenantIdSample.js.map +1 -1
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js +2 -4
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js.map +1 -1
- package/dist-esm/samples-dev/impactedResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js +4 -9
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js.map +1 -1
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js +5 -12
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js.map +1 -1
- package/dist-esm/samples-dev/metadataGetEntitySample.js +2 -4
- package/dist-esm/samples-dev/metadataGetEntitySample.js.map +1 -1
- package/dist-esm/samples-dev/metadataListSample.js +5 -12
- package/dist-esm/samples-dev/metadataListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js +4 -9
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js.map +1 -1
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js +5 -12
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js.map +1 -1
- package/dist-esm/src/microsoftResourceHealth.d.ts +2 -1
- package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -1
- package/dist-esm/src/microsoftResourceHealth.js +9 -11
- package/dist-esm/src/microsoftResourceHealth.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +46 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +6 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +50 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/availabilityStatuses.js +9 -24
- package/dist-esm/src/operations/availabilityStatuses.js.map +1 -1
- package/dist-esm/src/operations/childAvailabilityStatuses.js +3 -8
- package/dist-esm/src/operations/childAvailabilityStatuses.js.map +1 -1
- package/dist-esm/src/operations/childResources.js +3 -8
- package/dist-esm/src/operations/childResources.js.map +1 -1
- package/dist-esm/src/operations/emergingIssues.js +3 -8
- package/dist-esm/src/operations/emergingIssues.js.map +1 -1
- package/dist-esm/src/operations/eventsOperations.js +9 -24
- package/dist-esm/src/operations/eventsOperations.js.map +1 -1
- package/dist-esm/src/operations/impactedResources.js +6 -16
- package/dist-esm/src/operations/impactedResources.js.map +1 -1
- package/dist-esm/src/operations/metadata.js +3 -8
- package/dist-esm/src/operations/metadata.js.map +1 -1
- package/dist-esm/src/operations/securityAdvisoryImpactedResources.js +6 -16
- package/dist-esm/src/operations/securityAdvisoryImpactedResources.js.map +1 -1
- package/package.json +15 -8
- package/review/arm-resourcehealth.api.md +19 -1
- package/rollup.config.js +122 -0
- package/src/microsoftResourceHealth.ts +19 -5
- package/src/models/index.ts +48 -0
- package/src/models/mappers.ts +59 -0
- package/src/models/parameters.ts +1 -1
- package/types/arm-resourcehealth.d.ts +50 -1
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
-
## 4.0.
|
3
|
+
## 4.1.0-beta.2 (Unreleased)
|
4
4
|
|
5
5
|
### Features Added
|
6
6
|
|
@@ -10,6 +10,24 @@
|
|
10
10
|
|
11
11
|
### Other Changes
|
12
12
|
|
13
|
+
## 4.1.0-beta.1 (2023-10-17)
|
14
|
+
|
15
|
+
**Features**
|
16
|
+
|
17
|
+
- Added Type Alias EventSubTypeValues
|
18
|
+
- Interface Event_2 has a new optional parameter argQuery
|
19
|
+
- Interface Event_2 has a new optional parameter eventSubType
|
20
|
+
- Interface Event_2 has a new optional parameter maintenanceId
|
21
|
+
- Interface Event_2 has a new optional parameter maintenanceType
|
22
|
+
- Interface EventImpactedResource has a new optional parameter maintenanceEndTime
|
23
|
+
- Interface EventImpactedResource has a new optional parameter maintenanceStartTime
|
24
|
+
- Interface EventImpactedResource has a new optional parameter resourceGroup
|
25
|
+
- Interface EventImpactedResource has a new optional parameter resourceName
|
26
|
+
- Interface EventImpactedResource has a new optional parameter status
|
27
|
+
- Added Enum KnownEventSubTypeValues
|
28
|
+
- Class MicrosoftResourceHealth has a new signature
|
29
|
+
|
30
|
+
|
13
31
|
## 4.0.0 (2023-05-12)
|
14
32
|
|
15
33
|
**Features**
|
@@ -159,4 +177,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.
|
|
159
177
|
|
160
178
|
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
|
161
179
|
|
162
|
-
To learn more, please refer to our documentation [Quick Start](https://aka.ms/
|
180
|
+
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?view=azure-node-preview) |
|
10
10
|
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
11
11
|
|
12
12
|
## Getting started
|
package/dist/index.js
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
3
5
|
var tslib = require('tslib');
|
4
6
|
var coreClient = require('@azure/core-client');
|
5
7
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
6
8
|
|
7
|
-
function
|
9
|
+
function _interopNamespace(e) {
|
10
|
+
if (e && e.__esModule) return e;
|
8
11
|
var n = Object.create(null);
|
9
12
|
if (e) {
|
10
13
|
Object.keys(e).forEach(function (k) {
|
@@ -17,12 +20,12 @@ function _interopNamespaceDefault(e) {
|
|
17
20
|
}
|
18
21
|
});
|
19
22
|
}
|
20
|
-
n
|
23
|
+
n["default"] = e;
|
21
24
|
return Object.freeze(n);
|
22
25
|
}
|
23
26
|
|
24
|
-
var coreClient__namespace = /*#__PURE__*/
|
25
|
-
var coreRestPipeline__namespace = /*#__PURE__*/
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
28
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
26
29
|
|
27
30
|
/*
|
28
31
|
* Copyright (c) Microsoft Corporation.
|
@@ -117,6 +120,12 @@ exports.KnownEventTypeValues = void 0;
|
|
117
120
|
/** SecurityAdvisory */
|
118
121
|
KnownEventTypeValues["SecurityAdvisory"] = "SecurityAdvisory";
|
119
122
|
})(exports.KnownEventTypeValues || (exports.KnownEventTypeValues = {}));
|
123
|
+
/** Known values of {@link EventSubTypeValues} that the service accepts. */
|
124
|
+
exports.KnownEventSubTypeValues = void 0;
|
125
|
+
(function (KnownEventSubTypeValues) {
|
126
|
+
/** Retirement */
|
127
|
+
KnownEventSubTypeValues["Retirement"] = "Retirement";
|
128
|
+
})(exports.KnownEventSubTypeValues || (exports.KnownEventSubTypeValues = {}));
|
120
129
|
/** Known values of {@link EventSourceValues} that the service accepts. */
|
121
130
|
exports.KnownEventSourceValues = void 0;
|
122
131
|
(function (KnownEventSourceValues) {
|
@@ -1413,6 +1422,36 @@ const EventImpactedResource = {
|
|
1413
1422
|
type: {
|
1414
1423
|
name: "String"
|
1415
1424
|
}
|
1425
|
+
}, resourceName: {
|
1426
|
+
serializedName: "properties.resourceName",
|
1427
|
+
readOnly: true,
|
1428
|
+
type: {
|
1429
|
+
name: "String"
|
1430
|
+
}
|
1431
|
+
}, resourceGroup: {
|
1432
|
+
serializedName: "properties.resourceGroup",
|
1433
|
+
readOnly: true,
|
1434
|
+
type: {
|
1435
|
+
name: "String"
|
1436
|
+
}
|
1437
|
+
}, status: {
|
1438
|
+
serializedName: "properties.status",
|
1439
|
+
readOnly: true,
|
1440
|
+
type: {
|
1441
|
+
name: "String"
|
1442
|
+
}
|
1443
|
+
}, maintenanceStartTime: {
|
1444
|
+
serializedName: "properties.maintenanceStartTime",
|
1445
|
+
readOnly: true,
|
1446
|
+
type: {
|
1447
|
+
name: "String"
|
1448
|
+
}
|
1449
|
+
}, maintenanceEndTime: {
|
1450
|
+
serializedName: "properties.maintenanceEndTime",
|
1451
|
+
readOnly: true,
|
1452
|
+
type: {
|
1453
|
+
name: "String"
|
1454
|
+
}
|
1416
1455
|
}, info: {
|
1417
1456
|
serializedName: "properties.info",
|
1418
1457
|
type: {
|
@@ -1436,6 +1475,11 @@ const Event = {
|
|
1436
1475
|
type: {
|
1437
1476
|
name: "String"
|
1438
1477
|
}
|
1478
|
+
}, eventSubType: {
|
1479
|
+
serializedName: "properties.eventSubType",
|
1480
|
+
type: {
|
1481
|
+
name: "String"
|
1482
|
+
}
|
1439
1483
|
}, eventSource: {
|
1440
1484
|
serializedName: "properties.eventSource",
|
1441
1485
|
type: {
|
@@ -1592,6 +1636,21 @@ const Event = {
|
|
1592
1636
|
type: {
|
1593
1637
|
name: "String"
|
1594
1638
|
}
|
1639
|
+
}, maintenanceId: {
|
1640
|
+
serializedName: "properties.maintenanceId",
|
1641
|
+
type: {
|
1642
|
+
name: "String"
|
1643
|
+
}
|
1644
|
+
}, maintenanceType: {
|
1645
|
+
serializedName: "properties.maintenanceType",
|
1646
|
+
type: {
|
1647
|
+
name: "String"
|
1648
|
+
}
|
1649
|
+
}, argQuery: {
|
1650
|
+
serializedName: "properties.argQuery",
|
1651
|
+
type: {
|
1652
|
+
name: "String"
|
1653
|
+
}
|
1595
1654
|
} })
|
1596
1655
|
}
|
1597
1656
|
};
|
@@ -1664,46 +1723,46 @@ const ImpactedResourceStatus = {
|
|
1664
1723
|
|
1665
1724
|
var Mappers = /*#__PURE__*/Object.freeze({
|
1666
1725
|
__proto__: null,
|
1667
|
-
AvailabilityStatus: AvailabilityStatus,
|
1668
1726
|
AvailabilityStatusListResult: AvailabilityStatusListResult,
|
1727
|
+
AvailabilityStatus: AvailabilityStatus,
|
1669
1728
|
AvailabilityStatusProperties: AvailabilityStatusProperties,
|
1670
1729
|
AvailabilityStatusPropertiesRecentlyResolved: AvailabilityStatusPropertiesRecentlyResolved,
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1730
|
+
RecommendedAction: RecommendedAction,
|
1731
|
+
ServiceImpactingEvent: ServiceImpactingEvent,
|
1732
|
+
ServiceImpactingEventStatus: ServiceImpactingEventStatus,
|
1733
|
+
ServiceImpactingEventIncidentProperties: ServiceImpactingEventIncidentProperties,
|
1674
1734
|
ErrorResponse: ErrorResponse,
|
1675
|
-
|
1676
|
-
|
1735
|
+
OperationListResult: OperationListResult,
|
1736
|
+
Operation: Operation,
|
1737
|
+
OperationDisplay: OperationDisplay,
|
1738
|
+
MetadataEntityListResult: MetadataEntityListResult,
|
1739
|
+
MetadataSupportedValueDetail: MetadataSupportedValueDetail,
|
1740
|
+
Resource: Resource,
|
1741
|
+
SystemData: SystemData,
|
1677
1742
|
EventImpactedResourceListResult: EventImpactedResourceListResult,
|
1678
|
-
|
1743
|
+
KeyValueItem: KeyValueItem,
|
1744
|
+
Events: Events,
|
1679
1745
|
EventPropertiesArticle: EventPropertiesArticle,
|
1746
|
+
Link: Link,
|
1747
|
+
LinkDisplayText: LinkDisplayText,
|
1748
|
+
Impact: Impact,
|
1749
|
+
ImpactedServiceRegion: ImpactedServiceRegion,
|
1750
|
+
Update: Update,
|
1680
1751
|
EventPropertiesRecommendedActions: EventPropertiesRecommendedActions,
|
1681
1752
|
EventPropertiesRecommendedActionsItem: EventPropertiesRecommendedActionsItem,
|
1682
|
-
Events: Events,
|
1683
1753
|
Faq: Faq,
|
1684
|
-
|
1754
|
+
EventPropertiesAdditionalInformation: EventPropertiesAdditionalInformation,
|
1755
|
+
EmergingIssueListResult: EmergingIssueListResult,
|
1756
|
+
StatusBanner: StatusBanner,
|
1757
|
+
StatusActiveEvent: StatusActiveEvent,
|
1758
|
+
EmergingIssueImpact: EmergingIssueImpact,
|
1685
1759
|
ImpactedRegion: ImpactedRegion,
|
1686
|
-
ImpactedResourceStatus: ImpactedResourceStatus,
|
1687
|
-
ImpactedServiceRegion: ImpactedServiceRegion,
|
1688
|
-
KeyValueItem: KeyValueItem,
|
1689
|
-
Link: Link,
|
1690
|
-
LinkDisplayText: LinkDisplayText,
|
1691
|
-
MetadataEntity: MetadataEntity,
|
1692
|
-
MetadataEntityListResult: MetadataEntityListResult,
|
1693
|
-
MetadataSupportedValueDetail: MetadataSupportedValueDetail,
|
1694
|
-
Operation: Operation,
|
1695
|
-
OperationDisplay: OperationDisplay,
|
1696
|
-
OperationListResult: OperationListResult,
|
1697
1760
|
ProxyResource: ProxyResource,
|
1698
|
-
|
1699
|
-
|
1700
|
-
|
1701
|
-
|
1702
|
-
|
1703
|
-
StatusActiveEvent: StatusActiveEvent,
|
1704
|
-
StatusBanner: StatusBanner,
|
1705
|
-
SystemData: SystemData,
|
1706
|
-
Update: Update
|
1761
|
+
MetadataEntity: MetadataEntity,
|
1762
|
+
EventImpactedResource: EventImpactedResource,
|
1763
|
+
Event: Event,
|
1764
|
+
EmergingIssuesGetResult: EmergingIssuesGetResult,
|
1765
|
+
ImpactedResourceStatus: ImpactedResourceStatus
|
1707
1766
|
});
|
1708
1767
|
|
1709
1768
|
/*
|
@@ -1738,7 +1797,7 @@ const $host = {
|
|
1738
1797
|
const apiVersion = {
|
1739
1798
|
parameterPath: "apiVersion",
|
1740
1799
|
mapper: {
|
1741
|
-
defaultValue: "
|
1800
|
+
defaultValue: "2023-10-01-preview",
|
1742
1801
|
isConstant: true,
|
1743
1802
|
serializedName: "api-version",
|
1744
1803
|
type: {
|
@@ -1928,16 +1987,11 @@ class AvailabilityStatusesImpl {
|
|
1928
1987
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingAll_1() {
|
1929
1988
|
var _a, e_1, _b, _c;
|
1930
1989
|
try {
|
1931
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionIdPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
1990
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionIdPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
1932
1991
|
_c = _f.value;
|
1933
1992
|
_d = false;
|
1934
|
-
|
1935
|
-
|
1936
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1937
|
-
}
|
1938
|
-
finally {
|
1939
|
-
_d = true;
|
1940
|
-
}
|
1993
|
+
const page = _c;
|
1994
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1941
1995
|
}
|
1942
1996
|
}
|
1943
1997
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
@@ -1995,16 +2049,11 @@ class AvailabilityStatusesImpl {
|
|
1995
2049
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
1996
2050
|
var _a, e_2, _b, _c;
|
1997
2051
|
try {
|
1998
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2052
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
1999
2053
|
_c = _f.value;
|
2000
2054
|
_d = false;
|
2001
|
-
|
2002
|
-
|
2003
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2004
|
-
}
|
2005
|
-
finally {
|
2006
|
-
_d = true;
|
2007
|
-
}
|
2055
|
+
const page = _c;
|
2056
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2008
2057
|
}
|
2009
2058
|
}
|
2010
2059
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
@@ -2066,16 +2115,11 @@ class AvailabilityStatusesImpl {
|
|
2066
2115
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
2067
2116
|
var _a, e_3, _b, _c;
|
2068
2117
|
try {
|
2069
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceUri, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2118
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceUri, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2070
2119
|
_c = _f.value;
|
2071
2120
|
_d = false;
|
2072
|
-
|
2073
|
-
|
2074
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2075
|
-
}
|
2076
|
-
finally {
|
2077
|
-
_d = true;
|
2078
|
-
}
|
2121
|
+
const page = _c;
|
2122
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2079
2123
|
}
|
2080
2124
|
}
|
2081
2125
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
@@ -2407,16 +2451,11 @@ class MetadataImpl {
|
|
2407
2451
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
2408
2452
|
var _a, e_1, _b, _c;
|
2409
2453
|
try {
|
2410
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2454
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2411
2455
|
_c = _f.value;
|
2412
2456
|
_d = false;
|
2413
|
-
|
2414
|
-
|
2415
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2416
|
-
}
|
2417
|
-
finally {
|
2418
|
-
_d = true;
|
2419
|
-
}
|
2457
|
+
const page = _c;
|
2458
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2420
2459
|
}
|
2421
2460
|
}
|
2422
2461
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
@@ -2565,16 +2604,11 @@ class ImpactedResourcesImpl {
|
|
2565
2604
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdAndEventIdPagingAll_1() {
|
2566
2605
|
var _a, e_1, _b, _c;
|
2567
2606
|
try {
|
2568
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2607
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2569
2608
|
_c = _f.value;
|
2570
2609
|
_d = false;
|
2571
|
-
|
2572
|
-
|
2573
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2574
|
-
}
|
2575
|
-
finally {
|
2576
|
-
_d = true;
|
2577
|
-
}
|
2610
|
+
const page = _c;
|
2611
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2578
2612
|
}
|
2579
2613
|
}
|
2580
2614
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
@@ -2632,16 +2666,11 @@ class ImpactedResourcesImpl {
|
|
2632
2666
|
return tslib.__asyncGenerator(this, arguments, function* listByTenantIdAndEventIdPagingAll_1() {
|
2633
2667
|
var _a, e_2, _b, _c;
|
2634
2668
|
try {
|
2635
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2669
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2636
2670
|
_c = _f.value;
|
2637
2671
|
_d = false;
|
2638
|
-
|
2639
|
-
|
2640
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2641
|
-
}
|
2642
|
-
finally {
|
2643
|
-
_d = true;
|
2644
|
-
}
|
2672
|
+
const page = _c;
|
2673
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2645
2674
|
}
|
2646
2675
|
}
|
2647
2676
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
@@ -2890,16 +2919,11 @@ class SecurityAdvisoryImpactedResourcesImpl {
|
|
2890
2919
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdAndEventIdPagingAll_1() {
|
2891
2920
|
var _a, e_1, _b, _c;
|
2892
2921
|
try {
|
2893
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2922
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2894
2923
|
_c = _f.value;
|
2895
2924
|
_d = false;
|
2896
|
-
|
2897
|
-
|
2898
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2899
|
-
}
|
2900
|
-
finally {
|
2901
|
-
_d = true;
|
2902
|
-
}
|
2925
|
+
const page = _c;
|
2926
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2903
2927
|
}
|
2904
2928
|
}
|
2905
2929
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
@@ -2957,16 +2981,11 @@ class SecurityAdvisoryImpactedResourcesImpl {
|
|
2957
2981
|
return tslib.__asyncGenerator(this, arguments, function* listByTenantIdAndEventIdPagingAll_1() {
|
2958
2982
|
var _a, e_2, _b, _c;
|
2959
2983
|
try {
|
2960
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2984
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2961
2985
|
_c = _f.value;
|
2962
2986
|
_d = false;
|
2963
|
-
|
2964
|
-
|
2965
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2966
|
-
}
|
2967
|
-
finally {
|
2968
|
-
_d = true;
|
2969
|
-
}
|
2987
|
+
const page = _c;
|
2988
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2970
2989
|
}
|
2971
2990
|
}
|
2972
2991
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
@@ -3155,16 +3174,11 @@ class EventsOperationsImpl {
|
|
3155
3174
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingAll_1() {
|
3156
3175
|
var _a, e_1, _b, _c;
|
3157
3176
|
try {
|
3158
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionIdPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
3177
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionIdPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
3159
3178
|
_c = _f.value;
|
3160
3179
|
_d = false;
|
3161
|
-
|
3162
|
-
|
3163
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3164
|
-
}
|
3165
|
-
finally {
|
3166
|
-
_d = true;
|
3167
|
-
}
|
3180
|
+
const page = _c;
|
3181
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3168
3182
|
}
|
3169
3183
|
}
|
3170
3184
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
@@ -3221,16 +3235,11 @@ class EventsOperationsImpl {
|
|
3221
3235
|
return tslib.__asyncGenerator(this, arguments, function* listByTenantIdPagingAll_1() {
|
3222
3236
|
var _a, e_2, _b, _c;
|
3223
3237
|
try {
|
3224
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByTenantIdPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
3238
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByTenantIdPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
3225
3239
|
_c = _f.value;
|
3226
3240
|
_d = false;
|
3227
|
-
|
3228
|
-
|
3229
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3230
|
-
}
|
3231
|
-
finally {
|
3232
|
-
_d = true;
|
3233
|
-
}
|
3241
|
+
const page = _c;
|
3242
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3234
3243
|
}
|
3235
3244
|
}
|
3236
3245
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
@@ -3292,16 +3301,11 @@ class EventsOperationsImpl {
|
|
3292
3301
|
return tslib.__asyncGenerator(this, arguments, function* listBySingleResourcePagingAll_1() {
|
3293
3302
|
var _a, e_3, _b, _c;
|
3294
3303
|
try {
|
3295
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySingleResourcePagingPage(resourceUri, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
3304
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySingleResourcePagingPage(resourceUri, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
3296
3305
|
_c = _f.value;
|
3297
3306
|
_d = false;
|
3298
|
-
|
3299
|
-
|
3300
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3301
|
-
}
|
3302
|
-
finally {
|
3303
|
-
_d = true;
|
3304
|
-
}
|
3307
|
+
const page = _c;
|
3308
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3305
3309
|
}
|
3306
3310
|
}
|
3307
3311
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
@@ -3681,16 +3685,11 @@ class ChildAvailabilityStatusesImpl {
|
|
3681
3685
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
3682
3686
|
var _a, e_1, _b, _c;
|
3683
3687
|
try {
|
3684
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceUri, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
3688
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceUri, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
3685
3689
|
_c = _f.value;
|
3686
3690
|
_d = false;
|
3687
|
-
|
3688
|
-
|
3689
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3690
|
-
}
|
3691
|
-
finally {
|
3692
|
-
_d = true;
|
3693
|
-
}
|
3691
|
+
const page = _c;
|
3692
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3694
3693
|
}
|
3695
3694
|
}
|
3696
3695
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
@@ -3863,16 +3862,11 @@ class ChildResourcesImpl {
|
|
3863
3862
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
3864
3863
|
var _a, e_1, _b, _c;
|
3865
3864
|
try {
|
3866
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceUri, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
3865
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceUri, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
3867
3866
|
_c = _f.value;
|
3868
3867
|
_d = false;
|
3869
|
-
|
3870
|
-
|
3871
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3872
|
-
}
|
3873
|
-
finally {
|
3874
|
-
_d = true;
|
3875
|
-
}
|
3868
|
+
const page = _c;
|
3869
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3876
3870
|
}
|
3877
3871
|
}
|
3878
3872
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
@@ -4011,16 +4005,11 @@ class EmergingIssuesImpl {
|
|
4011
4005
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
4012
4006
|
var _a, e_1, _b, _c;
|
4013
4007
|
try {
|
4014
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
4008
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
4015
4009
|
_c = _f.value;
|
4016
4010
|
_d = false;
|
4017
|
-
|
4018
|
-
|
4019
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
4020
|
-
}
|
4021
|
-
finally {
|
4022
|
-
_d = true;
|
4023
|
-
}
|
4011
|
+
const page = _c;
|
4012
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
4024
4013
|
}
|
4025
4014
|
}
|
4026
4015
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
@@ -4114,19 +4103,17 @@ const listNextOperationSpec = {
|
|
4114
4103
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
4115
4104
|
*/
|
4116
4105
|
class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient {
|
4117
|
-
|
4118
|
-
* Initializes a new instance of the MicrosoftResourceHealth class.
|
4119
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
4120
|
-
* @param subscriptionId The ID of the target subscription.
|
4121
|
-
* @param options The parameter options
|
4122
|
-
*/
|
4123
|
-
constructor(credentials, subscriptionId, options) {
|
4106
|
+
constructor(credentials, subscriptionIdOrOptions, options) {
|
4124
4107
|
var _a, _b, _c;
|
4125
4108
|
if (credentials === undefined) {
|
4126
4109
|
throw new Error("'credentials' cannot be null");
|
4127
4110
|
}
|
4128
|
-
|
4129
|
-
|
4111
|
+
let subscriptionId;
|
4112
|
+
if (typeof subscriptionIdOrOptions === "string") {
|
4113
|
+
subscriptionId = subscriptionIdOrOptions;
|
4114
|
+
}
|
4115
|
+
else if (typeof subscriptionIdOrOptions === "object") {
|
4116
|
+
options = subscriptionIdOrOptions;
|
4130
4117
|
}
|
4131
4118
|
// Initializing default values for options
|
4132
4119
|
if (!options) {
|
@@ -4136,7 +4123,7 @@ class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient {
|
|
4136
4123
|
requestContentType: "application/json; charset=utf-8",
|
4137
4124
|
credential: credentials
|
4138
4125
|
};
|
4139
|
-
const packageDetails = `azsdk-js-arm-resourcehealth/4.0.
|
4126
|
+
const packageDetails = `azsdk-js-arm-resourcehealth/4.1.0-beta.2`;
|
4140
4127
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
4141
4128
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
4142
4129
|
: `${packageDetails}`;
|
@@ -4169,7 +4156,7 @@ class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient {
|
|
4169
4156
|
this.subscriptionId = subscriptionId;
|
4170
4157
|
// Assigning values to Constant parameters
|
4171
4158
|
this.$host = options.$host || "https://management.azure.com";
|
4172
|
-
this.apiVersion = options.apiVersion || "
|
4159
|
+
this.apiVersion = options.apiVersion || "2023-10-01-preview";
|
4173
4160
|
this.availabilityStatuses = new AvailabilityStatusesImpl(this);
|
4174
4161
|
this.operations = new OperationsImpl(this);
|
4175
4162
|
this.metadata = new MetadataImpl(this);
|