@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.d.ts
ADDED
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*/
|
|
4
|
+
import * as $Util from '@alicloud/tea-util';
|
|
5
|
+
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
|
|
6
|
+
import * as $tea from '@alicloud/tea-typescript';
|
|
7
|
+
export declare class CreateDiskReplicaPairRequest extends $tea.Model {
|
|
8
|
+
bandwidth?: number;
|
|
9
|
+
chargeType?: string;
|
|
10
|
+
clientToken?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
destinationDiskId?: string;
|
|
13
|
+
destinationRegionId?: string;
|
|
14
|
+
destinationZoneId?: string;
|
|
15
|
+
diskId?: string;
|
|
16
|
+
pairName?: string;
|
|
17
|
+
period?: number;
|
|
18
|
+
periodUnit?: string;
|
|
19
|
+
sourceRegionId?: string;
|
|
20
|
+
sourceZoneId?: string;
|
|
21
|
+
static names(): {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
24
|
+
static types(): {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
constructor(map?: {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export declare class CreateDiskReplicaPairResponseBody extends $tea.Model {
|
|
32
|
+
orderId?: string;
|
|
33
|
+
replicaPairId?: string;
|
|
34
|
+
requestId?: string;
|
|
35
|
+
static names(): {
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
};
|
|
38
|
+
static types(): {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
};
|
|
41
|
+
constructor(map?: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
export declare class CreateDiskReplicaPairResponse extends $tea.Model {
|
|
46
|
+
headers: {
|
|
47
|
+
[key: string]: string;
|
|
48
|
+
};
|
|
49
|
+
body: CreateDiskReplicaPairResponseBody;
|
|
50
|
+
static names(): {
|
|
51
|
+
[key: string]: string;
|
|
52
|
+
};
|
|
53
|
+
static types(): {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
};
|
|
56
|
+
constructor(map?: {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
export declare class DeleteDiskReplicaPairRequest extends $tea.Model {
|
|
61
|
+
clientToken?: string;
|
|
62
|
+
regionId?: string;
|
|
63
|
+
replicaPairId?: string;
|
|
64
|
+
static names(): {
|
|
65
|
+
[key: string]: string;
|
|
66
|
+
};
|
|
67
|
+
static types(): {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
};
|
|
70
|
+
constructor(map?: {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
export declare class DeleteDiskReplicaPairResponseBody extends $tea.Model {
|
|
75
|
+
requestId?: string;
|
|
76
|
+
static names(): {
|
|
77
|
+
[key: string]: string;
|
|
78
|
+
};
|
|
79
|
+
static types(): {
|
|
80
|
+
[key: string]: any;
|
|
81
|
+
};
|
|
82
|
+
constructor(map?: {
|
|
83
|
+
[key: string]: any;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
export declare class DeleteDiskReplicaPairResponse extends $tea.Model {
|
|
87
|
+
headers: {
|
|
88
|
+
[key: string]: string;
|
|
89
|
+
};
|
|
90
|
+
body: DeleteDiskReplicaPairResponseBody;
|
|
91
|
+
static names(): {
|
|
92
|
+
[key: string]: string;
|
|
93
|
+
};
|
|
94
|
+
static types(): {
|
|
95
|
+
[key: string]: any;
|
|
96
|
+
};
|
|
97
|
+
constructor(map?: {
|
|
98
|
+
[key: string]: any;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
export declare class DescribeDiskReplicaPairsRequest extends $tea.Model {
|
|
102
|
+
maxResults?: number;
|
|
103
|
+
nextToken?: string;
|
|
104
|
+
pairIds?: string;
|
|
105
|
+
regionId?: string;
|
|
106
|
+
static names(): {
|
|
107
|
+
[key: string]: string;
|
|
108
|
+
};
|
|
109
|
+
static types(): {
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
};
|
|
112
|
+
constructor(map?: {
|
|
113
|
+
[key: string]: any;
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
export declare class DescribeDiskReplicaPairsResponseBody extends $tea.Model {
|
|
117
|
+
nextToken?: string;
|
|
118
|
+
replicaPairs?: DescribeDiskReplicaPairsResponseBodyReplicaPairs[];
|
|
119
|
+
requestId?: string;
|
|
120
|
+
static names(): {
|
|
121
|
+
[key: string]: string;
|
|
122
|
+
};
|
|
123
|
+
static types(): {
|
|
124
|
+
[key: string]: any;
|
|
125
|
+
};
|
|
126
|
+
constructor(map?: {
|
|
127
|
+
[key: string]: any;
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
export declare class DescribeDiskReplicaPairsResponse extends $tea.Model {
|
|
131
|
+
headers: {
|
|
132
|
+
[key: string]: string;
|
|
133
|
+
};
|
|
134
|
+
body: DescribeDiskReplicaPairsResponseBody;
|
|
135
|
+
static names(): {
|
|
136
|
+
[key: string]: string;
|
|
137
|
+
};
|
|
138
|
+
static types(): {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
};
|
|
141
|
+
constructor(map?: {
|
|
142
|
+
[key: string]: any;
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
export declare class DescribeRegionsRequest extends $tea.Model {
|
|
146
|
+
acceptLanguage?: string;
|
|
147
|
+
resourceType?: string;
|
|
148
|
+
static names(): {
|
|
149
|
+
[key: string]: string;
|
|
150
|
+
};
|
|
151
|
+
static types(): {
|
|
152
|
+
[key: string]: any;
|
|
153
|
+
};
|
|
154
|
+
constructor(map?: {
|
|
155
|
+
[key: string]: any;
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
export declare class DescribeRegionsResponseBody extends $tea.Model {
|
|
159
|
+
regions?: DescribeRegionsResponseBodyRegions[];
|
|
160
|
+
requestId?: string;
|
|
161
|
+
static names(): {
|
|
162
|
+
[key: string]: string;
|
|
163
|
+
};
|
|
164
|
+
static types(): {
|
|
165
|
+
[key: string]: any;
|
|
166
|
+
};
|
|
167
|
+
constructor(map?: {
|
|
168
|
+
[key: string]: any;
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
export declare class DescribeRegionsResponse extends $tea.Model {
|
|
172
|
+
headers: {
|
|
173
|
+
[key: string]: string;
|
|
174
|
+
};
|
|
175
|
+
body: DescribeRegionsResponseBody;
|
|
176
|
+
static names(): {
|
|
177
|
+
[key: string]: string;
|
|
178
|
+
};
|
|
179
|
+
static types(): {
|
|
180
|
+
[key: string]: any;
|
|
181
|
+
};
|
|
182
|
+
constructor(map?: {
|
|
183
|
+
[key: string]: any;
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
export declare class FailoverDiskReplicaPairRequest extends $tea.Model {
|
|
187
|
+
clientToken?: string;
|
|
188
|
+
regionId?: string;
|
|
189
|
+
replicaPairId?: string;
|
|
190
|
+
static names(): {
|
|
191
|
+
[key: string]: string;
|
|
192
|
+
};
|
|
193
|
+
static types(): {
|
|
194
|
+
[key: string]: any;
|
|
195
|
+
};
|
|
196
|
+
constructor(map?: {
|
|
197
|
+
[key: string]: any;
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
export declare class FailoverDiskReplicaPairResponseBody extends $tea.Model {
|
|
201
|
+
requestId?: string;
|
|
202
|
+
static names(): {
|
|
203
|
+
[key: string]: string;
|
|
204
|
+
};
|
|
205
|
+
static types(): {
|
|
206
|
+
[key: string]: any;
|
|
207
|
+
};
|
|
208
|
+
constructor(map?: {
|
|
209
|
+
[key: string]: any;
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
export declare class FailoverDiskReplicaPairResponse extends $tea.Model {
|
|
213
|
+
headers: {
|
|
214
|
+
[key: string]: string;
|
|
215
|
+
};
|
|
216
|
+
body: FailoverDiskReplicaPairResponseBody;
|
|
217
|
+
static names(): {
|
|
218
|
+
[key: string]: string;
|
|
219
|
+
};
|
|
220
|
+
static types(): {
|
|
221
|
+
[key: string]: any;
|
|
222
|
+
};
|
|
223
|
+
constructor(map?: {
|
|
224
|
+
[key: string]: any;
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
export declare class ModifyDiskReplicaPairRequest extends $tea.Model {
|
|
228
|
+
clientToken?: string;
|
|
229
|
+
description?: string;
|
|
230
|
+
pairName?: string;
|
|
231
|
+
regionId?: string;
|
|
232
|
+
replicaPairId?: string;
|
|
233
|
+
static names(): {
|
|
234
|
+
[key: string]: string;
|
|
235
|
+
};
|
|
236
|
+
static types(): {
|
|
237
|
+
[key: string]: any;
|
|
238
|
+
};
|
|
239
|
+
constructor(map?: {
|
|
240
|
+
[key: string]: any;
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
export declare class ModifyDiskReplicaPairResponseBody extends $tea.Model {
|
|
244
|
+
requestId?: string;
|
|
245
|
+
static names(): {
|
|
246
|
+
[key: string]: string;
|
|
247
|
+
};
|
|
248
|
+
static types(): {
|
|
249
|
+
[key: string]: any;
|
|
250
|
+
};
|
|
251
|
+
constructor(map?: {
|
|
252
|
+
[key: string]: any;
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
export declare class ModifyDiskReplicaPairResponse extends $tea.Model {
|
|
256
|
+
headers: {
|
|
257
|
+
[key: string]: string;
|
|
258
|
+
};
|
|
259
|
+
body: ModifyDiskReplicaPairResponseBody;
|
|
260
|
+
static names(): {
|
|
261
|
+
[key: string]: string;
|
|
262
|
+
};
|
|
263
|
+
static types(): {
|
|
264
|
+
[key: string]: any;
|
|
265
|
+
};
|
|
266
|
+
constructor(map?: {
|
|
267
|
+
[key: string]: any;
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
export declare class ReprotectDiskReplicaPairRequest extends $tea.Model {
|
|
271
|
+
clientToken?: string;
|
|
272
|
+
regionId?: string;
|
|
273
|
+
replicaPairId?: string;
|
|
274
|
+
static names(): {
|
|
275
|
+
[key: string]: string;
|
|
276
|
+
};
|
|
277
|
+
static types(): {
|
|
278
|
+
[key: string]: any;
|
|
279
|
+
};
|
|
280
|
+
constructor(map?: {
|
|
281
|
+
[key: string]: any;
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
export declare class ReprotectDiskReplicaPairResponseBody extends $tea.Model {
|
|
285
|
+
requestId?: string;
|
|
286
|
+
static names(): {
|
|
287
|
+
[key: string]: string;
|
|
288
|
+
};
|
|
289
|
+
static types(): {
|
|
290
|
+
[key: string]: any;
|
|
291
|
+
};
|
|
292
|
+
constructor(map?: {
|
|
293
|
+
[key: string]: any;
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
export declare class ReprotectDiskReplicaPairResponse extends $tea.Model {
|
|
297
|
+
headers: {
|
|
298
|
+
[key: string]: string;
|
|
299
|
+
};
|
|
300
|
+
body: ReprotectDiskReplicaPairResponseBody;
|
|
301
|
+
static names(): {
|
|
302
|
+
[key: string]: string;
|
|
303
|
+
};
|
|
304
|
+
static types(): {
|
|
305
|
+
[key: string]: any;
|
|
306
|
+
};
|
|
307
|
+
constructor(map?: {
|
|
308
|
+
[key: string]: any;
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
export declare class StartDiskReplicaPairRequest extends $tea.Model {
|
|
312
|
+
clientToken?: string;
|
|
313
|
+
regionId?: string;
|
|
314
|
+
replicaPairId?: string;
|
|
315
|
+
static names(): {
|
|
316
|
+
[key: string]: string;
|
|
317
|
+
};
|
|
318
|
+
static types(): {
|
|
319
|
+
[key: string]: any;
|
|
320
|
+
};
|
|
321
|
+
constructor(map?: {
|
|
322
|
+
[key: string]: any;
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
export declare class StartDiskReplicaPairResponseBody extends $tea.Model {
|
|
326
|
+
requestId?: string;
|
|
327
|
+
static names(): {
|
|
328
|
+
[key: string]: string;
|
|
329
|
+
};
|
|
330
|
+
static types(): {
|
|
331
|
+
[key: string]: any;
|
|
332
|
+
};
|
|
333
|
+
constructor(map?: {
|
|
334
|
+
[key: string]: any;
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
export declare class StartDiskReplicaPairResponse extends $tea.Model {
|
|
338
|
+
headers: {
|
|
339
|
+
[key: string]: string;
|
|
340
|
+
};
|
|
341
|
+
body: StartDiskReplicaPairResponseBody;
|
|
342
|
+
static names(): {
|
|
343
|
+
[key: string]: string;
|
|
344
|
+
};
|
|
345
|
+
static types(): {
|
|
346
|
+
[key: string]: any;
|
|
347
|
+
};
|
|
348
|
+
constructor(map?: {
|
|
349
|
+
[key: string]: any;
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
export declare class StopDiskReplicaPairRequest extends $tea.Model {
|
|
353
|
+
clientToken?: string;
|
|
354
|
+
regionId?: string;
|
|
355
|
+
replicaPairId?: string;
|
|
356
|
+
static names(): {
|
|
357
|
+
[key: string]: string;
|
|
358
|
+
};
|
|
359
|
+
static types(): {
|
|
360
|
+
[key: string]: any;
|
|
361
|
+
};
|
|
362
|
+
constructor(map?: {
|
|
363
|
+
[key: string]: any;
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
export declare class StopDiskReplicaPairResponseBody extends $tea.Model {
|
|
367
|
+
requestId?: string;
|
|
368
|
+
static names(): {
|
|
369
|
+
[key: string]: string;
|
|
370
|
+
};
|
|
371
|
+
static types(): {
|
|
372
|
+
[key: string]: any;
|
|
373
|
+
};
|
|
374
|
+
constructor(map?: {
|
|
375
|
+
[key: string]: any;
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
export declare class StopDiskReplicaPairResponse extends $tea.Model {
|
|
379
|
+
headers: {
|
|
380
|
+
[key: string]: string;
|
|
381
|
+
};
|
|
382
|
+
body: StopDiskReplicaPairResponseBody;
|
|
383
|
+
static names(): {
|
|
384
|
+
[key: string]: string;
|
|
385
|
+
};
|
|
386
|
+
static types(): {
|
|
387
|
+
[key: string]: any;
|
|
388
|
+
};
|
|
389
|
+
constructor(map?: {
|
|
390
|
+
[key: string]: any;
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
export declare class DescribeDiskReplicaPairsResponseBodyReplicaPairs extends $tea.Model {
|
|
394
|
+
asyncCycle?: number;
|
|
395
|
+
bandwidth?: number;
|
|
396
|
+
description?: string;
|
|
397
|
+
destinationDiskId?: string;
|
|
398
|
+
destinationRegion?: string;
|
|
399
|
+
lastRPO?: number;
|
|
400
|
+
pairName?: string;
|
|
401
|
+
replicaPairId?: string;
|
|
402
|
+
sourceDiskId?: string;
|
|
403
|
+
sourceRegion?: string;
|
|
404
|
+
status?: string;
|
|
405
|
+
statusMessage?: string;
|
|
406
|
+
static names(): {
|
|
407
|
+
[key: string]: string;
|
|
408
|
+
};
|
|
409
|
+
static types(): {
|
|
410
|
+
[key: string]: any;
|
|
411
|
+
};
|
|
412
|
+
constructor(map?: {
|
|
413
|
+
[key: string]: any;
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
export declare class DescribeRegionsResponseBodyRegionsZones extends $tea.Model {
|
|
417
|
+
localName?: string;
|
|
418
|
+
zoneId?: string;
|
|
419
|
+
static names(): {
|
|
420
|
+
[key: string]: string;
|
|
421
|
+
};
|
|
422
|
+
static types(): {
|
|
423
|
+
[key: string]: any;
|
|
424
|
+
};
|
|
425
|
+
constructor(map?: {
|
|
426
|
+
[key: string]: any;
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
export declare class DescribeRegionsResponseBodyRegions extends $tea.Model {
|
|
430
|
+
localName?: string;
|
|
431
|
+
regionEndpoint?: string;
|
|
432
|
+
regionId?: string;
|
|
433
|
+
zones?: DescribeRegionsResponseBodyRegionsZones[];
|
|
434
|
+
static names(): {
|
|
435
|
+
[key: string]: string;
|
|
436
|
+
};
|
|
437
|
+
static types(): {
|
|
438
|
+
[key: string]: any;
|
|
439
|
+
};
|
|
440
|
+
constructor(map?: {
|
|
441
|
+
[key: string]: any;
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
export default class Client extends OpenApi {
|
|
445
|
+
constructor(config: $OpenApi.Config);
|
|
446
|
+
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
447
|
+
[key: string]: string;
|
|
448
|
+
}, endpoint: string): string;
|
|
449
|
+
createDiskReplicaPairWithOptions(request: CreateDiskReplicaPairRequest, runtime: $Util.RuntimeOptions): Promise<CreateDiskReplicaPairResponse>;
|
|
450
|
+
createDiskReplicaPair(request: CreateDiskReplicaPairRequest): Promise<CreateDiskReplicaPairResponse>;
|
|
451
|
+
deleteDiskReplicaPairWithOptions(request: DeleteDiskReplicaPairRequest, runtime: $Util.RuntimeOptions): Promise<DeleteDiskReplicaPairResponse>;
|
|
452
|
+
deleteDiskReplicaPair(request: DeleteDiskReplicaPairRequest): Promise<DeleteDiskReplicaPairResponse>;
|
|
453
|
+
describeDiskReplicaPairsWithOptions(request: DescribeDiskReplicaPairsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDiskReplicaPairsResponse>;
|
|
454
|
+
describeDiskReplicaPairs(request: DescribeDiskReplicaPairsRequest): Promise<DescribeDiskReplicaPairsResponse>;
|
|
455
|
+
describeRegionsWithOptions(request: DescribeRegionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeRegionsResponse>;
|
|
456
|
+
describeRegions(request: DescribeRegionsRequest): Promise<DescribeRegionsResponse>;
|
|
457
|
+
failoverDiskReplicaPairWithOptions(request: FailoverDiskReplicaPairRequest, runtime: $Util.RuntimeOptions): Promise<FailoverDiskReplicaPairResponse>;
|
|
458
|
+
failoverDiskReplicaPair(request: FailoverDiskReplicaPairRequest): Promise<FailoverDiskReplicaPairResponse>;
|
|
459
|
+
modifyDiskReplicaPairWithOptions(request: ModifyDiskReplicaPairRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDiskReplicaPairResponse>;
|
|
460
|
+
modifyDiskReplicaPair(request: ModifyDiskReplicaPairRequest): Promise<ModifyDiskReplicaPairResponse>;
|
|
461
|
+
reprotectDiskReplicaPairWithOptions(request: ReprotectDiskReplicaPairRequest, runtime: $Util.RuntimeOptions): Promise<ReprotectDiskReplicaPairResponse>;
|
|
462
|
+
reprotectDiskReplicaPair(request: ReprotectDiskReplicaPairRequest): Promise<ReprotectDiskReplicaPairResponse>;
|
|
463
|
+
startDiskReplicaPairWithOptions(request: StartDiskReplicaPairRequest, runtime: $Util.RuntimeOptions): Promise<StartDiskReplicaPairResponse>;
|
|
464
|
+
startDiskReplicaPair(request: StartDiskReplicaPairRequest): Promise<StartDiskReplicaPairResponse>;
|
|
465
|
+
stopDiskReplicaPairWithOptions(request: StopDiskReplicaPairRequest, runtime: $Util.RuntimeOptions): Promise<StopDiskReplicaPairResponse>;
|
|
466
|
+
stopDiskReplicaPair(request: StopDiskReplicaPairRequest): Promise<StopDiskReplicaPairResponse>;
|
|
467
|
+
}
|