@azure/arm-resourcehealth 4.0.1-alpha.20231016.1 → 4.1.0-alpha.20231020.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +19 -11
- package/README.md +1 -1
- package/dist/index.js +102 -45
- 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 +1 -1
- package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js +1 -1
- package/dist-esm/samples-dev/availabilityStatusesListSample.js +2 -4
- 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 +2 -4
- package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js.map +1 -1
- package/dist-esm/samples-dev/childResourcesListSample.js +2 -4
- 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 +2 -4
- 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 +2 -4
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js +1 -1
- package/dist-esm/samples-dev/eventsListByTenantIdSample.js +2 -4
- 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 +1 -1
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js +2 -4
- 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 +2 -4
- 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 +1 -1
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js +2 -4
- 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/package.json +14 -7
- 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,15 +1,23 @@
|
|
1
1
|
# Release History
|
2
|
+
|
3
|
+
## 4.1.0-beta.1 (2023-10-17)
|
4
|
+
|
5
|
+
**Features**
|
2
6
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
- Added Type Alias EventSubTypeValues
|
8
|
+
- Interface Event_2 has a new optional parameter argQuery
|
9
|
+
- Interface Event_2 has a new optional parameter eventSubType
|
10
|
+
- Interface Event_2 has a new optional parameter maintenanceId
|
11
|
+
- Interface Event_2 has a new optional parameter maintenanceType
|
12
|
+
- Interface EventImpactedResource has a new optional parameter maintenanceEndTime
|
13
|
+
- Interface EventImpactedResource has a new optional parameter maintenanceStartTime
|
14
|
+
- Interface EventImpactedResource has a new optional parameter resourceGroup
|
15
|
+
- Interface EventImpactedResource has a new optional parameter resourceName
|
16
|
+
- Interface EventImpactedResource has a new optional parameter status
|
17
|
+
- Added Enum KnownEventSubTypeValues
|
18
|
+
- Class MicrosoftResourceHealth has a new signature
|
19
|
+
|
20
|
+
|
13
21
|
## 4.0.0 (2023-05-12)
|
14
22
|
|
15
23
|
**Features**
|
@@ -159,4 +167,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.
|
|
159
167
|
|
160
168
|
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
|
161
169
|
|
162
|
-
To learn more, please refer to our documentation [Quick Start](https://aka.ms/
|
170
|
+
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: {
|
@@ -4114,19 +4173,17 @@ const listNextOperationSpec = {
|
|
4114
4173
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
4115
4174
|
*/
|
4116
4175
|
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) {
|
4176
|
+
constructor(credentials, subscriptionIdOrOptions, options) {
|
4124
4177
|
var _a, _b, _c;
|
4125
4178
|
if (credentials === undefined) {
|
4126
4179
|
throw new Error("'credentials' cannot be null");
|
4127
4180
|
}
|
4128
|
-
|
4129
|
-
|
4181
|
+
let subscriptionId;
|
4182
|
+
if (typeof subscriptionIdOrOptions === "string") {
|
4183
|
+
subscriptionId = subscriptionIdOrOptions;
|
4184
|
+
}
|
4185
|
+
else if (typeof subscriptionIdOrOptions === "object") {
|
4186
|
+
options = subscriptionIdOrOptions;
|
4130
4187
|
}
|
4131
4188
|
// Initializing default values for options
|
4132
4189
|
if (!options) {
|
@@ -4136,7 +4193,7 @@ class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient {
|
|
4136
4193
|
requestContentType: "application/json; charset=utf-8",
|
4137
4194
|
credential: credentials
|
4138
4195
|
};
|
4139
|
-
const packageDetails = `azsdk-js-arm-resourcehealth/4.0.1`;
|
4196
|
+
const packageDetails = `azsdk-js-arm-resourcehealth/4.1.0-beta.1`;
|
4140
4197
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
4141
4198
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
4142
4199
|
: `${packageDetails}`;
|
@@ -4169,7 +4226,7 @@ class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient {
|
|
4169
4226
|
this.subscriptionId = subscriptionId;
|
4170
4227
|
// Assigning values to Constant parameters
|
4171
4228
|
this.$host = options.$host || "https://management.azure.com";
|
4172
|
-
this.apiVersion = options.apiVersion || "
|
4229
|
+
this.apiVersion = options.apiVersion || "2023-10-01-preview";
|
4173
4230
|
this.availabilityStatuses = new AvailabilityStatusesImpl(this);
|
4174
4231
|
this.operations = new OperationsImpl(this);
|
4175
4232
|
this.metadata = new MetadataImpl(this);
|