@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.
Files changed (68) hide show
  1. package/CHANGELOG.md +19 -11
  2. package/README.md +1 -1
  3. package/dist/index.js +102 -45
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.js +2 -4
  8. package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.js.map +1 -1
  9. package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.js +1 -1
  10. package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js +1 -1
  11. package/dist-esm/samples-dev/availabilityStatusesListSample.js +2 -4
  12. package/dist-esm/samples-dev/availabilityStatusesListSample.js.map +1 -1
  13. package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js +2 -4
  14. package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js.map +1 -1
  15. package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js +2 -4
  16. package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js.map +1 -1
  17. package/dist-esm/samples-dev/childResourcesListSample.js +2 -4
  18. package/dist-esm/samples-dev/childResourcesListSample.js.map +1 -1
  19. package/dist-esm/samples-dev/emergingIssuesGetSample.js +2 -4
  20. package/dist-esm/samples-dev/emergingIssuesGetSample.js.map +1 -1
  21. package/dist-esm/samples-dev/emergingIssuesListSample.js +2 -4
  22. package/dist-esm/samples-dev/emergingIssuesListSample.js.map +1 -1
  23. package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js +1 -1
  24. package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js +2 -4
  25. package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js.map +1 -1
  26. package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js +1 -1
  27. package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js +2 -4
  28. package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js.map +1 -1
  29. package/dist-esm/samples-dev/eventsListBySingleResourceSample.js +2 -4
  30. package/dist-esm/samples-dev/eventsListBySingleResourceSample.js.map +1 -1
  31. package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js +1 -1
  32. package/dist-esm/samples-dev/eventsListByTenantIdSample.js +2 -4
  33. package/dist-esm/samples-dev/eventsListByTenantIdSample.js.map +1 -1
  34. package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js +2 -4
  35. package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js.map +1 -1
  36. package/dist-esm/samples-dev/impactedResourcesGetSample.js +1 -1
  37. package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js +1 -1
  38. package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js +2 -4
  39. package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js.map +1 -1
  40. package/dist-esm/samples-dev/metadataGetEntitySample.js +2 -4
  41. package/dist-esm/samples-dev/metadataGetEntitySample.js.map +1 -1
  42. package/dist-esm/samples-dev/metadataListSample.js +2 -4
  43. package/dist-esm/samples-dev/metadataListSample.js.map +1 -1
  44. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  45. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js +1 -1
  46. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js +2 -4
  47. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js.map +1 -1
  48. package/dist-esm/src/microsoftResourceHealth.d.ts +2 -1
  49. package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -1
  50. package/dist-esm/src/microsoftResourceHealth.js +9 -11
  51. package/dist-esm/src/microsoftResourceHealth.js.map +1 -1
  52. package/dist-esm/src/models/index.d.ts +46 -0
  53. package/dist-esm/src/models/index.d.ts.map +1 -1
  54. package/dist-esm/src/models/index.js +6 -0
  55. package/dist-esm/src/models/index.js.map +1 -1
  56. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  57. package/dist-esm/src/models/mappers.js +50 -0
  58. package/dist-esm/src/models/mappers.js.map +1 -1
  59. package/dist-esm/src/models/parameters.js +1 -1
  60. package/dist-esm/src/models/parameters.js.map +1 -1
  61. package/package.json +14 -7
  62. package/review/arm-resourcehealth.api.md +19 -1
  63. package/rollup.config.js +122 -0
  64. package/src/microsoftResourceHealth.ts +19 -5
  65. package/src/models/index.ts +48 -0
  66. package/src/models/mappers.ts +59 -0
  67. package/src/models/parameters.ts +1 -1
  68. package/types/arm-resourcehealth.d.ts +50 -1
@@ -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
  }
@@ -39,7 +39,7 @@ export const $host: OperationURLParameter = {
39
39
  export const apiVersion: OperationQueryParameter = {
40
40
  parameterPath: "apiVersion",
41
41
  mapper: {
42
- defaultValue: "2022-10-01",
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: string;
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;