@azure/arm-resourcehealth 2.0.0 → 3.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +70 -82
- package/dist/index.js +1811 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/microsoftResourceHealth.d.ts +20 -0
- package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -0
- package/dist-esm/src/microsoftResourceHealth.js +27 -0
- package/dist-esm/src/microsoftResourceHealth.js.map +1 -0
- package/dist-esm/src/microsoftResourceHealthContext.d.ts +17 -0
- package/dist-esm/src/microsoftResourceHealthContext.d.ts.map +1 -0
- package/dist-esm/src/microsoftResourceHealthContext.js +50 -0
- package/dist-esm/src/microsoftResourceHealthContext.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +402 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +22 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +21 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +233 -309
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +12 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +44 -39
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/availabilityStatuses.d.ts +102 -0
- package/dist-esm/src/operations/availabilityStatuses.d.ts.map +1 -0
- package/dist-esm/src/operations/availabilityStatuses.js +407 -0
- package/dist-esm/src/operations/availabilityStatuses.js.map +1 -0
- package/dist-esm/src/operations/childAvailabilityStatuses.d.ts +51 -0
- package/dist-esm/src/operations/childAvailabilityStatuses.d.ts.map +1 -0
- package/dist-esm/src/operations/childAvailabilityStatuses.js +173 -0
- package/dist-esm/src/operations/childAvailabilityStatuses.js.map +1 -0
- package/dist-esm/src/operations/childResources.d.ts +43 -0
- package/dist-esm/src/operations/childResources.d.ts.map +1 -0
- package/dist-esm/src/operations/childResources.js +143 -0
- package/dist-esm/src/operations/childResources.js.map +1 -0
- package/dist-esm/src/operations/emergingIssues.d.ts +37 -0
- package/dist-esm/src/operations/emergingIssues.d.ts.map +1 -0
- package/dist-esm/src/operations/emergingIssues.js +143 -0
- package/dist-esm/src/operations/emergingIssues.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +18 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +46 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts +40 -0
- package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/availabilityStatuses.js} +2 -7
- package/dist-esm/src/operationsInterfaces/availabilityStatuses.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.d.ts +23 -0
- package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.d.ts.map +1 -0
- package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/childAvailabilityStatuses.js} +2 -2
- package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/childResources.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/childResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/childResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/childResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts +16 -0
- package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/emergingIssues.js +9 -0
- package/dist-esm/src/operationsInterfaces/emergingIssues.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/operations.js} +2 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +63 -32
- package/review/arm-resourcehealth.api.md +396 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +13 -0
- package/src/microsoftResourceHealth.ts +38 -41
- package/src/microsoftResourceHealthContext.ts +47 -44
- package/src/models/index.ts +322 -878
- package/src/models/mappers.ts +232 -320
- package/src/models/parameters.ts +58 -40
- package/src/operations/availabilityStatuses.ts +325 -276
- package/src/operations/childAvailabilityStatuses.ts +137 -130
- package/src/operations/childResources.ts +109 -85
- package/src/operations/emergingIssues.ts +96 -103
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +24 -38
- package/src/operationsInterfaces/availabilityStatuses.ts +67 -0
- package/src/operationsInterfaces/childAvailabilityStatuses.ts +43 -0
- package/src/operationsInterfaces/childResources.ts +30 -0
- package/src/operationsInterfaces/emergingIssues.ts +34 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/operations.ts +21 -0
- package/tsconfig.json +3 -3
- package/types/arm-resourcehealth.d.ts +588 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-resourcehealth.js +0 -1743
- package/dist/arm-resourcehealth.js.map +0 -1
- package/dist/arm-resourcehealth.min.js +0 -1
- package/dist/arm-resourcehealth.min.js.map +0 -1
- package/esm/microsoftResourceHealth.d.ts +0 -29
- package/esm/microsoftResourceHealth.d.ts.map +0 -1
- package/esm/microsoftResourceHealth.js +0 -42
- package/esm/microsoftResourceHealth.js.map +0 -1
- package/esm/microsoftResourceHealthContext.d.ts +0 -23
- package/esm/microsoftResourceHealthContext.d.ts.map +0 -1
- package/esm/microsoftResourceHealthContext.js +0 -61
- package/esm/microsoftResourceHealthContext.js.map +0 -1
- package/esm/models/availabilityStatusesMappers.d.ts +0 -2
- package/esm/models/availabilityStatusesMappers.d.ts.map +0 -1
- package/esm/models/availabilityStatusesMappers.js +0 -9
- package/esm/models/availabilityStatusesMappers.js.map +0 -1
- package/esm/models/childAvailabilityStatusesMappers.d.ts +0 -2
- package/esm/models/childAvailabilityStatusesMappers.d.ts.map +0 -1
- package/esm/models/childAvailabilityStatusesMappers.js +0 -9
- package/esm/models/childAvailabilityStatusesMappers.js.map +0 -1
- package/esm/models/childResourcesMappers.d.ts +0 -2
- package/esm/models/childResourcesMappers.d.ts.map +0 -1
- package/esm/models/childResourcesMappers.js +0 -9
- package/esm/models/childResourcesMappers.js.map +0 -1
- package/esm/models/emergingIssuesMappers.d.ts +0 -2
- package/esm/models/emergingIssuesMappers.d.ts.map +0 -1
- package/esm/models/emergingIssuesMappers.js +0 -9
- package/esm/models/emergingIssuesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -957
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -26
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -11
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/availabilityStatuses.d.ts +0 -166
- package/esm/operations/availabilityStatuses.d.ts.map +0 -1
- package/esm/operations/availabilityStatuses.js +0 -239
- package/esm/operations/availabilityStatuses.js.map +0 -1
- package/esm/operations/childAvailabilityStatuses.d.ts +0 -81
- package/esm/operations/childAvailabilityStatuses.d.ts.map +0 -1
- package/esm/operations/childAvailabilityStatuses.js +0 -117
- package/esm/operations/childAvailabilityStatuses.js.map +0 -1
- package/esm/operations/childResources.d.ts +0 -57
- package/esm/operations/childResources.d.ts.map +0 -1
- package/esm/operations/childResources.js +0 -87
- package/esm/operations/childResources.js.map +0 -1
- package/esm/operations/emergingIssues.d.ts +0 -61
- package/esm/operations/emergingIssues.d.ts.map +0 -1
- package/esm/operations/emergingIssues.js +0 -106
- package/esm/operations/emergingIssues.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -50
- package/esm/operations/operations.js.map +0 -1
- package/src/models/availabilityStatusesMappers.ts +0 -19
- package/src/models/childAvailabilityStatusesMappers.ts +0 -19
- package/src/models/childResourcesMappers.ts +0 -19
- package/src/models/emergingIssuesMappers.ts +0 -22
package/dist/index.js
ADDED
@@ -0,0 +1,1811 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var tslib = require('tslib');
|
6
|
+
var coreClient = require('@azure/core-client');
|
7
|
+
|
8
|
+
/*
|
9
|
+
* Copyright (c) Microsoft Corporation.
|
10
|
+
* Licensed under the MIT License.
|
11
|
+
*
|
12
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
13
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
14
|
+
*/
|
15
|
+
(function (KnownSeverityValues) {
|
16
|
+
KnownSeverityValues["Information"] = "Information";
|
17
|
+
KnownSeverityValues["Warning"] = "Warning";
|
18
|
+
KnownSeverityValues["Error"] = "Error";
|
19
|
+
})(exports.KnownSeverityValues || (exports.KnownSeverityValues = {}));
|
20
|
+
(function (KnownStageValues) {
|
21
|
+
KnownStageValues["Active"] = "Active";
|
22
|
+
KnownStageValues["Resolve"] = "Resolve";
|
23
|
+
KnownStageValues["Archived"] = "Archived";
|
24
|
+
})(exports.KnownStageValues || (exports.KnownStageValues = {}));
|
25
|
+
|
26
|
+
/*
|
27
|
+
* Copyright (c) Microsoft Corporation.
|
28
|
+
* Licensed under the MIT License.
|
29
|
+
*
|
30
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
31
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
32
|
+
*/
|
33
|
+
const AvailabilityStatusListResult = {
|
34
|
+
type: {
|
35
|
+
name: "Composite",
|
36
|
+
className: "AvailabilityStatusListResult",
|
37
|
+
modelProperties: {
|
38
|
+
value: {
|
39
|
+
serializedName: "value",
|
40
|
+
required: true,
|
41
|
+
type: {
|
42
|
+
name: "Sequence",
|
43
|
+
element: {
|
44
|
+
type: {
|
45
|
+
name: "Composite",
|
46
|
+
className: "AvailabilityStatus"
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
},
|
51
|
+
nextLink: {
|
52
|
+
serializedName: "nextLink",
|
53
|
+
type: {
|
54
|
+
name: "String"
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
};
|
60
|
+
const AvailabilityStatus = {
|
61
|
+
type: {
|
62
|
+
name: "Composite",
|
63
|
+
className: "AvailabilityStatus",
|
64
|
+
modelProperties: {
|
65
|
+
id: {
|
66
|
+
serializedName: "id",
|
67
|
+
type: {
|
68
|
+
name: "String"
|
69
|
+
}
|
70
|
+
},
|
71
|
+
name: {
|
72
|
+
serializedName: "name",
|
73
|
+
type: {
|
74
|
+
name: "String"
|
75
|
+
}
|
76
|
+
},
|
77
|
+
type: {
|
78
|
+
serializedName: "type",
|
79
|
+
type: {
|
80
|
+
name: "String"
|
81
|
+
}
|
82
|
+
},
|
83
|
+
location: {
|
84
|
+
serializedName: "location",
|
85
|
+
type: {
|
86
|
+
name: "String"
|
87
|
+
}
|
88
|
+
},
|
89
|
+
properties: {
|
90
|
+
serializedName: "properties",
|
91
|
+
type: {
|
92
|
+
name: "Composite",
|
93
|
+
className: "AvailabilityStatusProperties"
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
};
|
99
|
+
const AvailabilityStatusProperties = {
|
100
|
+
type: {
|
101
|
+
name: "Composite",
|
102
|
+
className: "AvailabilityStatusProperties",
|
103
|
+
modelProperties: {
|
104
|
+
availabilityState: {
|
105
|
+
serializedName: "availabilityState",
|
106
|
+
type: {
|
107
|
+
name: "Enum",
|
108
|
+
allowedValues: ["Available", "Unavailable", "Unknown"]
|
109
|
+
}
|
110
|
+
},
|
111
|
+
summary: {
|
112
|
+
serializedName: "summary",
|
113
|
+
type: {
|
114
|
+
name: "String"
|
115
|
+
}
|
116
|
+
},
|
117
|
+
detailedStatus: {
|
118
|
+
serializedName: "detailedStatus",
|
119
|
+
type: {
|
120
|
+
name: "String"
|
121
|
+
}
|
122
|
+
},
|
123
|
+
reasonType: {
|
124
|
+
serializedName: "reasonType",
|
125
|
+
type: {
|
126
|
+
name: "String"
|
127
|
+
}
|
128
|
+
},
|
129
|
+
rootCauseAttributionTime: {
|
130
|
+
serializedName: "rootCauseAttributionTime",
|
131
|
+
type: {
|
132
|
+
name: "DateTime"
|
133
|
+
}
|
134
|
+
},
|
135
|
+
healthEventType: {
|
136
|
+
serializedName: "healthEventType",
|
137
|
+
type: {
|
138
|
+
name: "String"
|
139
|
+
}
|
140
|
+
},
|
141
|
+
healthEventCause: {
|
142
|
+
serializedName: "healthEventCause",
|
143
|
+
type: {
|
144
|
+
name: "String"
|
145
|
+
}
|
146
|
+
},
|
147
|
+
healthEventCategory: {
|
148
|
+
serializedName: "healthEventCategory",
|
149
|
+
type: {
|
150
|
+
name: "String"
|
151
|
+
}
|
152
|
+
},
|
153
|
+
healthEventId: {
|
154
|
+
serializedName: "healthEventId",
|
155
|
+
type: {
|
156
|
+
name: "String"
|
157
|
+
}
|
158
|
+
},
|
159
|
+
resolutionETA: {
|
160
|
+
serializedName: "resolutionETA",
|
161
|
+
type: {
|
162
|
+
name: "DateTime"
|
163
|
+
}
|
164
|
+
},
|
165
|
+
occuredTime: {
|
166
|
+
serializedName: "occuredTime",
|
167
|
+
type: {
|
168
|
+
name: "DateTime"
|
169
|
+
}
|
170
|
+
},
|
171
|
+
reasonChronicity: {
|
172
|
+
serializedName: "reasonChronicity",
|
173
|
+
type: {
|
174
|
+
name: "Enum",
|
175
|
+
allowedValues: ["Transient", "Persistent"]
|
176
|
+
}
|
177
|
+
},
|
178
|
+
reportedTime: {
|
179
|
+
serializedName: "reportedTime",
|
180
|
+
type: {
|
181
|
+
name: "DateTime"
|
182
|
+
}
|
183
|
+
},
|
184
|
+
recentlyResolvedState: {
|
185
|
+
serializedName: "recentlyResolvedState",
|
186
|
+
type: {
|
187
|
+
name: "Composite",
|
188
|
+
className: "AvailabilityStatusPropertiesRecentlyResolvedState"
|
189
|
+
}
|
190
|
+
},
|
191
|
+
recommendedActions: {
|
192
|
+
serializedName: "recommendedActions",
|
193
|
+
type: {
|
194
|
+
name: "Sequence",
|
195
|
+
element: {
|
196
|
+
type: {
|
197
|
+
name: "Composite",
|
198
|
+
className: "RecommendedAction"
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
},
|
203
|
+
serviceImpactingEvents: {
|
204
|
+
serializedName: "serviceImpactingEvents",
|
205
|
+
type: {
|
206
|
+
name: "Sequence",
|
207
|
+
element: {
|
208
|
+
type: {
|
209
|
+
name: "Composite",
|
210
|
+
className: "ServiceImpactingEvent"
|
211
|
+
}
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}
|
217
|
+
};
|
218
|
+
const AvailabilityStatusPropertiesRecentlyResolvedState = {
|
219
|
+
type: {
|
220
|
+
name: "Composite",
|
221
|
+
className: "AvailabilityStatusPropertiesRecentlyResolvedState",
|
222
|
+
modelProperties: {
|
223
|
+
unavailableOccurredTime: {
|
224
|
+
serializedName: "unavailableOccurredTime",
|
225
|
+
type: {
|
226
|
+
name: "DateTime"
|
227
|
+
}
|
228
|
+
},
|
229
|
+
resolvedTime: {
|
230
|
+
serializedName: "resolvedTime",
|
231
|
+
type: {
|
232
|
+
name: "DateTime"
|
233
|
+
}
|
234
|
+
},
|
235
|
+
unavailabilitySummary: {
|
236
|
+
serializedName: "unavailabilitySummary",
|
237
|
+
type: {
|
238
|
+
name: "String"
|
239
|
+
}
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|
243
|
+
};
|
244
|
+
const RecommendedAction = {
|
245
|
+
type: {
|
246
|
+
name: "Composite",
|
247
|
+
className: "RecommendedAction",
|
248
|
+
modelProperties: {
|
249
|
+
action: {
|
250
|
+
serializedName: "action",
|
251
|
+
type: {
|
252
|
+
name: "String"
|
253
|
+
}
|
254
|
+
},
|
255
|
+
actionUrl: {
|
256
|
+
serializedName: "actionUrl",
|
257
|
+
type: {
|
258
|
+
name: "String"
|
259
|
+
}
|
260
|
+
},
|
261
|
+
actionUrlText: {
|
262
|
+
serializedName: "actionUrlText",
|
263
|
+
type: {
|
264
|
+
name: "String"
|
265
|
+
}
|
266
|
+
}
|
267
|
+
}
|
268
|
+
}
|
269
|
+
};
|
270
|
+
const ServiceImpactingEvent = {
|
271
|
+
type: {
|
272
|
+
name: "Composite",
|
273
|
+
className: "ServiceImpactingEvent",
|
274
|
+
modelProperties: {
|
275
|
+
eventStartTime: {
|
276
|
+
serializedName: "eventStartTime",
|
277
|
+
type: {
|
278
|
+
name: "DateTime"
|
279
|
+
}
|
280
|
+
},
|
281
|
+
eventStatusLastModifiedTime: {
|
282
|
+
serializedName: "eventStatusLastModifiedTime",
|
283
|
+
type: {
|
284
|
+
name: "DateTime"
|
285
|
+
}
|
286
|
+
},
|
287
|
+
correlationId: {
|
288
|
+
serializedName: "correlationId",
|
289
|
+
type: {
|
290
|
+
name: "String"
|
291
|
+
}
|
292
|
+
},
|
293
|
+
status: {
|
294
|
+
serializedName: "status",
|
295
|
+
type: {
|
296
|
+
name: "Composite",
|
297
|
+
className: "ServiceImpactingEventStatus"
|
298
|
+
}
|
299
|
+
},
|
300
|
+
incidentProperties: {
|
301
|
+
serializedName: "incidentProperties",
|
302
|
+
type: {
|
303
|
+
name: "Composite",
|
304
|
+
className: "ServiceImpactingEventIncidentProperties"
|
305
|
+
}
|
306
|
+
}
|
307
|
+
}
|
308
|
+
}
|
309
|
+
};
|
310
|
+
const ServiceImpactingEventStatus = {
|
311
|
+
type: {
|
312
|
+
name: "Composite",
|
313
|
+
className: "ServiceImpactingEventStatus",
|
314
|
+
modelProperties: {
|
315
|
+
value: {
|
316
|
+
serializedName: "value",
|
317
|
+
type: {
|
318
|
+
name: "String"
|
319
|
+
}
|
320
|
+
}
|
321
|
+
}
|
322
|
+
}
|
323
|
+
};
|
324
|
+
const ServiceImpactingEventIncidentProperties = {
|
325
|
+
type: {
|
326
|
+
name: "Composite",
|
327
|
+
className: "ServiceImpactingEventIncidentProperties",
|
328
|
+
modelProperties: {
|
329
|
+
title: {
|
330
|
+
serializedName: "title",
|
331
|
+
type: {
|
332
|
+
name: "String"
|
333
|
+
}
|
334
|
+
},
|
335
|
+
service: {
|
336
|
+
serializedName: "service",
|
337
|
+
type: {
|
338
|
+
name: "String"
|
339
|
+
}
|
340
|
+
},
|
341
|
+
region: {
|
342
|
+
serializedName: "region",
|
343
|
+
type: {
|
344
|
+
name: "String"
|
345
|
+
}
|
346
|
+
},
|
347
|
+
incidentType: {
|
348
|
+
serializedName: "incidentType",
|
349
|
+
type: {
|
350
|
+
name: "String"
|
351
|
+
}
|
352
|
+
}
|
353
|
+
}
|
354
|
+
}
|
355
|
+
};
|
356
|
+
const ErrorResponse = {
|
357
|
+
type: {
|
358
|
+
name: "Composite",
|
359
|
+
className: "ErrorResponse",
|
360
|
+
modelProperties: {
|
361
|
+
code: {
|
362
|
+
serializedName: "code",
|
363
|
+
readOnly: true,
|
364
|
+
type: {
|
365
|
+
name: "String"
|
366
|
+
}
|
367
|
+
},
|
368
|
+
message: {
|
369
|
+
serializedName: "message",
|
370
|
+
readOnly: true,
|
371
|
+
type: {
|
372
|
+
name: "String"
|
373
|
+
}
|
374
|
+
},
|
375
|
+
details: {
|
376
|
+
serializedName: "details",
|
377
|
+
readOnly: true,
|
378
|
+
type: {
|
379
|
+
name: "String"
|
380
|
+
}
|
381
|
+
}
|
382
|
+
}
|
383
|
+
}
|
384
|
+
};
|
385
|
+
const OperationListResult = {
|
386
|
+
type: {
|
387
|
+
name: "Composite",
|
388
|
+
className: "OperationListResult",
|
389
|
+
modelProperties: {
|
390
|
+
value: {
|
391
|
+
serializedName: "value",
|
392
|
+
required: true,
|
393
|
+
type: {
|
394
|
+
name: "Sequence",
|
395
|
+
element: {
|
396
|
+
type: {
|
397
|
+
name: "Composite",
|
398
|
+
className: "Operation"
|
399
|
+
}
|
400
|
+
}
|
401
|
+
}
|
402
|
+
}
|
403
|
+
}
|
404
|
+
}
|
405
|
+
};
|
406
|
+
const Operation = {
|
407
|
+
type: {
|
408
|
+
name: "Composite",
|
409
|
+
className: "Operation",
|
410
|
+
modelProperties: {
|
411
|
+
name: {
|
412
|
+
serializedName: "name",
|
413
|
+
type: {
|
414
|
+
name: "String"
|
415
|
+
}
|
416
|
+
},
|
417
|
+
display: {
|
418
|
+
serializedName: "display",
|
419
|
+
type: {
|
420
|
+
name: "Composite",
|
421
|
+
className: "OperationDisplay"
|
422
|
+
}
|
423
|
+
}
|
424
|
+
}
|
425
|
+
}
|
426
|
+
};
|
427
|
+
const OperationDisplay = {
|
428
|
+
type: {
|
429
|
+
name: "Composite",
|
430
|
+
className: "OperationDisplay",
|
431
|
+
modelProperties: {
|
432
|
+
provider: {
|
433
|
+
serializedName: "provider",
|
434
|
+
type: {
|
435
|
+
name: "String"
|
436
|
+
}
|
437
|
+
},
|
438
|
+
resource: {
|
439
|
+
serializedName: "resource",
|
440
|
+
type: {
|
441
|
+
name: "String"
|
442
|
+
}
|
443
|
+
},
|
444
|
+
operation: {
|
445
|
+
serializedName: "operation",
|
446
|
+
type: {
|
447
|
+
name: "String"
|
448
|
+
}
|
449
|
+
},
|
450
|
+
description: {
|
451
|
+
serializedName: "description",
|
452
|
+
type: {
|
453
|
+
name: "String"
|
454
|
+
}
|
455
|
+
}
|
456
|
+
}
|
457
|
+
}
|
458
|
+
};
|
459
|
+
const StatusBanner = {
|
460
|
+
type: {
|
461
|
+
name: "Composite",
|
462
|
+
className: "StatusBanner",
|
463
|
+
modelProperties: {
|
464
|
+
title: {
|
465
|
+
serializedName: "title",
|
466
|
+
type: {
|
467
|
+
name: "String"
|
468
|
+
}
|
469
|
+
},
|
470
|
+
message: {
|
471
|
+
serializedName: "message",
|
472
|
+
type: {
|
473
|
+
name: "String"
|
474
|
+
}
|
475
|
+
},
|
476
|
+
cloud: {
|
477
|
+
serializedName: "cloud",
|
478
|
+
type: {
|
479
|
+
name: "String"
|
480
|
+
}
|
481
|
+
},
|
482
|
+
lastModifiedTime: {
|
483
|
+
serializedName: "lastModifiedTime",
|
484
|
+
type: {
|
485
|
+
name: "DateTime"
|
486
|
+
}
|
487
|
+
}
|
488
|
+
}
|
489
|
+
}
|
490
|
+
};
|
491
|
+
const StatusActiveEvent = {
|
492
|
+
type: {
|
493
|
+
name: "Composite",
|
494
|
+
className: "StatusActiveEvent",
|
495
|
+
modelProperties: {
|
496
|
+
title: {
|
497
|
+
serializedName: "title",
|
498
|
+
type: {
|
499
|
+
name: "String"
|
500
|
+
}
|
501
|
+
},
|
502
|
+
description: {
|
503
|
+
serializedName: "description",
|
504
|
+
type: {
|
505
|
+
name: "String"
|
506
|
+
}
|
507
|
+
},
|
508
|
+
trackingId: {
|
509
|
+
serializedName: "trackingId",
|
510
|
+
type: {
|
511
|
+
name: "String"
|
512
|
+
}
|
513
|
+
},
|
514
|
+
startTime: {
|
515
|
+
serializedName: "startTime",
|
516
|
+
type: {
|
517
|
+
name: "DateTime"
|
518
|
+
}
|
519
|
+
},
|
520
|
+
cloud: {
|
521
|
+
serializedName: "cloud",
|
522
|
+
type: {
|
523
|
+
name: "String"
|
524
|
+
}
|
525
|
+
},
|
526
|
+
severity: {
|
527
|
+
serializedName: "severity",
|
528
|
+
type: {
|
529
|
+
name: "String"
|
530
|
+
}
|
531
|
+
},
|
532
|
+
stage: {
|
533
|
+
serializedName: "stage",
|
534
|
+
type: {
|
535
|
+
name: "String"
|
536
|
+
}
|
537
|
+
},
|
538
|
+
published: {
|
539
|
+
serializedName: "published",
|
540
|
+
type: {
|
541
|
+
name: "Boolean"
|
542
|
+
}
|
543
|
+
},
|
544
|
+
lastModifiedTime: {
|
545
|
+
serializedName: "lastModifiedTime",
|
546
|
+
type: {
|
547
|
+
name: "DateTime"
|
548
|
+
}
|
549
|
+
},
|
550
|
+
impacts: {
|
551
|
+
serializedName: "impacts",
|
552
|
+
type: {
|
553
|
+
name: "Sequence",
|
554
|
+
element: {
|
555
|
+
type: {
|
556
|
+
name: "Composite",
|
557
|
+
className: "EmergingIssueImpact"
|
558
|
+
}
|
559
|
+
}
|
560
|
+
}
|
561
|
+
}
|
562
|
+
}
|
563
|
+
}
|
564
|
+
};
|
565
|
+
const EmergingIssueImpact = {
|
566
|
+
type: {
|
567
|
+
name: "Composite",
|
568
|
+
className: "EmergingIssueImpact",
|
569
|
+
modelProperties: {
|
570
|
+
id: {
|
571
|
+
serializedName: "id",
|
572
|
+
type: {
|
573
|
+
name: "String"
|
574
|
+
}
|
575
|
+
},
|
576
|
+
name: {
|
577
|
+
serializedName: "name",
|
578
|
+
type: {
|
579
|
+
name: "String"
|
580
|
+
}
|
581
|
+
},
|
582
|
+
regions: {
|
583
|
+
serializedName: "regions",
|
584
|
+
type: {
|
585
|
+
name: "Sequence",
|
586
|
+
element: {
|
587
|
+
type: {
|
588
|
+
name: "Composite",
|
589
|
+
className: "ImpactedRegion"
|
590
|
+
}
|
591
|
+
}
|
592
|
+
}
|
593
|
+
}
|
594
|
+
}
|
595
|
+
}
|
596
|
+
};
|
597
|
+
const ImpactedRegion = {
|
598
|
+
type: {
|
599
|
+
name: "Composite",
|
600
|
+
className: "ImpactedRegion",
|
601
|
+
modelProperties: {
|
602
|
+
id: {
|
603
|
+
serializedName: "id",
|
604
|
+
type: {
|
605
|
+
name: "String"
|
606
|
+
}
|
607
|
+
},
|
608
|
+
name: {
|
609
|
+
serializedName: "name",
|
610
|
+
type: {
|
611
|
+
name: "String"
|
612
|
+
}
|
613
|
+
}
|
614
|
+
}
|
615
|
+
}
|
616
|
+
};
|
617
|
+
const Resource = {
|
618
|
+
type: {
|
619
|
+
name: "Composite",
|
620
|
+
className: "Resource",
|
621
|
+
modelProperties: {
|
622
|
+
id: {
|
623
|
+
serializedName: "id",
|
624
|
+
readOnly: true,
|
625
|
+
type: {
|
626
|
+
name: "String"
|
627
|
+
}
|
628
|
+
},
|
629
|
+
name: {
|
630
|
+
serializedName: "name",
|
631
|
+
readOnly: true,
|
632
|
+
type: {
|
633
|
+
name: "String"
|
634
|
+
}
|
635
|
+
},
|
636
|
+
type: {
|
637
|
+
serializedName: "type",
|
638
|
+
readOnly: true,
|
639
|
+
type: {
|
640
|
+
name: "String"
|
641
|
+
}
|
642
|
+
}
|
643
|
+
}
|
644
|
+
}
|
645
|
+
};
|
646
|
+
const EmergingIssueListResult = {
|
647
|
+
type: {
|
648
|
+
name: "Composite",
|
649
|
+
className: "EmergingIssueListResult",
|
650
|
+
modelProperties: {
|
651
|
+
value: {
|
652
|
+
serializedName: "value",
|
653
|
+
type: {
|
654
|
+
name: "Sequence",
|
655
|
+
element: {
|
656
|
+
type: {
|
657
|
+
name: "Composite",
|
658
|
+
className: "EmergingIssuesGetResult"
|
659
|
+
}
|
660
|
+
}
|
661
|
+
}
|
662
|
+
},
|
663
|
+
nextLink: {
|
664
|
+
serializedName: "nextLink",
|
665
|
+
type: {
|
666
|
+
name: "String"
|
667
|
+
}
|
668
|
+
}
|
669
|
+
}
|
670
|
+
}
|
671
|
+
};
|
672
|
+
const EmergingIssuesGetResult = {
|
673
|
+
type: {
|
674
|
+
name: "Composite",
|
675
|
+
className: "EmergingIssuesGetResult",
|
676
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { refreshTimestamp: {
|
677
|
+
serializedName: "properties.refreshTimestamp",
|
678
|
+
type: {
|
679
|
+
name: "DateTime"
|
680
|
+
}
|
681
|
+
}, statusBanners: {
|
682
|
+
serializedName: "properties.statusBanners",
|
683
|
+
type: {
|
684
|
+
name: "Sequence",
|
685
|
+
element: {
|
686
|
+
type: {
|
687
|
+
name: "Composite",
|
688
|
+
className: "StatusBanner"
|
689
|
+
}
|
690
|
+
}
|
691
|
+
}
|
692
|
+
}, statusActiveEvents: {
|
693
|
+
serializedName: "properties.statusActiveEvents",
|
694
|
+
type: {
|
695
|
+
name: "Sequence",
|
696
|
+
element: {
|
697
|
+
type: {
|
698
|
+
name: "Composite",
|
699
|
+
className: "StatusActiveEvent"
|
700
|
+
}
|
701
|
+
}
|
702
|
+
}
|
703
|
+
} })
|
704
|
+
}
|
705
|
+
};
|
706
|
+
|
707
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
708
|
+
__proto__: null,
|
709
|
+
AvailabilityStatusListResult: AvailabilityStatusListResult,
|
710
|
+
AvailabilityStatus: AvailabilityStatus,
|
711
|
+
AvailabilityStatusProperties: AvailabilityStatusProperties,
|
712
|
+
AvailabilityStatusPropertiesRecentlyResolvedState: AvailabilityStatusPropertiesRecentlyResolvedState,
|
713
|
+
RecommendedAction: RecommendedAction,
|
714
|
+
ServiceImpactingEvent: ServiceImpactingEvent,
|
715
|
+
ServiceImpactingEventStatus: ServiceImpactingEventStatus,
|
716
|
+
ServiceImpactingEventIncidentProperties: ServiceImpactingEventIncidentProperties,
|
717
|
+
ErrorResponse: ErrorResponse,
|
718
|
+
OperationListResult: OperationListResult,
|
719
|
+
Operation: Operation,
|
720
|
+
OperationDisplay: OperationDisplay,
|
721
|
+
StatusBanner: StatusBanner,
|
722
|
+
StatusActiveEvent: StatusActiveEvent,
|
723
|
+
EmergingIssueImpact: EmergingIssueImpact,
|
724
|
+
ImpactedRegion: ImpactedRegion,
|
725
|
+
Resource: Resource,
|
726
|
+
EmergingIssueListResult: EmergingIssueListResult,
|
727
|
+
EmergingIssuesGetResult: EmergingIssuesGetResult
|
728
|
+
});
|
729
|
+
|
730
|
+
/*
|
731
|
+
* Copyright (c) Microsoft Corporation.
|
732
|
+
* Licensed under the MIT License.
|
733
|
+
*
|
734
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
735
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
736
|
+
*/
|
737
|
+
const accept = {
|
738
|
+
parameterPath: "accept",
|
739
|
+
mapper: {
|
740
|
+
defaultValue: "application/json",
|
741
|
+
isConstant: true,
|
742
|
+
serializedName: "Accept",
|
743
|
+
type: {
|
744
|
+
name: "String"
|
745
|
+
}
|
746
|
+
}
|
747
|
+
};
|
748
|
+
const $host = {
|
749
|
+
parameterPath: "$host",
|
750
|
+
mapper: {
|
751
|
+
serializedName: "$host",
|
752
|
+
required: true,
|
753
|
+
type: {
|
754
|
+
name: "String"
|
755
|
+
}
|
756
|
+
},
|
757
|
+
skipEncoding: true
|
758
|
+
};
|
759
|
+
const apiVersion = {
|
760
|
+
parameterPath: "apiVersion",
|
761
|
+
mapper: {
|
762
|
+
defaultValue: "2017-07-01",
|
763
|
+
isConstant: true,
|
764
|
+
serializedName: "api-version",
|
765
|
+
type: {
|
766
|
+
name: "String"
|
767
|
+
}
|
768
|
+
}
|
769
|
+
};
|
770
|
+
const filter = {
|
771
|
+
parameterPath: ["options", "filter"],
|
772
|
+
mapper: {
|
773
|
+
serializedName: "$filter",
|
774
|
+
type: {
|
775
|
+
name: "String"
|
776
|
+
}
|
777
|
+
}
|
778
|
+
};
|
779
|
+
const subscriptionId = {
|
780
|
+
parameterPath: "subscriptionId",
|
781
|
+
mapper: {
|
782
|
+
serializedName: "subscriptionId",
|
783
|
+
required: true,
|
784
|
+
type: {
|
785
|
+
name: "String"
|
786
|
+
}
|
787
|
+
}
|
788
|
+
};
|
789
|
+
const expand = {
|
790
|
+
parameterPath: ["options", "expand"],
|
791
|
+
mapper: {
|
792
|
+
serializedName: "$expand",
|
793
|
+
type: {
|
794
|
+
name: "String"
|
795
|
+
}
|
796
|
+
}
|
797
|
+
};
|
798
|
+
const resourceGroupName = {
|
799
|
+
parameterPath: "resourceGroupName",
|
800
|
+
mapper: {
|
801
|
+
serializedName: "resourceGroupName",
|
802
|
+
required: true,
|
803
|
+
type: {
|
804
|
+
name: "String"
|
805
|
+
}
|
806
|
+
}
|
807
|
+
};
|
808
|
+
const resourceUri = {
|
809
|
+
parameterPath: "resourceUri",
|
810
|
+
mapper: {
|
811
|
+
serializedName: "resourceUri",
|
812
|
+
required: true,
|
813
|
+
type: {
|
814
|
+
name: "String"
|
815
|
+
}
|
816
|
+
},
|
817
|
+
skipEncoding: true
|
818
|
+
};
|
819
|
+
const nextLink = {
|
820
|
+
parameterPath: "nextLink",
|
821
|
+
mapper: {
|
822
|
+
serializedName: "nextLink",
|
823
|
+
required: true,
|
824
|
+
type: {
|
825
|
+
name: "String"
|
826
|
+
}
|
827
|
+
},
|
828
|
+
skipEncoding: true
|
829
|
+
};
|
830
|
+
const issueName = {
|
831
|
+
parameterPath: "issueName",
|
832
|
+
mapper: {
|
833
|
+
defaultValue: "default",
|
834
|
+
isConstant: true,
|
835
|
+
serializedName: "issueName",
|
836
|
+
type: {
|
837
|
+
name: "String"
|
838
|
+
}
|
839
|
+
}
|
840
|
+
};
|
841
|
+
|
842
|
+
/*
|
843
|
+
* Copyright (c) Microsoft Corporation.
|
844
|
+
* Licensed under the MIT License.
|
845
|
+
*
|
846
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
847
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
848
|
+
*/
|
849
|
+
/// <reference lib="esnext.asynciterable" />
|
850
|
+
/** Class containing AvailabilityStatuses operations. */
|
851
|
+
class AvailabilityStatusesImpl {
|
852
|
+
/**
|
853
|
+
* Initialize a new instance of the class AvailabilityStatuses class.
|
854
|
+
* @param client Reference to the service client
|
855
|
+
*/
|
856
|
+
constructor(client) {
|
857
|
+
this.client = client;
|
858
|
+
}
|
859
|
+
/**
|
860
|
+
* Lists the current availability status for all the resources in the subscription. Use the nextLink
|
861
|
+
* property in the response to get the next page of availability statuses.
|
862
|
+
* @param options The options parameters.
|
863
|
+
*/
|
864
|
+
listBySubscriptionId(options) {
|
865
|
+
const iter = this.listBySubscriptionIdPagingAll(options);
|
866
|
+
return {
|
867
|
+
next() {
|
868
|
+
return iter.next();
|
869
|
+
},
|
870
|
+
[Symbol.asyncIterator]() {
|
871
|
+
return this;
|
872
|
+
},
|
873
|
+
byPage: () => {
|
874
|
+
return this.listBySubscriptionIdPagingPage(options);
|
875
|
+
}
|
876
|
+
};
|
877
|
+
}
|
878
|
+
listBySubscriptionIdPagingPage(options) {
|
879
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
|
880
|
+
let result = yield tslib.__await(this._listBySubscriptionId(options));
|
881
|
+
yield yield tslib.__await(result.value || []);
|
882
|
+
let continuationToken = result.nextLink;
|
883
|
+
while (continuationToken) {
|
884
|
+
result = yield tslib.__await(this._listBySubscriptionIdNext(continuationToken, options));
|
885
|
+
continuationToken = result.nextLink;
|
886
|
+
yield yield tslib.__await(result.value || []);
|
887
|
+
}
|
888
|
+
});
|
889
|
+
}
|
890
|
+
listBySubscriptionIdPagingAll(options) {
|
891
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingAll_1() {
|
892
|
+
var e_1, _a;
|
893
|
+
try {
|
894
|
+
for (var _b = tslib.__asyncValues(this.listBySubscriptionIdPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
895
|
+
const page = _c.value;
|
896
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
897
|
+
}
|
898
|
+
}
|
899
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
900
|
+
finally {
|
901
|
+
try {
|
902
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
903
|
+
}
|
904
|
+
finally { if (e_1) throw e_1.error; }
|
905
|
+
}
|
906
|
+
});
|
907
|
+
}
|
908
|
+
/**
|
909
|
+
* Lists the current availability status for all the resources in the resource group. Use the nextLink
|
910
|
+
* property in the response to get the next page of availability statuses.
|
911
|
+
* @param resourceGroupName The name of the resource group.
|
912
|
+
* @param options The options parameters.
|
913
|
+
*/
|
914
|
+
listByResourceGroup(resourceGroupName, options) {
|
915
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
916
|
+
return {
|
917
|
+
next() {
|
918
|
+
return iter.next();
|
919
|
+
},
|
920
|
+
[Symbol.asyncIterator]() {
|
921
|
+
return this;
|
922
|
+
},
|
923
|
+
byPage: () => {
|
924
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
925
|
+
}
|
926
|
+
};
|
927
|
+
}
|
928
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
929
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
930
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
931
|
+
yield yield tslib.__await(result.value || []);
|
932
|
+
let continuationToken = result.nextLink;
|
933
|
+
while (continuationToken) {
|
934
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
935
|
+
continuationToken = result.nextLink;
|
936
|
+
yield yield tslib.__await(result.value || []);
|
937
|
+
}
|
938
|
+
});
|
939
|
+
}
|
940
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
941
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
942
|
+
var e_2, _a;
|
943
|
+
try {
|
944
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
945
|
+
const page = _c.value;
|
946
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
947
|
+
}
|
948
|
+
}
|
949
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
950
|
+
finally {
|
951
|
+
try {
|
952
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
953
|
+
}
|
954
|
+
finally { if (e_2) throw e_2.error; }
|
955
|
+
}
|
956
|
+
});
|
957
|
+
}
|
958
|
+
/**
|
959
|
+
* Lists all historical availability transitions and impacting events for a single resource. Use the
|
960
|
+
* nextLink property in the response to get the next page of availability status
|
961
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
962
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
963
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
964
|
+
* and
|
965
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
966
|
+
* @param options The options parameters.
|
967
|
+
*/
|
968
|
+
list(resourceUri, options) {
|
969
|
+
const iter = this.listPagingAll(resourceUri, options);
|
970
|
+
return {
|
971
|
+
next() {
|
972
|
+
return iter.next();
|
973
|
+
},
|
974
|
+
[Symbol.asyncIterator]() {
|
975
|
+
return this;
|
976
|
+
},
|
977
|
+
byPage: () => {
|
978
|
+
return this.listPagingPage(resourceUri, options);
|
979
|
+
}
|
980
|
+
};
|
981
|
+
}
|
982
|
+
listPagingPage(resourceUri, options) {
|
983
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
984
|
+
let result = yield tslib.__await(this._list(resourceUri, options));
|
985
|
+
yield yield tslib.__await(result.value || []);
|
986
|
+
let continuationToken = result.nextLink;
|
987
|
+
while (continuationToken) {
|
988
|
+
result = yield tslib.__await(this._listNext(resourceUri, continuationToken, options));
|
989
|
+
continuationToken = result.nextLink;
|
990
|
+
yield yield tslib.__await(result.value || []);
|
991
|
+
}
|
992
|
+
});
|
993
|
+
}
|
994
|
+
listPagingAll(resourceUri, options) {
|
995
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
996
|
+
var e_3, _a;
|
997
|
+
try {
|
998
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceUri, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
999
|
+
const page = _c.value;
|
1000
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1001
|
+
}
|
1002
|
+
}
|
1003
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
1004
|
+
finally {
|
1005
|
+
try {
|
1006
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
1007
|
+
}
|
1008
|
+
finally { if (e_3) throw e_3.error; }
|
1009
|
+
}
|
1010
|
+
});
|
1011
|
+
}
|
1012
|
+
/**
|
1013
|
+
* Lists the current availability status for all the resources in the subscription. Use the nextLink
|
1014
|
+
* property in the response to get the next page of availability statuses.
|
1015
|
+
* @param options The options parameters.
|
1016
|
+
*/
|
1017
|
+
_listBySubscriptionId(options) {
|
1018
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec);
|
1019
|
+
}
|
1020
|
+
/**
|
1021
|
+
* Lists the current availability status for all the resources in the resource group. Use the nextLink
|
1022
|
+
* property in the response to get the next page of availability statuses.
|
1023
|
+
* @param resourceGroupName The name of the resource group.
|
1024
|
+
* @param options The options parameters.
|
1025
|
+
*/
|
1026
|
+
_listByResourceGroup(resourceGroupName, options) {
|
1027
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
1028
|
+
}
|
1029
|
+
/**
|
1030
|
+
* Gets current availability status for a single resource
|
1031
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
1032
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
1033
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
1034
|
+
* and
|
1035
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
1036
|
+
* @param options The options parameters.
|
1037
|
+
*/
|
1038
|
+
getByResource(resourceUri, options) {
|
1039
|
+
return this.client.sendOperationRequest({ resourceUri, options }, getByResourceOperationSpec);
|
1040
|
+
}
|
1041
|
+
/**
|
1042
|
+
* Lists all historical availability transitions and impacting events for a single resource. Use the
|
1043
|
+
* nextLink property in the response to get the next page of availability status
|
1044
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
1045
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
1046
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
1047
|
+
* and
|
1048
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
1049
|
+
* @param options The options parameters.
|
1050
|
+
*/
|
1051
|
+
_list(resourceUri, options) {
|
1052
|
+
return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec);
|
1053
|
+
}
|
1054
|
+
/**
|
1055
|
+
* ListBySubscriptionIdNext
|
1056
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.
|
1057
|
+
* @param options The options parameters.
|
1058
|
+
*/
|
1059
|
+
_listBySubscriptionIdNext(nextLink, options) {
|
1060
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionIdNextOperationSpec);
|
1061
|
+
}
|
1062
|
+
/**
|
1063
|
+
* ListByResourceGroupNext
|
1064
|
+
* @param resourceGroupName The name of the resource group.
|
1065
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
1066
|
+
* @param options The options parameters.
|
1067
|
+
*/
|
1068
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
1069
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
1070
|
+
}
|
1071
|
+
/**
|
1072
|
+
* ListNext
|
1073
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
1074
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
1075
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
1076
|
+
* and
|
1077
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
1078
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
1079
|
+
* @param options The options parameters.
|
1080
|
+
*/
|
1081
|
+
_listNext(resourceUri, nextLink, options) {
|
1082
|
+
return this.client.sendOperationRequest({ resourceUri, nextLink, options }, listNextOperationSpec);
|
1083
|
+
}
|
1084
|
+
}
|
1085
|
+
// Operation Specifications
|
1086
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
1087
|
+
const listBySubscriptionIdOperationSpec = {
|
1088
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses",
|
1089
|
+
httpMethod: "GET",
|
1090
|
+
responses: {
|
1091
|
+
200: {
|
1092
|
+
bodyMapper: AvailabilityStatusListResult
|
1093
|
+
},
|
1094
|
+
default: {
|
1095
|
+
bodyMapper: ErrorResponse
|
1096
|
+
}
|
1097
|
+
},
|
1098
|
+
queryParameters: [
|
1099
|
+
apiVersion,
|
1100
|
+
filter,
|
1101
|
+
expand
|
1102
|
+
],
|
1103
|
+
urlParameters: [$host, subscriptionId],
|
1104
|
+
headerParameters: [accept],
|
1105
|
+
serializer
|
1106
|
+
};
|
1107
|
+
const listByResourceGroupOperationSpec = {
|
1108
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses",
|
1109
|
+
httpMethod: "GET",
|
1110
|
+
responses: {
|
1111
|
+
200: {
|
1112
|
+
bodyMapper: AvailabilityStatusListResult
|
1113
|
+
},
|
1114
|
+
default: {
|
1115
|
+
bodyMapper: ErrorResponse
|
1116
|
+
}
|
1117
|
+
},
|
1118
|
+
queryParameters: [
|
1119
|
+
apiVersion,
|
1120
|
+
filter,
|
1121
|
+
expand
|
1122
|
+
],
|
1123
|
+
urlParameters: [
|
1124
|
+
$host,
|
1125
|
+
subscriptionId,
|
1126
|
+
resourceGroupName
|
1127
|
+
],
|
1128
|
+
headerParameters: [accept],
|
1129
|
+
serializer
|
1130
|
+
};
|
1131
|
+
const getByResourceOperationSpec = {
|
1132
|
+
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
|
1133
|
+
httpMethod: "GET",
|
1134
|
+
responses: {
|
1135
|
+
200: {
|
1136
|
+
bodyMapper: AvailabilityStatus
|
1137
|
+
},
|
1138
|
+
default: {
|
1139
|
+
bodyMapper: ErrorResponse
|
1140
|
+
}
|
1141
|
+
},
|
1142
|
+
queryParameters: [
|
1143
|
+
apiVersion,
|
1144
|
+
filter,
|
1145
|
+
expand
|
1146
|
+
],
|
1147
|
+
urlParameters: [$host, resourceUri],
|
1148
|
+
headerParameters: [accept],
|
1149
|
+
serializer
|
1150
|
+
};
|
1151
|
+
const listOperationSpec = {
|
1152
|
+
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses",
|
1153
|
+
httpMethod: "GET",
|
1154
|
+
responses: {
|
1155
|
+
200: {
|
1156
|
+
bodyMapper: AvailabilityStatusListResult
|
1157
|
+
},
|
1158
|
+
default: {
|
1159
|
+
bodyMapper: ErrorResponse
|
1160
|
+
}
|
1161
|
+
},
|
1162
|
+
queryParameters: [
|
1163
|
+
apiVersion,
|
1164
|
+
filter,
|
1165
|
+
expand
|
1166
|
+
],
|
1167
|
+
urlParameters: [$host, resourceUri],
|
1168
|
+
headerParameters: [accept],
|
1169
|
+
serializer
|
1170
|
+
};
|
1171
|
+
const listBySubscriptionIdNextOperationSpec = {
|
1172
|
+
path: "{nextLink}",
|
1173
|
+
httpMethod: "GET",
|
1174
|
+
responses: {
|
1175
|
+
200: {
|
1176
|
+
bodyMapper: AvailabilityStatusListResult
|
1177
|
+
},
|
1178
|
+
default: {
|
1179
|
+
bodyMapper: ErrorResponse
|
1180
|
+
}
|
1181
|
+
},
|
1182
|
+
queryParameters: [
|
1183
|
+
apiVersion,
|
1184
|
+
filter,
|
1185
|
+
expand
|
1186
|
+
],
|
1187
|
+
urlParameters: [
|
1188
|
+
$host,
|
1189
|
+
subscriptionId,
|
1190
|
+
nextLink
|
1191
|
+
],
|
1192
|
+
headerParameters: [accept],
|
1193
|
+
serializer
|
1194
|
+
};
|
1195
|
+
const listByResourceGroupNextOperationSpec = {
|
1196
|
+
path: "{nextLink}",
|
1197
|
+
httpMethod: "GET",
|
1198
|
+
responses: {
|
1199
|
+
200: {
|
1200
|
+
bodyMapper: AvailabilityStatusListResult
|
1201
|
+
},
|
1202
|
+
default: {
|
1203
|
+
bodyMapper: ErrorResponse
|
1204
|
+
}
|
1205
|
+
},
|
1206
|
+
queryParameters: [
|
1207
|
+
apiVersion,
|
1208
|
+
filter,
|
1209
|
+
expand
|
1210
|
+
],
|
1211
|
+
urlParameters: [
|
1212
|
+
$host,
|
1213
|
+
subscriptionId,
|
1214
|
+
resourceGroupName,
|
1215
|
+
nextLink
|
1216
|
+
],
|
1217
|
+
headerParameters: [accept],
|
1218
|
+
serializer
|
1219
|
+
};
|
1220
|
+
const listNextOperationSpec = {
|
1221
|
+
path: "{nextLink}",
|
1222
|
+
httpMethod: "GET",
|
1223
|
+
responses: {
|
1224
|
+
200: {
|
1225
|
+
bodyMapper: AvailabilityStatusListResult
|
1226
|
+
},
|
1227
|
+
default: {
|
1228
|
+
bodyMapper: ErrorResponse
|
1229
|
+
}
|
1230
|
+
},
|
1231
|
+
queryParameters: [
|
1232
|
+
apiVersion,
|
1233
|
+
filter,
|
1234
|
+
expand
|
1235
|
+
],
|
1236
|
+
urlParameters: [
|
1237
|
+
$host,
|
1238
|
+
resourceUri,
|
1239
|
+
nextLink
|
1240
|
+
],
|
1241
|
+
headerParameters: [accept],
|
1242
|
+
serializer
|
1243
|
+
};
|
1244
|
+
|
1245
|
+
/*
|
1246
|
+
* Copyright (c) Microsoft Corporation.
|
1247
|
+
* Licensed under the MIT License.
|
1248
|
+
*
|
1249
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1250
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1251
|
+
*/
|
1252
|
+
/// <reference lib="esnext.asynciterable" />
|
1253
|
+
/** Class containing ChildAvailabilityStatuses operations. */
|
1254
|
+
class ChildAvailabilityStatusesImpl {
|
1255
|
+
/**
|
1256
|
+
* Initialize a new instance of the class ChildAvailabilityStatuses class.
|
1257
|
+
* @param client Reference to the service client
|
1258
|
+
*/
|
1259
|
+
constructor(client) {
|
1260
|
+
this.client = client;
|
1261
|
+
}
|
1262
|
+
/**
|
1263
|
+
* Lists the historical availability statuses for a single child resource. Use the nextLink property in
|
1264
|
+
* the response to get the next page of availability status
|
1265
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
1266
|
+
* type. Currently the API only support one nesting level resource types :
|
1267
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
1268
|
+
* @param options The options parameters.
|
1269
|
+
*/
|
1270
|
+
list(resourceUri, options) {
|
1271
|
+
const iter = this.listPagingAll(resourceUri, options);
|
1272
|
+
return {
|
1273
|
+
next() {
|
1274
|
+
return iter.next();
|
1275
|
+
},
|
1276
|
+
[Symbol.asyncIterator]() {
|
1277
|
+
return this;
|
1278
|
+
},
|
1279
|
+
byPage: () => {
|
1280
|
+
return this.listPagingPage(resourceUri, options);
|
1281
|
+
}
|
1282
|
+
};
|
1283
|
+
}
|
1284
|
+
listPagingPage(resourceUri, options) {
|
1285
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
1286
|
+
let result = yield tslib.__await(this._list(resourceUri, options));
|
1287
|
+
yield yield tslib.__await(result.value || []);
|
1288
|
+
let continuationToken = result.nextLink;
|
1289
|
+
while (continuationToken) {
|
1290
|
+
result = yield tslib.__await(this._listNext(resourceUri, continuationToken, options));
|
1291
|
+
continuationToken = result.nextLink;
|
1292
|
+
yield yield tslib.__await(result.value || []);
|
1293
|
+
}
|
1294
|
+
});
|
1295
|
+
}
|
1296
|
+
listPagingAll(resourceUri, options) {
|
1297
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
1298
|
+
var e_1, _a;
|
1299
|
+
try {
|
1300
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceUri, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
1301
|
+
const page = _c.value;
|
1302
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1303
|
+
}
|
1304
|
+
}
|
1305
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
1306
|
+
finally {
|
1307
|
+
try {
|
1308
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
1309
|
+
}
|
1310
|
+
finally { if (e_1) throw e_1.error; }
|
1311
|
+
}
|
1312
|
+
});
|
1313
|
+
}
|
1314
|
+
/**
|
1315
|
+
* Gets current availability status for a single resource
|
1316
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
1317
|
+
* type. Currently the API only support one nesting level resource types :
|
1318
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
1319
|
+
* @param options The options parameters.
|
1320
|
+
*/
|
1321
|
+
getByResource(resourceUri, options) {
|
1322
|
+
return this.client.sendOperationRequest({ resourceUri, options }, getByResourceOperationSpec$1);
|
1323
|
+
}
|
1324
|
+
/**
|
1325
|
+
* Lists the historical availability statuses for a single child resource. Use the nextLink property in
|
1326
|
+
* the response to get the next page of availability status
|
1327
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
1328
|
+
* type. Currently the API only support one nesting level resource types :
|
1329
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
1330
|
+
* @param options The options parameters.
|
1331
|
+
*/
|
1332
|
+
_list(resourceUri, options) {
|
1333
|
+
return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$1);
|
1334
|
+
}
|
1335
|
+
/**
|
1336
|
+
* ListNext
|
1337
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
1338
|
+
* type. Currently the API only support one nesting level resource types :
|
1339
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
1340
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
1341
|
+
* @param options The options parameters.
|
1342
|
+
*/
|
1343
|
+
_listNext(resourceUri, nextLink, options) {
|
1344
|
+
return this.client.sendOperationRequest({ resourceUri, nextLink, options }, listNextOperationSpec$1);
|
1345
|
+
}
|
1346
|
+
}
|
1347
|
+
// Operation Specifications
|
1348
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
1349
|
+
const getByResourceOperationSpec$1 = {
|
1350
|
+
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current",
|
1351
|
+
httpMethod: "GET",
|
1352
|
+
responses: {
|
1353
|
+
200: {
|
1354
|
+
bodyMapper: AvailabilityStatus
|
1355
|
+
},
|
1356
|
+
default: {
|
1357
|
+
bodyMapper: ErrorResponse
|
1358
|
+
}
|
1359
|
+
},
|
1360
|
+
queryParameters: [
|
1361
|
+
apiVersion,
|
1362
|
+
filter,
|
1363
|
+
expand
|
1364
|
+
],
|
1365
|
+
urlParameters: [$host, resourceUri],
|
1366
|
+
headerParameters: [accept],
|
1367
|
+
serializer: serializer$1
|
1368
|
+
};
|
1369
|
+
const listOperationSpec$1 = {
|
1370
|
+
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses",
|
1371
|
+
httpMethod: "GET",
|
1372
|
+
responses: {
|
1373
|
+
200: {
|
1374
|
+
bodyMapper: AvailabilityStatusListResult
|
1375
|
+
},
|
1376
|
+
default: {
|
1377
|
+
bodyMapper: ErrorResponse
|
1378
|
+
}
|
1379
|
+
},
|
1380
|
+
queryParameters: [
|
1381
|
+
apiVersion,
|
1382
|
+
filter,
|
1383
|
+
expand
|
1384
|
+
],
|
1385
|
+
urlParameters: [$host, resourceUri],
|
1386
|
+
headerParameters: [accept],
|
1387
|
+
serializer: serializer$1
|
1388
|
+
};
|
1389
|
+
const listNextOperationSpec$1 = {
|
1390
|
+
path: "{nextLink}",
|
1391
|
+
httpMethod: "GET",
|
1392
|
+
responses: {
|
1393
|
+
200: {
|
1394
|
+
bodyMapper: AvailabilityStatusListResult
|
1395
|
+
},
|
1396
|
+
default: {
|
1397
|
+
bodyMapper: ErrorResponse
|
1398
|
+
}
|
1399
|
+
},
|
1400
|
+
queryParameters: [
|
1401
|
+
apiVersion,
|
1402
|
+
filter,
|
1403
|
+
expand
|
1404
|
+
],
|
1405
|
+
urlParameters: [
|
1406
|
+
$host,
|
1407
|
+
resourceUri,
|
1408
|
+
nextLink
|
1409
|
+
],
|
1410
|
+
headerParameters: [accept],
|
1411
|
+
serializer: serializer$1
|
1412
|
+
};
|
1413
|
+
|
1414
|
+
/*
|
1415
|
+
* Copyright (c) Microsoft Corporation.
|
1416
|
+
* Licensed under the MIT License.
|
1417
|
+
*
|
1418
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1419
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1420
|
+
*/
|
1421
|
+
/// <reference lib="esnext.asynciterable" />
|
1422
|
+
/** Class containing ChildResources operations. */
|
1423
|
+
class ChildResourcesImpl {
|
1424
|
+
/**
|
1425
|
+
* Initialize a new instance of the class ChildResources class.
|
1426
|
+
* @param client Reference to the service client
|
1427
|
+
*/
|
1428
|
+
constructor(client) {
|
1429
|
+
this.client = client;
|
1430
|
+
}
|
1431
|
+
/**
|
1432
|
+
* Lists the all the children and its current health status for a parent resource. Use the nextLink
|
1433
|
+
* property in the response to get the next page of children current health
|
1434
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
1435
|
+
* type. Currently the API only support not nested parent resource type:
|
1436
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
1437
|
+
* @param options The options parameters.
|
1438
|
+
*/
|
1439
|
+
list(resourceUri, options) {
|
1440
|
+
const iter = this.listPagingAll(resourceUri, options);
|
1441
|
+
return {
|
1442
|
+
next() {
|
1443
|
+
return iter.next();
|
1444
|
+
},
|
1445
|
+
[Symbol.asyncIterator]() {
|
1446
|
+
return this;
|
1447
|
+
},
|
1448
|
+
byPage: () => {
|
1449
|
+
return this.listPagingPage(resourceUri, options);
|
1450
|
+
}
|
1451
|
+
};
|
1452
|
+
}
|
1453
|
+
listPagingPage(resourceUri, options) {
|
1454
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
1455
|
+
let result = yield tslib.__await(this._list(resourceUri, options));
|
1456
|
+
yield yield tslib.__await(result.value || []);
|
1457
|
+
let continuationToken = result.nextLink;
|
1458
|
+
while (continuationToken) {
|
1459
|
+
result = yield tslib.__await(this._listNext(resourceUri, continuationToken, options));
|
1460
|
+
continuationToken = result.nextLink;
|
1461
|
+
yield yield tslib.__await(result.value || []);
|
1462
|
+
}
|
1463
|
+
});
|
1464
|
+
}
|
1465
|
+
listPagingAll(resourceUri, options) {
|
1466
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
1467
|
+
var e_1, _a;
|
1468
|
+
try {
|
1469
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceUri, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
1470
|
+
const page = _c.value;
|
1471
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1472
|
+
}
|
1473
|
+
}
|
1474
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
1475
|
+
finally {
|
1476
|
+
try {
|
1477
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
1478
|
+
}
|
1479
|
+
finally { if (e_1) throw e_1.error; }
|
1480
|
+
}
|
1481
|
+
});
|
1482
|
+
}
|
1483
|
+
/**
|
1484
|
+
* Lists the all the children and its current health status for a parent resource. Use the nextLink
|
1485
|
+
* property in the response to get the next page of children current health
|
1486
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
1487
|
+
* type. Currently the API only support not nested parent resource type:
|
1488
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
1489
|
+
* @param options The options parameters.
|
1490
|
+
*/
|
1491
|
+
_list(resourceUri, options) {
|
1492
|
+
return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$2);
|
1493
|
+
}
|
1494
|
+
/**
|
1495
|
+
* ListNext
|
1496
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
1497
|
+
* type. Currently the API only support not nested parent resource type:
|
1498
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
1499
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
1500
|
+
* @param options The options parameters.
|
1501
|
+
*/
|
1502
|
+
_listNext(resourceUri, nextLink, options) {
|
1503
|
+
return this.client.sendOperationRequest({ resourceUri, nextLink, options }, listNextOperationSpec$2);
|
1504
|
+
}
|
1505
|
+
}
|
1506
|
+
// Operation Specifications
|
1507
|
+
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
1508
|
+
const listOperationSpec$2 = {
|
1509
|
+
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/childResources",
|
1510
|
+
httpMethod: "GET",
|
1511
|
+
responses: {
|
1512
|
+
200: {
|
1513
|
+
bodyMapper: AvailabilityStatusListResult
|
1514
|
+
},
|
1515
|
+
default: {
|
1516
|
+
bodyMapper: ErrorResponse
|
1517
|
+
}
|
1518
|
+
},
|
1519
|
+
queryParameters: [
|
1520
|
+
apiVersion,
|
1521
|
+
filter,
|
1522
|
+
expand
|
1523
|
+
],
|
1524
|
+
urlParameters: [$host, resourceUri],
|
1525
|
+
headerParameters: [accept],
|
1526
|
+
serializer: serializer$2
|
1527
|
+
};
|
1528
|
+
const listNextOperationSpec$2 = {
|
1529
|
+
path: "{nextLink}",
|
1530
|
+
httpMethod: "GET",
|
1531
|
+
responses: {
|
1532
|
+
200: {
|
1533
|
+
bodyMapper: AvailabilityStatusListResult
|
1534
|
+
},
|
1535
|
+
default: {
|
1536
|
+
bodyMapper: ErrorResponse
|
1537
|
+
}
|
1538
|
+
},
|
1539
|
+
queryParameters: [
|
1540
|
+
apiVersion,
|
1541
|
+
filter,
|
1542
|
+
expand
|
1543
|
+
],
|
1544
|
+
urlParameters: [
|
1545
|
+
$host,
|
1546
|
+
resourceUri,
|
1547
|
+
nextLink
|
1548
|
+
],
|
1549
|
+
headerParameters: [accept],
|
1550
|
+
serializer: serializer$2
|
1551
|
+
};
|
1552
|
+
|
1553
|
+
/*
|
1554
|
+
* Copyright (c) Microsoft Corporation.
|
1555
|
+
* Licensed under the MIT License.
|
1556
|
+
*
|
1557
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1558
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1559
|
+
*/
|
1560
|
+
/** Class containing Operations operations. */
|
1561
|
+
class OperationsImpl {
|
1562
|
+
/**
|
1563
|
+
* Initialize a new instance of the class Operations class.
|
1564
|
+
* @param client Reference to the service client
|
1565
|
+
*/
|
1566
|
+
constructor(client) {
|
1567
|
+
this.client = client;
|
1568
|
+
}
|
1569
|
+
/**
|
1570
|
+
* Lists available operations for the resourcehealth resource provider
|
1571
|
+
* @param options The options parameters.
|
1572
|
+
*/
|
1573
|
+
list(options) {
|
1574
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
1575
|
+
}
|
1576
|
+
}
|
1577
|
+
// Operation Specifications
|
1578
|
+
const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
1579
|
+
const listOperationSpec$3 = {
|
1580
|
+
path: "/providers/Microsoft.ResourceHealth/operations",
|
1581
|
+
httpMethod: "GET",
|
1582
|
+
responses: {
|
1583
|
+
200: {
|
1584
|
+
bodyMapper: OperationListResult
|
1585
|
+
},
|
1586
|
+
default: {
|
1587
|
+
bodyMapper: ErrorResponse
|
1588
|
+
}
|
1589
|
+
},
|
1590
|
+
queryParameters: [apiVersion],
|
1591
|
+
urlParameters: [$host],
|
1592
|
+
headerParameters: [accept],
|
1593
|
+
serializer: serializer$3
|
1594
|
+
};
|
1595
|
+
|
1596
|
+
/*
|
1597
|
+
* Copyright (c) Microsoft Corporation.
|
1598
|
+
* Licensed under the MIT License.
|
1599
|
+
*
|
1600
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1601
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1602
|
+
*/
|
1603
|
+
/// <reference lib="esnext.asynciterable" />
|
1604
|
+
/** Class containing EmergingIssues operations. */
|
1605
|
+
class EmergingIssuesImpl {
|
1606
|
+
/**
|
1607
|
+
* Initialize a new instance of the class EmergingIssues class.
|
1608
|
+
* @param client Reference to the service client
|
1609
|
+
*/
|
1610
|
+
constructor(client) {
|
1611
|
+
this.client = client;
|
1612
|
+
}
|
1613
|
+
/**
|
1614
|
+
* Lists Azure services' emerging issues.
|
1615
|
+
* @param options The options parameters.
|
1616
|
+
*/
|
1617
|
+
list(options) {
|
1618
|
+
const iter = this.listPagingAll(options);
|
1619
|
+
return {
|
1620
|
+
next() {
|
1621
|
+
return iter.next();
|
1622
|
+
},
|
1623
|
+
[Symbol.asyncIterator]() {
|
1624
|
+
return this;
|
1625
|
+
},
|
1626
|
+
byPage: () => {
|
1627
|
+
return this.listPagingPage(options);
|
1628
|
+
}
|
1629
|
+
};
|
1630
|
+
}
|
1631
|
+
listPagingPage(options) {
|
1632
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
1633
|
+
let result = yield tslib.__await(this._list(options));
|
1634
|
+
yield yield tslib.__await(result.value || []);
|
1635
|
+
let continuationToken = result.nextLink;
|
1636
|
+
while (continuationToken) {
|
1637
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
1638
|
+
continuationToken = result.nextLink;
|
1639
|
+
yield yield tslib.__await(result.value || []);
|
1640
|
+
}
|
1641
|
+
});
|
1642
|
+
}
|
1643
|
+
listPagingAll(options) {
|
1644
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
1645
|
+
var e_1, _a;
|
1646
|
+
try {
|
1647
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
1648
|
+
const page = _c.value;
|
1649
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1650
|
+
}
|
1651
|
+
}
|
1652
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
1653
|
+
finally {
|
1654
|
+
try {
|
1655
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
1656
|
+
}
|
1657
|
+
finally { if (e_1) throw e_1.error; }
|
1658
|
+
}
|
1659
|
+
});
|
1660
|
+
}
|
1661
|
+
/**
|
1662
|
+
* Gets Azure services' emerging issues.
|
1663
|
+
* @param options The options parameters.
|
1664
|
+
*/
|
1665
|
+
get(options) {
|
1666
|
+
return this.client.sendOperationRequest({ options }, getOperationSpec);
|
1667
|
+
}
|
1668
|
+
/**
|
1669
|
+
* Lists Azure services' emerging issues.
|
1670
|
+
* @param options The options parameters.
|
1671
|
+
*/
|
1672
|
+
_list(options) {
|
1673
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
1674
|
+
}
|
1675
|
+
/**
|
1676
|
+
* ListNext
|
1677
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
1678
|
+
* @param options The options parameters.
|
1679
|
+
*/
|
1680
|
+
_listNext(nextLink, options) {
|
1681
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$3);
|
1682
|
+
}
|
1683
|
+
}
|
1684
|
+
// Operation Specifications
|
1685
|
+
const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
1686
|
+
const getOperationSpec = {
|
1687
|
+
path: "/providers/Microsoft.ResourceHealth/emergingIssues/{issueName}",
|
1688
|
+
httpMethod: "GET",
|
1689
|
+
responses: {
|
1690
|
+
200: {
|
1691
|
+
bodyMapper: EmergingIssuesGetResult
|
1692
|
+
},
|
1693
|
+
default: {
|
1694
|
+
bodyMapper: ErrorResponse
|
1695
|
+
}
|
1696
|
+
},
|
1697
|
+
queryParameters: [apiVersion],
|
1698
|
+
urlParameters: [$host, issueName],
|
1699
|
+
headerParameters: [accept],
|
1700
|
+
serializer: serializer$4
|
1701
|
+
};
|
1702
|
+
const listOperationSpec$4 = {
|
1703
|
+
path: "/providers/Microsoft.ResourceHealth/emergingIssues",
|
1704
|
+
httpMethod: "GET",
|
1705
|
+
responses: {
|
1706
|
+
200: {
|
1707
|
+
bodyMapper: EmergingIssueListResult
|
1708
|
+
},
|
1709
|
+
default: {
|
1710
|
+
bodyMapper: ErrorResponse
|
1711
|
+
}
|
1712
|
+
},
|
1713
|
+
queryParameters: [apiVersion],
|
1714
|
+
urlParameters: [$host],
|
1715
|
+
headerParameters: [accept],
|
1716
|
+
serializer: serializer$4
|
1717
|
+
};
|
1718
|
+
const listNextOperationSpec$3 = {
|
1719
|
+
path: "{nextLink}",
|
1720
|
+
httpMethod: "GET",
|
1721
|
+
responses: {
|
1722
|
+
200: {
|
1723
|
+
bodyMapper: EmergingIssueListResult
|
1724
|
+
},
|
1725
|
+
default: {
|
1726
|
+
bodyMapper: ErrorResponse
|
1727
|
+
}
|
1728
|
+
},
|
1729
|
+
queryParameters: [apiVersion],
|
1730
|
+
urlParameters: [$host, nextLink],
|
1731
|
+
headerParameters: [accept],
|
1732
|
+
serializer: serializer$4
|
1733
|
+
};
|
1734
|
+
|
1735
|
+
/*
|
1736
|
+
* Copyright (c) Microsoft Corporation.
|
1737
|
+
* Licensed under the MIT License.
|
1738
|
+
*
|
1739
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1740
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1741
|
+
*/
|
1742
|
+
class MicrosoftResourceHealthContext extends coreClient.ServiceClient {
|
1743
|
+
/**
|
1744
|
+
* Initializes a new instance of the MicrosoftResourceHealthContext class.
|
1745
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
1746
|
+
* @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
|
1747
|
+
* The subscription ID forms part of the URI for every service call.
|
1748
|
+
* @param options The parameter options
|
1749
|
+
*/
|
1750
|
+
constructor(credentials, subscriptionId, options) {
|
1751
|
+
if (credentials === undefined) {
|
1752
|
+
throw new Error("'credentials' cannot be null");
|
1753
|
+
}
|
1754
|
+
if (subscriptionId === undefined) {
|
1755
|
+
throw new Error("'subscriptionId' cannot be null");
|
1756
|
+
}
|
1757
|
+
// Initializing default values for options
|
1758
|
+
if (!options) {
|
1759
|
+
options = {};
|
1760
|
+
}
|
1761
|
+
const defaults = {
|
1762
|
+
requestContentType: "application/json; charset=utf-8",
|
1763
|
+
credential: credentials
|
1764
|
+
};
|
1765
|
+
const packageDetails = `azsdk-js-arm-resourcehealth/3.0.0-beta.1`;
|
1766
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
1767
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
1768
|
+
: `${packageDetails}`;
|
1769
|
+
if (!options.credentialScopes) {
|
1770
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
1771
|
+
}
|
1772
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
1773
|
+
userAgentPrefix
|
1774
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
1775
|
+
super(optionsWithDefaults);
|
1776
|
+
// Parameter assignments
|
1777
|
+
this.subscriptionId = subscriptionId;
|
1778
|
+
// Assigning values to Constant parameters
|
1779
|
+
this.$host = options.$host || "https://management.azure.com";
|
1780
|
+
this.apiVersion = options.apiVersion || "2017-07-01";
|
1781
|
+
}
|
1782
|
+
}
|
1783
|
+
|
1784
|
+
/*
|
1785
|
+
* Copyright (c) Microsoft Corporation.
|
1786
|
+
* Licensed under the MIT License.
|
1787
|
+
*
|
1788
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1789
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1790
|
+
*/
|
1791
|
+
class MicrosoftResourceHealth extends MicrosoftResourceHealthContext {
|
1792
|
+
/**
|
1793
|
+
* Initializes a new instance of the MicrosoftResourceHealth class.
|
1794
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
1795
|
+
* @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
|
1796
|
+
* The subscription ID forms part of the URI for every service call.
|
1797
|
+
* @param options The parameter options
|
1798
|
+
*/
|
1799
|
+
constructor(credentials, subscriptionId, options) {
|
1800
|
+
super(credentials, subscriptionId, options);
|
1801
|
+
this.availabilityStatuses = new AvailabilityStatusesImpl(this);
|
1802
|
+
this.childAvailabilityStatuses = new ChildAvailabilityStatusesImpl(this);
|
1803
|
+
this.childResources = new ChildResourcesImpl(this);
|
1804
|
+
this.operations = new OperationsImpl(this);
|
1805
|
+
this.emergingIssues = new EmergingIssuesImpl(this);
|
1806
|
+
}
|
1807
|
+
}
|
1808
|
+
|
1809
|
+
exports.MicrosoftResourceHealth = MicrosoftResourceHealth;
|
1810
|
+
exports.MicrosoftResourceHealthContext = MicrosoftResourceHealthContext;
|
1811
|
+
//# sourceMappingURL=index.js.map
|