@azure/arm-resourcehealth 2.0.0 → 3.0.0-alpha.20211124.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +70 -82
  4. package/dist/index.js +1811 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +6 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +13 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/microsoftResourceHealth.d.ts +20 -0
  13. package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -0
  14. package/dist-esm/src/microsoftResourceHealth.js +27 -0
  15. package/dist-esm/src/microsoftResourceHealth.js.map +1 -0
  16. package/dist-esm/src/microsoftResourceHealthContext.d.ts +17 -0
  17. package/dist-esm/src/microsoftResourceHealthContext.d.ts.map +1 -0
  18. package/dist-esm/src/microsoftResourceHealthContext.js +50 -0
  19. package/dist-esm/src/microsoftResourceHealthContext.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +402 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +22 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +21 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +233 -309
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +12 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/models/parameters.js +44 -39
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/availabilityStatuses.d.ts +102 -0
  33. package/dist-esm/src/operations/availabilityStatuses.d.ts.map +1 -0
  34. package/dist-esm/src/operations/availabilityStatuses.js +407 -0
  35. package/dist-esm/src/operations/availabilityStatuses.js.map +1 -0
  36. package/dist-esm/src/operations/childAvailabilityStatuses.d.ts +51 -0
  37. package/dist-esm/src/operations/childAvailabilityStatuses.d.ts.map +1 -0
  38. package/dist-esm/src/operations/childAvailabilityStatuses.js +173 -0
  39. package/dist-esm/src/operations/childAvailabilityStatuses.js.map +1 -0
  40. package/dist-esm/src/operations/childResources.d.ts +43 -0
  41. package/dist-esm/src/operations/childResources.d.ts.map +1 -0
  42. package/dist-esm/src/operations/childResources.js +143 -0
  43. package/dist-esm/src/operations/childResources.js.map +1 -0
  44. package/dist-esm/src/operations/emergingIssues.d.ts +37 -0
  45. package/dist-esm/src/operations/emergingIssues.d.ts.map +1 -0
  46. package/dist-esm/src/operations/emergingIssues.js +143 -0
  47. package/dist-esm/src/operations/emergingIssues.js.map +1 -0
  48. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  49. package/dist-esm/src/operations/index.d.ts.map +1 -0
  50. package/{esm → dist-esm/src}/operations/index.js +1 -2
  51. package/dist-esm/src/operations/index.js.map +1 -0
  52. package/dist-esm/src/operations/operations.d.ts +18 -0
  53. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  54. package/dist-esm/src/operations/operations.js +46 -0
  55. package/dist-esm/src/operations/operations.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts +40 -0
  57. package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts.map +1 -0
  58. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/availabilityStatuses.js} +2 -7
  59. package/dist-esm/src/operationsInterfaces/availabilityStatuses.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.d.ts +23 -0
  61. package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.d.ts.map +1 -0
  62. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/childAvailabilityStatuses.js} +2 -2
  63. package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/childResources.d.ts +15 -0
  65. package/dist-esm/src/operationsInterfaces/childResources.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/childResources.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/childResources.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts +16 -0
  69. package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/emergingIssues.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/emergingIssues.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  73. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  75. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
  77. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  78. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/operations.js} +2 -1
  79. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  80. package/dist-esm/test/sampleTest.d.ts +2 -0
  81. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  82. package/dist-esm/test/sampleTest.js +40 -0
  83. package/dist-esm/test/sampleTest.js.map +1 -0
  84. package/package.json +63 -22
  85. package/review/arm-resourcehealth.api.md +396 -0
  86. package/rollup.config.js +181 -30
  87. package/src/index.ts +13 -0
  88. package/src/microsoftResourceHealth.ts +38 -41
  89. package/src/microsoftResourceHealthContext.ts +47 -44
  90. package/src/models/index.ts +322 -878
  91. package/src/models/mappers.ts +232 -320
  92. package/src/models/parameters.ts +58 -40
  93. package/src/operations/availabilityStatuses.ts +325 -276
  94. package/src/operations/childAvailabilityStatuses.ts +137 -130
  95. package/src/operations/childResources.ts +109 -85
  96. package/src/operations/emergingIssues.ts +96 -103
  97. package/src/operations/index.ts +1 -2
  98. package/src/operations/operations.ts +24 -38
  99. package/src/operationsInterfaces/availabilityStatuses.ts +67 -0
  100. package/src/operationsInterfaces/childAvailabilityStatuses.ts +43 -0
  101. package/src/operationsInterfaces/childResources.ts +30 -0
  102. package/src/operationsInterfaces/emergingIssues.ts +34 -0
  103. package/src/operationsInterfaces/index.ts +13 -0
  104. package/src/operationsInterfaces/operations.ts +21 -0
  105. package/tsconfig.json +3 -3
  106. package/types/arm-resourcehealth.d.ts +588 -0
  107. package/types/tsdoc-metadata.json +11 -0
  108. package/dist/arm-resourcehealth.js +0 -1743
  109. package/dist/arm-resourcehealth.js.map +0 -1
  110. package/dist/arm-resourcehealth.min.js +0 -1
  111. package/dist/arm-resourcehealth.min.js.map +0 -1
  112. package/esm/microsoftResourceHealth.d.ts +0 -29
  113. package/esm/microsoftResourceHealth.d.ts.map +0 -1
  114. package/esm/microsoftResourceHealth.js +0 -42
  115. package/esm/microsoftResourceHealth.js.map +0 -1
  116. package/esm/microsoftResourceHealthContext.d.ts +0 -23
  117. package/esm/microsoftResourceHealthContext.d.ts.map +0 -1
  118. package/esm/microsoftResourceHealthContext.js +0 -61
  119. package/esm/microsoftResourceHealthContext.js.map +0 -1
  120. package/esm/models/availabilityStatusesMappers.d.ts +0 -2
  121. package/esm/models/availabilityStatusesMappers.d.ts.map +0 -1
  122. package/esm/models/availabilityStatusesMappers.js +0 -9
  123. package/esm/models/availabilityStatusesMappers.js.map +0 -1
  124. package/esm/models/childAvailabilityStatusesMappers.d.ts +0 -2
  125. package/esm/models/childAvailabilityStatusesMappers.d.ts.map +0 -1
  126. package/esm/models/childAvailabilityStatusesMappers.js +0 -9
  127. package/esm/models/childAvailabilityStatusesMappers.js.map +0 -1
  128. package/esm/models/childResourcesMappers.d.ts +0 -2
  129. package/esm/models/childResourcesMappers.d.ts.map +0 -1
  130. package/esm/models/childResourcesMappers.js +0 -9
  131. package/esm/models/childResourcesMappers.js.map +0 -1
  132. package/esm/models/emergingIssuesMappers.d.ts +0 -2
  133. package/esm/models/emergingIssuesMappers.d.ts.map +0 -1
  134. package/esm/models/emergingIssuesMappers.js +0 -9
  135. package/esm/models/emergingIssuesMappers.js.map +0 -1
  136. package/esm/models/index.d.ts +0 -957
  137. package/esm/models/index.d.ts.map +0 -1
  138. package/esm/models/index.js.map +0 -1
  139. package/esm/models/mappers.d.ts +0 -26
  140. package/esm/models/mappers.d.ts.map +0 -1
  141. package/esm/models/mappers.js.map +0 -1
  142. package/esm/models/operationsMappers.d.ts +0 -2
  143. package/esm/models/operationsMappers.d.ts.map +0 -1
  144. package/esm/models/operationsMappers.js.map +0 -1
  145. package/esm/models/parameters.d.ts +0 -11
  146. package/esm/models/parameters.d.ts.map +0 -1
  147. package/esm/models/parameters.js.map +0 -1
  148. package/esm/operations/availabilityStatuses.d.ts +0 -166
  149. package/esm/operations/availabilityStatuses.d.ts.map +0 -1
  150. package/esm/operations/availabilityStatuses.js +0 -239
  151. package/esm/operations/availabilityStatuses.js.map +0 -1
  152. package/esm/operations/childAvailabilityStatuses.d.ts +0 -81
  153. package/esm/operations/childAvailabilityStatuses.d.ts.map +0 -1
  154. package/esm/operations/childAvailabilityStatuses.js +0 -117
  155. package/esm/operations/childAvailabilityStatuses.js.map +0 -1
  156. package/esm/operations/childResources.d.ts +0 -57
  157. package/esm/operations/childResources.d.ts.map +0 -1
  158. package/esm/operations/childResources.js +0 -87
  159. package/esm/operations/childResources.js.map +0 -1
  160. package/esm/operations/emergingIssues.d.ts +0 -61
  161. package/esm/operations/emergingIssues.d.ts.map +0 -1
  162. package/esm/operations/emergingIssues.js +0 -106
  163. package/esm/operations/emergingIssues.js.map +0 -1
  164. package/esm/operations/index.d.ts.map +0 -1
  165. package/esm/operations/index.js.map +0 -1
  166. package/esm/operations/operations.d.ts +0 -28
  167. package/esm/operations/operations.d.ts.map +0 -1
  168. package/esm/operations/operations.js +0 -50
  169. package/esm/operations/operations.js.map +0 -1
  170. package/src/models/availabilityStatusesMappers.ts +0 -19
  171. package/src/models/childAvailabilityStatusesMappers.ts +0 -19
  172. package/src/models/childResourcesMappers.ts +0 -19
  173. package/src/models/emergingIssuesMappers.ts +0 -22
