@azure/arm-resourcehealth 3.2.1-alpha.20230522.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. package/CHANGELOG.md +111 -8
  2. package/dist/index.js +2621 -386
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.js +1 -1
  7. package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.js +3 -3
  8. package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js +3 -3
  9. package/dist-esm/samples-dev/availabilityStatusesListSample.js +3 -3
  10. package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js +4 -4
  11. package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js.map +1 -1
  12. package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js +4 -4
  13. package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js.map +1 -1
  14. package/dist-esm/samples-dev/childResourcesListSample.js +3 -3
  15. package/dist-esm/samples-dev/childResourcesListSample.js.map +1 -1
  16. package/dist-esm/samples-dev/emergingIssuesGetSample.js +3 -2
  17. package/dist-esm/samples-dev/emergingIssuesGetSample.js.map +1 -1
  18. package/dist-esm/samples-dev/emergingIssuesListSample.js +1 -1
  19. package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js +37 -0
  22. package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js.map +1 -0
  23. package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js +38 -0
  26. package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js.map +1 -0
  27. package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js +43 -0
  30. package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js.map +1 -0
  31. package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js +44 -0
  34. package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js.map +1 -0
  35. package/dist-esm/samples-dev/eventsListBySingleResourceSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/eventsListBySingleResourceSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/eventsListBySingleResourceSample.js +59 -0
  38. package/dist-esm/samples-dev/eventsListBySingleResourceSample.js.map +1 -0
  39. package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js +63 -0
  42. package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js.map +1 -0
  43. package/dist-esm/samples-dev/eventsListByTenantIdSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/eventsListByTenantIdSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/eventsListByTenantIdSample.js +64 -0
  46. package/dist-esm/samples-dev/eventsListByTenantIdSample.js.map +1 -0
  47. package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js +39 -0
  50. package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js.map +1 -0
  51. package/dist-esm/samples-dev/impactedResourcesGetSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/impactedResourcesGetSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/impactedResourcesGetSample.js +38 -0
  54. package/dist-esm/samples-dev/impactedResourcesGetSample.js.map +1 -0
  55. package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js +62 -0
  58. package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js.map +1 -0
  59. package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js +63 -0
  62. package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js.map +1 -0
  63. package/dist-esm/samples-dev/metadataGetEntitySample.d.ts +2 -0
  64. package/dist-esm/samples-dev/metadataGetEntitySample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/metadataGetEntitySample.js +38 -0
  66. package/dist-esm/samples-dev/metadataGetEntitySample.js.map +1 -0
  67. package/dist-esm/samples-dev/metadataListSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/metadataListSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/metadataListSample.js +58 -0
  70. package/dist-esm/samples-dev/metadataListSample.js.map +1 -0
  71. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/operationsListSample.js +37 -0
  74. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  75. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js +58 -0
  78. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js.map +1 -0
  79. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js +59 -0
  82. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js.map +1 -0
  83. package/dist-esm/src/microsoftResourceHealth.d.ts +8 -4
  84. package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -1
  85. package/dist-esm/src/microsoftResourceHealth.js +10 -6
  86. package/dist-esm/src/microsoftResourceHealth.js.map +1 -1
  87. package/dist-esm/src/models/index.d.ts +657 -34
  88. package/dist-esm/src/models/index.d.ts.map +1 -1
  89. package/dist-esm/src/models/index.js +114 -0
  90. package/dist-esm/src/models/index.js.map +1 -1
  91. package/dist-esm/src/models/mappers.d.ts +24 -3
  92. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  93. package/dist-esm/src/models/mappers.js +883 -100
  94. package/dist-esm/src/models/mappers.js.map +1 -1
  95. package/dist-esm/src/models/parameters.d.ts +4 -0
  96. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  97. package/dist-esm/src/models/parameters.js +51 -3
  98. package/dist-esm/src/models/parameters.js.map +1 -1
  99. package/dist-esm/src/operations/availabilityStatuses.d.ts +9 -15
  100. package/dist-esm/src/operations/availabilityStatuses.d.ts.map +1 -1
  101. package/dist-esm/src/operations/availabilityStatuses.js +9 -15
  102. package/dist-esm/src/operations/availabilityStatuses.js.map +1 -1
  103. package/dist-esm/src/operations/emergingIssues.d.ts +6 -5
  104. package/dist-esm/src/operations/emergingIssues.d.ts.map +1 -1
  105. package/dist-esm/src/operations/emergingIssues.js +15 -14
  106. package/dist-esm/src/operations/emergingIssues.js.map +1 -1
  107. package/dist-esm/src/operations/eventOperations.d.ts +39 -0
  108. package/dist-esm/src/operations/eventOperations.d.ts.map +1 -0
  109. package/dist-esm/src/operations/eventOperations.js +137 -0
  110. package/dist-esm/src/operations/eventOperations.js.map +1 -0
  111. package/dist-esm/src/operations/eventsOperations.d.ts +83 -0
  112. package/dist-esm/src/operations/eventsOperations.d.ts.map +1 -0
  113. package/dist-esm/src/operations/eventsOperations.js +393 -0
  114. package/dist-esm/src/operations/eventsOperations.js.map +1 -0
  115. package/dist-esm/src/operations/impactedResources.d.ts +72 -0
  116. package/dist-esm/src/operations/impactedResources.d.ts.map +1 -0
  117. package/dist-esm/src/operations/impactedResources.js +330 -0
  118. package/dist-esm/src/operations/impactedResources.js.map +1 -0
  119. package/dist-esm/src/operations/index.d.ts +6 -1
  120. package/dist-esm/src/operations/index.d.ts.map +1 -1
  121. package/dist-esm/src/operations/index.js +6 -1
  122. package/dist-esm/src/operations/index.js.map +1 -1
  123. package/dist-esm/src/operations/metadata.d.ts +38 -0
  124. package/dist-esm/src/operations/metadata.d.ts.map +1 -0
  125. package/dist-esm/src/operations/metadata.js +162 -0
  126. package/dist-esm/src/operations/metadata.js.map +1 -0
  127. package/dist-esm/src/operations/securityAdvisoryImpactedResources.d.ts +58 -0
  128. package/dist-esm/src/operations/securityAdvisoryImpactedResources.d.ts.map +1 -0
  129. package/dist-esm/src/operations/securityAdvisoryImpactedResources.js +271 -0
  130. package/dist-esm/src/operations/securityAdvisoryImpactedResources.js.map +1 -0
  131. package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts +4 -7
  132. package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts.map +1 -1
  133. package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts +3 -2
  134. package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts.map +1 -1
  135. package/dist-esm/src/operationsInterfaces/eventOperations.d.ts +31 -0
  136. package/dist-esm/src/operationsInterfaces/eventOperations.d.ts.map +1 -0
  137. package/dist-esm/src/operationsInterfaces/eventOperations.js +9 -0
  138. package/dist-esm/src/operationsInterfaces/eventOperations.js.map +1 -0
  139. package/dist-esm/src/operationsInterfaces/eventsOperations.d.ts +26 -0
  140. package/dist-esm/src/operationsInterfaces/eventsOperations.d.ts.map +1 -0
  141. package/dist-esm/src/operationsInterfaces/eventsOperations.js +9 -0
  142. package/dist-esm/src/operationsInterfaces/eventsOperations.js.map +1 -0
  143. package/dist-esm/src/operationsInterfaces/impactedResources.d.ts +32 -0
  144. package/dist-esm/src/operationsInterfaces/impactedResources.d.ts.map +1 -0
  145. package/dist-esm/src/operationsInterfaces/impactedResources.js +9 -0
  146. package/dist-esm/src/operationsInterfaces/impactedResources.js.map +1 -0
  147. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -1
  148. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  149. package/dist-esm/src/operationsInterfaces/index.js +6 -1
  150. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  151. package/dist-esm/src/operationsInterfaces/metadata.d.ts +17 -0
  152. package/dist-esm/src/operationsInterfaces/metadata.d.ts.map +1 -0
  153. package/dist-esm/src/operationsInterfaces/metadata.js +9 -0
  154. package/dist-esm/src/operationsInterfaces/metadata.js.map +1 -0
  155. package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.d.ts +18 -0
  156. package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.d.ts.map +1 -0
  157. package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.js +9 -0
  158. package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.js.map +1 -0
  159. package/dist-esm/test/resourcehealth_operations_test.spec.d.ts +4 -0
  160. package/dist-esm/test/resourcehealth_operations_test.spec.d.ts.map +1 -0
  161. package/dist-esm/test/resourcehealth_operations_test.spec.js +56 -0
  162. package/dist-esm/test/resourcehealth_operations_test.spec.js.map +1 -0
  163. package/package.json +6 -6
  164. package/review/arm-resourcehealth.api.md +516 -8
  165. package/src/microsoftResourceHealth.ts +29 -8
  166. package/src/models/index.ts +757 -35
  167. package/src/models/mappers.ts +956 -101
  168. package/src/models/parameters.ts +55 -3
  169. package/src/operations/availabilityStatuses.ts +9 -15
  170. package/src/operations/emergingIssues.ts +24 -18
  171. package/src/operations/eventOperations.ts +184 -0
  172. package/src/operations/eventsOperations.ts +434 -0
  173. package/src/operations/impactedResources.ts +414 -0
  174. package/src/operations/index.ts +6 -1
  175. package/src/operations/metadata.ts +182 -0
  176. package/src/operations/securityAdvisoryImpactedResources.ts +342 -0
  177. package/src/operationsInterfaces/availabilityStatuses.ts +4 -7
  178. package/src/operationsInterfaces/emergingIssues.ts +3 -0
  179. package/src/operationsInterfaces/eventOperations.ts +60 -0
  180. package/src/operationsInterfaces/eventsOperations.ts +47 -0
  181. package/src/operationsInterfaces/impactedResources.ts +63 -0
  182. package/src/operationsInterfaces/index.ts +6 -1
  183. package/src/operationsInterfaces/metadata.ts +36 -0
  184. package/src/operationsInterfaces/securityAdvisoryImpactedResources.ts +37 -0
  185. package/types/arm-resourcehealth.d.ts +853 -23
  186. package/dist-esm/test/sampleTest.d.ts +0 -2
  187. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  188. package/dist-esm/test/sampleTest.js +0 -38
  189. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -9,7 +9,7 @@ import * as coreClient from '@azure/core-client';
