@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/src/models/mappers.ts
CHANGED
@@ -1265,6 +1265,41 @@ export const EventImpactedResource: coreClient.CompositeMapper = {
|
|
1265
1265
|
name: "String"
|
1266
1266
|
}
|
1267
1267
|
},
|
1268
|
+
resourceName: {
|
1269
|
+
serializedName: "properties.resourceName",
|
1270
|
+
readOnly: true,
|
1271
|
+
type: {
|
1272
|
+
name: "String"
|
1273
|
+
}
|
1274
|
+
},
|
1275
|
+
resourceGroup: {
|
1276
|
+
serializedName: "properties.resourceGroup",
|
1277
|
+
readOnly: true,
|
1278
|
+
type: {
|
1279
|
+
name: "String"
|
1280
|
+
}
|
1281
|
+
},
|
1282
|
+
status: {
|
1283
|
+
serializedName: "properties.status",
|
1284
|
+
readOnly: true,
|
1285
|
+
type: {
|
1286
|
+
name: "String"
|
1287
|
+
}
|
1288
|
+
},
|
1289
|
+
maintenanceStartTime: {
|
1290
|
+
serializedName: "properties.maintenanceStartTime",
|
1291
|
+
readOnly: true,
|
1292
|
+
type: {
|
1293
|
+
name: "String"
|
1294
|
+
}
|
1295
|
+
},
|
1296
|
+
maintenanceEndTime: {
|
1297
|
+
serializedName: "properties.maintenanceEndTime",
|
1298
|
+
readOnly: true,
|
1299
|
+
type: {
|
1300
|
+
name: "String"
|
1301
|
+
}
|
1302
|
+
},
|
1268
1303
|
info: {
|
1269
1304
|
serializedName: "properties.info",
|
1270
1305
|
type: {
|
@@ -1293,6 +1328,12 @@ export const Event: coreClient.CompositeMapper = {
|
|
1293
1328
|
name: "String"
|
1294
1329
|
}
|
1295
1330
|
},
|
1331
|
+
eventSubType: {
|
1332
|
+
serializedName: "properties.eventSubType",
|
1333
|
+
type: {
|
1334
|
+
name: "String"
|
1335
|
+
}
|
1336
|
+
},
|
1296
1337
|
eventSource: {
|
1297
1338
|
serializedName: "properties.eventSource",
|
1298
1339
|
type: {
|
@@ -1475,6 +1516,24 @@ export const Event: coreClient.CompositeMapper = {
|
|
1475
1516
|
type: {
|
1476
1517
|
name: "String"
|
1477
1518
|
}
|
1519
|
+
},
|
1520
|
+
maintenanceId: {
|
1521
|
+
serializedName: "properties.maintenanceId",
|
1522
|
+
type: {
|
1523
|
+
name: "String"
|
1524
|
+
}
|
1525
|
+
},
|
1526
|
+
maintenanceType: {
|
1527
|
+
serializedName: "properties.maintenanceType",
|
1528
|
+
type: {
|
1529
|
+
name: "String"
|
1530
|
+
}
|
1531
|
+
},
|
1532
|
+
argQuery: {
|
1533
|
+
serializedName: "properties.argQuery",
|
1534
|
+
type: {
|
1535
|
+
name: "String"
|
1536
|
+
}
|
1478
1537
|
}
|
1479
1538
|
}
|
1480
1539
|
}
|
package/src/models/parameters.ts
CHANGED
@@ -39,7 +39,7 @@ export const $host: OperationURLParameter = {
|
|
39
39
|
export const apiVersion: OperationQueryParameter = {
|
40
40
|
parameterPath: "apiVersion",
|
41
41
|
mapper: {
|
42
|
-
defaultValue: "
|
42
|
+
defaultValue: "2023-10-01-preview",
|
43
43
|
isConstant: true,
|
44
44
|
serializedName: "api-version",
|
45
45
|
type: {
|
@@ -370,6 +370,8 @@ export declare interface ErrorResponse {
|
|
370
370
|
declare interface Event_2 extends ProxyResource {
|
371
371
|
/** Type of event. */
|
372
372
|
eventType?: EventTypeValues;
|
373
|
+
/** Sub type of the event. Currently used to determine retirement communications for health advisory events */
|
374
|
+
eventSubType?: EventSubTypeValues;
|
373
375
|
/** Source of event. */
|
374
376
|
eventSource?: EventSourceValues;
|
375
377
|
/** Current status of event. */
|
@@ -424,6 +426,12 @@ declare interface Event_2 extends ProxyResource {
|
|
424
426
|
duration?: number;
|
425
427
|
/** The type of the impact */
|
426
428
|
impactType?: string;
|
429
|
+
/** Unique identifier for planned maintenance event. */
|
430
|
+
maintenanceId?: string;
|
431
|
+
/** The type of planned maintenance event. */
|
432
|
+
maintenanceType?: string;
|
433
|
+
/** Azure Resource Graph query to fetch the affected resources from their existing Azure Resource Graph locations. */
|
434
|
+
argQuery?: string;
|
427
435
|
}
|
428
436
|
export { Event_2 as Event }
|
429
437
|
|
@@ -480,6 +488,31 @@ export declare interface EventImpactedResource extends ProxyResource {
|
|
480
488
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
481
489
|
*/
|
482
490
|
readonly targetRegion?: string;
|
491
|
+
/**
|
492
|
+
* Resource name of the impacted resource.
|
493
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
494
|
+
*/
|
495
|
+
readonly resourceName?: string;
|
496
|
+
/**
|
497
|
+
* Resource group name of the impacted resource.
|
498
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
499
|
+
*/
|
500
|
+
readonly resourceGroup?: string;
|
501
|
+
/**
|
502
|
+
* Status of the impacted resource.
|
503
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
504
|
+
*/
|
505
|
+
readonly status?: string;
|
506
|
+
/**
|
507
|
+
* Start time of maintenance for the impacted resource.
|
508
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
509
|
+
*/
|
510
|
+
readonly maintenanceStartTime?: string;
|
511
|
+
/**
|
512
|
+
* End time of maintenance for the impacted resource.
|
513
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
514
|
+
*/
|
515
|
+
readonly maintenanceEndTime?: string;
|
483
516
|
/** Additional information. */
|
484
517
|
info?: KeyValueItem[];
|
485
518
|
}
|
@@ -672,6 +705,15 @@ export declare type EventSourceValues = string;
|
|
672
705
|
*/
|
673
706
|
export declare type EventStatusValues = string;
|
674
707
|
|
708
|
+
/**
|
709
|
+
* Defines values for EventSubTypeValues. \
|
710
|
+
* {@link KnownEventSubTypeValues} can be used interchangeably with EventSubTypeValues,
|
711
|
+
* this enum contains the known values that the service supports.
|
712
|
+
* ### Known values supported by the service
|
713
|
+
* **Retirement**
|
714
|
+
*/
|
715
|
+
export declare type EventSubTypeValues = string;
|
716
|
+
|
675
717
|
/**
|
676
718
|
* Defines values for EventTypeValues. \
|
677
719
|
* {@link KnownEventTypeValues} can be used interchangeably with EventTypeValues,
|
@@ -902,6 +944,12 @@ export declare enum KnownEventStatusValues {
|
|
902
944
|
Resolved = "Resolved"
|
903
945
|
}
|
904
946
|
|
947
|
+
/** Known values of {@link EventSubTypeValues} that the service accepts. */
|
948
|
+
export declare enum KnownEventSubTypeValues {
|
949
|
+
/** Retirement */
|
950
|
+
Retirement = "Retirement"
|
951
|
+
}
|
952
|
+
|
905
953
|
/** Known values of {@link EventTypeValues} that the service accepts. */
|
906
954
|
export declare enum KnownEventTypeValues {
|
907
955
|
/** ServiceIssue */
|
@@ -1095,7 +1143,7 @@ export declare interface MetadataSupportedValueDetail {
|
|
1095
1143
|
export declare class MicrosoftResourceHealth extends coreClient.ServiceClient {
|
1096
1144
|
$host: string;
|
1097
1145
|
apiVersion: string;
|
1098
|
-
subscriptionId
|
1146
|
+
subscriptionId?: string;
|
1099
1147
|
/**
|
1100
1148
|
* Initializes a new instance of the MicrosoftResourceHealth class.
|
1101
1149
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
@@ -1103,6 +1151,7 @@ export declare class MicrosoftResourceHealth extends coreClient.ServiceClient {
|
|
1103
1151
|
* @param options The parameter options
|
1104
1152
|
*/
|
1105
1153
|
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MicrosoftResourceHealthOptionalParams);
|
1154
|
+
constructor(credentials: coreAuth.TokenCredential, options?: MicrosoftResourceHealthOptionalParams);
|
1106
1155
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
1107
1156
|
private addCustomApiVersionPolicy;
|
1108
1157
|
availabilityStatuses: AvailabilityStatuses;
|