@azure/arm-resourcehealth 1.2.0 → 3.0.0-alpha.20211215.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +26 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +69 -83
- 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 +67 -24
- package/review/arm-resourcehealth.api.md +396 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +13 -0
- package/src/microsoftResourceHealth.ts +40 -38
- package/src/microsoftResourceHealthContext.ts +49 -47
- package/src/models/index.ts +382 -532
- package/src/models/mappers.ts +409 -175
- package/src/models/parameters.ts +66 -37
- package/src/operations/availabilityStatuses.ts +335 -272
- 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 +6 -5
- package/src/operations/operations.ts +26 -41
- 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 -1047
- 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 -26
- package/esm/microsoftResourceHealth.d.ts.map +0 -1
- package/esm/microsoftResourceHealth.js +0 -40
- 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 -62
- 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/src/models/availabilityStatusesMappers.ts +0 -22
- package/src/models/operationsMappers.ts +0 -17
@@ -0,0 +1,407 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
|
+
import * as coreClient from "@azure/core-client";
|
10
|
+
import * as Mappers from "../models/mappers";
|
11
|
+
import * as Parameters from "../models/parameters";
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
13
|
+
/** Class containing AvailabilityStatuses operations. */
|
14
|
+
export class AvailabilityStatusesImpl {
|
15
|
+
/**
|
16
|
+
* Initialize a new instance of the class AvailabilityStatuses class.
|
17
|
+
* @param client Reference to the service client
|
18
|
+
*/
|
19
|
+
constructor(client) {
|
20
|
+
this.client = client;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* Lists the current availability status for all the resources in the subscription. Use the nextLink
|
24
|
+
* property in the response to get the next page of availability statuses.
|
25
|
+
* @param options The options parameters.
|
26
|
+
*/
|
27
|
+
listBySubscriptionId(options) {
|
28
|
+
const iter = this.listBySubscriptionIdPagingAll(options);
|
29
|
+
return {
|
30
|
+
next() {
|
31
|
+
return iter.next();
|
32
|
+
},
|
33
|
+
[Symbol.asyncIterator]() {
|
34
|
+
return this;
|
35
|
+
},
|
36
|
+
byPage: () => {
|
37
|
+
return this.listBySubscriptionIdPagingPage(options);
|
38
|
+
}
|
39
|
+
};
|
40
|
+
}
|
41
|
+
listBySubscriptionIdPagingPage(options) {
|
42
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
|
43
|
+
let result = yield __await(this._listBySubscriptionId(options));
|
44
|
+
yield yield __await(result.value || []);
|
45
|
+
let continuationToken = result.nextLink;
|
46
|
+
while (continuationToken) {
|
47
|
+
result = yield __await(this._listBySubscriptionIdNext(continuationToken, options));
|
48
|
+
continuationToken = result.nextLink;
|
49
|
+
yield yield __await(result.value || []);
|
50
|
+
}
|
51
|
+
});
|
52
|
+
}
|
53
|
+
listBySubscriptionIdPagingAll(options) {
|
54
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionIdPagingAll_1() {
|
55
|
+
var e_1, _a;
|
56
|
+
try {
|
57
|
+
for (var _b = __asyncValues(this.listBySubscriptionIdPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
58
|
+
const page = _c.value;
|
59
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
60
|
+
}
|
61
|
+
}
|
62
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
63
|
+
finally {
|
64
|
+
try {
|
65
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
66
|
+
}
|
67
|
+
finally { if (e_1) throw e_1.error; }
|
68
|
+
}
|
69
|
+
});
|
70
|
+
}
|
71
|
+
/**
|
72
|
+
* Lists the current availability status for all the resources in the resource group. Use the nextLink
|
73
|
+
* property in the response to get the next page of availability statuses.
|
74
|
+
* @param resourceGroupName The name of the resource group.
|
75
|
+
* @param options The options parameters.
|
76
|
+
*/
|
77
|
+
listByResourceGroup(resourceGroupName, options) {
|
78
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
79
|
+
return {
|
80
|
+
next() {
|
81
|
+
return iter.next();
|
82
|
+
},
|
83
|
+
[Symbol.asyncIterator]() {
|
84
|
+
return this;
|
85
|
+
},
|
86
|
+
byPage: () => {
|
87
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
88
|
+
}
|
89
|
+
};
|
90
|
+
}
|
91
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
92
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
93
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
94
|
+
yield yield __await(result.value || []);
|
95
|
+
let continuationToken = result.nextLink;
|
96
|
+
while (continuationToken) {
|
97
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
98
|
+
continuationToken = result.nextLink;
|
99
|
+
yield yield __await(result.value || []);
|
100
|
+
}
|
101
|
+
});
|
102
|
+
}
|
103
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
104
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
105
|
+
var e_2, _a;
|
106
|
+
try {
|
107
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
108
|
+
const page = _c.value;
|
109
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
110
|
+
}
|
111
|
+
}
|
112
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
113
|
+
finally {
|
114
|
+
try {
|
115
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
116
|
+
}
|
117
|
+
finally { if (e_2) throw e_2.error; }
|
118
|
+
}
|
119
|
+
});
|
120
|
+
}
|
121
|
+
/**
|
122
|
+
* Lists all historical availability transitions and impacting events for a single resource. Use the
|
123
|
+
* nextLink property in the response to get the next page of availability status
|
124
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
125
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
126
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
127
|
+
* and
|
128
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
129
|
+
* @param options The options parameters.
|
130
|
+
*/
|
131
|
+
list(resourceUri, options) {
|
132
|
+
const iter = this.listPagingAll(resourceUri, options);
|
133
|
+
return {
|
134
|
+
next() {
|
135
|
+
return iter.next();
|
136
|
+
},
|
137
|
+
[Symbol.asyncIterator]() {
|
138
|
+
return this;
|
139
|
+
},
|
140
|
+
byPage: () => {
|
141
|
+
return this.listPagingPage(resourceUri, options);
|
142
|
+
}
|
143
|
+
};
|
144
|
+
}
|
145
|
+
listPagingPage(resourceUri, options) {
|
146
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
147
|
+
let result = yield __await(this._list(resourceUri, options));
|
148
|
+
yield yield __await(result.value || []);
|
149
|
+
let continuationToken = result.nextLink;
|
150
|
+
while (continuationToken) {
|
151
|
+
result = yield __await(this._listNext(resourceUri, continuationToken, options));
|
152
|
+
continuationToken = result.nextLink;
|
153
|
+
yield yield __await(result.value || []);
|
154
|
+
}
|
155
|
+
});
|
156
|
+
}
|
157
|
+
listPagingAll(resourceUri, options) {
|
158
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
159
|
+
var e_3, _a;
|
160
|
+
try {
|
161
|
+
for (var _b = __asyncValues(this.listPagingPage(resourceUri, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
162
|
+
const page = _c.value;
|
163
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
164
|
+
}
|
165
|
+
}
|
166
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
167
|
+
finally {
|
168
|
+
try {
|
169
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
170
|
+
}
|
171
|
+
finally { if (e_3) throw e_3.error; }
|
172
|
+
}
|
173
|
+
});
|
174
|
+
}
|
175
|
+
/**
|
176
|
+
* Lists the current availability status for all the resources in the subscription. Use the nextLink
|
177
|
+
* property in the response to get the next page of availability statuses.
|
178
|
+
* @param options The options parameters.
|
179
|
+
*/
|
180
|
+
_listBySubscriptionId(options) {
|
181
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec);
|
182
|
+
}
|
183
|
+
/**
|
184
|
+
* Lists the current availability status for all the resources in the resource group. Use the nextLink
|
185
|
+
* property in the response to get the next page of availability statuses.
|
186
|
+
* @param resourceGroupName The name of the resource group.
|
187
|
+
* @param options The options parameters.
|
188
|
+
*/
|
189
|
+
_listByResourceGroup(resourceGroupName, options) {
|
190
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
191
|
+
}
|
192
|
+
/**
|
193
|
+
* Gets current availability status for a single resource
|
194
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
195
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
196
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
197
|
+
* and
|
198
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
199
|
+
* @param options The options parameters.
|
200
|
+
*/
|
201
|
+
getByResource(resourceUri, options) {
|
202
|
+
return this.client.sendOperationRequest({ resourceUri, options }, getByResourceOperationSpec);
|
203
|
+
}
|
204
|
+
/**
|
205
|
+
* Lists all historical availability transitions and impacting events for a single resource. Use the
|
206
|
+
* nextLink property in the response to get the next page of availability status
|
207
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
208
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
209
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
210
|
+
* and
|
211
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
212
|
+
* @param options The options parameters.
|
213
|
+
*/
|
214
|
+
_list(resourceUri, options) {
|
215
|
+
return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec);
|
216
|
+
}
|
217
|
+
/**
|
218
|
+
* ListBySubscriptionIdNext
|
219
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.
|
220
|
+
* @param options The options parameters.
|
221
|
+
*/
|
222
|
+
_listBySubscriptionIdNext(nextLink, options) {
|
223
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionIdNextOperationSpec);
|
224
|
+
}
|
225
|
+
/**
|
226
|
+
* ListByResourceGroupNext
|
227
|
+
* @param resourceGroupName The name of the resource group.
|
228
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
229
|
+
* @param options The options parameters.
|
230
|
+
*/
|
231
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
232
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
233
|
+
}
|
234
|
+
/**
|
235
|
+
* ListNext
|
236
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
237
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
238
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
239
|
+
* and
|
240
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
241
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
242
|
+
* @param options The options parameters.
|
243
|
+
*/
|
244
|
+
_listNext(resourceUri, nextLink, options) {
|
245
|
+
return this.client.sendOperationRequest({ resourceUri, nextLink, options }, listNextOperationSpec);
|
246
|
+
}
|
247
|
+
}
|
248
|
+
// Operation Specifications
|
249
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
250
|
+
const listBySubscriptionIdOperationSpec = {
|
251
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses",
|
252
|
+
httpMethod: "GET",
|
253
|
+
responses: {
|
254
|
+
200: {
|
255
|
+
bodyMapper: Mappers.AvailabilityStatusListResult
|
256
|
+
},
|
257
|
+
default: {
|
258
|
+
bodyMapper: Mappers.ErrorResponse
|
259
|
+
}
|
260
|
+
},
|
261
|
+
queryParameters: [
|
262
|
+
Parameters.apiVersion,
|
263
|
+
Parameters.filter,
|
264
|
+
Parameters.expand
|
265
|
+
],
|
266
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
267
|
+
headerParameters: [Parameters.accept],
|
268
|
+
serializer
|
269
|
+
};
|
270
|
+
const listByResourceGroupOperationSpec = {
|
271
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses",
|
272
|
+
httpMethod: "GET",
|
273
|
+
responses: {
|
274
|
+
200: {
|
275
|
+
bodyMapper: Mappers.AvailabilityStatusListResult
|
276
|
+
},
|
277
|
+
default: {
|
278
|
+
bodyMapper: Mappers.ErrorResponse
|
279
|
+
}
|
280
|
+
},
|
281
|
+
queryParameters: [
|
282
|
+
Parameters.apiVersion,
|
283
|
+
Parameters.filter,
|
284
|
+
Parameters.expand
|
285
|
+
],
|
286
|
+
urlParameters: [
|
287
|
+
Parameters.$host,
|
288
|
+
Parameters.subscriptionId,
|
289
|
+
Parameters.resourceGroupName
|
290
|
+
],
|
291
|
+
headerParameters: [Parameters.accept],
|
292
|
+
serializer
|
293
|
+
};
|
294
|
+
const getByResourceOperationSpec = {
|
295
|
+
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
|
296
|
+
httpMethod: "GET",
|
297
|
+
responses: {
|
298
|
+
200: {
|
299
|
+
bodyMapper: Mappers.AvailabilityStatus
|
300
|
+
},
|
301
|
+
default: {
|
302
|
+
bodyMapper: Mappers.ErrorResponse
|
303
|
+
}
|
304
|
+
},
|
305
|
+
queryParameters: [
|
306
|
+
Parameters.apiVersion,
|
307
|
+
Parameters.filter,
|
308
|
+
Parameters.expand
|
309
|
+
],
|
310
|
+
urlParameters: [Parameters.$host, Parameters.resourceUri],
|
311
|
+
headerParameters: [Parameters.accept],
|
312
|
+
serializer
|
313
|
+
};
|
314
|
+
const listOperationSpec = {
|
315
|
+
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses",
|
316
|
+
httpMethod: "GET",
|
317
|
+
responses: {
|
318
|
+
200: {
|
319
|
+
bodyMapper: Mappers.AvailabilityStatusListResult
|
320
|
+
},
|
321
|
+
default: {
|
322
|
+
bodyMapper: Mappers.ErrorResponse
|
323
|
+
}
|
324
|
+
},
|
325
|
+
queryParameters: [
|
326
|
+
Parameters.apiVersion,
|
327
|
+
Parameters.filter,
|
328
|
+
Parameters.expand
|
329
|
+
],
|
330
|
+
urlParameters: [Parameters.$host, Parameters.resourceUri],
|
331
|
+
headerParameters: [Parameters.accept],
|
332
|
+
serializer
|
333
|
+
};
|
334
|
+
const listBySubscriptionIdNextOperationSpec = {
|
335
|
+
path: "{nextLink}",
|
336
|
+
httpMethod: "GET",
|
337
|
+
responses: {
|
338
|
+
200: {
|
339
|
+
bodyMapper: Mappers.AvailabilityStatusListResult
|
340
|
+
},
|
341
|
+
default: {
|
342
|
+
bodyMapper: Mappers.ErrorResponse
|
343
|
+
}
|
344
|
+
},
|
345
|
+
queryParameters: [
|
346
|
+
Parameters.apiVersion,
|
347
|
+
Parameters.filter,
|
348
|
+
Parameters.expand
|
349
|
+
],
|
350
|
+
urlParameters: [
|
351
|
+
Parameters.$host,
|
352
|
+
Parameters.subscriptionId,
|
353
|
+
Parameters.nextLink
|
354
|
+
],
|
355
|
+
headerParameters: [Parameters.accept],
|
356
|
+
serializer
|
357
|
+
};
|
358
|
+
const listByResourceGroupNextOperationSpec = {
|
359
|
+
path: "{nextLink}",
|
360
|
+
httpMethod: "GET",
|
361
|
+
responses: {
|
362
|
+
200: {
|
363
|
+
bodyMapper: Mappers.AvailabilityStatusListResult
|
364
|
+
},
|
365
|
+
default: {
|
366
|
+
bodyMapper: Mappers.ErrorResponse
|
367
|
+
}
|
368
|
+
},
|
369
|
+
queryParameters: [
|
370
|
+
Parameters.apiVersion,
|
371
|
+
Parameters.filter,
|
372
|
+
Parameters.expand
|
373
|
+
],
|
374
|
+
urlParameters: [
|
375
|
+
Parameters.$host,
|
376
|
+
Parameters.subscriptionId,
|
377
|
+
Parameters.resourceGroupName,
|
378
|
+
Parameters.nextLink
|
379
|
+
],
|
380
|
+
headerParameters: [Parameters.accept],
|
381
|
+
serializer
|
382
|
+
};
|
383
|
+
const listNextOperationSpec = {
|
384
|
+
path: "{nextLink}",
|
385
|
+
httpMethod: "GET",
|
386
|
+
responses: {
|
387
|
+
200: {
|
388
|
+
bodyMapper: Mappers.AvailabilityStatusListResult
|
389
|
+
},
|
390
|
+
default: {
|
391
|
+
bodyMapper: Mappers.ErrorResponse
|
392
|
+
}
|
393
|
+
},
|
394
|
+
queryParameters: [
|
395
|
+
Parameters.apiVersion,
|
396
|
+
Parameters.filter,
|
397
|
+
Parameters.expand
|
398
|
+
],
|
399
|
+
urlParameters: [
|
400
|
+
Parameters.$host,
|
401
|
+
Parameters.resourceUri,
|
402
|
+
Parameters.nextLink
|
403
|
+
],
|
404
|
+
headerParameters: [Parameters.accept],
|
405
|
+
serializer
|
406
|
+
};
|
407
|
+
//# sourceMappingURL=availabilityStatuses.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"availabilityStatuses.js","sourceRoot":"","sources":["../../../src/operations/availabilityStatuses.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAoBnD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,oBAAoB,CACzB,OAAgE;QAEhE,MAAM,IAAI,GAAG,IAAI,CAAC,6BAA6B,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AAM;QACjB,UAAU,CAAC,MAAM;KAClB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,MAAM;KAClB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
2
|
+
import { ChildAvailabilityStatuses } from "../operationsInterfaces";
|
3
|
+
import { MicrosoftResourceHealthContext } from "../microsoftResourceHealthContext";
|
4
|
+
import { AvailabilityStatus, ChildAvailabilityStatusesListOptionalParams, ChildAvailabilityStatusesGetByResourceOptionalParams, ChildAvailabilityStatusesGetByResourceResponse } from "../models";
|
5
|
+
/** Class containing ChildAvailabilityStatuses operations. */
|
6
|
+
export declare class ChildAvailabilityStatusesImpl implements ChildAvailabilityStatuses {
|
7
|
+
private readonly client;
|
8
|
+
/**
|
9
|
+
* Initialize a new instance of the class ChildAvailabilityStatuses class.
|
10
|
+
* @param client Reference to the service client
|
11
|
+
*/
|
12
|
+
constructor(client: MicrosoftResourceHealthContext);
|
13
|
+
/**
|
14
|
+
* Lists the historical availability statuses for a single child resource. Use the nextLink property in
|
15
|
+
* the response to get the next page of availability status
|
16
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
17
|
+
* type. Currently the API only support one nesting level resource types :
|
18
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
19
|
+
* @param options The options parameters.
|
20
|
+
*/
|
21
|
+
list(resourceUri: string, options?: ChildAvailabilityStatusesListOptionalParams): PagedAsyncIterableIterator<AvailabilityStatus>;
|
22
|
+
private listPagingPage;
|
23
|
+
private listPagingAll;
|
24
|
+
/**
|
25
|
+
* Gets current availability status for a single resource
|
26
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
27
|
+
* type. Currently the API only support one nesting level resource types :
|
28
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
29
|
+
* @param options The options parameters.
|
30
|
+
*/
|
31
|
+
getByResource(resourceUri: string, options?: ChildAvailabilityStatusesGetByResourceOptionalParams): Promise<ChildAvailabilityStatusesGetByResourceResponse>;
|
32
|
+
/**
|
33
|
+
* Lists the historical availability statuses for a single child resource. Use the nextLink property in
|
34
|
+
* the response to get the next page of availability status
|
35
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
36
|
+
* type. Currently the API only support one nesting level resource types :
|
37
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
38
|
+
* @param options The options parameters.
|
39
|
+
*/
|
40
|
+
private _list;
|
41
|
+
/**
|
42
|
+
* ListNext
|
43
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
44
|
+
* type. Currently the API only support one nesting level resource types :
|
45
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
46
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
47
|
+
* @param options The options parameters.
|
48
|
+
*/
|
49
|
+
private _listNext;
|
50
|
+
}
|
51
|
+
//# sourceMappingURL=childAvailabilityStatuses.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"childAvailabilityStatuses.d.ts","sourceRoot":"","sources":["../../../src/operations/childAvailabilityStatuses.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAIpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,EACL,kBAAkB,EAElB,2CAA2C,EAC3C,oDAAoD,EACpD,8CAA8C,EAG/C,MAAM,WAAW,CAAC;AAGnB,6DAA6D;AAC7D,qBAAa,6BACX,YAAW,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiC;IAExD;;;OAGG;gBACS,MAAM,EAAE,8BAA8B;IAIlD;;;;;;;OAOG;IACI,IAAI,CACT,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,2CAA2C,GACpD,0BAA0B,CAAC,kBAAkB,CAAC;YAelC,cAAc;YAcd,aAAa;IAS5B;;;;;;OAMG;IACH,aAAa,CACX,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oDAAoD,GAC7D,OAAO,CAAC,8CAA8C,CAAC;IAO1D;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAUb;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAUlB"}
|
@@ -0,0 +1,173 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
|
+
import * as coreClient from "@azure/core-client";
|
10
|
+
import * as Mappers from "../models/mappers";
|
11
|
+
import * as Parameters from "../models/parameters";
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
13
|
+
/** Class containing ChildAvailabilityStatuses operations. */
|
14
|
+
export class ChildAvailabilityStatusesImpl {
|
15
|
+
/**
|
16
|
+
* Initialize a new instance of the class ChildAvailabilityStatuses class.
|
17
|
+
* @param client Reference to the service client
|
18
|
+
*/
|
19
|
+
constructor(client) {
|
20
|
+
this.client = client;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* Lists the historical availability statuses for a single child resource. Use the nextLink property in
|
24
|
+
* the response to get the next page of availability status
|
25
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
26
|
+
* type. Currently the API only support one nesting level resource types :
|
27
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
28
|
+
* @param options The options parameters.
|
29
|
+
*/
|
30
|
+
list(resourceUri, options) {
|
31
|
+
const iter = this.listPagingAll(resourceUri, options);
|
32
|
+
return {
|
33
|
+
next() {
|
34
|
+
return iter.next();
|
35
|
+
},
|
36
|
+
[Symbol.asyncIterator]() {
|
37
|
+
return this;
|
38
|
+
},
|
39
|
+
byPage: () => {
|
40
|
+
return this.listPagingPage(resourceUri, options);
|
41
|
+
}
|
42
|
+
};
|
43
|
+
}
|
44
|
+
listPagingPage(resourceUri, options) {
|
45
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
46
|
+
let result = yield __await(this._list(resourceUri, options));
|
47
|
+
yield yield __await(result.value || []);
|
48
|
+
let continuationToken = result.nextLink;
|
49
|
+
while (continuationToken) {
|
50
|
+
result = yield __await(this._listNext(resourceUri, continuationToken, options));
|
51
|
+
continuationToken = result.nextLink;
|
52
|
+
yield yield __await(result.value || []);
|
53
|
+
}
|
54
|
+
});
|
55
|
+
}
|
56
|
+
listPagingAll(resourceUri, options) {
|
57
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
58
|
+
var e_1, _a;
|
59
|
+
try {
|
60
|
+
for (var _b = __asyncValues(this.listPagingPage(resourceUri, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
61
|
+
const page = _c.value;
|
62
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
63
|
+
}
|
64
|
+
}
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
66
|
+
finally {
|
67
|
+
try {
|
68
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
69
|
+
}
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
71
|
+
}
|
72
|
+
});
|
73
|
+
}
|
74
|
+
/**
|
75
|
+
* Gets current availability status for a single resource
|
76
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
77
|
+
* type. Currently the API only support one nesting level resource types :
|
78
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
79
|
+
* @param options The options parameters.
|
80
|
+
*/
|
81
|
+
getByResource(resourceUri, options) {
|
82
|
+
return this.client.sendOperationRequest({ resourceUri, options }, getByResourceOperationSpec);
|
83
|
+
}
|
84
|
+
/**
|
85
|
+
* Lists the historical availability statuses for a single child resource. Use the nextLink property in
|
86
|
+
* the response to get the next page of availability status
|
87
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
88
|
+
* type. Currently the API only support one nesting level resource types :
|
89
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
90
|
+
* @param options The options parameters.
|
91
|
+
*/
|
92
|
+
_list(resourceUri, options) {
|
93
|
+
return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec);
|
94
|
+
}
|
95
|
+
/**
|
96
|
+
* ListNext
|
97
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
98
|
+
* type. Currently the API only support one nesting level resource types :
|
99
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
100
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
101
|
+
* @param options The options parameters.
|
102
|
+
*/
|
103
|
+
_listNext(resourceUri, nextLink, options) {
|
104
|
+
return this.client.sendOperationRequest({ resourceUri, nextLink, options }, listNextOperationSpec);
|
105
|
+
}
|
106
|
+
}
|
107
|
+
// Operation Specifications
|
108
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
109
|
+
const getByResourceOperationSpec = {
|
110
|
+
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current",
|
111
|
+
httpMethod: "GET",
|
112
|
+
responses: {
|
113
|
+
200: {
|
114
|
+
bodyMapper: Mappers.AvailabilityStatus
|
115
|
+
},
|
116
|
+
default: {
|
117
|
+
bodyMapper: Mappers.ErrorResponse
|
118
|
+
}
|
119
|
+
},
|
120
|
+
queryParameters: [
|
121
|
+
Parameters.apiVersion,
|
122
|
+
Parameters.filter,
|
123
|
+
Parameters.expand
|
124
|
+
],
|
125
|
+
urlParameters: [Parameters.$host, Parameters.resourceUri],
|
126
|
+
headerParameters: [Parameters.accept],
|
127
|
+
serializer
|
128
|
+
};
|
129
|
+
const listOperationSpec = {
|
130
|
+
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses",
|
131
|
+
httpMethod: "GET",
|
132
|
+
responses: {
|
133
|
+
200: {
|
134
|
+
bodyMapper: Mappers.AvailabilityStatusListResult
|
135
|
+
},
|
136
|
+
default: {
|
137
|
+
bodyMapper: Mappers.ErrorResponse
|
138
|
+
}
|
139
|
+
},
|
140
|
+
queryParameters: [
|
141
|
+
Parameters.apiVersion,
|
142
|
+
Parameters.filter,
|
143
|
+
Parameters.expand
|
144
|
+
],
|
145
|
+
urlParameters: [Parameters.$host, Parameters.resourceUri],
|
146
|
+
headerParameters: [Parameters.accept],
|
147
|
+
serializer
|
148
|
+
};
|
149
|
+
const listNextOperationSpec = {
|
150
|
+
path: "{nextLink}",
|
151
|
+
httpMethod: "GET",
|
152
|
+
responses: {
|
153
|
+
200: {
|
154
|
+
bodyMapper: Mappers.AvailabilityStatusListResult
|
155
|
+
},
|
156
|
+
default: {
|
157
|
+
bodyMapper: Mappers.ErrorResponse
|
158
|
+
}
|
159
|
+
},
|
160
|
+
queryParameters: [
|
161
|
+
Parameters.apiVersion,
|
162
|
+
Parameters.filter,
|
163
|
+
Parameters.expand
|
164
|
+
],
|
165
|
+
urlParameters: [
|
166
|
+
Parameters.$host,
|
167
|
+
Parameters.resourceUri,
|
168
|
+
Parameters.nextLink
|
169
|
+
],
|
170
|
+
headerParameters: [Parameters.accept],
|
171
|
+
serializer
|
172
|
+
};
|
173
|
+
//# sourceMappingURL=childAvailabilityStatuses.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"childAvailabilityStatuses.js","sourceRoot":"","sources":["../../../src/operations/childAvailabilityStatuses.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,4CAA4C;AAC5C,6DAA6D;AAC7D,MAAM,OAAO,6BAA6B;IAIxC;;;OAGG;IACH,YAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,WAAmB,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