9
9
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
10
 
11
11
  // @public
12
- export type AvailabilityStateValues = "Available" | "Unavailable" | "Unknown";
12
+ export type AvailabilityStateValues = string;
13
13
 
14
14
  // @public
15
15
  export interface AvailabilityStatus {
@@ -93,7 +93,10 @@ export interface AvailabilityStatusListResult {
93
93
 
94
94
  // @public
95
95
  export interface AvailabilityStatusProperties {
96
+ articleId?: string;
96
97
  availabilityState?: AvailabilityStateValues;
98
+ category?: string;
99
+ context?: string;
97
100
  detailedStatus?: string;
98
101
  healthEventCategory?: string;
99
102
  healthEventCause?: string;
@@ -102,20 +105,21 @@ export interface AvailabilityStatusProperties {
102
105
  occuredTime?: Date;
103
106
  reasonChronicity?: ReasonChronicityTypes;
104
107
  reasonType?: string;
105
- recentlyResolvedState?: AvailabilityStatusPropertiesRecentlyResolvedState;
108
+ recentlyResolved?: AvailabilityStatusPropertiesRecentlyResolved;
106
109
  recommendedActions?: RecommendedAction[];
107
110
  reportedTime?: Date;
108
111
  resolutionETA?: Date;
109
112
  rootCauseAttributionTime?: Date;
110
113
  serviceImpactingEvents?: ServiceImpactingEvent[];
111
114
  summary?: string;
115
+ title?: string;
112
116
  }
113
117
 
114
118
  // @public
115
- export interface AvailabilityStatusPropertiesRecentlyResolvedState {
119
+ export interface AvailabilityStatusPropertiesRecentlyResolved {
116
120
  resolvedTime?: Date;
117
- unavailabilitySummary?: string;
118
- unavailableOccurredTime?: Date;
121
+ unavailableOccuredTime?: Date;
122
+ unavailableSummary?: string;
119
123
  }
120
124
 
121
125
  // @public
@@ -170,6 +174,9 @@ export interface ChildResourcesListOptionalParams extends coreClient.OperationOp
170
174
  // @public
171
175
  export type ChildResourcesListResponse = AvailabilityStatusListResult;
172
176
 
177
+ // @public
178
+ export type CreatedByType = string;
179
+
173
180
  // @public
174
181
  export interface EmergingIssueImpact {
175
182
  id?: string;
@@ -185,7 +192,7 @@ export interface EmergingIssueListResult {
185
192
 
186
193
  // @public
187
194
  export interface EmergingIssues {
188
- get(options?: EmergingIssuesGetOptionalParams): Promise<EmergingIssuesGetResponse>;
195
+ get(issueName: IssueNameParameter, options?: EmergingIssuesGetOptionalParams): Promise<EmergingIssuesGetResponse>;
189
196
  list(options?: EmergingIssuesListOptionalParams): PagedAsyncIterableIterator<EmergingIssuesGetResult>;
190
197
  }
191
198
 
@@ -197,7 +204,7 @@ export interface EmergingIssuesGetOptionalParams extends coreClient.OperationOpt
197
204
  export type EmergingIssuesGetResponse = EmergingIssuesGetResult;
198
205
 
199
206
  // @public
200
- export interface EmergingIssuesGetResult extends Resource {
207
+ export interface EmergingIssuesGetResult extends ProxyResource {
201
208
  refreshTimestamp?: Date;
202
209
  statusActiveEvents?: StatusActiveEvent[];
203
210
  statusBanners?: StatusBanner[];
@@ -224,15 +231,373 @@ export interface ErrorResponse {
224
231
  readonly message?: string;
225
232
  }
226
233
 
234
+ // @public
235
+ interface Event_2 extends ProxyResource {
236
+ additionalInformation?: EventPropertiesAdditionalInformation;
237
+ article?: EventPropertiesArticle;
238
+ description?: string;
239
+ duration?: number;
240
+ enableChatWithUs?: boolean;
241
+ enableMicrosoftSupport?: boolean;
242
+ eventLevel?: EventLevelValues;
243
+ eventSource?: EventSourceValues;
244
+ eventType?: EventTypeValues;
245
+ externalIncidentId?: string;
246
+ faqs?: Faq[];
247
+ header?: string;
248
+ hirStage?: string;
249
+ impact?: Impact[];
250
+ impactMitigationTime?: Date;
251
+ impactStartTime?: Date;
252
+ impactType?: string;
253
+ isHIR?: boolean;
254
+ lastUpdateTime?: Date;
255
+ level?: LevelValues;
256
+ links?: Link[];
257
+ platformInitiated?: boolean;
258
+ priority?: number;
259
+ reason?: string;
260
+ recommendedActions?: EventPropertiesRecommendedActions;
261
+ status?: EventStatusValues;
262
+ summary?: string;
263
+ title?: string;
264
+ }
265
+ export { Event_2 as Event }
266
+
267
+ // @public
268
+ export interface EventFetchDetailsBySubscriptionIdAndTrackingIdOptionalParams extends coreClient.OperationOptions {
269
+ }
270
+
271
+ // @public
272
+ export type EventFetchDetailsBySubscriptionIdAndTrackingIdResponse = Event_2;
273
+
274
+ // @public
275
+ export interface EventFetchDetailsByTenantIdAndTrackingIdOptionalParams extends coreClient.OperationOptions {
276
+ }
277
+
278
+ // @public
279
+ export type EventFetchDetailsByTenantIdAndTrackingIdResponse = Event_2;
280
+
281
+ // @public
282
+ export interface EventGetBySubscriptionIdAndTrackingIdOptionalParams extends coreClient.OperationOptions {
283
+ filter?: string;
284
+ queryStartTime?: string;
285
+ }
286
+
287
+ // @public
288
+ export type EventGetBySubscriptionIdAndTrackingIdResponse = Event_2;
289
+
290
+ // @public
291
+ export interface EventGetByTenantIdAndTrackingIdOptionalParams extends coreClient.OperationOptions {
292
+ filter?: string;
293
+ queryStartTime?: string;
294
+ }
295
+
296
+ // @public
297
+ export type EventGetByTenantIdAndTrackingIdResponse = Event_2;
298
+
299
+ // @public
300
+ export interface EventImpactedResource extends ProxyResource {
301
+ info?: KeyValueItem[];
302
+ readonly targetRegion?: string;
303
+ readonly targetResourceId?: string;
304
+ readonly targetResourceType?: string;
305
+ }
306
+
307
+ // @public
308
+ export interface EventImpactedResourceListResult {
309
+ nextLink?: string;
310
+ value: EventImpactedResource[];
311
+ }
312
+
313
+ // @public
314
+ export type EventLevelValues = string;
315
+
316
+ // @public
317
+ export interface EventOperations {
318
+ fetchDetailsBySubscriptionIdAndTrackingId(eventTrackingId: string, options?: EventFetchDetailsBySubscriptionIdAndTrackingIdOptionalParams): Promise<EventFetchDetailsBySubscriptionIdAndTrackingIdResponse>;
319
+ fetchDetailsByTenantIdAndTrackingId(eventTrackingId: string, options?: EventFetchDetailsByTenantIdAndTrackingIdOptionalParams): Promise<EventFetchDetailsByTenantIdAndTrackingIdResponse>;
320
+ getBySubscriptionIdAndTrackingId(eventTrackingId: string, options?: EventGetBySubscriptionIdAndTrackingIdOptionalParams): Promise<EventGetBySubscriptionIdAndTrackingIdResponse>;
321
+ getByTenantIdAndTrackingId(eventTrackingId: string, options?: EventGetByTenantIdAndTrackingIdOptionalParams): Promise<EventGetByTenantIdAndTrackingIdResponse>;
322
+ }
323
+
324
+ // @public
325
+ export interface EventPropertiesAdditionalInformation {
326
+ message?: string;
327
+ }
328
+
329
+ // @public
330
+ export interface EventPropertiesArticle {
331
+ articleContent?: string;
332
+ articleId?: string;
333
+ parameters?: Record<string, unknown>;
334
+ }
335
+
336
+ // @public
337
+ export interface EventPropertiesRecommendedActions {
338
+ actions?: EventPropertiesRecommendedActionsItem[];
339
+ localeCode?: string;
340
+ message?: string;
341
+ }
342
+
343
+ // @public
344
+ export interface EventPropertiesRecommendedActionsItem {
345
+ actionText?: string;
346
+ groupId?: number;
347
+ }
348
+
349
+ // @public
350
+ export interface Events {
351
+ nextLink?: string;
352
+ value: Event_2[];
353
+ }
354
+
355
+ // @public
356
+ export interface EventsListBySingleResourceNextOptionalParams extends coreClient.OperationOptions {
357
+ }
358
+
359
+ // @public
360
+ export type EventsListBySingleResourceNextResponse = Events;
361
+
362
+ // @public
363
+ export interface EventsListBySingleResourceOptionalParams extends coreClient.OperationOptions {
364
+ filter?: string;
365
+ }
366
+
367
+ // @public
368
+ export type EventsListBySingleResourceResponse = Events;
369
+
370
+ // @public
371
+ export interface EventsListBySubscriptionIdNextOptionalParams extends coreClient.OperationOptions {
372
+ }
373
+
374
+ // @public
375
+ export type EventsListBySubscriptionIdNextResponse = Events;
376
+
377
+ // @public
378
+ export interface EventsListBySubscriptionIdOptionalParams extends coreClient.OperationOptions {
379
+ filter?: string;
380
+ queryStartTime?: string;
381
+ }
382
+
383
+ // @public
384
+ export type EventsListBySubscriptionIdResponse = Events;
385
+
386
+ // @public
387
+ export interface EventsListByTenantIdNextOptionalParams extends coreClient.OperationOptions {
388
+ }
389
+
390
+ // @public
391
+ export type EventsListByTenantIdNextResponse = Events;
392
+
393
+ // @public
394
+ export interface EventsListByTenantIdOptionalParams extends coreClient.OperationOptions {
395
+ filter?: string;
396
+ queryStartTime?: string;
397
+ }
398
+
399
+ // @public
400
+ export type EventsListByTenantIdResponse = Events;
401
+
402
+ // @public
403
+ export interface EventsOperations {
404
+ listBySingleResource(resourceUri: string, options?: EventsListBySingleResourceOptionalParams): PagedAsyncIterableIterator<Event_2>;
405
+ listBySubscriptionId(options?: EventsListBySubscriptionIdOptionalParams): PagedAsyncIterableIterator<Event_2>;
406
+ listByTenantId(options?: EventsListByTenantIdOptionalParams): PagedAsyncIterableIterator<Event_2>;
407
+ }
408
+
409
+ // @public
410
+ export type EventSourceValues = string;
411
+
412
+ // @public
413
+ export type EventStatusValues = string;
414
+
415
+ // @public
416
+ export type EventTypeValues = string;
417
+
418
+ // @public
419
+ export interface Faq {
420
+ answer?: string;
421
+ localeCode?: string;
422
+ question?: string;
423
+ }
424
+
227
425
  // @public
228
426
  export function getContinuationToken(page: unknown): string | undefined;
229
427
 
428
+ // @public
429
+ export interface Impact {
430
+ impactedRegions?: ImpactedServiceRegion[];
431
+ impactedService?: string;
432
+ }
433
+
230
434
  // @public
231
435
  export interface ImpactedRegion {
232
436
  id?: string;
233
437
  name?: string;
234
438
  }
235
439
 
440
+ // @public
441
+ export interface ImpactedResources {
442
+ get(eventTrackingId: string, impactedResourceName: string, options?: ImpactedResourcesGetOptionalParams): Promise<ImpactedResourcesGetResponse>;
443
+ getByTenantId(eventTrackingId: string, impactedResourceName: string, options?: ImpactedResourcesGetByTenantIdOptionalParams): Promise<ImpactedResourcesGetByTenantIdResponse>;
444
+ listBySubscriptionIdAndEventId(eventTrackingId: string, options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams): PagedAsyncIterableIterator<EventImpactedResource>;
445
+ listByTenantIdAndEventId(eventTrackingId: string, options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams): PagedAsyncIterableIterator<EventImpactedResource>;
446
+ }
447
+
448
+ // @public
449
+ export interface ImpactedResourcesGetByTenantIdOptionalParams extends coreClient.OperationOptions {
450
+ }
451
+
452
+ // @public
453
+ export type ImpactedResourcesGetByTenantIdResponse = EventImpactedResource;
454
+
455
+ // @public
456
+ export interface ImpactedResourcesGetOptionalParams extends coreClient.OperationOptions {
457
+ }
458
+
459
+ // @public
460
+ export type ImpactedResourcesGetResponse = EventImpactedResource;
461
+
462
+ // @public
463
+ export interface ImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams extends coreClient.OperationOptions {
464
+ }
465
+
466
+ // @public
467
+ export type ImpactedResourcesListBySubscriptionIdAndEventIdNextResponse = EventImpactedResourceListResult;
468
+
469
+ // @public
470
+ export interface ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams extends coreClient.OperationOptions {
471
+ filter?: string;
472
+ }
473
+
474
+ // @public
475
+ export type ImpactedResourcesListBySubscriptionIdAndEventIdResponse = EventImpactedResourceListResult;
476
+
477
+ // @public
478
+ export interface ImpactedResourcesListByTenantIdAndEventIdNextOptionalParams extends coreClient.OperationOptions {
479
+ }
480
+
481
+ // @public
482
+ export type ImpactedResourcesListByTenantIdAndEventIdNextResponse = EventImpactedResourceListResult;
483
+
484
+ // @public
485
+ export interface ImpactedResourcesListByTenantIdAndEventIdOptionalParams extends coreClient.OperationOptions {
486
+ filter?: string;
487
+ }
488
+
489
+ // @public
490
+ export type ImpactedResourcesListByTenantIdAndEventIdResponse = EventImpactedResourceListResult;
491
+
492
+ // @public
493
+ export interface ImpactedResourceStatus extends ProxyResource {
494
+ availabilityState?: AvailabilityStateValues;
495
+ occurredTime?: Date;
496
+ reasonType?: ReasonTypeValues;
497
+ summary?: string;
498
+ title?: string;
499
+ }
500
+
501
+ // @public
502
+ export interface ImpactedServiceRegion {
503
+ impactedRegion?: string;
504
+ impactedSubscriptions?: string[];
505
+ impactedTenants?: string[];
506
+ lastUpdateTime?: Date;
507
+ status?: EventStatusValues;
508
+ updates?: Update[];
509
+ }
510
+
511
+ // @public
512
+ export type IssueNameParameter = string;
513
+
514
+ // @public
515
+ export interface KeyValueItem {
516
+ readonly key?: string;
517
+ readonly value?: string;
518
+ }
519
+
520
+ // @public
521
+ export enum KnownAvailabilityStateValues {
522
+ Available = "Available",
523
+ Degraded = "Degraded",
524
+ Unavailable = "Unavailable",
525
+ Unknown = "Unknown"
526
+ }
527
+
528
+ // @public
529
+ export enum KnownCreatedByType {
530
+ Application = "Application",
531
+ Key = "Key",
532
+ ManagedIdentity = "ManagedIdentity",
533
+ User = "User"
534
+ }
535
+
536
+ // @public
537
+ export enum KnownEventLevelValues {
538
+ Critical = "Critical",
539
+ Error = "Error",
540
+ Informational = "Informational",
541
+ Warning = "Warning"
542
+ }
543
+
544
+ // @public
545
+ export enum KnownEventSourceValues {
546
+ ResourceHealth = "ResourceHealth",
547
+ ServiceHealth = "ServiceHealth"
548
+ }
549
+
550
+ // @public
551
+ export enum KnownEventStatusValues {
552
+ Active = "Active",
553
+ Resolved = "Resolved"
554
+ }
555
+
556
+ // @public
557
+ export enum KnownEventTypeValues {
558
+ EmergingIssues = "EmergingIssues",
559
+ HealthAdvisory = "HealthAdvisory",
560
+ PlannedMaintenance = "PlannedMaintenance",
561
+ RCA = "RCA",
562
+ SecurityAdvisory = "SecurityAdvisory",
563
+ ServiceIssue = "ServiceIssue"
564
+ }
565
+
566
+ // @public
567
+ export enum KnownIssueNameParameter {
568
+ Default = "default"
569
+ }
570
+
571
+ // @public
572
+ export enum KnownLevelValues {
573
+ Critical = "Critical",
574
+ Warning = "Warning"
575
+ }
576
+
577
+ // @public
578
+ export enum KnownLinkTypeValues {
579
+ Button = "Button",
580
+ Hyperlink = "Hyperlink"
581
+ }
582
+
583
+ // @public
584
+ export enum KnownReasonChronicityTypes {
585
+ Persistent = "Persistent",
586
+ Transient = "Transient"
587
+ }
588
+
589
+ // @public
590
+ export enum KnownReasonTypeValues {
591
+ Planned = "Planned",
592
+ Unplanned = "Unplanned",
593
+ UserInitiated = "UserInitiated"
594
+ }
595
+
596
+ // @public
597
+ export enum KnownScenario {
598
+ Alerts = "Alerts"
599
+ }
600
+
236
601
  // @public
237
602
  export enum KnownSeverityValues {
238
603
  Error = "Error",
@@ -247,6 +612,75 @@ export enum KnownStageValues {
247
612
  Resolve = "Resolve"
248
613
  }
249
614
 
615
+ // @public
616
+ export type LevelValues = string;
617
+
618
+ // @public
619
+ export interface Link {
620
+ bladeName?: string;
621
+ displayText?: LinkDisplayText;
622
+ extensionName?: string;
623
+ parameters?: Record<string, unknown>;
624
+ type?: LinkTypeValues;
625
+ }
626
+
627
+ // @public
628
+ export interface LinkDisplayText {
629
+ localizedValue?: string;
630
+ value?: string;
631
+ }
632
+
633
+ // @public
634
+ export type LinkTypeValues = string;
635
+
636
+ // @public
637
+ export interface Metadata {
638
+ getEntity(name: string, options?: MetadataGetEntityOptionalParams): Promise<MetadataGetEntityResponse>;
639
+ list(options?: MetadataListOptionalParams): PagedAsyncIterableIterator<MetadataEntity>;
640
+ }
641
+
642
+ // @public
643
+ export interface MetadataEntity extends ProxyResource {
644
+ applicableScenarios?: Scenario[];
645
+ dependsOn?: string[];
646
+ displayName?: string;
647
+ supportedValues?: MetadataSupportedValueDetail[];
648
+ }
649
+
650
+ // @public
651
+ export interface MetadataEntityListResult {
652
+ nextLink?: string;
653
+ value?: MetadataEntity[];
654
+ }
655
+
656
+ // @public
657
+ export interface MetadataGetEntityOptionalParams extends coreClient.OperationOptions {
658
+ }
659
+
660
+ // @public
661
+ export type MetadataGetEntityResponse = MetadataEntity;
662
+
663
+ // @public
664
+ export interface MetadataListNextOptionalParams extends coreClient.OperationOptions {
665
+ }
666
+
667
+ // @public
668
+ export type MetadataListNextResponse = MetadataEntityListResult;
669
+
670
+ // @public
671
+ export interface MetadataListOptionalParams extends coreClient.OperationOptions {
672
+ }
673
+
674
+ // @public
675
+ export type MetadataListResponse = MetadataEntityListResult;
676
+
677
+ // @public
678
+ export interface MetadataSupportedValueDetail {
679
+ displayName?: string;
680
+ id?: string;
681
+ resourceTypes?: string[];
682
+ }
683
+
250
684
  // @public (undocumented)
251
685
  export class MicrosoftResourceHealth extends coreClient.ServiceClient {
252
686
  // (undocumented)
@@ -263,8 +697,18 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
263
697
  // (undocumented)
264
698
  emergingIssues: EmergingIssues;
265
699
  // (undocumented)
700
+ eventOperations: EventOperations;
701
+ // (undocumented)
702
+ eventsOperations: EventsOperations;
703
+ // (undocumented)
704
+ impactedResources: ImpactedResources;
705
+ // (undocumented)
706
+ metadata: Metadata;
707
+ // (undocumented)
266
708
  operations: Operations;
267
709
  // (undocumented)
710
+ securityAdvisoryImpactedResources: SecurityAdvisoryImpactedResources;
711
+ // (undocumented)
268
712
  subscriptionId: string;
269
713
  }
270
714
 
@@ -307,12 +751,20 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption
307
751
  export type OperationsListResponse = OperationListResult;
308
752
 
309
753
  // @public
310
- export type ReasonChronicityTypes = "Transient" | "Persistent";
754
+ export interface ProxyResource extends Resource {
755
+ }
756
+
757
+ // @public
758
+ export type ReasonChronicityTypes = string;
759
+
760
+ // @public
761
+ export type ReasonTypeValues = string;
311
762
 
312
763
  // @public
313
764
  export interface RecommendedAction {
314
765
  action?: string;
315
766
  actionUrl?: string;
767
+ actionUrlComment?: string;
316
768
  actionUrlText?: string;
317
769
  }
318
770
 
@@ -320,9 +772,49 @@ export interface RecommendedAction {
320
772
  export interface Resource {
321
773
  readonly id?: string;
322
774
  readonly name?: string;
775
+ readonly systemData?: SystemData;
323
776
  readonly type?: string;
324
777
  }
325
778
 
779
+ // @public
780
+ export type Scenario = string;
781
+
782
+ // @public
783
+ export interface SecurityAdvisoryImpactedResources {
784
+ listBySubscriptionIdAndEventId(eventTrackingId: string, options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams): PagedAsyncIterableIterator<EventImpactedResource>;
785
+ listByTenantIdAndEventId(eventTrackingId: string, options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams): PagedAsyncIterableIterator<EventImpactedResource>;
786
+ }
787
+
788
+ // @public
789
+ export interface SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams extends coreClient.OperationOptions {
790
+ }
791
+
792
+ // @public
793
+ export type SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextResponse = EventImpactedResourceListResult;
794
+
795
+ // @public
796
+ export interface SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams extends coreClient.OperationOptions {
797
+ filter?: string;
798
+ }
799
+
800
+ // @public
801
+ export type SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdResponse = EventImpactedResourceListResult;
802
+
803
+ // @public
804
+ export interface SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextOptionalParams extends coreClient.OperationOptions {
805
+ }
806
+
807
+ // @public
808
+ export type SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextResponse = EventImpactedResourceListResult;
809
+
810
+ // @public
811
+ export interface SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams extends coreClient.OperationOptions {
812
+ filter?: string;
813
+ }
814
+
815
+ // @public
816
+ export type SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse = EventImpactedResourceListResult;
817
+
326
818
  // @public
327
819
  export interface ServiceImpactingEvent {
328
820
  correlationId?: string;
@@ -373,6 +865,22 @@ export interface StatusBanner {
373
865
  title?: string;
374
866
  }
375
867
 
868
+ // @public
869
+ export interface SystemData {
870
+ createdAt?: Date;
871
+ createdBy?: string;
872
+ createdByType?: CreatedByType;
873
+ lastModifiedAt?: Date;
874
+ lastModifiedBy?: string;
875
+ lastModifiedByType?: CreatedByType;
876
+ }
877
+
878
+ // @public
879
+ export interface Update {
880
+ summary?: string;
881
+ updateDateTime?: Date;
882
+ }
883
+
376
884
  // (No @packageDocumentation comment for this package)
377
885
 
378
886
  ```
@@ -16,16 +16,26 @@ import {
16
16
  import * as coreAuth from "@azure/core-auth";
17
17
  import {
18
18
  AvailabilityStatusesImpl,
19
+ OperationsImpl,
20
+ MetadataImpl,
21
+ ImpactedResourcesImpl,
22
+ SecurityAdvisoryImpactedResourcesImpl,
23
+ EventsOperationsImpl,
24
+ EventOperationsImpl,
19
25
  ChildAvailabilityStatusesImpl,
20
26
  ChildResourcesImpl,
21
- OperationsImpl,
22
27
  EmergingIssuesImpl
23
28
  } from "./operations";
24
29
  import {
25
30
  AvailabilityStatuses,
31
+ Operations,
32
+ Metadata,
33
+ ImpactedResources,
34
+ SecurityAdvisoryImpactedResources,
35
+ EventsOperations,
36
+ EventOperations,
26
37
  ChildAvailabilityStatuses,
27
38
  ChildResources,
28
- Operations,
29
39
  EmergingIssues
30
40
  } from "./operationsInterfaces";
31
41
  import { MicrosoftResourceHealthOptionalParams } from "./models";
@@ -38,8 +48,7 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
38
48
  /**
39
49
  * Initializes a new instance of the MicrosoftResourceHealth class.
40
50
  * @param credentials Subscription credentials which uniquely identify client subscription.
41
- * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
42
- * The subscription ID forms part of the URI for every service call.
51
+ * @param subscriptionId The ID of the target subscription.
43
52
  * @param options The parameter options
44
53
  */
45
54
  constructor(
@@ -63,7 +72,7 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
63
72
  credential: credentials
64
73
  };
65
74
 
66
- const packageDetails = `azsdk-js-arm-resourcehealth/3.2.1`;
75
+ const packageDetails = `azsdk-js-arm-resourcehealth/4.0.0`;
67
76
  const userAgentPrefix =
68
77
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
69
78
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -116,11 +125,18 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
116
125
 
117
126
  // Assigning values to Constant parameters
118
127
  this.$host = options.$host || "https://management.azure.com";
119
- this.apiVersion = options.apiVersion || "2017-07-01";
128
+ this.apiVersion = options.apiVersion || "2022-10-01";
120
129
  this.availabilityStatuses = new AvailabilityStatusesImpl(this);
130
+ this.operations = new OperationsImpl(this);
131
+ this.metadata = new MetadataImpl(this);
132
+ this.impactedResources = new ImpactedResourcesImpl(this);
133
+ this.securityAdvisoryImpactedResources = new SecurityAdvisoryImpactedResourcesImpl(
134
+ this
135
+ );
136
+ this.eventsOperations = new EventsOperationsImpl(this);
137
+ this.eventOperations = new EventOperationsImpl(this);
121
138
  this.childAvailabilityStatuses = new ChildAvailabilityStatusesImpl(this);
122
139
  this.childResources = new ChildResourcesImpl(this);
123
- this.operations = new OperationsImpl(this);
124
140
  this.emergingIssues = new EmergingIssuesImpl(this);
125
141
  this.addCustomApiVersionPolicy(options.apiVersion);
126
142
  }
@@ -154,8 +170,13 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
154
170
  }
155
171
 
156
172
  availabilityStatuses: AvailabilityStatuses;
173
+ operations: Operations;
174
+ metadata: Metadata;
175
+ impactedResources: ImpactedResources;
176
+ securityAdvisoryImpactedResources: SecurityAdvisoryImpactedResources;
177
+ eventsOperations: EventsOperations;
178
+ eventOperations: EventOperations;
157
179
  childAvailabilityStatuses: ChildAvailabilityStatuses;
158
180
  childResources: ChildResources;
159
- operations: Operations;
160
181
  emergingIssues: EmergingIssues;
161
182
  }