@azure/arm-resourcehealth 4.0.1-alpha.20231009.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 +66 -12
- 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 +6 -6
- package/review/arm-resourcehealth.api.md +19 -1
- 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
@@ -120,6 +120,12 @@ exports.KnownEventTypeValues = void 0;
|
|
120
120
|
/** SecurityAdvisory */
|
121
121
|
KnownEventTypeValues["SecurityAdvisory"] = "SecurityAdvisory";
|
122
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 = {}));
|
123
129
|
/** Known values of {@link EventSourceValues} that the service accepts. */
|
124
130
|
exports.KnownEventSourceValues = void 0;
|
125
131
|
(function (KnownEventSourceValues) {
|
@@ -1416,6 +1422,36 @@ const EventImpactedResource = {
|
|
1416
1422
|
type: {
|
1417
1423
|
name: "String"
|
1418
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
|
+
}
|
1419
1455
|
}, info: {
|
1420
1456
|
serializedName: "properties.info",
|
1421
1457
|
type: {
|
@@ -1439,6 +1475,11 @@ const Event = {
|
|
1439
1475
|
type: {
|
1440
1476
|
name: "String"
|
1441
1477
|
}
|
1478
|
+
}, eventSubType: {
|
1479
|
+
serializedName: "properties.eventSubType",
|
1480
|
+
type: {
|
1481
|
+
name: "String"
|
1482
|
+
}
|
1442
1483
|
}, eventSource: {
|
1443
1484
|
serializedName: "properties.eventSource",
|
1444
1485
|
type: {
|
@@ -1595,6 +1636,21 @@ const Event = {
|
|
1595
1636
|
type: {
|
1596
1637
|
name: "String"
|
1597
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
|
+
}
|
1598
1654
|
} })
|
1599
1655
|
}
|
1600
1656
|
};
|
@@ -1741,7 +1797,7 @@ const $host = {
|
|
1741
1797
|
const apiVersion = {
|
1742
1798
|
parameterPath: "apiVersion",
|
1743
1799
|
mapper: {
|
1744
|
-
defaultValue: "
|
1800
|
+
defaultValue: "2023-10-01-preview",
|
1745
1801
|
isConstant: true,
|
1746
1802
|
serializedName: "api-version",
|
1747
1803
|
type: {
|
@@ -4117,19 +4173,17 @@ const listNextOperationSpec = {
|
|
4117
4173
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
4118
4174
|
*/
|
4119
4175
|
class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient {
|
4120
|
-
|
4121
|
-
* Initializes a new instance of the MicrosoftResourceHealth class.
|
4122
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
4123
|
-
* @param subscriptionId The ID of the target subscription.
|
4124
|
-
* @param options The parameter options
|
4125
|
-
*/
|
4126
|
-
constructor(credentials, subscriptionId, options) {
|
4176
|
+
constructor(credentials, subscriptionIdOrOptions, options) {
|
4127
4177
|
var _a, _b, _c;
|
4128
4178
|
if (credentials === undefined) {
|
4129
4179
|
throw new Error("'credentials' cannot be null");
|
4130
4180
|
}
|
4131
|
-
|
4132
|
-
|
4181
|
+
let subscriptionId;
|
4182
|
+
if (typeof subscriptionIdOrOptions === "string") {
|
4183
|
+
subscriptionId = subscriptionIdOrOptions;
|
4184
|
+
}
|
4185
|
+
else if (typeof subscriptionIdOrOptions === "object") {
|
4186
|
+
options = subscriptionIdOrOptions;
|
4133
4187
|
}
|
4134
4188
|
// Initializing default values for options
|
4135
4189
|
if (!options) {
|
@@ -4139,7 +4193,7 @@ class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient {
|
|
4139
4193
|
requestContentType: "application/json; charset=utf-8",
|
4140
4194
|
credential: credentials
|
4141
4195
|
};
|
4142
|
-
const packageDetails = `azsdk-js-arm-resourcehealth/4.0.1`;
|
4196
|
+
const packageDetails = `azsdk-js-arm-resourcehealth/4.1.0-beta.1`;
|
4143
4197
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
4144
4198
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
4145
4199
|
: `${packageDetails}`;
|
@@ -4172,7 +4226,7 @@ class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient {
|
|
4172
4226
|
this.subscriptionId = subscriptionId;
|
4173
4227
|
// Assigning values to Constant parameters
|
4174
4228
|
this.$host = options.$host || "https://management.azure.com";
|
4175
|
-
this.apiVersion = options.apiVersion || "
|
4229
|
+
this.apiVersion = options.apiVersion || "2023-10-01-preview";
|
4176
4230
|
this.availabilityStatuses = new AvailabilityStatusesImpl(this);
|
4177
4231
|
this.operations = new OperationsImpl(this);
|
4178
4232
|
this.metadata = new MetadataImpl(this);
|