@azure/arm-resourcehealth 1.1.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} +21 -21
- package/README.md +98 -100
- 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 +393 -170
- 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 +52 -36
- 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/dist-esm/src/operations/index.d.ts +6 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +13 -0
- 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/dist-esm/src/operationsInterfaces/availabilityStatuses.js +9 -0
- 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/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.js +9 -0
- 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/dist-esm/src/operationsInterfaces/operations.js +9 -0
- 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 +68 -34
- package/review/arm-resourcehealth.api.md +396 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +13 -0
- package/src/microsoftResourceHealth.ts +53 -0
- package/src/microsoftResourceHealthContext.ts +71 -0
- package/src/models/index.ts +478 -0
- package/{lib → src}/models/mappers.ts +409 -175
- package/src/models/parameters.ts +127 -0
- package/src/operations/availabilityStatuses.ts +479 -0
- package/src/operations/childAvailabilityStatuses.ts +210 -0
- package/src/operations/childResources.ts +168 -0
- package/src/operations/emergingIssues.ts +165 -0
- package/src/operations/index.ts +13 -0
- package/src/operations/operations.ts +59 -0
- 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 +4 -4
- package/types/arm-resourcehealth.d.ts +588 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-resourcehealth.js +0 -1037
- 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 -20
- package/esm/microsoftResourceHealth.d.ts.map +0 -1
- package/esm/microsoftResourceHealth.js +0 -35
- package/esm/microsoftResourceHealth.js.map +0 -1
- package/esm/microsoftResourceHealthContext.d.ts +0 -17
- package/esm/microsoftResourceHealthContext.d.ts.map +0 -1
- package/esm/microsoftResourceHealthContext.js +0 -57
- 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 -11
- package/esm/models/availabilityStatusesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -589
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -16
- 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 +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -10
- 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 -225
- package/esm/operations/availabilityStatuses.js.map +0 -1
- package/esm/operations/index.d.ts +0 -3
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -12
- 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 -51
- package/esm/operations/operations.js.map +0 -1
- package/lib/microsoftResourceHealth.ts +0 -45
- package/lib/microsoftResourceHealthContext.ts +0 -63
- package/lib/models/availabilityStatusesMappers.ts +0 -22
- package/lib/models/index.ts +0 -628
- package/lib/models/operationsMappers.ts +0 -17
- package/lib/models/parameters.ts +0 -98
- package/lib/operations/availabilityStatuses.ts +0 -416
- package/lib/operations/index.ts +0 -12
- package/lib/operations/operations.ts +0 -74
@@ -1,1037 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
4
|
-
* license information.
|
5
|
-
*
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
9
|
-
*/
|
10
|
-
(function (global, factory) {
|
11
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
|
12
|
-
typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
|
13
|
-
(factory((global.Azure = global.Azure || {}, global.Azure.ArmResourcehealth = {}),global.msRestAzure,global.msRest));
|
14
|
-
}(this, (function (exports,msRestAzure,msRest) { 'use strict';
|
15
|
-
|
16
|
-
/*! *****************************************************************************
|
17
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
18
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
19
|
-
this file except in compliance with the License. You may obtain a copy of the
|
20
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
21
|
-
|
22
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
23
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
24
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
25
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
26
|
-
|
27
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
28
|
-
and limitations under the License.
|
29
|
-
***************************************************************************** */
|
30
|
-
/* global Reflect, Promise */
|
31
|
-
|
32
|
-
var extendStatics = function(d, b) {
|
33
|
-
extendStatics = Object.setPrototypeOf ||
|
34
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
35
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
36
|
-
return extendStatics(d, b);
|
37
|
-
};
|
38
|
-
|
39
|
-
function __extends(d, b) {
|
40
|
-
extendStatics(d, b);
|
41
|
-
function __() { this.constructor = d; }
|
42
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
43
|
-
}
|
44
|
-
|
45
|
-
/*
|
46
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
47
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
48
|
-
* license information.
|
49
|
-
*
|
50
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
51
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
52
|
-
* regenerated.
|
53
|
-
*/
|
54
|
-
|
55
|
-
var index = /*#__PURE__*/Object.freeze({
|
56
|
-
|
57
|
-
});
|
58
|
-
|
59
|
-
/*
|
60
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
61
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
62
|
-
* license information.
|
63
|
-
*
|
64
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
65
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
66
|
-
* regenerated.
|
67
|
-
*/
|
68
|
-
var CloudError = msRestAzure.CloudErrorMapper;
|
69
|
-
var BaseResource = msRestAzure.BaseResourceMapper;
|
70
|
-
var AvailabilityStatusPropertiesRecentlyResolvedState = {
|
71
|
-
serializedName: "availabilityStatus_properties_recentlyResolvedState",
|
72
|
-
type: {
|
73
|
-
name: "Composite",
|
74
|
-
className: "AvailabilityStatusPropertiesRecentlyResolvedState",
|
75
|
-
modelProperties: {
|
76
|
-
unavailableOccurredTime: {
|
77
|
-
serializedName: "unavailableOccurredTime",
|
78
|
-
type: {
|
79
|
-
name: "DateTime"
|
80
|
-
}
|
81
|
-
},
|
82
|
-
resolvedTime: {
|
83
|
-
serializedName: "resolvedTime",
|
84
|
-
type: {
|
85
|
-
name: "DateTime"
|
86
|
-
}
|
87
|
-
},
|
88
|
-
unavailabilitySummary: {
|
89
|
-
serializedName: "unavailabilitySummary",
|
90
|
-
type: {
|
91
|
-
name: "String"
|
92
|
-
}
|
93
|
-
}
|
94
|
-
}
|
95
|
-
}
|
96
|
-
};
|
97
|
-
var RecommendedAction = {
|
98
|
-
serializedName: "recommendedAction",
|
99
|
-
type: {
|
100
|
-
name: "Composite",
|
101
|
-
className: "RecommendedAction",
|
102
|
-
modelProperties: {
|
103
|
-
action: {
|
104
|
-
serializedName: "action",
|
105
|
-
type: {
|
106
|
-
name: "String"
|
107
|
-
}
|
108
|
-
},
|
109
|
-
actionUrl: {
|
110
|
-
serializedName: "actionUrl",
|
111
|
-
type: {
|
112
|
-
name: "String"
|
113
|
-
}
|
114
|
-
},
|
115
|
-
actionUrlText: {
|
116
|
-
serializedName: "actionUrlText",
|
117
|
-
type: {
|
118
|
-
name: "String"
|
119
|
-
}
|
120
|
-
}
|
121
|
-
}
|
122
|
-
}
|
123
|
-
};
|
124
|
-
var ServiceImpactingEventStatus = {
|
125
|
-
serializedName: "serviceImpactingEvent_status",
|
126
|
-
type: {
|
127
|
-
name: "Composite",
|
128
|
-
className: "ServiceImpactingEventStatus",
|
129
|
-
modelProperties: {
|
130
|
-
value: {
|
131
|
-
serializedName: "value",
|
132
|
-
type: {
|
133
|
-
name: "String"
|
134
|
-
}
|
135
|
-
}
|
136
|
-
}
|
137
|
-
}
|
138
|
-
};
|
139
|
-
var ServiceImpactingEventIncidentProperties = {
|
140
|
-
serializedName: "serviceImpactingEvent_incidentProperties",
|
141
|
-
type: {
|
142
|
-
name: "Composite",
|
143
|
-
className: "ServiceImpactingEventIncidentProperties",
|
144
|
-
modelProperties: {
|
145
|
-
title: {
|
146
|
-
serializedName: "title",
|
147
|
-
type: {
|
148
|
-
name: "String"
|
149
|
-
}
|
150
|
-
},
|
151
|
-
service: {
|
152
|
-
serializedName: "service",
|
153
|
-
type: {
|
154
|
-
name: "String"
|
155
|
-
}
|
156
|
-
},
|
157
|
-
region: {
|
158
|
-
serializedName: "region",
|
159
|
-
type: {
|
160
|
-
name: "String"
|
161
|
-
}
|
162
|
-
},
|
163
|
-
incidentType: {
|
164
|
-
serializedName: "incidentType",
|
165
|
-
type: {
|
166
|
-
name: "String"
|
167
|
-
}
|
168
|
-
}
|
169
|
-
}
|
170
|
-
}
|
171
|
-
};
|
172
|
-
var ServiceImpactingEvent = {
|
173
|
-
serializedName: "serviceImpactingEvent",
|
174
|
-
type: {
|
175
|
-
name: "Composite",
|
176
|
-
className: "ServiceImpactingEvent",
|
177
|
-
modelProperties: {
|
178
|
-
eventStartTime: {
|
179
|
-
serializedName: "eventStartTime",
|
180
|
-
type: {
|
181
|
-
name: "DateTime"
|
182
|
-
}
|
183
|
-
},
|
184
|
-
eventStatusLastModifiedTime: {
|
185
|
-
serializedName: "eventStatusLastModifiedTime",
|
186
|
-
type: {
|
187
|
-
name: "DateTime"
|
188
|
-
}
|
189
|
-
},
|
190
|
-
correlationId: {
|
191
|
-
serializedName: "correlationId",
|
192
|
-
type: {
|
193
|
-
name: "String"
|
194
|
-
}
|
195
|
-
},
|
196
|
-
status: {
|
197
|
-
serializedName: "status",
|
198
|
-
type: {
|
199
|
-
name: "Composite",
|
200
|
-
className: "ServiceImpactingEventStatus"
|
201
|
-
}
|
202
|
-
},
|
203
|
-
incidentProperties: {
|
204
|
-
serializedName: "incidentProperties",
|
205
|
-
type: {
|
206
|
-
name: "Composite",
|
207
|
-
className: "ServiceImpactingEventIncidentProperties"
|
208
|
-
}
|
209
|
-
}
|
210
|
-
}
|
211
|
-
}
|
212
|
-
};
|
213
|
-
var AvailabilityStatusProperties = {
|
214
|
-
serializedName: "availabilityStatus_properties",
|
215
|
-
type: {
|
216
|
-
name: "Composite",
|
217
|
-
className: "AvailabilityStatusProperties",
|
218
|
-
modelProperties: {
|
219
|
-
availabilityState: {
|
220
|
-
serializedName: "availabilityState",
|
221
|
-
type: {
|
222
|
-
name: "Enum",
|
223
|
-
allowedValues: [
|
224
|
-
"Available",
|
225
|
-
"Unavailable",
|
226
|
-
"Unknown"
|
227
|
-
]
|
228
|
-
}
|
229
|
-
},
|
230
|
-
summary: {
|
231
|
-
serializedName: "summary",
|
232
|
-
type: {
|
233
|
-
name: "String"
|
234
|
-
}
|
235
|
-
},
|
236
|
-
detailedStatus: {
|
237
|
-
serializedName: "detailedStatus",
|
238
|
-
type: {
|
239
|
-
name: "String"
|
240
|
-
}
|
241
|
-
},
|
242
|
-
reasonType: {
|
243
|
-
serializedName: "reasonType",
|
244
|
-
type: {
|
245
|
-
name: "String"
|
246
|
-
}
|
247
|
-
},
|
248
|
-
rootCauseAttributionTime: {
|
249
|
-
serializedName: "rootCauseAttributionTime",
|
250
|
-
type: {
|
251
|
-
name: "DateTime"
|
252
|
-
}
|
253
|
-
},
|
254
|
-
healthEventType: {
|
255
|
-
serializedName: "healthEventType",
|
256
|
-
type: {
|
257
|
-
name: "String"
|
258
|
-
}
|
259
|
-
},
|
260
|
-
healthEventCause: {
|
261
|
-
serializedName: "healthEventCause",
|
262
|
-
type: {
|
263
|
-
name: "String"
|
264
|
-
}
|
265
|
-
},
|
266
|
-
healthEventCategory: {
|
267
|
-
serializedName: "healthEventCategory",
|
268
|
-
type: {
|
269
|
-
name: "String"
|
270
|
-
}
|
271
|
-
},
|
272
|
-
healthEventId: {
|
273
|
-
serializedName: "healthEventId",
|
274
|
-
type: {
|
275
|
-
name: "String"
|
276
|
-
}
|
277
|
-
},
|
278
|
-
resolutionETA: {
|
279
|
-
serializedName: "resolutionETA",
|
280
|
-
type: {
|
281
|
-
name: "DateTime"
|
282
|
-
}
|
283
|
-
},
|
284
|
-
occuredTime: {
|
285
|
-
serializedName: "occuredTime",
|
286
|
-
type: {
|
287
|
-
name: "DateTime"
|
288
|
-
}
|
289
|
-
},
|
290
|
-
reasonChronicity: {
|
291
|
-
serializedName: "reasonChronicity",
|
292
|
-
type: {
|
293
|
-
name: "Enum",
|
294
|
-
allowedValues: [
|
295
|
-
"Transient",
|
296
|
-
"Persistent"
|
297
|
-
]
|
298
|
-
}
|
299
|
-
},
|
300
|
-
reportedTime: {
|
301
|
-
serializedName: "reportedTime",
|
302
|
-
type: {
|
303
|
-
name: "DateTime"
|
304
|
-
}
|
305
|
-
},
|
306
|
-
recentlyResolvedState: {
|
307
|
-
serializedName: "recentlyResolvedState",
|
308
|
-
type: {
|
309
|
-
name: "Composite",
|
310
|
-
className: "AvailabilityStatusPropertiesRecentlyResolvedState"
|
311
|
-
}
|
312
|
-
},
|
313
|
-
recommendedActions: {
|
314
|
-
serializedName: "recommendedActions",
|
315
|
-
type: {
|
316
|
-
name: "Sequence",
|
317
|
-
element: {
|
318
|
-
type: {
|
319
|
-
name: "Composite",
|
320
|
-
className: "RecommendedAction"
|
321
|
-
}
|
322
|
-
}
|
323
|
-
}
|
324
|
-
},
|
325
|
-
serviceImpactingEvents: {
|
326
|
-
serializedName: "serviceImpactingEvents",
|
327
|
-
type: {
|
328
|
-
name: "Sequence",
|
329
|
-
element: {
|
330
|
-
type: {
|
331
|
-
name: "Composite",
|
332
|
-
className: "ServiceImpactingEvent"
|
333
|
-
}
|
334
|
-
}
|
335
|
-
}
|
336
|
-
}
|
337
|
-
}
|
338
|
-
}
|
339
|
-
};
|
340
|
-
var AvailabilityStatus = {
|
341
|
-
serializedName: "availabilityStatus",
|
342
|
-
type: {
|
343
|
-
name: "Composite",
|
344
|
-
className: "AvailabilityStatus",
|
345
|
-
modelProperties: {
|
346
|
-
id: {
|
347
|
-
serializedName: "id",
|
348
|
-
type: {
|
349
|
-
name: "String"
|
350
|
-
}
|
351
|
-
},
|
352
|
-
name: {
|
353
|
-
serializedName: "name",
|
354
|
-
type: {
|
355
|
-
name: "String"
|
356
|
-
}
|
357
|
-
},
|
358
|
-
type: {
|
359
|
-
serializedName: "type",
|
360
|
-
type: {
|
361
|
-
name: "String"
|
362
|
-
}
|
363
|
-
},
|
364
|
-
location: {
|
365
|
-
serializedName: "location",
|
366
|
-
type: {
|
367
|
-
name: "String"
|
368
|
-
}
|
369
|
-
},
|
370
|
-
properties: {
|
371
|
-
serializedName: "properties",
|
372
|
-
type: {
|
373
|
-
name: "Composite",
|
374
|
-
className: "AvailabilityStatusProperties"
|
375
|
-
}
|
376
|
-
}
|
377
|
-
}
|
378
|
-
}
|
379
|
-
};
|
380
|
-
var OperationDisplay = {
|
381
|
-
serializedName: "operation_display",
|
382
|
-
type: {
|
383
|
-
name: "Composite",
|
384
|
-
className: "OperationDisplay",
|
385
|
-
modelProperties: {
|
386
|
-
provider: {
|
387
|
-
serializedName: "provider",
|
388
|
-
type: {
|
389
|
-
name: "String"
|
390
|
-
}
|
391
|
-
},
|
392
|
-
resource: {
|
393
|
-
serializedName: "resource",
|
394
|
-
type: {
|
395
|
-
name: "String"
|
396
|
-
}
|
397
|
-
},
|
398
|
-
operation: {
|
399
|
-
serializedName: "operation",
|
400
|
-
type: {
|
401
|
-
name: "String"
|
402
|
-
}
|
403
|
-
},
|
404
|
-
description: {
|
405
|
-
serializedName: "description",
|
406
|
-
type: {
|
407
|
-
name: "String"
|
408
|
-
}
|
409
|
-
}
|
410
|
-
}
|
411
|
-
}
|
412
|
-
};
|
413
|
-
var Operation = {
|
414
|
-
serializedName: "operation",
|
415
|
-
type: {
|
416
|
-
name: "Composite",
|
417
|
-
className: "Operation",
|
418
|
-
modelProperties: {
|
419
|
-
name: {
|
420
|
-
serializedName: "name",
|
421
|
-
type: {
|
422
|
-
name: "String"
|
423
|
-
}
|
424
|
-
},
|
425
|
-
display: {
|
426
|
-
serializedName: "display",
|
427
|
-
type: {
|
428
|
-
name: "Composite",
|
429
|
-
className: "OperationDisplay"
|
430
|
-
}
|
431
|
-
}
|
432
|
-
}
|
433
|
-
}
|
434
|
-
};
|
435
|
-
var OperationListResult = {
|
436
|
-
serializedName: "operationListResult",
|
437
|
-
type: {
|
438
|
-
name: "Composite",
|
439
|
-
className: "OperationListResult",
|
440
|
-
modelProperties: {
|
441
|
-
value: {
|
442
|
-
required: true,
|
443
|
-
serializedName: "value",
|
444
|
-
type: {
|
445
|
-
name: "Sequence",
|
446
|
-
element: {
|
447
|
-
type: {
|
448
|
-
name: "Composite",
|
449
|
-
className: "Operation"
|
450
|
-
}
|
451
|
-
}
|
452
|
-
}
|
453
|
-
}
|
454
|
-
}
|
455
|
-
}
|
456
|
-
};
|
457
|
-
var ErrorResponse = {
|
458
|
-
serializedName: "ErrorResponse",
|
459
|
-
type: {
|
460
|
-
name: "Composite",
|
461
|
-
className: "ErrorResponse",
|
462
|
-
modelProperties: {
|
463
|
-
code: {
|
464
|
-
readOnly: true,
|
465
|
-
serializedName: "code",
|
466
|
-
type: {
|
467
|
-
name: "String"
|
468
|
-
}
|
469
|
-
},
|
470
|
-
message: {
|
471
|
-
readOnly: true,
|
472
|
-
serializedName: "message",
|
473
|
-
type: {
|
474
|
-
name: "String"
|
475
|
-
}
|
476
|
-
},
|
477
|
-
details: {
|
478
|
-
readOnly: true,
|
479
|
-
serializedName: "details",
|
480
|
-
type: {
|
481
|
-
name: "String"
|
482
|
-
}
|
483
|
-
}
|
484
|
-
}
|
485
|
-
}
|
486
|
-
};
|
487
|
-
var AvailabilityStatusListResult = {
|
488
|
-
serializedName: "availabilityStatusListResult",
|
489
|
-
type: {
|
490
|
-
name: "Composite",
|
491
|
-
className: "AvailabilityStatusListResult",
|
492
|
-
modelProperties: {
|
493
|
-
value: {
|
494
|
-
required: true,
|
495
|
-
serializedName: "",
|
496
|
-
type: {
|
497
|
-
name: "Sequence",
|
498
|
-
element: {
|
499
|
-
type: {
|
500
|
-
name: "Composite",
|
501
|
-
className: "AvailabilityStatus"
|
502
|
-
}
|
503
|
-
}
|
504
|
-
}
|
505
|
-
},
|
506
|
-
nextLink: {
|
507
|
-
serializedName: "nextLink",
|
508
|
-
type: {
|
509
|
-
name: "String"
|
510
|
-
}
|
511
|
-
}
|
512
|
-
}
|
513
|
-
}
|
514
|
-
};
|
515
|
-
|
516
|
-
var mappers = /*#__PURE__*/Object.freeze({
|
517
|
-
CloudError: CloudError,
|
518
|
-
BaseResource: BaseResource,
|
519
|
-
AvailabilityStatusPropertiesRecentlyResolvedState: AvailabilityStatusPropertiesRecentlyResolvedState,
|
520
|
-
RecommendedAction: RecommendedAction,
|
521
|
-
ServiceImpactingEventStatus: ServiceImpactingEventStatus,
|
522
|
-
ServiceImpactingEventIncidentProperties: ServiceImpactingEventIncidentProperties,
|
523
|
-
ServiceImpactingEvent: ServiceImpactingEvent,
|
524
|
-
AvailabilityStatusProperties: AvailabilityStatusProperties,
|
525
|
-
AvailabilityStatus: AvailabilityStatus,
|
526
|
-
OperationDisplay: OperationDisplay,
|
527
|
-
Operation: Operation,
|
528
|
-
OperationListResult: OperationListResult,
|
529
|
-
ErrorResponse: ErrorResponse,
|
530
|
-
AvailabilityStatusListResult: AvailabilityStatusListResult
|
531
|
-
});
|
532
|
-
|
533
|
-
/*
|
534
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
535
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
536
|
-
* license information.
|
537
|
-
*
|
538
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
539
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
540
|
-
* regenerated.
|
541
|
-
*/
|
542
|
-
|
543
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
544
|
-
AvailabilityStatusListResult: AvailabilityStatusListResult,
|
545
|
-
AvailabilityStatus: AvailabilityStatus,
|
546
|
-
AvailabilityStatusProperties: AvailabilityStatusProperties,
|
547
|
-
AvailabilityStatusPropertiesRecentlyResolvedState: AvailabilityStatusPropertiesRecentlyResolvedState,
|
548
|
-
RecommendedAction: RecommendedAction,
|
549
|
-
ServiceImpactingEvent: ServiceImpactingEvent,
|
550
|
-
ServiceImpactingEventStatus: ServiceImpactingEventStatus,
|
551
|
-
ServiceImpactingEventIncidentProperties: ServiceImpactingEventIncidentProperties,
|
552
|
-
ErrorResponse: ErrorResponse
|
553
|
-
});
|
554
|
-
|
555
|
-
/*
|
556
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
557
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
558
|
-
* license information.
|
559
|
-
*
|
560
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
561
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
562
|
-
* regenerated.
|
563
|
-
*/
|
564
|
-
var acceptLanguage = {
|
565
|
-
parameterPath: "acceptLanguage",
|
566
|
-
mapper: {
|
567
|
-
serializedName: "accept-language",
|
568
|
-
defaultValue: 'en-US',
|
569
|
-
type: {
|
570
|
-
name: "String"
|
571
|
-
}
|
572
|
-
}
|
573
|
-
};
|
574
|
-
var apiVersion = {
|
575
|
-
parameterPath: "apiVersion",
|
576
|
-
mapper: {
|
577
|
-
required: true,
|
578
|
-
serializedName: "api-version",
|
579
|
-
type: {
|
580
|
-
name: "String"
|
581
|
-
}
|
582
|
-
}
|
583
|
-
};
|
584
|
-
var expand = {
|
585
|
-
parameterPath: [
|
586
|
-
"options",
|
587
|
-
"expand"
|
588
|
-
],
|
589
|
-
mapper: {
|
590
|
-
serializedName: "$expand",
|
591
|
-
type: {
|
592
|
-
name: "String"
|
593
|
-
}
|
594
|
-
}
|
595
|
-
};
|
596
|
-
var filter = {
|
597
|
-
parameterPath: [
|
598
|
-
"options",
|
599
|
-
"filter"
|
600
|
-
],
|
601
|
-
mapper: {
|
602
|
-
serializedName: "$filter",
|
603
|
-
type: {
|
604
|
-
name: "String"
|
605
|
-
}
|
606
|
-
}
|
607
|
-
};
|
608
|
-
var nextPageLink = {
|
609
|
-
parameterPath: "nextPageLink",
|
610
|
-
mapper: {
|
611
|
-
required: true,
|
612
|
-
serializedName: "nextLink",
|
613
|
-
type: {
|
614
|
-
name: "String"
|
615
|
-
}
|
616
|
-
},
|
617
|
-
skipEncoding: true
|
618
|
-
};
|
619
|
-
var resourceGroupName = {
|
620
|
-
parameterPath: "resourceGroupName",
|
621
|
-
mapper: {
|
622
|
-
required: true,
|
623
|
-
serializedName: "resourceGroupName",
|
624
|
-
type: {
|
625
|
-
name: "String"
|
626
|
-
}
|
627
|
-
}
|
628
|
-
};
|
629
|
-
var resourceUri = {
|
630
|
-
parameterPath: "resourceUri",
|
631
|
-
mapper: {
|
632
|
-
required: true,
|
633
|
-
serializedName: "resourceUri",
|
634
|
-
type: {
|
635
|
-
name: "String"
|
636
|
-
}
|
637
|
-
},
|
638
|
-
skipEncoding: true
|
639
|
-
};
|
640
|
-
var subscriptionId = {
|
641
|
-
parameterPath: "subscriptionId",
|
642
|
-
mapper: {
|
643
|
-
required: true,
|
644
|
-
serializedName: "subscriptionId",
|
645
|
-
type: {
|
646
|
-
name: "String"
|
647
|
-
}
|
648
|
-
}
|
649
|
-
};
|
650
|
-
|
651
|
-
/*
|
652
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
653
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
654
|
-
* license information.
|
655
|
-
*
|
656
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
657
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
658
|
-
* regenerated.
|
659
|
-
*/
|
660
|
-
/** Class representing a AvailabilityStatuses. */
|
661
|
-
var AvailabilityStatuses = /** @class */ (function () {
|
662
|
-
/**
|
663
|
-
* Create a AvailabilityStatuses.
|
664
|
-
* @param {MicrosoftResourceHealthContext} client Reference to the service client.
|
665
|
-
*/
|
666
|
-
function AvailabilityStatuses(client) {
|
667
|
-
this.client = client;
|
668
|
-
}
|
669
|
-
AvailabilityStatuses.prototype.listBySubscriptionId = function (options, callback) {
|
670
|
-
return this.client.sendOperationRequest({
|
671
|
-
options: options
|
672
|
-
}, listBySubscriptionIdOperationSpec, callback);
|
673
|
-
};
|
674
|
-
AvailabilityStatuses.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) {
|
675
|
-
return this.client.sendOperationRequest({
|
676
|
-
resourceGroupName: resourceGroupName$$1,
|
677
|
-
options: options
|
678
|
-
}, listByResourceGroupOperationSpec, callback);
|
679
|
-
};
|
680
|
-
AvailabilityStatuses.prototype.getByResource = function (resourceUri$$1, options, callback) {
|
681
|
-
return this.client.sendOperationRequest({
|
682
|
-
resourceUri: resourceUri$$1,
|
683
|
-
options: options
|
684
|
-
}, getByResourceOperationSpec, callback);
|
685
|
-
};
|
686
|
-
AvailabilityStatuses.prototype.list = function (resourceUri$$1, options, callback) {
|
687
|
-
return this.client.sendOperationRequest({
|
688
|
-
resourceUri: resourceUri$$1,
|
689
|
-
options: options
|
690
|
-
}, listOperationSpec, callback);
|
691
|
-
};
|
692
|
-
AvailabilityStatuses.prototype.listBySubscriptionIdNext = function (nextPageLink$$1, options, callback) {
|
693
|
-
return this.client.sendOperationRequest({
|
694
|
-
nextPageLink: nextPageLink$$1,
|
695
|
-
options: options
|
696
|
-
}, listBySubscriptionIdNextOperationSpec, callback);
|
697
|
-
};
|
698
|
-
AvailabilityStatuses.prototype.listByResourceGroupNext = function (nextPageLink$$1, options, callback) {
|
699
|
-
return this.client.sendOperationRequest({
|
700
|
-
nextPageLink: nextPageLink$$1,
|
701
|
-
options: options
|
702
|
-
}, listByResourceGroupNextOperationSpec, callback);
|
703
|
-
};
|
704
|
-
AvailabilityStatuses.prototype.listNext = function (nextPageLink$$1, options, callback) {
|
705
|
-
return this.client.sendOperationRequest({
|
706
|
-
nextPageLink: nextPageLink$$1,
|
707
|
-
options: options
|
708
|
-
}, listNextOperationSpec, callback);
|
709
|
-
};
|
710
|
-
return AvailabilityStatuses;
|
711
|
-
}());
|
712
|
-
// Operation Specifications
|
713
|
-
var serializer = new msRest.Serializer(Mappers);
|
714
|
-
var listBySubscriptionIdOperationSpec = {
|
715
|
-
httpMethod: "GET",
|
716
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses",
|
717
|
-
urlParameters: [
|
718
|
-
subscriptionId
|
719
|
-
],
|
720
|
-
queryParameters: [
|
721
|
-
apiVersion,
|
722
|
-
filter,
|
723
|
-
expand
|
724
|
-
],
|
725
|
-
headerParameters: [
|
726
|
-
acceptLanguage
|
727
|
-
],
|
728
|
-
responses: {
|
729
|
-
200: {
|
730
|
-
bodyMapper: AvailabilityStatusListResult
|
731
|
-
},
|
732
|
-
default: {
|
733
|
-
bodyMapper: ErrorResponse
|
734
|
-
}
|
735
|
-
},
|
736
|
-
serializer: serializer
|
737
|
-
};
|
738
|
-
var listByResourceGroupOperationSpec = {
|
739
|
-
httpMethod: "GET",
|
740
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses",
|
741
|
-
urlParameters: [
|
742
|
-
subscriptionId,
|
743
|
-
resourceGroupName
|
744
|
-
],
|
745
|
-
queryParameters: [
|
746
|
-
apiVersion,
|
747
|
-
filter,
|
748
|
-
expand
|
749
|
-
],
|
750
|
-
headerParameters: [
|
751
|
-
acceptLanguage
|
752
|
-
],
|
753
|
-
responses: {
|
754
|
-
200: {
|
755
|
-
bodyMapper: AvailabilityStatusListResult
|
756
|
-
},
|
757
|
-
default: {
|
758
|
-
bodyMapper: ErrorResponse
|
759
|
-
}
|
760
|
-
},
|
761
|
-
serializer: serializer
|
762
|
-
};
|
763
|
-
var getByResourceOperationSpec = {
|
764
|
-
httpMethod: "GET",
|
765
|
-
path: "{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
|
766
|
-
urlParameters: [
|
767
|
-
resourceUri
|
768
|
-
],
|
769
|
-
queryParameters: [
|
770
|
-
apiVersion,
|
771
|
-
filter,
|
772
|
-
expand
|
773
|
-
],
|
774
|
-
headerParameters: [
|
775
|
-
acceptLanguage
|
776
|
-
],
|
777
|
-
responses: {
|
778
|
-
200: {
|
779
|
-
bodyMapper: AvailabilityStatus
|
780
|
-
},
|
781
|
-
default: {
|
782
|
-
bodyMapper: ErrorResponse
|
783
|
-
}
|
784
|
-
},
|
785
|
-
serializer: serializer
|
786
|
-
};
|
787
|
-
var listOperationSpec = {
|
788
|
-
httpMethod: "GET",
|
789
|
-
path: "{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses",
|
790
|
-
urlParameters: [
|
791
|
-
resourceUri
|
792
|
-
],
|
793
|
-
queryParameters: [
|
794
|
-
apiVersion,
|
795
|
-
filter,
|
796
|
-
expand
|
797
|
-
],
|
798
|
-
headerParameters: [
|
799
|
-
acceptLanguage
|
800
|
-
],
|
801
|
-
responses: {
|
802
|
-
200: {
|
803
|
-
bodyMapper: AvailabilityStatusListResult
|
804
|
-
},
|
805
|
-
default: {
|
806
|
-
bodyMapper: ErrorResponse
|
807
|
-
}
|
808
|
-
},
|
809
|
-
serializer: serializer
|
810
|
-
};
|
811
|
-
var listBySubscriptionIdNextOperationSpec = {
|
812
|
-
httpMethod: "GET",
|
813
|
-
baseUrl: "https://management.azure.com",
|
814
|
-
path: "{nextLink}",
|
815
|
-
urlParameters: [
|
816
|
-
nextPageLink
|
817
|
-
],
|
818
|
-
headerParameters: [
|
819
|
-
acceptLanguage
|
820
|
-
],
|
821
|
-
responses: {
|
822
|
-
200: {
|
823
|
-
bodyMapper: AvailabilityStatusListResult
|
824
|
-
},
|
825
|
-
default: {
|
826
|
-
bodyMapper: ErrorResponse
|
827
|
-
}
|
828
|
-
},
|
829
|
-
serializer: serializer
|
830
|
-
};
|
831
|
-
var listByResourceGroupNextOperationSpec = {
|
832
|
-
httpMethod: "GET",
|
833
|
-
baseUrl: "https://management.azure.com",
|
834
|
-
path: "{nextLink}",
|
835
|
-
urlParameters: [
|
836
|
-
nextPageLink
|
837
|
-
],
|
838
|
-
headerParameters: [
|
839
|
-
acceptLanguage
|
840
|
-
],
|
841
|
-
responses: {
|
842
|
-
200: {
|
843
|
-
bodyMapper: AvailabilityStatusListResult
|
844
|
-
},
|
845
|
-
default: {
|
846
|
-
bodyMapper: ErrorResponse
|
847
|
-
}
|
848
|
-
},
|
849
|
-
serializer: serializer
|
850
|
-
};
|
851
|
-
var listNextOperationSpec = {
|
852
|
-
httpMethod: "GET",
|
853
|
-
baseUrl: "https://management.azure.com",
|
854
|
-
path: "{nextLink}",
|
855
|
-
urlParameters: [
|
856
|
-
nextPageLink
|
857
|
-
],
|
858
|
-
headerParameters: [
|
859
|
-
acceptLanguage
|
860
|
-
],
|
861
|
-
responses: {
|
862
|
-
200: {
|
863
|
-
bodyMapper: AvailabilityStatusListResult
|
864
|
-
},
|
865
|
-
default: {
|
866
|
-
bodyMapper: ErrorResponse
|
867
|
-
}
|
868
|
-
},
|
869
|
-
serializer: serializer
|
870
|
-
};
|
871
|
-
|
872
|
-
/*
|
873
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
874
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
875
|
-
* license information.
|
876
|
-
*
|
877
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
878
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
879
|
-
* regenerated.
|
880
|
-
*/
|
881
|
-
|
882
|
-
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
883
|
-
OperationListResult: OperationListResult,
|
884
|
-
Operation: Operation,
|
885
|
-
OperationDisplay: OperationDisplay,
|
886
|
-
ErrorResponse: ErrorResponse
|
887
|
-
});
|
888
|
-
|
889
|
-
/*
|
890
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
891
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
892
|
-
* license information.
|
893
|
-
*
|
894
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
895
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
896
|
-
* regenerated.
|
897
|
-
*/
|
898
|
-
/** Class representing a Operations. */
|
899
|
-
var Operations = /** @class */ (function () {
|
900
|
-
/**
|
901
|
-
* Create a Operations.
|
902
|
-
* @param {MicrosoftResourceHealthContext} client Reference to the service client.
|
903
|
-
*/
|
904
|
-
function Operations(client) {
|
905
|
-
this.client = client;
|
906
|
-
}
|
907
|
-
Operations.prototype.list = function (options, callback) {
|
908
|
-
return this.client.sendOperationRequest({
|
909
|
-
options: options
|
910
|
-
}, listOperationSpec$1, callback);
|
911
|
-
};
|
912
|
-
return Operations;
|
913
|
-
}());
|
914
|
-
// Operation Specifications
|
915
|
-
var serializer$1 = new msRest.Serializer(Mappers$1);
|
916
|
-
var listOperationSpec$1 = {
|
917
|
-
httpMethod: "GET",
|
918
|
-
path: "providers/Microsoft.ResourceHealth/operations",
|
919
|
-
queryParameters: [
|
920
|
-
apiVersion
|
921
|
-
],
|
922
|
-
headerParameters: [
|
923
|
-
acceptLanguage
|
924
|
-
],
|
925
|
-
responses: {
|
926
|
-
200: {
|
927
|
-
bodyMapper: OperationListResult
|
928
|
-
},
|
929
|
-
default: {
|
930
|
-
bodyMapper: ErrorResponse
|
931
|
-
}
|
932
|
-
},
|
933
|
-
serializer: serializer$1
|
934
|
-
};
|
935
|
-
|
936
|
-
/*
|
937
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
938
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
939
|
-
* license information.
|
940
|
-
*
|
941
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
942
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
943
|
-
* regenerated.
|
944
|
-
*/
|
945
|
-
|
946
|
-
/*
|
947
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
948
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
949
|
-
* license information.
|
950
|
-
*
|
951
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
952
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
953
|
-
* regenerated.
|
954
|
-
*/
|
955
|
-
var packageName = "@azure/arm-resourcehealth";
|
956
|
-
var packageVersion = "0.1.0";
|
957
|
-
var MicrosoftResourceHealthContext = /** @class */ (function (_super) {
|
958
|
-
__extends(MicrosoftResourceHealthContext, _super);
|
959
|
-
/**
|
960
|
-
* Initializes a new instance of the MicrosoftResourceHealth class.
|
961
|
-
* @param credentials Credentials needed for the client to connect to Azure.
|
962
|
-
* @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure
|
963
|
-
* subscription. The subscription ID forms part of the URI for every service call.
|
964
|
-
* @param [options] The parameter options
|
965
|
-
*/
|
966
|
-
function MicrosoftResourceHealthContext(credentials, subscriptionId, options) {
|
967
|
-
var _this = this;
|
968
|
-
if (credentials == undefined) {
|
969
|
-
throw new Error('\'credentials\' cannot be null.');
|
970
|
-
}
|
971
|
-
if (subscriptionId == undefined) {
|
972
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
973
|
-
}
|
974
|
-
if (!options) {
|
975
|
-
options = {};
|
976
|
-
}
|
977
|
-
if (!options.userAgent) {
|
978
|
-
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
979
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
980
|
-
}
|
981
|
-
_this = _super.call(this, credentials, options) || this;
|
982
|
-
_this.apiVersion = '2017-07-01';
|
983
|
-
_this.acceptLanguage = 'en-US';
|
984
|
-
_this.longRunningOperationRetryTimeout = 30;
|
985
|
-
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
986
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
987
|
-
_this.credentials = credentials;
|
988
|
-
_this.subscriptionId = subscriptionId;
|
989
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
990
|
-
_this.acceptLanguage = options.acceptLanguage;
|
991
|
-
}
|
992
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
993
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
994
|
-
}
|
995
|
-
return _this;
|
996
|
-
}
|
997
|
-
return MicrosoftResourceHealthContext;
|
998
|
-
}(msRestAzure.AzureServiceClient));
|
999
|
-
|
1000
|
-
/*
|
1001
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
1002
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
1003
|
-
* license information.
|
1004
|
-
*
|
1005
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1006
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
1007
|
-
* regenerated.
|
1008
|
-
*/
|
1009
|
-
var MicrosoftResourceHealth = /** @class */ (function (_super) {
|
1010
|
-
__extends(MicrosoftResourceHealth, _super);
|
1011
|
-
/**
|
1012
|
-
* Initializes a new instance of the MicrosoftResourceHealth class.
|
1013
|
-
* @param credentials Credentials needed for the client to connect to Azure.
|
1014
|
-
* @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure
|
1015
|
-
* subscription. The subscription ID forms part of the URI for every service call.
|
1016
|
-
* @param [options] The parameter options
|
1017
|
-
*/
|
1018
|
-
function MicrosoftResourceHealth(credentials, subscriptionId, options) {
|
1019
|
-
var _this = _super.call(this, credentials, subscriptionId, options) || this;
|
1020
|
-
_this.availabilityStatuses = new AvailabilityStatuses(_this);
|
1021
|
-
_this.operations = new Operations(_this);
|
1022
|
-
return _this;
|
1023
|
-
}
|
1024
|
-
return MicrosoftResourceHealth;
|
1025
|
-
}(MicrosoftResourceHealthContext));
|
1026
|
-
|
1027
|
-
exports.MicrosoftResourceHealth = MicrosoftResourceHealth;
|
1028
|
-
exports.MicrosoftResourceHealthContext = MicrosoftResourceHealthContext;
|
1029
|
-
exports.MicrosoftResourceHealthModels = index;
|
1030
|
-
exports.MicrosoftResourceHealthMappers = mappers;
|
1031
|
-
exports.AvailabilityStatuses = AvailabilityStatuses;
|
1032
|
-
exports.Operations = Operations;
|
1033
|
-
|
1034
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
1035
|
-
|
1036
|
-
})));
|
1037
|
-
//# sourceMappingURL=arm-resourcehealth.js.map
|