@@ -6,1029 +6,473 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
10
- import * as msRest from "@azure/ms-rest-js";
9
+ import * as coreClient from "@azure/core-client";
11
10
 
12
- export { BaseResource, CloudError };
11
+ /** The List availabilityStatus operation response. */
12
+ export interface AvailabilityStatusListResult {
13
+ /** The list of availabilityStatuses. */
14
+ value: AvailabilityStatus[];
15
+ /** The URI to fetch the next page of availabilityStatuses. Call ListNext() with this URI to fetch the next page of availabilityStatuses. */
16
+ nextLink?: string;
17
+ }
13
18
 
14
- /**
15
- * An annotation describing a change in the availabilityState to Available from Unavailable with a
16
- * reasonType of type Unplanned
17
- */
19
+ /** availabilityStatus of a resource. */
20
+ export interface AvailabilityStatus {
21
+ /** Azure Resource Manager Identity for the availabilityStatuses resource. */
22
+ id?: string;
23
+ /** current. */
24
+ name?: string;
25
+ /** Microsoft.ResourceHealth/AvailabilityStatuses. */
26
+ type?: string;
27
+ /** Azure Resource Manager geo location of the resource. */
28
+ location?: string;
29
+ /** Properties of availability state. */
30
+ properties?: AvailabilityStatusProperties;
31
+ }
32
+
33
+ /** Properties of availability state. */
34
+ export interface AvailabilityStatusProperties {
35
+ /** Availability status of the resource. When it is null, this availabilityStatus object represents an availability impacting event */
36
+ availabilityState?: AvailabilityStateValues;
37
+ /** Summary description of the availability status. */
38
+ summary?: string;
39
+ /** Details of the availability status. */
40
+ detailedStatus?: string;
41
+ /** When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc. */
42
+ reasonType?: string;
43
+ /** When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received. */
44
+ rootCauseAttributionTime?: Date;
45
+ /** In case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle, Downtime, Fault Analysis etc. */
46
+ healthEventType?: string;
47
+ /** In case of an availability impacting event, it describes where the health impacting event was originated. Examples are PlatformInitiated, UserInitiated etc. */
48
+ healthEventCause?: string;
49
+ /** In case of an availability impacting event, it describes the category of a PlatformInitiated health impacting event. Examples are Planned, Unplanned etc. */
50
+ healthEventCategory?: string;
51
+ /** It is a unique Id that identifies the event */
52
+ healthEventId?: string;
53
+ /** When the resource's availabilityState is Unavailable and the reasonType is not User Initiated, it provides the date and time for when the issue is expected to be resolved. */
54
+ resolutionETA?: Date;
55
+ /** Timestamp for when last change in health status occurred. */
56
+ occuredTime?: Date;
57
+ /** Chronicity of the availability transition. */
58
+ reasonChronicity?: ReasonChronicityTypes;
59
+ /** Timestamp for when the health was last checked. */
60
+ reportedTime?: Date;
61
+ /** An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned */
62
+ recentlyResolvedState?: AvailabilityStatusPropertiesRecentlyResolvedState;
63
+ /** Lists actions the user can take based on the current availabilityState of the resource. */
64
+ recommendedActions?: RecommendedAction[];
65
+ /** Lists the service impacting events that may be affecting the health of the resource. */
66
+ serviceImpactingEvents?: ServiceImpactingEvent[];
67
+ }
68
+
69
+ /** An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned */
18
70
  export interface AvailabilityStatusPropertiesRecentlyResolvedState {
19
- /**
20
- * Timestamp for when the availabilityState changed to Unavailable
21
- */
71
+ /** Timestamp for when the availabilityState changed to Unavailable */
22
72
  unavailableOccurredTime?: Date;
23
- /**
24
- * Timestamp when the availabilityState changes to Available.
25
- */
73
+ /** Timestamp when the availabilityState changes to Available. */
26
74
  resolvedTime?: Date;
27
- /**
28
- * Brief description of cause of the resource becoming unavailable.
29
- */
75
+ /** Brief description of cause of the resource becoming unavailable. */
30
76
  unavailabilitySummary?: string;
31
77
  }
