@alicloud/ebs20210730 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +467 -0
- package/dist/client.js +893 -0
- package/dist/client.js.map +1 -0
- package/package.json +32 -0
- package/src/client.ts +1054 -0
package/dist/client.js
ADDED
|
@@ -0,0 +1,893 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
|
+
if (mod && mod.__esModule) return mod;
|
|
4
|
+
var result = {};
|
|
5
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
+
result["default"] = mod;
|
|
7
|
+
return result;
|
|
8
|
+
};
|
|
9
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
// This file is auto-generated, don't edit it
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
|
|
18
|
+
const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $OpenApi = openapi_client_1;
|
|
19
|
+
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
|
|
20
|
+
const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
|
|
21
|
+
const $tea = __importStar(require("@alicloud/tea-typescript"));
|
|
22
|
+
class CreateDiskReplicaPairRequest extends $tea.Model {
|
|
23
|
+
constructor(map) {
|
|
24
|
+
super(map);
|
|
25
|
+
}
|
|
26
|
+
static names() {
|
|
27
|
+
return {
|
|
28
|
+
bandwidth: 'Bandwidth',
|
|
29
|
+
chargeType: 'ChargeType',
|
|
30
|
+
clientToken: 'ClientToken',
|
|
31
|
+
description: 'Description',
|
|
32
|
+
destinationDiskId: 'DestinationDiskId',
|
|
33
|
+
destinationRegionId: 'DestinationRegionId',
|
|
34
|
+
destinationZoneId: 'DestinationZoneId',
|
|
35
|
+
diskId: 'DiskId',
|
|
36
|
+
pairName: 'PairName',
|
|
37
|
+
period: 'Period',
|
|
38
|
+
periodUnit: 'PeriodUnit',
|
|
39
|
+
sourceRegionId: 'SourceRegionId',
|
|
40
|
+
sourceZoneId: 'SourceZoneId',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
static types() {
|
|
44
|
+
return {
|
|
45
|
+
bandwidth: 'number',
|
|
46
|
+
chargeType: 'string',
|
|
47
|
+
clientToken: 'string',
|
|
48
|
+
description: 'string',
|
|
49
|
+
destinationDiskId: 'string',
|
|
50
|
+
destinationRegionId: 'string',
|
|
51
|
+
destinationZoneId: 'string',
|
|
52
|
+
diskId: 'string',
|
|
53
|
+
pairName: 'string',
|
|
54
|
+
period: 'number',
|
|
55
|
+
periodUnit: 'string',
|
|
56
|
+
sourceRegionId: 'string',
|
|
57
|
+
sourceZoneId: 'string',
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.CreateDiskReplicaPairRequest = CreateDiskReplicaPairRequest;
|
|
62
|
+
class CreateDiskReplicaPairResponseBody extends $tea.Model {
|
|
63
|
+
constructor(map) {
|
|
64
|
+
super(map);
|
|
65
|
+
}
|
|
66
|
+
static names() {
|
|
67
|
+
return {
|
|
68
|
+
orderId: 'OrderId',
|
|
69
|
+
replicaPairId: 'ReplicaPairId',
|
|
70
|
+
requestId: 'RequestId',
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
static types() {
|
|
74
|
+
return {
|
|
75
|
+
orderId: 'string',
|
|
76
|
+
replicaPairId: 'string',
|
|
77
|
+
requestId: 'string',
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.CreateDiskReplicaPairResponseBody = CreateDiskReplicaPairResponseBody;
|
|
82
|
+
class CreateDiskReplicaPairResponse extends $tea.Model {
|
|
83
|
+
constructor(map) {
|
|
84
|
+
super(map);
|
|
85
|
+
}
|
|
86
|
+
static names() {
|
|
87
|
+
return {
|
|
88
|
+
headers: 'headers',
|
|
89
|
+
body: 'body',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
static types() {
|
|
93
|
+
return {
|
|
94
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
95
|
+
body: CreateDiskReplicaPairResponseBody,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.CreateDiskReplicaPairResponse = CreateDiskReplicaPairResponse;
|
|
100
|
+
class DeleteDiskReplicaPairRequest extends $tea.Model {
|
|
101
|
+
constructor(map) {
|
|
102
|
+
super(map);
|
|
103
|
+
}
|
|
104
|
+
static names() {
|
|
105
|
+
return {
|
|
106
|
+
clientToken: 'ClientToken',
|
|
107
|
+
regionId: 'RegionId',
|
|
108
|
+
replicaPairId: 'ReplicaPairId',
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
static types() {
|
|
112
|
+
return {
|
|
113
|
+
clientToken: 'string',
|
|
114
|
+
regionId: 'string',
|
|
115
|
+
replicaPairId: 'string',
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
exports.DeleteDiskReplicaPairRequest = DeleteDiskReplicaPairRequest;
|
|
120
|
+
class DeleteDiskReplicaPairResponseBody extends $tea.Model {
|
|
121
|
+
constructor(map) {
|
|
122
|
+
super(map);
|
|
123
|
+
}
|
|
124
|
+
static names() {
|
|
125
|
+
return {
|
|
126
|
+
requestId: 'RequestId',
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
static types() {
|
|
130
|
+
return {
|
|
131
|
+
requestId: 'string',
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.DeleteDiskReplicaPairResponseBody = DeleteDiskReplicaPairResponseBody;
|
|
136
|
+
class DeleteDiskReplicaPairResponse extends $tea.Model {
|
|
137
|
+
constructor(map) {
|
|
138
|
+
super(map);
|
|
139
|
+
}
|
|
140
|
+
static names() {
|
|
141
|
+
return {
|
|
142
|
+
headers: 'headers',
|
|
143
|
+
body: 'body',
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
static types() {
|
|
147
|
+
return {
|
|
148
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
149
|
+
body: DeleteDiskReplicaPairResponseBody,
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
exports.DeleteDiskReplicaPairResponse = DeleteDiskReplicaPairResponse;
|
|
154
|
+
class DescribeDiskReplicaPairsRequest extends $tea.Model {
|
|
155
|
+
constructor(map) {
|
|
156
|
+
super(map);
|
|
157
|
+
}
|
|
158
|
+
static names() {
|
|
159
|
+
return {
|
|
160
|
+
maxResults: 'MaxResults',
|
|
161
|
+
nextToken: 'NextToken',
|
|
162
|
+
pairIds: 'PairIds',
|
|
163
|
+
regionId: 'RegionId',
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
static types() {
|
|
167
|
+
return {
|
|
168
|
+
maxResults: 'number',
|
|
169
|
+
nextToken: 'string',
|
|
170
|
+
pairIds: 'string',
|
|
171
|
+
regionId: 'string',
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
exports.DescribeDiskReplicaPairsRequest = DescribeDiskReplicaPairsRequest;
|
|
176
|
+
class DescribeDiskReplicaPairsResponseBody extends $tea.Model {
|
|
177
|
+
constructor(map) {
|
|
178
|
+
super(map);
|
|
179
|
+
}
|
|
180
|
+
static names() {
|
|
181
|
+
return {
|
|
182
|
+
nextToken: 'NextToken',
|
|
183
|
+
replicaPairs: 'ReplicaPairs',
|
|
184
|
+
requestId: 'RequestId',
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
static types() {
|
|
188
|
+
return {
|
|
189
|
+
nextToken: 'string',
|
|
190
|
+
replicaPairs: { 'type': 'array', 'itemType': DescribeDiskReplicaPairsResponseBodyReplicaPairs },
|
|
191
|
+
requestId: 'string',
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
exports.DescribeDiskReplicaPairsResponseBody = DescribeDiskReplicaPairsResponseBody;
|
|
196
|
+
class DescribeDiskReplicaPairsResponse extends $tea.Model {
|
|
197
|
+
constructor(map) {
|
|
198
|
+
super(map);
|
|
199
|
+
}
|
|
200
|
+
static names() {
|
|
201
|
+
return {
|
|
202
|
+
headers: 'headers',
|
|
203
|
+
body: 'body',
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
static types() {
|
|
207
|
+
return {
|
|
208
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
209
|
+
body: DescribeDiskReplicaPairsResponseBody,
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
exports.DescribeDiskReplicaPairsResponse = DescribeDiskReplicaPairsResponse;
|
|
214
|
+
class DescribeRegionsRequest extends $tea.Model {
|
|
215
|
+
constructor(map) {
|
|
216
|
+
super(map);
|
|
217
|
+
}
|
|
218
|
+
static names() {
|
|
219
|
+
return {
|
|
220
|
+
acceptLanguage: 'AcceptLanguage',
|
|
221
|
+
resourceType: 'ResourceType',
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
static types() {
|
|
225
|
+
return {
|
|
226
|
+
acceptLanguage: 'string',
|
|
227
|
+
resourceType: 'string',
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
exports.DescribeRegionsRequest = DescribeRegionsRequest;
|
|
232
|
+
class DescribeRegionsResponseBody extends $tea.Model {
|
|
233
|
+
constructor(map) {
|
|
234
|
+
super(map);
|
|
235
|
+
}
|
|
236
|
+
static names() {
|
|
237
|
+
return {
|
|
238
|
+
regions: 'Regions',
|
|
239
|
+
requestId: 'RequestId',
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
static types() {
|
|
243
|
+
return {
|
|
244
|
+
regions: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegions },
|
|
245
|
+
requestId: 'string',
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
exports.DescribeRegionsResponseBody = DescribeRegionsResponseBody;
|
|
250
|
+
class DescribeRegionsResponse extends $tea.Model {
|
|
251
|
+
constructor(map) {
|
|
252
|
+
super(map);
|
|
253
|
+
}
|
|
254
|
+
static names() {
|
|
255
|
+
return {
|
|
256
|
+
headers: 'headers',
|
|
257
|
+
body: 'body',
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
static types() {
|
|
261
|
+
return {
|
|
262
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
263
|
+
body: DescribeRegionsResponseBody,
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
exports.DescribeRegionsResponse = DescribeRegionsResponse;
|
|
268
|
+
class FailoverDiskReplicaPairRequest extends $tea.Model {
|
|
269
|
+
constructor(map) {
|
|
270
|
+
super(map);
|
|
271
|
+
}
|
|
272
|
+
static names() {
|
|
273
|
+
return {
|
|
274
|
+
clientToken: 'ClientToken',
|
|
275
|
+
regionId: 'RegionId',
|
|
276
|
+
replicaPairId: 'ReplicaPairId',
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
static types() {
|
|
280
|
+
return {
|
|
281
|
+
clientToken: 'string',
|
|
282
|
+
regionId: 'string',
|
|
283
|
+
replicaPairId: 'string',
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
exports.FailoverDiskReplicaPairRequest = FailoverDiskReplicaPairRequest;
|
|
288
|
+
class FailoverDiskReplicaPairResponseBody extends $tea.Model {
|
|
289
|
+
constructor(map) {
|
|
290
|
+
super(map);
|
|
291
|
+
}
|
|
292
|
+
static names() {
|
|
293
|
+
return {
|
|
294
|
+
requestId: 'RequestId',
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
static types() {
|
|
298
|
+
return {
|
|
299
|
+
requestId: 'string',
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
exports.FailoverDiskReplicaPairResponseBody = FailoverDiskReplicaPairResponseBody;
|
|
304
|
+
class FailoverDiskReplicaPairResponse extends $tea.Model {
|
|
305
|
+
constructor(map) {
|
|
306
|
+
super(map);
|
|
307
|
+
}
|
|
308
|
+
static names() {
|
|
309
|
+
return {
|
|
310
|
+
headers: 'headers',
|
|
311
|
+
body: 'body',
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
static types() {
|
|
315
|
+
return {
|
|
316
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
317
|
+
body: FailoverDiskReplicaPairResponseBody,
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
exports.FailoverDiskReplicaPairResponse = FailoverDiskReplicaPairResponse;
|
|
322
|
+
class ModifyDiskReplicaPairRequest extends $tea.Model {
|
|
323
|
+
constructor(map) {
|
|
324
|
+
super(map);
|
|
325
|
+
}
|
|
326
|
+
static names() {
|
|
327
|
+
return {
|
|
328
|
+
clientToken: 'ClientToken',
|
|
329
|
+
description: 'Description',
|
|
330
|
+
pairName: 'PairName',
|
|
331
|
+
regionId: 'RegionId',
|
|
332
|
+
replicaPairId: 'ReplicaPairId',
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
static types() {
|
|
336
|
+
return {
|
|
337
|
+
clientToken: 'string',
|
|
338
|
+
description: 'string',
|
|
339
|
+
pairName: 'string',
|
|
340
|
+
regionId: 'string',
|
|
341
|
+
replicaPairId: 'string',
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
exports.ModifyDiskReplicaPairRequest = ModifyDiskReplicaPairRequest;
|
|
346
|
+
class ModifyDiskReplicaPairResponseBody extends $tea.Model {
|
|
347
|
+
constructor(map) {
|
|
348
|
+
super(map);
|
|
349
|
+
}
|
|
350
|
+
static names() {
|
|
351
|
+
return {
|
|
352
|
+
requestId: 'RequestId',
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
static types() {
|
|
356
|
+
return {
|
|
357
|
+
requestId: 'string',
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
exports.ModifyDiskReplicaPairResponseBody = ModifyDiskReplicaPairResponseBody;
|
|
362
|
+
class ModifyDiskReplicaPairResponse extends $tea.Model {
|
|
363
|
+
constructor(map) {
|
|
364
|
+
super(map);
|
|
365
|
+
}
|
|
366
|
+
static names() {
|
|
367
|
+
return {
|
|
368
|
+
headers: 'headers',
|
|
369
|
+
body: 'body',
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
static types() {
|
|
373
|
+
return {
|
|
374
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
375
|
+
body: ModifyDiskReplicaPairResponseBody,
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
exports.ModifyDiskReplicaPairResponse = ModifyDiskReplicaPairResponse;
|
|
380
|
+
class ReprotectDiskReplicaPairRequest extends $tea.Model {
|
|
381
|
+
constructor(map) {
|
|
382
|
+
super(map);
|
|
383
|
+
}
|
|
384
|
+
static names() {
|
|
385
|
+
return {
|
|
386
|
+
clientToken: 'ClientToken',
|
|
387
|
+
regionId: 'RegionId',
|
|
388
|
+
replicaPairId: 'ReplicaPairId',
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
static types() {
|
|
392
|
+
return {
|
|
393
|
+
clientToken: 'string',
|
|
394
|
+
regionId: 'string',
|
|
395
|
+
replicaPairId: 'string',
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
exports.ReprotectDiskReplicaPairRequest = ReprotectDiskReplicaPairRequest;
|
|
400
|
+
class ReprotectDiskReplicaPairResponseBody extends $tea.Model {
|
|
401
|
+
constructor(map) {
|
|
402
|
+
super(map);
|
|
403
|
+
}
|
|
404
|
+
static names() {
|
|
405
|
+
return {
|
|
406
|
+
requestId: 'RequestId',
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
static types() {
|
|
410
|
+
return {
|
|
411
|
+
requestId: 'string',
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
exports.ReprotectDiskReplicaPairResponseBody = ReprotectDiskReplicaPairResponseBody;
|
|
416
|
+
class ReprotectDiskReplicaPairResponse extends $tea.Model {
|
|
417
|
+
constructor(map) {
|
|
418
|
+
super(map);
|
|
419
|
+
}
|
|
420
|
+
static names() {
|
|
421
|
+
return {
|
|
422
|
+
headers: 'headers',
|
|
423
|
+
body: 'body',
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
static types() {
|
|
427
|
+
return {
|
|
428
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
429
|
+
body: ReprotectDiskReplicaPairResponseBody,
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
exports.ReprotectDiskReplicaPairResponse = ReprotectDiskReplicaPairResponse;
|
|
434
|
+
class StartDiskReplicaPairRequest extends $tea.Model {
|
|
435
|
+
constructor(map) {
|
|
436
|
+
super(map);
|
|
437
|
+
}
|
|
438
|
+
static names() {
|
|
439
|
+
return {
|
|
440
|
+
clientToken: 'ClientToken',
|
|
441
|
+
regionId: 'RegionId',
|
|
442
|
+
replicaPairId: 'ReplicaPairId',
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
static types() {
|
|
446
|
+
return {
|
|
447
|
+
clientToken: 'string',
|
|
448
|
+
regionId: 'string',
|
|
449
|
+
replicaPairId: 'string',
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
exports.StartDiskReplicaPairRequest = StartDiskReplicaPairRequest;
|
|
454
|
+
class StartDiskReplicaPairResponseBody extends $tea.Model {
|
|
455
|
+
constructor(map) {
|
|
456
|
+
super(map);
|
|
457
|
+
}
|
|
458
|
+
static names() {
|
|
459
|
+
return {
|
|
460
|
+
requestId: 'RequestId',
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
static types() {
|
|
464
|
+
return {
|
|
465
|
+
requestId: 'string',
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
exports.StartDiskReplicaPairResponseBody = StartDiskReplicaPairResponseBody;
|
|
470
|
+
class StartDiskReplicaPairResponse extends $tea.Model {
|
|
471
|
+
constructor(map) {
|
|
472
|
+
super(map);
|
|
473
|
+
}
|
|
474
|
+
static names() {
|
|
475
|
+
return {
|
|
476
|
+
headers: 'headers',
|
|
477
|
+
body: 'body',
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
static types() {
|
|
481
|
+
return {
|
|
482
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
483
|
+
body: StartDiskReplicaPairResponseBody,
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
exports.StartDiskReplicaPairResponse = StartDiskReplicaPairResponse;
|
|
488
|
+
class StopDiskReplicaPairRequest extends $tea.Model {
|
|
489
|
+
constructor(map) {
|
|
490
|
+
super(map);
|
|
491
|
+
}
|
|
492
|
+
static names() {
|
|
493
|
+
return {
|
|
494
|
+
clientToken: 'ClientToken',
|
|
495
|
+
regionId: 'RegionId',
|
|
496
|
+
replicaPairId: 'ReplicaPairId',
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
static types() {
|
|
500
|
+
return {
|
|
501
|
+
clientToken: 'string',
|
|
502
|
+
regionId: 'string',
|
|
503
|
+
replicaPairId: 'string',
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
exports.StopDiskReplicaPairRequest = StopDiskReplicaPairRequest;
|
|
508
|
+
class StopDiskReplicaPairResponseBody extends $tea.Model {
|
|
509
|
+
constructor(map) {
|
|
510
|
+
super(map);
|
|
511
|
+
}
|
|
512
|
+
static names() {
|
|
513
|
+
return {
|
|
514
|
+
requestId: 'RequestId',
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
static types() {
|
|
518
|
+
return {
|
|
519
|
+
requestId: 'string',
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
exports.StopDiskReplicaPairResponseBody = StopDiskReplicaPairResponseBody;
|
|
524
|
+
class StopDiskReplicaPairResponse extends $tea.Model {
|
|
525
|
+
constructor(map) {
|
|
526
|
+
super(map);
|
|
527
|
+
}
|
|
528
|
+
static names() {
|
|
529
|
+
return {
|
|
530
|
+
headers: 'headers',
|
|
531
|
+
body: 'body',
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
static types() {
|
|
535
|
+
return {
|
|
536
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
537
|
+
body: StopDiskReplicaPairResponseBody,
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
exports.StopDiskReplicaPairResponse = StopDiskReplicaPairResponse;
|
|
542
|
+
class DescribeDiskReplicaPairsResponseBodyReplicaPairs extends $tea.Model {
|
|
543
|
+
constructor(map) {
|
|
544
|
+
super(map);
|
|
545
|
+
}
|
|
546
|
+
static names() {
|
|
547
|
+
return {
|
|
548
|
+
asyncCycle: 'AsyncCycle',
|
|
549
|
+
bandwidth: 'Bandwidth',
|
|
550
|
+
description: 'Description',
|
|
551
|
+
destinationDiskId: 'DestinationDiskId',
|
|
552
|
+
destinationRegion: 'DestinationRegion',
|
|
553
|
+
lastRPO: 'LastRPO',
|
|
554
|
+
pairName: 'PairName',
|
|
555
|
+
replicaPairId: 'ReplicaPairId',
|
|
556
|
+
sourceDiskId: 'SourceDiskId',
|
|
557
|
+
sourceRegion: 'SourceRegion',
|
|
558
|
+
status: 'Status',
|
|
559
|
+
statusMessage: 'StatusMessage',
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
static types() {
|
|
563
|
+
return {
|
|
564
|
+
asyncCycle: 'number',
|
|
565
|
+
bandwidth: 'number',
|
|
566
|
+
description: 'string',
|
|
567
|
+
destinationDiskId: 'string',
|
|
568
|
+
destinationRegion: 'string',
|
|
569
|
+
lastRPO: 'number',
|
|
570
|
+
pairName: 'string',
|
|
571
|
+
replicaPairId: 'string',
|
|
572
|
+
sourceDiskId: 'string',
|
|
573
|
+
sourceRegion: 'string',
|
|
574
|
+
status: 'string',
|
|
575
|
+
statusMessage: 'string',
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
exports.DescribeDiskReplicaPairsResponseBodyReplicaPairs = DescribeDiskReplicaPairsResponseBodyReplicaPairs;
|
|
580
|
+
class DescribeRegionsResponseBodyRegionsZones extends $tea.Model {
|
|
581
|
+
constructor(map) {
|
|
582
|
+
super(map);
|
|
583
|
+
}
|
|
584
|
+
static names() {
|
|
585
|
+
return {
|
|
586
|
+
localName: 'LocalName',
|
|
587
|
+
zoneId: 'ZoneId',
|
|
588
|
+
};
|
|
589
|
+
}
|
|
590
|
+
static types() {
|
|
591
|
+
return {
|
|
592
|
+
localName: 'string',
|
|
593
|
+
zoneId: 'string',
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
exports.DescribeRegionsResponseBodyRegionsZones = DescribeRegionsResponseBodyRegionsZones;
|
|
598
|
+
class DescribeRegionsResponseBodyRegions extends $tea.Model {
|
|
599
|
+
constructor(map) {
|
|
600
|
+
super(map);
|
|
601
|
+
}
|
|
602
|
+
static names() {
|
|
603
|
+
return {
|
|
604
|
+
localName: 'LocalName',
|
|
605
|
+
regionEndpoint: 'RegionEndpoint',
|
|
606
|
+
regionId: 'RegionId',
|
|
607
|
+
zones: 'Zones',
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
static types() {
|
|
611
|
+
return {
|
|
612
|
+
localName: 'string',
|
|
613
|
+
regionEndpoint: 'string',
|
|
614
|
+
regionId: 'string',
|
|
615
|
+
zones: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegionsZones },
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
exports.DescribeRegionsResponseBodyRegions = DescribeRegionsResponseBodyRegions;
|
|
620
|
+
class Client extends openapi_client_1.default {
|
|
621
|
+
constructor(config) {
|
|
622
|
+
super(config);
|
|
623
|
+
this._endpointRule = "";
|
|
624
|
+
this.checkConfig(config);
|
|
625
|
+
this._endpoint = this.getEndpoint("ebs", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
626
|
+
}
|
|
627
|
+
getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) {
|
|
628
|
+
if (!tea_util_1.default.empty(endpoint)) {
|
|
629
|
+
return endpoint;
|
|
630
|
+
}
|
|
631
|
+
if (!tea_util_1.default.isUnset(endpointMap) && !tea_util_1.default.empty(endpointMap[regionId])) {
|
|
632
|
+
return endpointMap[regionId];
|
|
633
|
+
}
|
|
634
|
+
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
635
|
+
}
|
|
636
|
+
async createDiskReplicaPairWithOptions(request, runtime) {
|
|
637
|
+
tea_util_1.default.validateModel(request);
|
|
638
|
+
let query = {};
|
|
639
|
+
query["Bandwidth"] = request.bandwidth;
|
|
640
|
+
query["ChargeType"] = request.chargeType;
|
|
641
|
+
query["ClientToken"] = request.clientToken;
|
|
642
|
+
query["Description"] = request.description;
|
|
643
|
+
query["DestinationDiskId"] = request.destinationDiskId;
|
|
644
|
+
query["DestinationRegionId"] = request.destinationRegionId;
|
|
645
|
+
query["DestinationZoneId"] = request.destinationZoneId;
|
|
646
|
+
query["DiskId"] = request.diskId;
|
|
647
|
+
query["PairName"] = request.pairName;
|
|
648
|
+
query["Period"] = request.period;
|
|
649
|
+
query["PeriodUnit"] = request.periodUnit;
|
|
650
|
+
query["SourceRegionId"] = request.sourceRegionId;
|
|
651
|
+
query["SourceZoneId"] = request.sourceZoneId;
|
|
652
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
653
|
+
query: openapi_util_1.default.query(query),
|
|
654
|
+
body: tea_util_1.default.toMap(request),
|
|
655
|
+
});
|
|
656
|
+
let params = new $OpenApi.Params({
|
|
657
|
+
action: "CreateDiskReplicaPair",
|
|
658
|
+
version: "2021-07-30",
|
|
659
|
+
protocol: "HTTPS",
|
|
660
|
+
pathname: "/",
|
|
661
|
+
method: "POST",
|
|
662
|
+
authType: "AK",
|
|
663
|
+
style: "RPC",
|
|
664
|
+
reqBodyType: "json",
|
|
665
|
+
bodyType: "json",
|
|
666
|
+
});
|
|
667
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateDiskReplicaPairResponse({}));
|
|
668
|
+
}
|
|
669
|
+
async createDiskReplicaPair(request) {
|
|
670
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
671
|
+
return await this.createDiskReplicaPairWithOptions(request, runtime);
|
|
672
|
+
}
|
|
673
|
+
async deleteDiskReplicaPairWithOptions(request, runtime) {
|
|
674
|
+
tea_util_1.default.validateModel(request);
|
|
675
|
+
let query = {};
|
|
676
|
+
query["ClientToken"] = request.clientToken;
|
|
677
|
+
query["RegionId"] = request.regionId;
|
|
678
|
+
query["ReplicaPairId"] = request.replicaPairId;
|
|
679
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
680
|
+
query: openapi_util_1.default.query(query),
|
|
681
|
+
body: tea_util_1.default.toMap(request),
|
|
682
|
+
});
|
|
683
|
+
let params = new $OpenApi.Params({
|
|
684
|
+
action: "DeleteDiskReplicaPair",
|
|
685
|
+
version: "2021-07-30",
|
|
686
|
+
protocol: "HTTPS",
|
|
687
|
+
pathname: "/",
|
|
688
|
+
method: "POST",
|
|
689
|
+
authType: "AK",
|
|
690
|
+
style: "RPC",
|
|
691
|
+
reqBodyType: "json",
|
|
692
|
+
bodyType: "json",
|
|
693
|
+
});
|
|
694
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteDiskReplicaPairResponse({}));
|
|
695
|
+
}
|
|
696
|
+
async deleteDiskReplicaPair(request) {
|
|
697
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
698
|
+
return await this.deleteDiskReplicaPairWithOptions(request, runtime);
|
|
699
|
+
}
|
|
700
|
+
async describeDiskReplicaPairsWithOptions(request, runtime) {
|
|
701
|
+
tea_util_1.default.validateModel(request);
|
|
702
|
+
let query = {};
|
|
703
|
+
query["MaxResults"] = request.maxResults;
|
|
704
|
+
query["NextToken"] = request.nextToken;
|
|
705
|
+
query["PairIds"] = request.pairIds;
|
|
706
|
+
query["RegionId"] = request.regionId;
|
|
707
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
708
|
+
query: openapi_util_1.default.query(query),
|
|
709
|
+
body: tea_util_1.default.toMap(request),
|
|
710
|
+
});
|
|
711
|
+
let params = new $OpenApi.Params({
|
|
712
|
+
action: "DescribeDiskReplicaPairs",
|
|
713
|
+
version: "2021-07-30",
|
|
714
|
+
protocol: "HTTPS",
|
|
715
|
+
pathname: "/",
|
|
716
|
+
method: "POST",
|
|
717
|
+
authType: "AK",
|
|
718
|
+
style: "RPC",
|
|
719
|
+
reqBodyType: "json",
|
|
720
|
+
bodyType: "json",
|
|
721
|
+
});
|
|
722
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDiskReplicaPairsResponse({}));
|
|
723
|
+
}
|
|
724
|
+
async describeDiskReplicaPairs(request) {
|
|
725
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
726
|
+
return await this.describeDiskReplicaPairsWithOptions(request, runtime);
|
|
727
|
+
}
|
|
728
|
+
async describeRegionsWithOptions(request, runtime) {
|
|
729
|
+
tea_util_1.default.validateModel(request);
|
|
730
|
+
let query = {};
|
|
731
|
+
query["AcceptLanguage"] = request.acceptLanguage;
|
|
732
|
+
query["ResourceType"] = request.resourceType;
|
|
733
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
734
|
+
query: openapi_util_1.default.query(query),
|
|
735
|
+
body: tea_util_1.default.toMap(request),
|
|
736
|
+
});
|
|
737
|
+
let params = new $OpenApi.Params({
|
|
738
|
+
action: "DescribeRegions",
|
|
739
|
+
version: "2021-07-30",
|
|
740
|
+
protocol: "HTTPS",
|
|
741
|
+
pathname: "/",
|
|
742
|
+
method: "POST",
|
|
743
|
+
authType: "AK",
|
|
744
|
+
style: "RPC",
|
|
745
|
+
reqBodyType: "json",
|
|
746
|
+
bodyType: "json",
|
|
747
|
+
});
|
|
748
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeRegionsResponse({}));
|
|
749
|
+
}
|
|
750
|
+
async describeRegions(request) {
|
|
751
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
752
|
+
return await this.describeRegionsWithOptions(request, runtime);
|
|
753
|
+
}
|
|
754
|
+
async failoverDiskReplicaPairWithOptions(request, runtime) {
|
|
755
|
+
tea_util_1.default.validateModel(request);
|
|
756
|
+
let query = {};
|
|
757
|
+
query["ClientToken"] = request.clientToken;
|
|
758
|
+
query["RegionId"] = request.regionId;
|
|
759
|
+
query["ReplicaPairId"] = request.replicaPairId;
|
|
760
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
761
|
+
query: openapi_util_1.default.query(query),
|
|
762
|
+
body: tea_util_1.default.toMap(request),
|
|
763
|
+
});
|
|
764
|
+
let params = new $OpenApi.Params({
|
|
765
|
+
action: "FailoverDiskReplicaPair",
|
|
766
|
+
version: "2021-07-30",
|
|
767
|
+
protocol: "HTTPS",
|
|
768
|
+
pathname: "/",
|
|
769
|
+
method: "POST",
|
|
770
|
+
authType: "AK",
|
|
771
|
+
style: "RPC",
|
|
772
|
+
reqBodyType: "json",
|
|
773
|
+
bodyType: "json",
|
|
774
|
+
});
|
|
775
|
+
return $tea.cast(await this.callApi(params, req, runtime), new FailoverDiskReplicaPairResponse({}));
|
|
776
|
+
}
|
|
777
|
+
async failoverDiskReplicaPair(request) {
|
|
778
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
779
|
+
return await this.failoverDiskReplicaPairWithOptions(request, runtime);
|
|
780
|
+
}
|
|
781
|
+
async modifyDiskReplicaPairWithOptions(request, runtime) {
|
|
782
|
+
tea_util_1.default.validateModel(request);
|
|
783
|
+
let query = {};
|
|
784
|
+
query["ClientToken"] = request.clientToken;
|
|
785
|
+
query["Description"] = request.description;
|
|
786
|
+
query["PairName"] = request.pairName;
|
|
787
|
+
query["RegionId"] = request.regionId;
|
|
788
|
+
query["ReplicaPairId"] = request.replicaPairId;
|
|
789
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
790
|
+
query: openapi_util_1.default.query(query),
|
|
791
|
+
body: tea_util_1.default.toMap(request),
|
|
792
|
+
});
|
|
793
|
+
let params = new $OpenApi.Params({
|
|
794
|
+
action: "ModifyDiskReplicaPair",
|
|
795
|
+
version: "2021-07-30",
|
|
796
|
+
protocol: "HTTPS",
|
|
797
|
+
pathname: "/",
|
|
798
|
+
method: "POST",
|
|
799
|
+
authType: "AK",
|
|
800
|
+
style: "RPC",
|
|
801
|
+
reqBodyType: "json",
|
|
802
|
+
bodyType: "json",
|
|
803
|
+
});
|
|
804
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDiskReplicaPairResponse({}));
|
|
805
|
+
}
|
|
806
|
+
async modifyDiskReplicaPair(request) {
|
|
807
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
808
|
+
return await this.modifyDiskReplicaPairWithOptions(request, runtime);
|
|
809
|
+
}
|
|
810
|
+
async reprotectDiskReplicaPairWithOptions(request, runtime) {
|
|
811
|
+
tea_util_1.default.validateModel(request);
|
|
812
|
+
let query = {};
|
|
813
|
+
query["ClientToken"] = request.clientToken;
|
|
814
|
+
query["RegionId"] = request.regionId;
|
|
815
|
+
query["ReplicaPairId"] = request.replicaPairId;
|
|
816
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
817
|
+
query: openapi_util_1.default.query(query),
|
|
818
|
+
body: tea_util_1.default.toMap(request),
|
|
819
|
+
});
|
|
820
|
+
let params = new $OpenApi.Params({
|
|
821
|
+
action: "ReprotectDiskReplicaPair",
|
|
822
|
+
version: "2021-07-30",
|
|
823
|
+
protocol: "HTTPS",
|
|
824
|
+
pathname: "/",
|
|
825
|
+
method: "POST",
|
|
826
|
+
authType: "AK",
|
|
827
|
+
style: "RPC",
|
|
828
|
+
reqBodyType: "json",
|
|
829
|
+
bodyType: "json",
|
|
830
|
+
});
|
|
831
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ReprotectDiskReplicaPairResponse({}));
|
|
832
|
+
}
|
|
833
|
+
async reprotectDiskReplicaPair(request) {
|
|
834
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
835
|
+
return await this.reprotectDiskReplicaPairWithOptions(request, runtime);
|
|
836
|
+
}
|
|
837
|
+
async startDiskReplicaPairWithOptions(request, runtime) {
|
|
838
|
+
tea_util_1.default.validateModel(request);
|
|
839
|
+
let query = {};
|
|
840
|
+
query["ClientToken"] = request.clientToken;
|
|
841
|
+
query["RegionId"] = request.regionId;
|
|
842
|
+
query["ReplicaPairId"] = request.replicaPairId;
|
|
843
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
844
|
+
query: openapi_util_1.default.query(query),
|
|
845
|
+
body: tea_util_1.default.toMap(request),
|
|
846
|
+
});
|
|
847
|
+
let params = new $OpenApi.Params({
|
|
848
|
+
action: "StartDiskReplicaPair",
|
|
849
|
+
version: "2021-07-30",
|
|
850
|
+
protocol: "HTTPS",
|
|
851
|
+
pathname: "/",
|
|
852
|
+
method: "POST",
|
|
853
|
+
authType: "AK",
|
|
854
|
+
style: "RPC",
|
|
855
|
+
reqBodyType: "json",
|
|
856
|
+
bodyType: "json",
|
|
857
|
+
});
|
|
858
|
+
return $tea.cast(await this.callApi(params, req, runtime), new StartDiskReplicaPairResponse({}));
|
|
859
|
+
}
|
|
860
|
+
async startDiskReplicaPair(request) {
|
|
861
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
862
|
+
return await this.startDiskReplicaPairWithOptions(request, runtime);
|
|
863
|
+
}
|
|
864
|
+
async stopDiskReplicaPairWithOptions(request, runtime) {
|
|
865
|
+
tea_util_1.default.validateModel(request);
|
|
866
|
+
let query = {};
|
|
867
|
+
query["ClientToken"] = request.clientToken;
|
|
868
|
+
query["RegionId"] = request.regionId;
|
|
869
|
+
query["ReplicaPairId"] = request.replicaPairId;
|
|
870
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
871
|
+
query: openapi_util_1.default.query(query),
|
|
872
|
+
body: tea_util_1.default.toMap(request),
|
|
873
|
+
});
|
|
874
|
+
let params = new $OpenApi.Params({
|
|
875
|
+
action: "StopDiskReplicaPair",
|
|
876
|
+
version: "2021-07-30",
|
|
877
|
+
protocol: "HTTPS",
|
|
878
|
+
pathname: "/",
|
|
879
|
+
method: "POST",
|
|
880
|
+
authType: "AK",
|
|
881
|
+
style: "RPC",
|
|
882
|
+
reqBodyType: "json",
|
|
883
|
+
bodyType: "json",
|
|
884
|
+
});
|
|
885
|
+
return $tea.cast(await this.callApi(params, req, runtime), new StopDiskReplicaPairResponse({}));
|
|
886
|
+
}
|
|
887
|
+
async stopDiskReplicaPair(request) {
|
|
888
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
889
|
+
return await this.stopDiskReplicaPairWithOptions(request, runtime);
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
exports.default = Client;
|
|
893
|
+
//# sourceMappingURL=client.js.map
|