32
78
 
33
- /**
34
- * Lists actions the user can take based on the current availabilityState of the resource.
35
- */
79
+ /** Lists actions the user can take based on the current availabilityState of the resource. */
36
80
  export interface RecommendedAction {
37
- /**
38
- * Recommended action.
39
- */
81
+ /** Recommended action. */
40
82
  action?: string;
41
- /**
42
- * Link to the action
43
- */
83
+ /** Link to the action */
44
84
  actionUrl?: string;
45
- /**
46
- * Substring of action, it describes which text should host the action url.
47
- */
85
+ /** Substring of action, it describes which text should host the action url. */
48
86
  actionUrlText?: string;
49
87
  }
50
88
 
51
- /**
52
- * Status of the service impacting event.
53
- */
89
+ /** Lists the service impacting events that may be affecting the health of the resource. */
90
+ export interface ServiceImpactingEvent {
91
+ /** Timestamp for when the event started. */
92
+ eventStartTime?: Date;
93
+ /** Timestamp for when event was submitted/detected. */
94
+ eventStatusLastModifiedTime?: Date;
95
+ /** Correlation id for the event */
96
+ correlationId?: string;
97
+ /** Status of the service impacting event. */
98
+ status?: ServiceImpactingEventStatus;
99
+ /** Properties of the service impacting event. */
100
+ incidentProperties?: ServiceImpactingEventIncidentProperties;
101
+ }
102
+
103
+ /** Status of the service impacting event. */
54
104
  export interface ServiceImpactingEventStatus {
55
- /**
56
- * Current status of the event
57
- */
105
+ /** Current status of the event */
58
106
  value?: string;
59
107
  }
60
108
 
61
- /**
62
- * Properties of the service impacting event.
63
- */
109
+ /** Properties of the service impacting event. */
64
110
  export interface ServiceImpactingEventIncidentProperties {
65
- /**
66
- * Title of the incident.
67
- */
111
+ /** Title of the incident. */
68
112
  title?: string;
69
- /**
70
- * Service impacted by the event.
71
- */
113
+ /** Service impacted by the event. */
72
114
  service?: string;
73
- /**
74
- * Region impacted by the event.
75
- */
115
+ /** Region impacted by the event. */
76
116
  region?: string;
77
- /**
78
- * Type of Event.
79
- */
117
+ /** Type of Event. */
80
118
  incidentType?: string;
81
119
  }
82
120
 
83
- /**
84
- * Lists the service impacting events that may be affecting the health of the resource.
85
- */
86
- export interface ServiceImpactingEvent {
87
- /**
88
- * Timestamp for when the event started.
89
- */
90
- eventStartTime?: Date;
91
- /**
92
- * Timestamp for when event was submitted/detected.
93
- */
94
- eventStatusLastModifiedTime?: Date;
121
+ /** Error details. */
122
+ export interface ErrorResponse {
95
123
  /**
96
- * Correlation id for the event
124
+ * The error code.
125
+ * NOTE: This property will not be serialized. It can only be populated by the server.
97
126
  */
98
- correlationId?: string;
127
+ readonly code?: string;
99
128
  /**
100
- * Status of the service impacting event.
129
+ * The error message.
130
+ * NOTE: This property will not be serialized. It can only be populated by the server.
101
131
  */
102
- status?: ServiceImpactingEventStatus;
132
+ readonly message?: string;
103
133
  /**
104
- * Properties of the service impacting event.
134
+ * The error details.
135
+ * NOTE: This property will not be serialized. It can only be populated by the server.
105
136
  */
106
- incidentProperties?: ServiceImpactingEventIncidentProperties;
137
+ readonly details?: string;
107
138
  }
108
139
 
109
- /**
110
- * Properties of availability state.
111
- */
112
- export interface AvailabilityStatusProperties {
113
- /**
114
- * Availability status of the resource. When it is null, this availabilityStatus object
115
- * represents an availability impacting event. Possible values include: 'Available',
116
- * 'Unavailable', 'Unknown'
117
- */
118
- availabilityState?: AvailabilityStateValues;
119
- /**
120
- * Summary description of the availability status.
121
- */
122
- summary?: string;
123
- /**
124
- * Details of the availability status.
125
- */
126
- detailedStatus?: string;
127
- /**
128
- * When the resource's availabilityState is Unavailable, it describes where the health impacting
129
- * event was originated. Examples are planned, unplanned, user initiated or an outage etc.
130
- */
131
- reasonType?: string;
132
- /**
133
- * When the resource's availabilityState is Unavailable, it provides the Timestamp for when the
134
- * health impacting event was received.
135
- */
136
- rootCauseAttributionTime?: Date;
137
- /**
138
- * In case of an availability impacting event, it describes when the health impacting event was
139
- * originated. Examples are Lifecycle, Downtime, Fault Analysis etc.
140
- */
141
- healthEventType?: string;
142
- /**
143
- * In case of an availability impacting event, it describes where the health impacting event was
144
- * originated. Examples are PlatformInitiated, UserInitiated etc.
145
- */
146
- healthEventCause?: string;
147
- /**
148
- * In case of an availability impacting event, it describes the category of a PlatformInitiated
149
- * health impacting event. Examples are Planned, Unplanned etc.
150
- */
151
- healthEventCategory?: string;
152
- /**
153
- * It is a unique Id that identifies the event
154
- */
155
- healthEventId?: string;
156
- /**
157
- * When the resource's availabilityState is Unavailable and the reasonType is not User Initiated,
158
- * it provides the date and time for when the issue is expected to be resolved.
159
- */
160
- resolutionETA?: Date;
161
- /**
162
- * Timestamp for when last change in health status occurred.
163
- */
164
- occuredTime?: Date;
165
- /**
166
- * Chronicity of the availability transition. Possible values include: 'Transient', 'Persistent'
167
- */
168
- reasonChronicity?: ReasonChronicityTypes;
169
- /**
170
- * Timestamp for when the health was last checked.
171
- */
172
- reportedTime?: Date;
173
- /**
174
- * An annotation describing a change in the availabilityState to Available from Unavailable with
175
- * a reasonType of type Unplanned
176
- */
177
- recentlyResolvedState?: AvailabilityStatusPropertiesRecentlyResolvedState;
178
- /**
179
- * Lists actions the user can take based on the current availabilityState of the resource.
180
- */
181
- recommendedActions?: RecommendedAction[];
182
- /**
183
- * Lists the service impacting events that may be affecting the health of the resource.
184
- */
185
- serviceImpactingEvents?: ServiceImpactingEvent[];
140
+ /** Lists the operations response. */
141
+ export interface OperationListResult {
142
+ /** List of operations available in the resourcehealth resource provider. */
143
+ value: Operation[];
186
144
  }
187
145
 
188
- /**
189
- * availabilityStatus of a resource.
190
- */
191
- export interface AvailabilityStatus {
192
- /**
193
- * Azure Resource Manager Identity for the availabilityStatuses resource.
194
- */
195
- id?: string;
196
- /**
197
- * current.
198
- */
146
+ /** Operation available in the resourcehealth resource provider. */
147
+ export interface Operation {
148
+ /** Name of the operation. */
199
149
  name?: string;
200
- /**
201
- * Microsoft.ResourceHealth/AvailabilityStatuses.
202
- */
203
- type?: string;
204
- /**
205
- * Azure Resource Manager geo location of the resource.
206
- */
207
- location?: string;
208
- /**
209
- * Properties of availability state.
210
- */
211
- properties?: AvailabilityStatusProperties;
150
+ /** Properties of the operation. */
151
+ display?: OperationDisplay;
212
152
  }
213
153
 
214
- /**
215
- * Properties of the operation.
216
- */
154
+ /** Properties of the operation. */
217
155
  export interface OperationDisplay {
218
- /**
219
- * Provider name.
220
- */
156
+ /** Provider name. */
221
157
  provider?: string;
222
- /**
223
- * Resource name.
224
- */
158
+ /** Resource name. */
225
159
  resource?: string;
226
- /**
227
- * Operation name.
228
- */
160
+ /** Operation name. */
229
161
  operation?: string;
230
- /**
231
- * Description of the operation.
232
- */
162
+ /** Description of the operation. */
233
163
  description?: string;
234
164
  }
235
165
 
236
- /**
237
- * Operation available in the resourcehealth resource provider.
238
- */
239
- export interface Operation {
240
- /**
241
- * Name of the operation.
242
- */
243
- name?: string;
244
- /**
245
- * Properties of the operation.
246
- */
247
- display?: OperationDisplay;
248
- }
249
-
250
- /**
251
- * Lists the operations response.
252
- */
253
- export interface OperationListResult {
254
- /**
255
- * List of operations available in the resourcehealth resource provider.
256
- */
257
- value: Operation[];
258
- }
259
-
260
- /**
261
- * Banner type of emerging issue.
262
- */
166
+ /** Banner type of emerging issue. */
263
167
  export interface StatusBanner {
264
- /**
265
- * The banner title.
266
- */
168
+ /** The banner title. */
267
169
  title?: string;
268
- /**
269
- * The details of banner.
270
- */
170
+ /** The details of banner. */
271
171
  message?: string;
272
- /**
273
- * The cloud type of this banner.
274
- */
172
+ /** The cloud type of this banner. */
275
173
  cloud?: string;
276
- /**
277
- * The last time modified on this banner.
278
- */
174
+ /** The last time modified on this banner. */
279
175
  lastModifiedTime?: Date;
280
176
  }
281
177
 
282
- /**
283
- * Object of impacted region.
284
- */
285
- export interface ImpactedRegion {
286
- /**
287
- * The impacted region id.
288
- */
289
- id?: string;
290
- /**
291
- * The impacted region name.
292
- */
293
- name?: string;
294
- }
295
-
296
- /**
297
- * Object of the emerging issue impact on services and regions.
298
- */
299
- export interface EmergingIssueImpact {
300
- /**
301
- * The impacted service id.
302
- */
303
- id?: string;
304
- /**
305
- * The impacted service name.
306
- */
307
- name?: string;
308
- /**
309
- * The list of impacted regions for corresponding emerging issues.
310
- */
311
- regions?: ImpactedRegion[];
312
- }
313
-
314
- /**
315
- * Active event type of emerging issue.
316
- */
178
+ /** Active event type of emerging issue. */
317
179
  export interface StatusActiveEvent {
318
- /**
319
- * The active event title.
320
- */
180
+ /** The active event title. */
321
181
  title?: string;
322
- /**
323
- * The details of active event.
324
- */
182
+ /** The details of active event. */
325
183
  description?: string;
326
- /**
327
- * The tracking id of this active event.
328
- */
184
+ /** The tracking id of this active event. */
329
185
  trackingId?: string;
330
- /**
331
- * The impact start time on this active event.
332
- */
186
+ /** The impact start time on this active event. */
333
187
  startTime?: Date;
334
- /**
335
- * The cloud type of this active event.
336
- */
188
+ /** The cloud type of this active event. */
337
189
  cloud?: string;
338
- /**
339
- * The severity level of this active event. Possible values include: 'Information', 'Warning',
340
- * 'Error'
341
- */
190
+ /** The severity level of this active event. */
342
191
  severity?: SeverityValues;
343
- /**
344
- * The stage of this active event. Possible values include: 'Active', 'Resolve', 'Archived'
345
- */
192
+ /** The stage of this active event. */
346
193
  stage?: StageValues;
347
- /**
348
- * The boolean value of this active event if published or not.
349
- */
194
+ /** The boolean value of this active event if published or not. */
350
195
  published?: boolean;
351
- /**
352
- * The last time modified on this banner.
353
- */
196
+ /** The last time modified on this banner. */
354
197
  lastModifiedTime?: Date;
355
- /**
356
- * The list of emerging issues impacts.
357
- */
198
+ /** The list of emerging issues impacts. */
358
199
  impacts?: EmergingIssueImpact[];
359
200
  }
360
201
 
361
- /**
362
- * Common fields that are returned in the response for all Azure Resource Manager resources
363
- * @summary Resource
364
- */
365
- export interface Resource extends BaseResource {
202
+ /** Object of the emerging issue impact on services and regions. */
203
+ export interface EmergingIssueImpact {
204
+ /** The impacted service id. */
205
+ id?: string;
206
+ /** The impacted service name. */
207
+ name?: string;
208
+ /** The list of impacted regions for corresponding emerging issues. */
209
+ regions?: ImpactedRegion[];
210
+ }
211
+
212
+ /** Object of impacted region. */
213
+ export interface ImpactedRegion {
214
+ /** The impacted region id. */
215
+ id?: string;
216
+ /** The impacted region name. */
217
+ name?: string;
218
+ }
219
+
220
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
221
+ export interface Resource {
366
222
  /**
367
- * Fully qualified resource ID for the resource. Ex -
368
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
369
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
223
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
224
+ * NOTE: This property will not be serialized. It can only be populated by the server.
370
225
  */
371
226
  readonly id?: string;
372
227
  /**
373
228
  * The name of the resource
374
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
229
+ * NOTE: This property will not be serialized. It can only be populated by the server.
375
230
  */
376
231
  readonly name?: string;
377
232
  /**
378
- * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
379
- * "Microsoft.Storage/storageAccounts"
380
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
233
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
234
+ * NOTE: This property will not be serialized. It can only be populated by the server.
381
235
  */
382
236
  readonly type?: string;
383
237
  }
384
238
 
385
- /**
386
- * The Get EmergingIssues operation response.
387
- */
388
- export interface EmergingIssuesGetResult extends Resource {
389
- /**
390
- * Timestamp for when last time refreshed for ongoing emerging issue.
391
- */
239
+ /** The list of emerging issues. */
240
+ export interface EmergingIssueListResult {
241
+ /** The list of emerging issues. */
242
+ value?: EmergingIssuesGetResult[];
243
+ /** The link used to get the next page of emerging issues. */
244
+ nextLink?: string;
245
+ }
246
+
247
+ /** The Get EmergingIssues operation response. */
248
+ export type EmergingIssuesGetResult = Resource & {
249
+ /** Timestamp for when last time refreshed for ongoing emerging issue. */
392
250
  refreshTimestamp?: Date;
393
- /**
394
- * The list of emerging issues of banner type.
395
- */
251
+ /** The list of emerging issues of banner type. */
396
252
  statusBanners?: StatusBanner[];
397
- /**
398
- * The list of emerging issues of active event type.
399
- */
253
+ /** The list of emerging issues of active event type. */
400
254
  statusActiveEvents?: StatusActiveEvent[];
401
- }
255
+ };
402
256
 
403
- /**
404
- * Error details.
405
- */
406
- export interface ErrorResponse {
407
- /**
408
- * The error code.
409
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
410
- */
411
- readonly code?: string;
412
- /**
413
- * The error message.
414
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
415
- */
416
- readonly message?: string;
417
- /**
418
- * The error details.
419
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
420
- */
421
- readonly details?: string;
257
+ /** Known values of {@link SeverityValues} that the service accepts. */
258
+ export enum KnownSeverityValues {
259
+ Information = "Information",
260
+ Warning = "Warning",
261
+ Error = "Error"
422
262
  }
423
263
 
424
264
  /**
425
- * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags
426
- * and a location
427
- * @summary Proxy Resource
265
+ * Defines values for SeverityValues. \
266
+ * {@link KnownSeverityValues} can be used interchangeably with SeverityValues,
267
+ * this enum contains the known values that the service supports.
268
+ * ### Known values supported by the service
269
+ * **Information** \
270
+ * **Warning** \
271
+ * **Error**
428
272
  */
429
- export interface ProxyResource extends Resource {
430
- }
273
+ export type SeverityValues = string;
431
274
 
432
- /**
433
- * The resource model definition for an Azure Resource Manager tracked top level resource which has
434
- * 'tags' and a 'location'
435
- * @summary Tracked Resource
436
- */
437
- export interface TrackedResource extends Resource {
438
- /**
439
- * Resource tags.
440
- */
441
- tags?: { [propertyName: string]: string };
442
- /**
443
- * The geo-location where the resource lives
444
- */
445
- location: string;
275
+ /** Known values of {@link StageValues} that the service accepts. */
276
+ export enum KnownStageValues {
277
+ Active = "Active",
278
+ Resolve = "Resolve",
279
+ Archived = "Archived"
446
280
  }
447
281
 
448
282
  /**
449
- * The resource model definition for an Azure Resource Manager resource with an etag.
450
- * @summary Entity Resource
283
+ * Defines values for StageValues. \
284
+ * {@link KnownStageValues} can be used interchangeably with StageValues,
285
+ * this enum contains the known values that the service supports.
286
+ * ### Known values supported by the service
287
+ * **Active** \
288
+ * **Resolve** \
289
+ * **Archived**
451
290
  */
452
- export interface AzureEntityResource extends Resource {
453
- /**
454
- * Resource Etag.
455
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
456
- */
457
- readonly etag?: string;
458
- }
291
+ export type StageValues = string;
292
+ /** Defines values for AvailabilityStateValues. */
293
+ export type AvailabilityStateValues = "Available" | "Unavailable" | "Unknown";
294
+ /** Defines values for ReasonChronicityTypes. */
295
+ export type ReasonChronicityTypes = "Transient" | "Persistent";
459
296
 
460
- /**
461
- * Optional Parameters.
462
- */
463
- export interface AvailabilityStatusesListBySubscriptionIdOptionalParams extends msRest.RequestOptionsBase {
464
- /**
465
- * The filter to apply on the operation. For more information please see
466
- * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
467
- */
297
+ /** Optional parameters. */
298
+ export interface AvailabilityStatusesListBySubscriptionIdOptionalParams
299
+ extends coreClient.OperationOptions {
300
+ /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
468
301
  filter?: string;
469
- /**
470
- * Setting $expand=recommendedactions in url query expands the recommendedactions in the
471
- * response.
472
- */
302
+ /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
473
303
  expand?: string;
474
304
  }
475
305
 
476
- /**
477
- * Optional Parameters.
478
- */
479
- export interface AvailabilityStatusesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase {
480
- /**
481
- * The filter to apply on the operation. For more information please see
482
- * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
483
- */
484
- filter?: string;
485
- /**
486
- * Setting $expand=recommendedactions in url query expands the recommendedactions in the
487
- * response.
488
- */
489
- expand?: string;
490
- }
306
+ /** Contains response data for the listBySubscriptionId operation. */
307
+ export type AvailabilityStatusesListBySubscriptionIdResponse = AvailabilityStatusListResult;
491
308
 
492
- /**
493
- * Optional Parameters.
494
- */
495
- export interface AvailabilityStatusesGetByResourceOptionalParams extends msRest.RequestOptionsBase {
496
- /**
497
- * The filter to apply on the operation. For more information please see
498
- * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
499
- */
309
+ /** Optional parameters. */
310
+ export interface AvailabilityStatusesListByResourceGroupOptionalParams
311
+ extends coreClient.OperationOptions {
312
+ /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
500
313
  filter?: string;
501
- /**
502
- * Setting $expand=recommendedactions in url query expands the recommendedactions in the
503
- * response.
504
- */
314
+ /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
505
315
  expand?: string;
506
316
  }
507
317
 
508
- /**
509
- * Optional Parameters.
510
- */
511
- export interface AvailabilityStatusesListOptionalParams extends msRest.RequestOptionsBase {
512
- /**
513
- * The filter to apply on the operation. For more information please see
514
- * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
515
- */
318
+ /** Contains response data for the listByResourceGroup operation. */
319
+ export type AvailabilityStatusesListByResourceGroupResponse = AvailabilityStatusListResult;
320
+
321
+ /** Optional parameters. */
322
+ export interface AvailabilityStatusesGetByResourceOptionalParams
323
+ extends coreClient.OperationOptions {
324
+ /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
516
325
  filter?: string;
517
- /**
518
- * Setting $expand=recommendedactions in url query expands the recommendedactions in the
519
- * response.
520
- */
326
+ /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
521
327
  expand?: string;
522
328
  }
523
329
 
524
- /**
525
- * Optional Parameters.
526
- */
527
- export interface AvailabilityStatusesListBySubscriptionIdNextOptionalParams extends msRest.RequestOptionsBase {
528
- /**
529
- * The filter to apply on the operation. For more information please see
530
- * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
531
- */
330
+ /** Contains response data for the getByResource operation. */
331
+ export type AvailabilityStatusesGetByResourceResponse = AvailabilityStatus;
332
+
333
+ /** Optional parameters. */
334
+ export interface AvailabilityStatusesListOptionalParams
335
+ extends coreClient.OperationOptions {
336
+ /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
532
337
  filter?: string;
533
- /**
534
- * Setting $expand=recommendedactions in url query expands the recommendedactions in the
535
- * response.
536
- */
338
+ /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
537
339
  expand?: string;
538
340
  }
539
341
 
540
- /**
541
- * Optional Parameters.
542
- */
543
- export interface AvailabilityStatusesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase {
544
- /**
545
- * The filter to apply on the operation. For more information please see
546
- * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
547
- */
342
+ /** Contains response data for the list operation. */
343
+ export type AvailabilityStatusesListResponse = AvailabilityStatusListResult;
344
+
345
+ /** Optional parameters. */
346
+ export interface AvailabilityStatusesListBySubscriptionIdNextOptionalParams
347
+ extends coreClient.OperationOptions {
348
+ /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
548
349
  filter?: string;
549
- /**
550
- * Setting $expand=recommendedactions in url query expands the recommendedactions in the
551
- * response.
552
- */
350
+ /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
553
351
  expand?: string;
554
352
  }
555
353
 
556
- /**
557
- * Optional Parameters.
558
- */
559
- export interface AvailabilityStatusesListNextOptionalParams extends msRest.RequestOptionsBase {
560
- /**
561
- * The filter to apply on the operation. For more information please see
562
- * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
563
- */
354
+ /** Contains response data for the listBySubscriptionIdNext operation. */
355
+ export type AvailabilityStatusesListBySubscriptionIdNextResponse = AvailabilityStatusListResult;
356
+
357
+ /** Optional parameters. */
358
+ export interface AvailabilityStatusesListByResourceGroupNextOptionalParams
359
+ extends coreClient.OperationOptions {
360
+ /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
564
361
  filter?: string;
565
- /**
566
- * Setting $expand=recommendedactions in url query expands the recommendedactions in the
567
- * response.
568
- */
362
+ /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
569
363
  expand?: string;
570
364
  }
571
365
 
572
- /**
573
- * Optional Parameters.
574
- */
575
- export interface ChildAvailabilityStatusesGetByResourceOptionalParams extends msRest.RequestOptionsBase {
576
- /**
577
- * The filter to apply on the operation. For more information please see
578
- * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
579
- */
366
+ /** Contains response data for the listByResourceGroupNext operation. */
367
+ export type AvailabilityStatusesListByResourceGroupNextResponse = AvailabilityStatusListResult;
368
+
369
+ /** Optional parameters. */
370
+ export interface AvailabilityStatusesListNextOptionalParams
371
+ extends coreClient.OperationOptions {
372
+ /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
580
373
  filter?: string;
581
- /**
582
- * Setting $expand=recommendedactions in url query expands the recommendedactions in the
583
- * response.
584
- */
374
+ /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
585
375
  expand?: string;
586
376
  }
587
377
 
588
- /**
589
- * Optional Parameters.
590
- */
591
- export interface ChildAvailabilityStatusesListOptionalParams extends msRest.RequestOptionsBase {
592
- /**
593
- * The filter to apply on the operation. For more information please see
594
- * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
595
- */
378
+ /** Contains response data for the listNext operation. */
379
+ export type AvailabilityStatusesListNextResponse = AvailabilityStatusListResult;
380
+
381
+ /** Optional parameters. */
382
+ export interface ChildAvailabilityStatusesGetByResourceOptionalParams
383
+ extends coreClient.OperationOptions {
384
+ /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
596
385
  filter?: string;
597
- /**
598
- * Setting $expand=recommendedactions in url query expands the recommendedactions in the
599
- * response.
600
- */
386
+ /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
601
387
  expand?: string;
602
388
  }
603
389
 
604
- /**
605
- * Optional Parameters.
606
- */
607
- export interface ChildAvailabilityStatusesListNextOptionalParams extends msRest.RequestOptionsBase {
608
- /**
609
- * The filter to apply on the operation. For more information please see
610
- * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
611
- */
390
+ /** Contains response data for the getByResource operation. */
391
+ export type ChildAvailabilityStatusesGetByResourceResponse = AvailabilityStatus;
392
+
393
+ /** Optional parameters. */
394
+ export interface ChildAvailabilityStatusesListOptionalParams
395
+ extends coreClient.OperationOptions {
396
+ /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
612
397
  filter?: string;
613
- /**
614
- * Setting $expand=recommendedactions in url query expands the recommendedactions in the
615
- * response.
616
- */
398
+ /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
617
399
  expand?: string;
618
400
  }
619
401
 
620
- /**
621
- * Optional Parameters.
622
- */
623
- export interface ChildResourcesListOptionalParams extends msRest.RequestOptionsBase {
624
- /**
625
- * The filter to apply on the operation. For more information please see
626
- * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
627
- */
402
+ /** Contains response data for the list operation. */
403
+ export type ChildAvailabilityStatusesListResponse = AvailabilityStatusListResult;
404
+
405
+ /** Optional parameters. */
406
+ export interface ChildAvailabilityStatusesListNextOptionalParams
407
+ extends coreClient.OperationOptions {
408
+ /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
628
409
  filter?: string;
629
- /**
630
- * Setting $expand=recommendedactions in url query expands the recommendedactions in the
631
- * response.
632
- */
410
+ /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
633
411
  expand?: string;
634
412
  }
635
413
 
636
- /**
637
- * Optional Parameters.
638
- */
639
- export interface ChildResourcesListNextOptionalParams extends msRest.RequestOptionsBase {
640
- /**
641
- * The filter to apply on the operation. For more information please see
642
- * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
643
- */
414
+ /** Contains response data for the listNext operation. */
415
+ export type ChildAvailabilityStatusesListNextResponse = AvailabilityStatusListResult;
416
+
417
+ /** Optional parameters. */
418
+ export interface ChildResourcesListOptionalParams
419
+ extends coreClient.OperationOptions {
420
+ /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
644
421
  filter?: string;
645
- /**
646
- * Setting $expand=recommendedactions in url query expands the recommendedactions in the
647
- * response.
648
- */
422
+ /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
649
423
  expand?: string;
650
424
  }
651
425
 
652
- /**
653
- * An interface representing MicrosoftResourceHealthOptions.
654
- */
655
- export interface MicrosoftResourceHealthOptions extends AzureServiceClientOptions {
656
- baseUri?: string;
657
- }
426
+ /** Contains response data for the list operation. */
427
+ export type ChildResourcesListResponse = AvailabilityStatusListResult;
658
428
 
659
- /**
660
- * @interface
661
- * The List availabilityStatus operation response.
662
- * @extends Array<AvailabilityStatus>
663
- */
664
- export interface AvailabilityStatusListResult extends Array<AvailabilityStatus> {
665
- /**
666
- * The URI to fetch the next page of availabilityStatuses. Call ListNext() with this URI to fetch
667
- * the next page of availabilityStatuses.
668
- */
669
- nextLink?: string;
670
- }
671
-
672
- /**
673
- * @interface
674
- * The list of emerging issues.
675
- * @extends Array<EmergingIssuesGetResult>
676
- */
677
- export interface EmergingIssueListResult extends Array<EmergingIssuesGetResult> {
678
- /**
679
- * The link used to get the next page of emerging issues.
680
- */
681
- nextLink?: string;
429
+ /** Optional parameters. */
430
+ export interface ChildResourcesListNextOptionalParams
431
+ extends coreClient.OperationOptions {
432
+ /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
433
+ filter?: string;
434
+ /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
435
+ expand?: string;
682
436
  }
683
437
 
684
- /**
685
- * Defines values for AvailabilityStateValues.
686
- * Possible values include: 'Available', 'Unavailable', 'Unknown'
687
- * @readonly
688
- * @enum {string}
689
- */
690
- export type AvailabilityStateValues = 'Available' | 'Unavailable' | 'Unknown';
691
-
692
- /**
693
- * Defines values for ReasonChronicityTypes.
694
- * Possible values include: 'Transient', 'Persistent'
695
- * @readonly
696
- * @enum {string}
697
- */
698
- export type ReasonChronicityTypes = 'Transient' | 'Persistent';
699
-
700
- /**
701
- * Defines values for SeverityValues.
702
- * Possible values include: 'Information', 'Warning', 'Error'
703
- * @readonly
704
- * @enum {string}
705
- */
706
- export type SeverityValues = 'Information' | 'Warning' | 'Error';
707
-
708
- /**
709
- * Defines values for StageValues.
710
- * Possible values include: 'Active', 'Resolve', 'Archived'
711
- * @readonly
712
- * @enum {string}
713
- */
714
- export type StageValues = 'Active' | 'Resolve' | 'Archived';
715
-
716
- /**
717
- * Contains response data for the listBySubscriptionId operation.
718
- */
719
- export type AvailabilityStatusesListBySubscriptionIdResponse = AvailabilityStatusListResult & {
720
- /**
721
- * The underlying HTTP response.
722
- */
723
- _response: msRest.HttpResponse & {
724
- /**
725
- * The response body as text (string format)
726
- */
727
- bodyAsText: string;
728
-
729
- /**
730
- * The response body as parsed JSON or XML
731
- */
732
- parsedBody: AvailabilityStatusListResult;
733
- };
734
- };
735
-
736
- /**
737
- * Contains response data for the listByResourceGroup operation.
738
- */
739
- export type AvailabilityStatusesListByResourceGroupResponse = AvailabilityStatusListResult & {
740
- /**
741
- * The underlying HTTP response.
742
- */
743
- _response: msRest.HttpResponse & {
744
- /**
745
- * The response body as text (string format)
746
- */
747
- bodyAsText: string;
748
-
749
- /**
750
- * The response body as parsed JSON or XML
751
- */
752
- parsedBody: AvailabilityStatusListResult;
753
- };
754
- };
755
-
756
- /**
757
- * Contains response data for the getByResource operation.
758
- */
759
- export type AvailabilityStatusesGetByResourceResponse = AvailabilityStatus & {
760
- /**
761
- * The underlying HTTP response.
762
- */
763
- _response: msRest.HttpResponse & {
764
- /**
765
- * The response body as text (string format)
766
- */
767
- bodyAsText: string;
768
-
769
- /**
770
- * The response body as parsed JSON or XML
771
- */
772
- parsedBody: AvailabilityStatus;
773
- };
774
- };
438
+ /** Contains response data for the listNext operation. */
439
+ export type ChildResourcesListNextResponse = AvailabilityStatusListResult;
775
440
 
776
- /**
777
- * Contains response data for the list operation.
778
- */
779
- export type AvailabilityStatusesListResponse = AvailabilityStatusListResult & {
780
- /**
781
- * The underlying HTTP response.
782
- */
783
- _response: msRest.HttpResponse & {
784
- /**
785
- * The response body as text (string format)
786
- */
787
- bodyAsText: string;
441
+ /** Optional parameters. */
442
+ export interface OperationsListOptionalParams
443
+ extends coreClient.OperationOptions {}
788
444
 
789
- /**
790
- * The response body as parsed JSON or XML
791
- */
792
- parsedBody: AvailabilityStatusListResult;
793
- };
794
- };
445
+ /** Contains response data for the list operation. */
446
+ export type OperationsListResponse = OperationListResult;
795
447
 
796
- /**
797
- * Contains response data for the listBySubscriptionIdNext operation.
798
- */
799
- export type AvailabilityStatusesListBySubscriptionIdNextResponse = AvailabilityStatusListResult & {
800
- /**
801
- * The underlying HTTP response.
802
- */
803
- _response: msRest.HttpResponse & {
804
- /**
805
- * The response body as text (string format)
806
- */
807
- bodyAsText: string;
448
+ /** Optional parameters. */
449
+ export interface EmergingIssuesGetOptionalParams
450
+ extends coreClient.OperationOptions {}
808
451
 
809
- /**
810
- * The response body as parsed JSON or XML
811
- */
812
- parsedBody: AvailabilityStatusListResult;
813
- };
814
- };
452
+ /** Contains response data for the get operation. */
453
+ export type EmergingIssuesGetResponse = EmergingIssuesGetResult;
815
454
 
816
- /**
817
- * Contains response data for the listByResourceGroupNext operation.
818
- */
819
- export type AvailabilityStatusesListByResourceGroupNextResponse = AvailabilityStatusListResult & {
820
- /**
821
- * The underlying HTTP response.
822
- */
823
- _response: msRest.HttpResponse & {
824
- /**
825
- * The response body as text (string format)
826
- */
827
- bodyAsText: string;
455
+ /** Optional parameters. */
456
+ export interface EmergingIssuesListOptionalParams
457
+ extends coreClient.OperationOptions {}
828
458
 
829
- /**
830
- * The response body as parsed JSON or XML
831
- */
832
- parsedBody: AvailabilityStatusListResult;
833
- };
834
- };
459
+ /** Contains response data for the list operation. */
460
+ export type EmergingIssuesListResponse = EmergingIssueListResult;
835
461
 
836
- /**
837
- * Contains response data for the listNext operation.
838
- */
839
- export type AvailabilityStatusesListNextResponse = AvailabilityStatusListResult & {
840
- /**
841
- * The underlying HTTP response.
842
- */
843
- _response: msRest.HttpResponse & {
844
- /**
845
- * The response body as text (string format)
846
- */
847
- bodyAsText: string;
462
+ /** Optional parameters. */
463
+ export interface EmergingIssuesListNextOptionalParams
464
+ extends coreClient.OperationOptions {}
848
465
 
849
- /**
850
- * The response body as parsed JSON or XML
851
- */
852
- parsedBody: AvailabilityStatusListResult;
853
- };
854
- };
466
+ /** Contains response data for the listNext operation. */
467
+ export type EmergingIssuesListNextResponse = EmergingIssueListResult;
855
468
 
856
- /**
857
- * Contains response data for the getByResource operation.
858
- */
859
- export type ChildAvailabilityStatusesGetByResourceResponse = AvailabilityStatus & {
860
- /**
861
- * The underlying HTTP response.
862
- */
863
- _response: msRest.HttpResponse & {
864
- /**
865
- * The response body as text (string format)
866
- */
867
- bodyAsText: string;
868
-
869
- /**
870
- * The response body as parsed JSON or XML
871
- */
872
- parsedBody: AvailabilityStatus;
873
- };
874
- };
875
-
876
- /**
877
- * Contains response data for the list operation.
878
- */
879
- export type ChildAvailabilityStatusesListResponse = AvailabilityStatusListResult & {
880
- /**
881
- * The underlying HTTP response.
882
- */
883
- _response: msRest.HttpResponse & {
884
- /**
885
- * The response body as text (string format)
886
- */
887
- bodyAsText: string;
888
-
889
- /**
890
- * The response body as parsed JSON or XML
891
- */
892
- parsedBody: AvailabilityStatusListResult;
893
- };
894
- };
895
-
896
- /**
897
- * Contains response data for the listNext operation.
898
- */
899
- export type ChildAvailabilityStatusesListNextResponse = AvailabilityStatusListResult & {
900
- /**
901
- * The underlying HTTP response.
902
- */
903
- _response: msRest.HttpResponse & {
904
- /**
905
- * The response body as text (string format)
906
- */
907
- bodyAsText: string;
908
-
909
- /**
910
- * The response body as parsed JSON or XML
911
- */
912
- parsedBody: AvailabilityStatusListResult;
913
- };
914
- };
915
-
916
- /**
917
- * Contains response data for the list operation.
918
- */
919
- export type ChildResourcesListResponse = AvailabilityStatusListResult & {
920
- /**
921
- * The underlying HTTP response.
922
- */
923
- _response: msRest.HttpResponse & {
924
- /**
925
- * The response body as text (string format)
926
- */
927
- bodyAsText: string;
928
-
929
- /**
930
- * The response body as parsed JSON or XML
931
- */
932
- parsedBody: AvailabilityStatusListResult;
933
- };
934
- };
935
-
936
- /**
937
- * Contains response data for the listNext operation.
938
- */
939
- export type ChildResourcesListNextResponse = AvailabilityStatusListResult & {
940
- /**
941
- * The underlying HTTP response.
942
- */
943
- _response: msRest.HttpResponse & {
944
- /**
945
- * The response body as text (string format)
946
- */
947
- bodyAsText: string;
948
-
949
- /**
950
- * The response body as parsed JSON or XML
951
- */
952
- parsedBody: AvailabilityStatusListResult;
953
- };
954
- };
955
-
956
- /**
957
- * Contains response data for the list operation.
958
- */
959
- export type OperationsListResponse = OperationListResult & {
960
- /**
961
- * The underlying HTTP response.
962
- */
963
- _response: msRest.HttpResponse & {
964
- /**
965
- * The response body as text (string format)
966
- */
967
- bodyAsText: string;
968
-
969
- /**
970
- * The response body as parsed JSON or XML
971
- */
972
- parsedBody: OperationListResult;
973
- };
974
- };
975
-
976
- /**
977
- * Contains response data for the get operation.
978
- */
979
- export type EmergingIssuesGetResponse = EmergingIssuesGetResult & {
980
- /**
981
- * The underlying HTTP response.
982
- */
983
- _response: msRest.HttpResponse & {
984
- /**
985
- * The response body as text (string format)
986
- */
987
- bodyAsText: string;
988
-
989
- /**
990
- * The response body as parsed JSON or XML
991
- */
992
- parsedBody: EmergingIssuesGetResult;
993
- };
994
- };
995
-
996
- /**
997
- * Contains response data for the list operation.
998
- */
999
- export type EmergingIssuesListResponse = EmergingIssueListResult & {
1000
- /**
1001
- * The underlying HTTP response.
1002
- */
1003
- _response: msRest.HttpResponse & {
1004
- /**
1005
- * The response body as text (string format)
1006
- */
1007
- bodyAsText: string;
1008
-
1009
- /**
1010
- * The response body as parsed JSON or XML
1011
- */
1012
- parsedBody: EmergingIssueListResult;
1013
- };
1014
- };
1015
-
1016
- /**
1017
- * Contains response data for the listNext operation.
1018
- */
1019
- export type EmergingIssuesListNextResponse = EmergingIssueListResult & {
1020
- /**
1021
- * The underlying HTTP response.
1022
- */
1023
- _response: msRest.HttpResponse & {
1024
- /**
1025
- * The response body as text (string format)
1026
- */
1027
- bodyAsText: string;
1028
-
1029
- /**
1030
- * The response body as parsed JSON or XML
1031
- */
1032
- parsedBody: EmergingIssueListResult;
1033
- };
1034
- };
469
+ /** Optional parameters. */
470
+ export interface MicrosoftResourceHealthOptionalParams
471
+ extends coreClient.ServiceClientOptions {
472
+ /** server parameter */
473
+ $host?: string;
474
+ /** Api Version */
475
+ apiVersion?: string;
476
+ /** Overrides client endpoint. */
477
+ endpoint?: string;
478
+ }