@alicloud/pai-dsw20220101 0.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 +969 -0
- package/dist/client.js +1796 -0
- package/dist/client.js.map +1 -0
- package/package.json +32 -0
- package/src/client.ts +2198 -0
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,969 @@
|
|
|
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 CreateInstanceRequest extends $tea.Model {
|
|
8
|
+
accessibility?: string;
|
|
9
|
+
datasets?: CreateInstanceRequestDatasets[];
|
|
10
|
+
ecsSpec?: string;
|
|
11
|
+
environmentVariables?: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
imageId?: string;
|
|
15
|
+
imageUrl?: string;
|
|
16
|
+
instanceName?: string;
|
|
17
|
+
userVpc?: CreateInstanceRequestUserVpc;
|
|
18
|
+
workspaceId?: string;
|
|
19
|
+
static names(): {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
};
|
|
22
|
+
static types(): {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
};
|
|
25
|
+
constructor(map?: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export declare class CreateInstanceResponseBody extends $tea.Model {
|
|
30
|
+
instanceId?: string;
|
|
31
|
+
requestId?: string;
|
|
32
|
+
static names(): {
|
|
33
|
+
[key: string]: string;
|
|
34
|
+
};
|
|
35
|
+
static types(): {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
38
|
+
constructor(map?: {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
export declare class CreateInstanceResponse extends $tea.Model {
|
|
43
|
+
headers: {
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
};
|
|
46
|
+
body: CreateInstanceResponseBody;
|
|
47
|
+
static names(): {
|
|
48
|
+
[key: string]: string;
|
|
49
|
+
};
|
|
50
|
+
static types(): {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
};
|
|
53
|
+
constructor(map?: {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
export declare class CreateInstanceShutdownTimerRequest extends $tea.Model {
|
|
58
|
+
dueTime?: string;
|
|
59
|
+
remainingTimeInMs?: number;
|
|
60
|
+
static names(): {
|
|
61
|
+
[key: string]: string;
|
|
62
|
+
};
|
|
63
|
+
static types(): {
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
};
|
|
66
|
+
constructor(map?: {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
export declare class CreateInstanceShutdownTimerResponseBody extends $tea.Model {
|
|
71
|
+
instanceId?: string;
|
|
72
|
+
requestId?: string;
|
|
73
|
+
static names(): {
|
|
74
|
+
[key: string]: string;
|
|
75
|
+
};
|
|
76
|
+
static types(): {
|
|
77
|
+
[key: string]: any;
|
|
78
|
+
};
|
|
79
|
+
constructor(map?: {
|
|
80
|
+
[key: string]: any;
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
export declare class CreateInstanceShutdownTimerResponse extends $tea.Model {
|
|
84
|
+
headers: {
|
|
85
|
+
[key: string]: string;
|
|
86
|
+
};
|
|
87
|
+
body: CreateInstanceShutdownTimerResponseBody;
|
|
88
|
+
static names(): {
|
|
89
|
+
[key: string]: string;
|
|
90
|
+
};
|
|
91
|
+
static types(): {
|
|
92
|
+
[key: string]: any;
|
|
93
|
+
};
|
|
94
|
+
constructor(map?: {
|
|
95
|
+
[key: string]: any;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
export declare class CreateInstanceSnapshotRequest extends $tea.Model {
|
|
99
|
+
imageUrl?: string;
|
|
100
|
+
snapshotDescription?: string;
|
|
101
|
+
snapshotName?: string;
|
|
102
|
+
static names(): {
|
|
103
|
+
[key: string]: string;
|
|
104
|
+
};
|
|
105
|
+
static types(): {
|
|
106
|
+
[key: string]: any;
|
|
107
|
+
};
|
|
108
|
+
constructor(map?: {
|
|
109
|
+
[key: string]: any;
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
export declare class CreateInstanceSnapshotResponseBody extends $tea.Model {
|
|
113
|
+
instanceId?: string;
|
|
114
|
+
requestId?: string;
|
|
115
|
+
snapshotId?: string;
|
|
116
|
+
static names(): {
|
|
117
|
+
[key: string]: string;
|
|
118
|
+
};
|
|
119
|
+
static types(): {
|
|
120
|
+
[key: string]: any;
|
|
121
|
+
};
|
|
122
|
+
constructor(map?: {
|
|
123
|
+
[key: string]: any;
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
export declare class CreateInstanceSnapshotResponse extends $tea.Model {
|
|
127
|
+
headers: {
|
|
128
|
+
[key: string]: string;
|
|
129
|
+
};
|
|
130
|
+
body: CreateInstanceSnapshotResponseBody;
|
|
131
|
+
static names(): {
|
|
132
|
+
[key: string]: string;
|
|
133
|
+
};
|
|
134
|
+
static types(): {
|
|
135
|
+
[key: string]: any;
|
|
136
|
+
};
|
|
137
|
+
constructor(map?: {
|
|
138
|
+
[key: string]: any;
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
export declare class DeleteInstanceResponseBody extends $tea.Model {
|
|
142
|
+
instanceId?: string;
|
|
143
|
+
requestId?: string;
|
|
144
|
+
static names(): {
|
|
145
|
+
[key: string]: string;
|
|
146
|
+
};
|
|
147
|
+
static types(): {
|
|
148
|
+
[key: string]: any;
|
|
149
|
+
};
|
|
150
|
+
constructor(map?: {
|
|
151
|
+
[key: string]: any;
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
export declare class DeleteInstanceResponse extends $tea.Model {
|
|
155
|
+
headers: {
|
|
156
|
+
[key: string]: string;
|
|
157
|
+
};
|
|
158
|
+
body: DeleteInstanceResponseBody;
|
|
159
|
+
static names(): {
|
|
160
|
+
[key: string]: string;
|
|
161
|
+
};
|
|
162
|
+
static types(): {
|
|
163
|
+
[key: string]: any;
|
|
164
|
+
};
|
|
165
|
+
constructor(map?: {
|
|
166
|
+
[key: string]: any;
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
export declare class DeleteInstanceShutdownTimerResponseBody extends $tea.Model {
|
|
170
|
+
instanceId?: string;
|
|
171
|
+
requestId?: string;
|
|
172
|
+
static names(): {
|
|
173
|
+
[key: string]: string;
|
|
174
|
+
};
|
|
175
|
+
static types(): {
|
|
176
|
+
[key: string]: any;
|
|
177
|
+
};
|
|
178
|
+
constructor(map?: {
|
|
179
|
+
[key: string]: any;
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
export declare class DeleteInstanceShutdownTimerResponse extends $tea.Model {
|
|
183
|
+
headers: {
|
|
184
|
+
[key: string]: string;
|
|
185
|
+
};
|
|
186
|
+
body: DeleteInstanceShutdownTimerResponseBody;
|
|
187
|
+
static names(): {
|
|
188
|
+
[key: string]: string;
|
|
189
|
+
};
|
|
190
|
+
static types(): {
|
|
191
|
+
[key: string]: any;
|
|
192
|
+
};
|
|
193
|
+
constructor(map?: {
|
|
194
|
+
[key: string]: any;
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
export declare class DeleteInstanceSnapshotResponseBody extends $tea.Model {
|
|
198
|
+
instanceId?: string;
|
|
199
|
+
requestId?: string;
|
|
200
|
+
snapshotId?: string;
|
|
201
|
+
static names(): {
|
|
202
|
+
[key: string]: string;
|
|
203
|
+
};
|
|
204
|
+
static types(): {
|
|
205
|
+
[key: string]: any;
|
|
206
|
+
};
|
|
207
|
+
constructor(map?: {
|
|
208
|
+
[key: string]: any;
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
export declare class DeleteInstanceSnapshotResponse extends $tea.Model {
|
|
212
|
+
headers: {
|
|
213
|
+
[key: string]: string;
|
|
214
|
+
};
|
|
215
|
+
body: DeleteInstanceSnapshotResponseBody;
|
|
216
|
+
static names(): {
|
|
217
|
+
[key: string]: string;
|
|
218
|
+
};
|
|
219
|
+
static types(): {
|
|
220
|
+
[key: string]: any;
|
|
221
|
+
};
|
|
222
|
+
constructor(map?: {
|
|
223
|
+
[key: string]: any;
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
export declare class GetInstanceResponseBody extends $tea.Model {
|
|
227
|
+
acceleratorType?: string;
|
|
228
|
+
accessibility?: string;
|
|
229
|
+
accumulatedRunningTimeInMs?: number;
|
|
230
|
+
datasets?: GetInstanceResponseBodyDatasets[];
|
|
231
|
+
ecsSpec?: string;
|
|
232
|
+
environmentVariables?: {
|
|
233
|
+
[key: string]: string;
|
|
234
|
+
};
|
|
235
|
+
gmtCreateTime?: string;
|
|
236
|
+
gmtModifiedTime?: string;
|
|
237
|
+
imageId?: string;
|
|
238
|
+
imageName?: string;
|
|
239
|
+
imageUrl?: string;
|
|
240
|
+
instanceId?: string;
|
|
241
|
+
instanceName?: string;
|
|
242
|
+
instanceShutdownTimer?: GetInstanceResponseBodyInstanceShutdownTimer;
|
|
243
|
+
instanceUrl?: string;
|
|
244
|
+
jupyterlabUrl?: string;
|
|
245
|
+
latestSnapshot?: GetInstanceResponseBodyLatestSnapshot;
|
|
246
|
+
paymentType?: string;
|
|
247
|
+
reasonCode?: string;
|
|
248
|
+
reasonMessage?: string;
|
|
249
|
+
requestId?: string;
|
|
250
|
+
status?: string;
|
|
251
|
+
terminalUrl?: string;
|
|
252
|
+
userId?: string;
|
|
253
|
+
userVpc?: GetInstanceResponseBodyUserVpc;
|
|
254
|
+
webIDEUrl?: string;
|
|
255
|
+
workspaceId?: string;
|
|
256
|
+
workspaceName?: string;
|
|
257
|
+
static names(): {
|
|
258
|
+
[key: string]: string;
|
|
259
|
+
};
|
|
260
|
+
static types(): {
|
|
261
|
+
[key: string]: any;
|
|
262
|
+
};
|
|
263
|
+
constructor(map?: {
|
|
264
|
+
[key: string]: any;
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
export declare class GetInstanceResponse extends $tea.Model {
|
|
268
|
+
headers: {
|
|
269
|
+
[key: string]: string;
|
|
270
|
+
};
|
|
271
|
+
body: GetInstanceResponseBody;
|
|
272
|
+
static names(): {
|
|
273
|
+
[key: string]: string;
|
|
274
|
+
};
|
|
275
|
+
static types(): {
|
|
276
|
+
[key: string]: any;
|
|
277
|
+
};
|
|
278
|
+
constructor(map?: {
|
|
279
|
+
[key: string]: any;
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
export declare class GetInstanceShutdownTimerResponseBody extends $tea.Model {
|
|
283
|
+
dueTime?: string;
|
|
284
|
+
gmtCreateTime?: string;
|
|
285
|
+
gmtModifiedTime?: string;
|
|
286
|
+
instanceId?: string;
|
|
287
|
+
remainingTimeInMs?: number;
|
|
288
|
+
requestId?: string;
|
|
289
|
+
static names(): {
|
|
290
|
+
[key: string]: string;
|
|
291
|
+
};
|
|
292
|
+
static types(): {
|
|
293
|
+
[key: string]: any;
|
|
294
|
+
};
|
|
295
|
+
constructor(map?: {
|
|
296
|
+
[key: string]: any;
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
export declare class GetInstanceShutdownTimerResponse extends $tea.Model {
|
|
300
|
+
headers: {
|
|
301
|
+
[key: string]: string;
|
|
302
|
+
};
|
|
303
|
+
body: GetInstanceShutdownTimerResponseBody;
|
|
304
|
+
static names(): {
|
|
305
|
+
[key: string]: string;
|
|
306
|
+
};
|
|
307
|
+
static types(): {
|
|
308
|
+
[key: string]: any;
|
|
309
|
+
};
|
|
310
|
+
constructor(map?: {
|
|
311
|
+
[key: string]: any;
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
export declare class GetInstanceSnapshotResponseBody extends $tea.Model {
|
|
315
|
+
gmtCreateTime?: string;
|
|
316
|
+
gmtModifiedTime?: string;
|
|
317
|
+
imageId?: string;
|
|
318
|
+
imageUrl?: string;
|
|
319
|
+
instanceId?: string;
|
|
320
|
+
reasonCode?: string;
|
|
321
|
+
reasonMessage?: string;
|
|
322
|
+
requestId?: string;
|
|
323
|
+
snapshotId?: string;
|
|
324
|
+
snapshotName?: string;
|
|
325
|
+
status?: string;
|
|
326
|
+
static names(): {
|
|
327
|
+
[key: string]: string;
|
|
328
|
+
};
|
|
329
|
+
static types(): {
|
|
330
|
+
[key: string]: any;
|
|
331
|
+
};
|
|
332
|
+
constructor(map?: {
|
|
333
|
+
[key: string]: any;
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
export declare class GetInstanceSnapshotResponse extends $tea.Model {
|
|
337
|
+
headers: {
|
|
338
|
+
[key: string]: string;
|
|
339
|
+
};
|
|
340
|
+
body: GetInstanceSnapshotResponseBody;
|
|
341
|
+
static names(): {
|
|
342
|
+
[key: string]: string;
|
|
343
|
+
};
|
|
344
|
+
static types(): {
|
|
345
|
+
[key: string]: any;
|
|
346
|
+
};
|
|
347
|
+
constructor(map?: {
|
|
348
|
+
[key: string]: any;
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
export declare class GetUserConfigResponseBody extends $tea.Model {
|
|
352
|
+
accountSufficient?: boolean;
|
|
353
|
+
requestId?: string;
|
|
354
|
+
static names(): {
|
|
355
|
+
[key: string]: string;
|
|
356
|
+
};
|
|
357
|
+
static types(): {
|
|
358
|
+
[key: string]: any;
|
|
359
|
+
};
|
|
360
|
+
constructor(map?: {
|
|
361
|
+
[key: string]: any;
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
export declare class GetUserConfigResponse extends $tea.Model {
|
|
365
|
+
headers: {
|
|
366
|
+
[key: string]: string;
|
|
367
|
+
};
|
|
368
|
+
body: GetUserConfigResponseBody;
|
|
369
|
+
static names(): {
|
|
370
|
+
[key: string]: string;
|
|
371
|
+
};
|
|
372
|
+
static types(): {
|
|
373
|
+
[key: string]: any;
|
|
374
|
+
};
|
|
375
|
+
constructor(map?: {
|
|
376
|
+
[key: string]: any;
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
export declare class ListEcsSpecsRequest extends $tea.Model {
|
|
380
|
+
acceleratorType?: string;
|
|
381
|
+
order?: string;
|
|
382
|
+
pageNumber?: number;
|
|
383
|
+
pageSize?: number;
|
|
384
|
+
sortBy?: string;
|
|
385
|
+
static names(): {
|
|
386
|
+
[key: string]: string;
|
|
387
|
+
};
|
|
388
|
+
static types(): {
|
|
389
|
+
[key: string]: any;
|
|
390
|
+
};
|
|
391
|
+
constructor(map?: {
|
|
392
|
+
[key: string]: any;
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
export declare class ListEcsSpecsResponseBody extends $tea.Model {
|
|
396
|
+
ecsSpecs?: ListEcsSpecsResponseBodyEcsSpecs[];
|
|
397
|
+
requestId?: string;
|
|
398
|
+
totalCount?: number;
|
|
399
|
+
static names(): {
|
|
400
|
+
[key: string]: string;
|
|
401
|
+
};
|
|
402
|
+
static types(): {
|
|
403
|
+
[key: string]: any;
|
|
404
|
+
};
|
|
405
|
+
constructor(map?: {
|
|
406
|
+
[key: string]: any;
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
export declare class ListEcsSpecsResponse extends $tea.Model {
|
|
410
|
+
headers: {
|
|
411
|
+
[key: string]: string;
|
|
412
|
+
};
|
|
413
|
+
body: ListEcsSpecsResponseBody;
|
|
414
|
+
static names(): {
|
|
415
|
+
[key: string]: string;
|
|
416
|
+
};
|
|
417
|
+
static types(): {
|
|
418
|
+
[key: string]: any;
|
|
419
|
+
};
|
|
420
|
+
constructor(map?: {
|
|
421
|
+
[key: string]: any;
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
export declare class ListInstanceSnapshotRequest extends $tea.Model {
|
|
425
|
+
order?: string;
|
|
426
|
+
pageNumber?: number;
|
|
427
|
+
pageSize?: number;
|
|
428
|
+
sortBy?: string;
|
|
429
|
+
static names(): {
|
|
430
|
+
[key: string]: string;
|
|
431
|
+
};
|
|
432
|
+
static types(): {
|
|
433
|
+
[key: string]: any;
|
|
434
|
+
};
|
|
435
|
+
constructor(map?: {
|
|
436
|
+
[key: string]: any;
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
export declare class ListInstanceSnapshotResponseBody extends $tea.Model {
|
|
440
|
+
requestId?: string;
|
|
441
|
+
snapshots?: ListInstanceSnapshotResponseBodySnapshots[];
|
|
442
|
+
totalCount?: number;
|
|
443
|
+
static names(): {
|
|
444
|
+
[key: string]: string;
|
|
445
|
+
};
|
|
446
|
+
static types(): {
|
|
447
|
+
[key: string]: any;
|
|
448
|
+
};
|
|
449
|
+
constructor(map?: {
|
|
450
|
+
[key: string]: any;
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
export declare class ListInstanceSnapshotResponse extends $tea.Model {
|
|
454
|
+
headers: {
|
|
455
|
+
[key: string]: string;
|
|
456
|
+
};
|
|
457
|
+
body: ListInstanceSnapshotResponseBody;
|
|
458
|
+
static names(): {
|
|
459
|
+
[key: string]: string;
|
|
460
|
+
};
|
|
461
|
+
static types(): {
|
|
462
|
+
[key: string]: any;
|
|
463
|
+
};
|
|
464
|
+
constructor(map?: {
|
|
465
|
+
[key: string]: any;
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
export declare class ListInstanceStatisticsRequest extends $tea.Model {
|
|
469
|
+
workspaceIds?: string;
|
|
470
|
+
static names(): {
|
|
471
|
+
[key: string]: string;
|
|
472
|
+
};
|
|
473
|
+
static types(): {
|
|
474
|
+
[key: string]: any;
|
|
475
|
+
};
|
|
476
|
+
constructor(map?: {
|
|
477
|
+
[key: string]: any;
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
export declare class ListInstanceStatisticsResponseBody extends $tea.Model {
|
|
481
|
+
requestId?: string;
|
|
482
|
+
statistics?: {
|
|
483
|
+
[key: string]: {
|
|
484
|
+
[key: string]: any;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
static names(): {
|
|
488
|
+
[key: string]: string;
|
|
489
|
+
};
|
|
490
|
+
static types(): {
|
|
491
|
+
[key: string]: any;
|
|
492
|
+
};
|
|
493
|
+
constructor(map?: {
|
|
494
|
+
[key: string]: any;
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
export declare class ListInstanceStatisticsResponse extends $tea.Model {
|
|
498
|
+
headers: {
|
|
499
|
+
[key: string]: string;
|
|
500
|
+
};
|
|
501
|
+
body: ListInstanceStatisticsResponseBody;
|
|
502
|
+
static names(): {
|
|
503
|
+
[key: string]: string;
|
|
504
|
+
};
|
|
505
|
+
static types(): {
|
|
506
|
+
[key: string]: any;
|
|
507
|
+
};
|
|
508
|
+
constructor(map?: {
|
|
509
|
+
[key: string]: any;
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
export declare class ListInstancesRequest extends $tea.Model {
|
|
513
|
+
instanceName?: string;
|
|
514
|
+
order?: string;
|
|
515
|
+
pageNumber?: number;
|
|
516
|
+
pageSize?: number;
|
|
517
|
+
sortBy?: string;
|
|
518
|
+
status?: string;
|
|
519
|
+
workspaceId?: string;
|
|
520
|
+
static names(): {
|
|
521
|
+
[key: string]: string;
|
|
522
|
+
};
|
|
523
|
+
static types(): {
|
|
524
|
+
[key: string]: any;
|
|
525
|
+
};
|
|
526
|
+
constructor(map?: {
|
|
527
|
+
[key: string]: any;
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
export declare class ListInstancesResponseBody extends $tea.Model {
|
|
531
|
+
instances?: ListInstancesResponseBodyInstances[];
|
|
532
|
+
requestId?: string;
|
|
533
|
+
totalCount?: number;
|
|
534
|
+
static names(): {
|
|
535
|
+
[key: string]: string;
|
|
536
|
+
};
|
|
537
|
+
static types(): {
|
|
538
|
+
[key: string]: any;
|
|
539
|
+
};
|
|
540
|
+
constructor(map?: {
|
|
541
|
+
[key: string]: any;
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
export declare class ListInstancesResponse extends $tea.Model {
|
|
545
|
+
headers: {
|
|
546
|
+
[key: string]: string;
|
|
547
|
+
};
|
|
548
|
+
body: ListInstancesResponseBody;
|
|
549
|
+
static names(): {
|
|
550
|
+
[key: string]: string;
|
|
551
|
+
};
|
|
552
|
+
static types(): {
|
|
553
|
+
[key: string]: any;
|
|
554
|
+
};
|
|
555
|
+
constructor(map?: {
|
|
556
|
+
[key: string]: any;
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
export declare class StartInstanceResponseBody extends $tea.Model {
|
|
560
|
+
instanceId?: string;
|
|
561
|
+
requestId?: string;
|
|
562
|
+
static names(): {
|
|
563
|
+
[key: string]: string;
|
|
564
|
+
};
|
|
565
|
+
static types(): {
|
|
566
|
+
[key: string]: any;
|
|
567
|
+
};
|
|
568
|
+
constructor(map?: {
|
|
569
|
+
[key: string]: any;
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
export declare class StartInstanceResponse extends $tea.Model {
|
|
573
|
+
headers: {
|
|
574
|
+
[key: string]: string;
|
|
575
|
+
};
|
|
576
|
+
body: StartInstanceResponseBody;
|
|
577
|
+
static names(): {
|
|
578
|
+
[key: string]: string;
|
|
579
|
+
};
|
|
580
|
+
static types(): {
|
|
581
|
+
[key: string]: any;
|
|
582
|
+
};
|
|
583
|
+
constructor(map?: {
|
|
584
|
+
[key: string]: any;
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
export declare class StopInstanceRequest extends $tea.Model {
|
|
588
|
+
saveImage?: boolean;
|
|
589
|
+
static names(): {
|
|
590
|
+
[key: string]: string;
|
|
591
|
+
};
|
|
592
|
+
static types(): {
|
|
593
|
+
[key: string]: any;
|
|
594
|
+
};
|
|
595
|
+
constructor(map?: {
|
|
596
|
+
[key: string]: any;
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
export declare class StopInstanceResponseBody extends $tea.Model {
|
|
600
|
+
instanceId?: string;
|
|
601
|
+
requestId?: string;
|
|
602
|
+
static names(): {
|
|
603
|
+
[key: string]: string;
|
|
604
|
+
};
|
|
605
|
+
static types(): {
|
|
606
|
+
[key: string]: any;
|
|
607
|
+
};
|
|
608
|
+
constructor(map?: {
|
|
609
|
+
[key: string]: any;
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
export declare class StopInstanceResponse extends $tea.Model {
|
|
613
|
+
headers: {
|
|
614
|
+
[key: string]: string;
|
|
615
|
+
};
|
|
616
|
+
body: StopInstanceResponseBody;
|
|
617
|
+
static names(): {
|
|
618
|
+
[key: string]: string;
|
|
619
|
+
};
|
|
620
|
+
static types(): {
|
|
621
|
+
[key: string]: any;
|
|
622
|
+
};
|
|
623
|
+
constructor(map?: {
|
|
624
|
+
[key: string]: any;
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
export declare class UpdateInstanceRequest extends $tea.Model {
|
|
628
|
+
instanceName?: string;
|
|
629
|
+
static names(): {
|
|
630
|
+
[key: string]: string;
|
|
631
|
+
};
|
|
632
|
+
static types(): {
|
|
633
|
+
[key: string]: any;
|
|
634
|
+
};
|
|
635
|
+
constructor(map?: {
|
|
636
|
+
[key: string]: any;
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
export declare class UpdateInstanceResponseBody extends $tea.Model {
|
|
640
|
+
instanceId?: string;
|
|
641
|
+
requestId?: string;
|
|
642
|
+
static names(): {
|
|
643
|
+
[key: string]: string;
|
|
644
|
+
};
|
|
645
|
+
static types(): {
|
|
646
|
+
[key: string]: any;
|
|
647
|
+
};
|
|
648
|
+
constructor(map?: {
|
|
649
|
+
[key: string]: any;
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
export declare class UpdateInstanceResponse extends $tea.Model {
|
|
653
|
+
headers: {
|
|
654
|
+
[key: string]: string;
|
|
655
|
+
};
|
|
656
|
+
body: UpdateInstanceResponseBody;
|
|
657
|
+
static names(): {
|
|
658
|
+
[key: string]: string;
|
|
659
|
+
};
|
|
660
|
+
static types(): {
|
|
661
|
+
[key: string]: any;
|
|
662
|
+
};
|
|
663
|
+
constructor(map?: {
|
|
664
|
+
[key: string]: any;
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
export declare class CreateInstanceRequestDatasets extends $tea.Model {
|
|
668
|
+
datasetId?: string;
|
|
669
|
+
mountPath?: string;
|
|
670
|
+
static names(): {
|
|
671
|
+
[key: string]: string;
|
|
672
|
+
};
|
|
673
|
+
static types(): {
|
|
674
|
+
[key: string]: any;
|
|
675
|
+
};
|
|
676
|
+
constructor(map?: {
|
|
677
|
+
[key: string]: any;
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
export declare class CreateInstanceRequestUserVpc extends $tea.Model {
|
|
681
|
+
securityGroupId?: string;
|
|
682
|
+
vSwitchId?: string;
|
|
683
|
+
vpcId?: string;
|
|
684
|
+
static names(): {
|
|
685
|
+
[key: string]: string;
|
|
686
|
+
};
|
|
687
|
+
static types(): {
|
|
688
|
+
[key: string]: any;
|
|
689
|
+
};
|
|
690
|
+
constructor(map?: {
|
|
691
|
+
[key: string]: any;
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
export declare class GetInstanceResponseBodyDatasets extends $tea.Model {
|
|
695
|
+
datasetId?: string;
|
|
696
|
+
mountPath?: string;
|
|
697
|
+
static names(): {
|
|
698
|
+
[key: string]: string;
|
|
699
|
+
};
|
|
700
|
+
static types(): {
|
|
701
|
+
[key: string]: any;
|
|
702
|
+
};
|
|
703
|
+
constructor(map?: {
|
|
704
|
+
[key: string]: any;
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
export declare class GetInstanceResponseBodyInstanceShutdownTimer extends $tea.Model {
|
|
708
|
+
dueTime?: string;
|
|
709
|
+
gmtCreateTime?: string;
|
|
710
|
+
gmtModifiedTime?: string;
|
|
711
|
+
instanceId?: string;
|
|
712
|
+
remainingTimeInMs?: number;
|
|
713
|
+
static names(): {
|
|
714
|
+
[key: string]: string;
|
|
715
|
+
};
|
|
716
|
+
static types(): {
|
|
717
|
+
[key: string]: any;
|
|
718
|
+
};
|
|
719
|
+
constructor(map?: {
|
|
720
|
+
[key: string]: any;
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
export declare class GetInstanceResponseBodyLatestSnapshot extends $tea.Model {
|
|
724
|
+
gmtCreateTime?: string;
|
|
725
|
+
gmtModifiedTime?: string;
|
|
726
|
+
imageId?: string;
|
|
727
|
+
imageName?: string;
|
|
728
|
+
imageUrl?: string;
|
|
729
|
+
repositoryUrl?: string;
|
|
730
|
+
static names(): {
|
|
731
|
+
[key: string]: string;
|
|
732
|
+
};
|
|
733
|
+
static types(): {
|
|
734
|
+
[key: string]: any;
|
|
735
|
+
};
|
|
736
|
+
constructor(map?: {
|
|
737
|
+
[key: string]: any;
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
export declare class GetInstanceResponseBodyUserVpc extends $tea.Model {
|
|
741
|
+
securityGroupId?: string;
|
|
742
|
+
vSwitchId?: string;
|
|
743
|
+
vpcId?: string;
|
|
744
|
+
static names(): {
|
|
745
|
+
[key: string]: string;
|
|
746
|
+
};
|
|
747
|
+
static types(): {
|
|
748
|
+
[key: string]: any;
|
|
749
|
+
};
|
|
750
|
+
constructor(map?: {
|
|
751
|
+
[key: string]: any;
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
export declare class ListEcsSpecsResponseBodyEcsSpecs extends $tea.Model {
|
|
755
|
+
acceleratorType?: string;
|
|
756
|
+
CPU?: number;
|
|
757
|
+
currency?: string;
|
|
758
|
+
GPU?: number;
|
|
759
|
+
GPUType?: string;
|
|
760
|
+
instanceBandwidthRx?: number;
|
|
761
|
+
instanceType?: string;
|
|
762
|
+
memory?: number;
|
|
763
|
+
price?: number;
|
|
764
|
+
systemDiskCapacity?: number;
|
|
765
|
+
static names(): {
|
|
766
|
+
[key: string]: string;
|
|
767
|
+
};
|
|
768
|
+
static types(): {
|
|
769
|
+
[key: string]: any;
|
|
770
|
+
};
|
|
771
|
+
constructor(map?: {
|
|
772
|
+
[key: string]: any;
|
|
773
|
+
});
|
|
774
|
+
}
|
|
775
|
+
export declare class ListInstanceSnapshotResponseBodySnapshots extends $tea.Model {
|
|
776
|
+
gmtCreateTime?: string;
|
|
777
|
+
gmtModifiedTime?: string;
|
|
778
|
+
imageId?: string;
|
|
779
|
+
imageUrl?: string;
|
|
780
|
+
instanceId?: string;
|
|
781
|
+
reasonCode?: string;
|
|
782
|
+
reasonMessage?: string;
|
|
783
|
+
snapshotId?: string;
|
|
784
|
+
snapshotName?: string;
|
|
785
|
+
status?: string;
|
|
786
|
+
static names(): {
|
|
787
|
+
[key: string]: string;
|
|
788
|
+
};
|
|
789
|
+
static types(): {
|
|
790
|
+
[key: string]: any;
|
|
791
|
+
};
|
|
792
|
+
constructor(map?: {
|
|
793
|
+
[key: string]: any;
|
|
794
|
+
});
|
|
795
|
+
}
|
|
796
|
+
export declare class ListInstancesResponseBodyInstancesDatasets extends $tea.Model {
|
|
797
|
+
datasetId?: string;
|
|
798
|
+
mountPath?: string;
|
|
799
|
+
static names(): {
|
|
800
|
+
[key: string]: string;
|
|
801
|
+
};
|
|
802
|
+
static types(): {
|
|
803
|
+
[key: string]: any;
|
|
804
|
+
};
|
|
805
|
+
constructor(map?: {
|
|
806
|
+
[key: string]: any;
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
export declare class ListInstancesResponseBodyInstancesInstanceShutdownTimer extends $tea.Model {
|
|
810
|
+
dueTime?: string;
|
|
811
|
+
gmtCreateTime?: string;
|
|
812
|
+
gmtModifiedTime?: string;
|
|
813
|
+
instanceId?: string;
|
|
814
|
+
remainingTimeInMs?: number;
|
|
815
|
+
static names(): {
|
|
816
|
+
[key: string]: string;
|
|
817
|
+
};
|
|
818
|
+
static types(): {
|
|
819
|
+
[key: string]: any;
|
|
820
|
+
};
|
|
821
|
+
constructor(map?: {
|
|
822
|
+
[key: string]: any;
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
export declare class ListInstancesResponseBodyInstancesLatestSnapshot extends $tea.Model {
|
|
826
|
+
gmtCreateTime?: string;
|
|
827
|
+
gmtModifiedTime?: string;
|
|
828
|
+
imageId?: string;
|
|
829
|
+
imageName?: string;
|
|
830
|
+
imageUrl?: string;
|
|
831
|
+
repositoryUrl?: string;
|
|
832
|
+
static names(): {
|
|
833
|
+
[key: string]: string;
|
|
834
|
+
};
|
|
835
|
+
static types(): {
|
|
836
|
+
[key: string]: any;
|
|
837
|
+
};
|
|
838
|
+
constructor(map?: {
|
|
839
|
+
[key: string]: any;
|
|
840
|
+
});
|
|
841
|
+
}
|
|
842
|
+
export declare class ListInstancesResponseBodyInstancesUserVpc extends $tea.Model {
|
|
843
|
+
securityGroupId?: string;
|
|
844
|
+
vSwitchId?: string;
|
|
845
|
+
vpcId?: string;
|
|
846
|
+
static names(): {
|
|
847
|
+
[key: string]: string;
|
|
848
|
+
};
|
|
849
|
+
static types(): {
|
|
850
|
+
[key: string]: any;
|
|
851
|
+
};
|
|
852
|
+
constructor(map?: {
|
|
853
|
+
[key: string]: any;
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
export declare class ListInstancesResponseBodyInstances extends $tea.Model {
|
|
857
|
+
acceleratorType?: string;
|
|
858
|
+
accessibility?: string;
|
|
859
|
+
accumulatedRunningTimeInMs?: number;
|
|
860
|
+
datasets?: ListInstancesResponseBodyInstancesDatasets[];
|
|
861
|
+
ecsSpec?: string;
|
|
862
|
+
environmentVariables?: {
|
|
863
|
+
[key: string]: string;
|
|
864
|
+
};
|
|
865
|
+
gmtCreateTime?: string;
|
|
866
|
+
gmtModifiedTime?: string;
|
|
867
|
+
imageId?: string;
|
|
868
|
+
imageName?: string;
|
|
869
|
+
imageUrl?: string;
|
|
870
|
+
instanceId?: string;
|
|
871
|
+
instanceName?: string;
|
|
872
|
+
instanceShutdownTimer?: ListInstancesResponseBodyInstancesInstanceShutdownTimer;
|
|
873
|
+
instanceUrl?: string;
|
|
874
|
+
jupyterlabUrl?: string;
|
|
875
|
+
latestSnapshot?: ListInstancesResponseBodyInstancesLatestSnapshot;
|
|
876
|
+
paymentType?: string;
|
|
877
|
+
reasonCode?: string;
|
|
878
|
+
reasonMessage?: string;
|
|
879
|
+
status?: string;
|
|
880
|
+
terminalUrl?: string;
|
|
881
|
+
userId?: string;
|
|
882
|
+
userVpc?: ListInstancesResponseBodyInstancesUserVpc;
|
|
883
|
+
webIDEUrl?: string;
|
|
884
|
+
workspaceId?: string;
|
|
885
|
+
workspaceName?: string;
|
|
886
|
+
static names(): {
|
|
887
|
+
[key: string]: string;
|
|
888
|
+
};
|
|
889
|
+
static types(): {
|
|
890
|
+
[key: string]: any;
|
|
891
|
+
};
|
|
892
|
+
constructor(map?: {
|
|
893
|
+
[key: string]: any;
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
export default class Client extends OpenApi {
|
|
897
|
+
constructor(config: $OpenApi.Config);
|
|
898
|
+
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
899
|
+
[key: string]: string;
|
|
900
|
+
}, endpoint: string): string;
|
|
901
|
+
createInstance(request: CreateInstanceRequest): Promise<CreateInstanceResponse>;
|
|
902
|
+
createInstanceWithOptions(request: CreateInstanceRequest, headers: {
|
|
903
|
+
[key: string]: string;
|
|
904
|
+
}, runtime: $Util.RuntimeOptions): Promise<CreateInstanceResponse>;
|
|
905
|
+
createInstanceShutdownTimer(InstanceId: string, request: CreateInstanceShutdownTimerRequest): Promise<CreateInstanceShutdownTimerResponse>;
|
|
906
|
+
createInstanceShutdownTimerWithOptions(InstanceId: string, request: CreateInstanceShutdownTimerRequest, headers: {
|
|
907
|
+
[key: string]: string;
|
|
908
|
+
}, runtime: $Util.RuntimeOptions): Promise<CreateInstanceShutdownTimerResponse>;
|
|
909
|
+
createInstanceSnapshot(InstanceId: string, request: CreateInstanceSnapshotRequest): Promise<CreateInstanceSnapshotResponse>;
|
|
910
|
+
createInstanceSnapshotWithOptions(InstanceId: string, request: CreateInstanceSnapshotRequest, headers: {
|
|
911
|
+
[key: string]: string;
|
|
912
|
+
}, runtime: $Util.RuntimeOptions): Promise<CreateInstanceSnapshotResponse>;
|
|
913
|
+
deleteInstance(InstanceId: string): Promise<DeleteInstanceResponse>;
|
|
914
|
+
deleteInstanceWithOptions(InstanceId: string, headers: {
|
|
915
|
+
[key: string]: string;
|
|
916
|
+
}, runtime: $Util.RuntimeOptions): Promise<DeleteInstanceResponse>;
|
|
917
|
+
deleteInstanceShutdownTimer(InstanceId: string): Promise<DeleteInstanceShutdownTimerResponse>;
|
|
918
|
+
deleteInstanceShutdownTimerWithOptions(InstanceId: string, headers: {
|
|
919
|
+
[key: string]: string;
|
|
920
|
+
}, runtime: $Util.RuntimeOptions): Promise<DeleteInstanceShutdownTimerResponse>;
|
|
921
|
+
deleteInstanceSnapshot(InstanceId: string, SnapshotId: string): Promise<DeleteInstanceSnapshotResponse>;
|
|
922
|
+
deleteInstanceSnapshotWithOptions(InstanceId: string, SnapshotId: string, headers: {
|
|
923
|
+
[key: string]: string;
|
|
924
|
+
}, runtime: $Util.RuntimeOptions): Promise<DeleteInstanceSnapshotResponse>;
|
|
925
|
+
getInstance(InstanceId: string): Promise<GetInstanceResponse>;
|
|
926
|
+
getInstanceWithOptions(InstanceId: string, headers: {
|
|
927
|
+
[key: string]: string;
|
|
928
|
+
}, runtime: $Util.RuntimeOptions): Promise<GetInstanceResponse>;
|
|
929
|
+
getInstanceShutdownTimer(InstanceId: string): Promise<GetInstanceShutdownTimerResponse>;
|
|
930
|
+
getInstanceShutdownTimerWithOptions(InstanceId: string, headers: {
|
|
931
|
+
[key: string]: string;
|
|
932
|
+
}, runtime: $Util.RuntimeOptions): Promise<GetInstanceShutdownTimerResponse>;
|
|
933
|
+
getInstanceSnapshot(InstanceId: string, SnapshotId: string): Promise<GetInstanceSnapshotResponse>;
|
|
934
|
+
getInstanceSnapshotWithOptions(InstanceId: string, SnapshotId: string, headers: {
|
|
935
|
+
[key: string]: string;
|
|
936
|
+
}, runtime: $Util.RuntimeOptions): Promise<GetInstanceSnapshotResponse>;
|
|
937
|
+
getUserConfig(): Promise<GetUserConfigResponse>;
|
|
938
|
+
getUserConfigWithOptions(headers: {
|
|
939
|
+
[key: string]: string;
|
|
940
|
+
}, runtime: $Util.RuntimeOptions): Promise<GetUserConfigResponse>;
|
|
941
|
+
listEcsSpecs(request: ListEcsSpecsRequest): Promise<ListEcsSpecsResponse>;
|
|
942
|
+
listEcsSpecsWithOptions(request: ListEcsSpecsRequest, headers: {
|
|
943
|
+
[key: string]: string;
|
|
944
|
+
}, runtime: $Util.RuntimeOptions): Promise<ListEcsSpecsResponse>;
|
|
945
|
+
listInstanceSnapshot(InstanceId: string, request: ListInstanceSnapshotRequest): Promise<ListInstanceSnapshotResponse>;
|
|
946
|
+
listInstanceSnapshotWithOptions(InstanceId: string, request: ListInstanceSnapshotRequest, headers: {
|
|
947
|
+
[key: string]: string;
|
|
948
|
+
}, runtime: $Util.RuntimeOptions): Promise<ListInstanceSnapshotResponse>;
|
|
949
|
+
listInstanceStatistics(request: ListInstanceStatisticsRequest): Promise<ListInstanceStatisticsResponse>;
|
|
950
|
+
listInstanceStatisticsWithOptions(request: ListInstanceStatisticsRequest, headers: {
|
|
951
|
+
[key: string]: string;
|
|
952
|
+
}, runtime: $Util.RuntimeOptions): Promise<ListInstanceStatisticsResponse>;
|
|
953
|
+
listInstances(request: ListInstancesRequest): Promise<ListInstancesResponse>;
|
|
954
|
+
listInstancesWithOptions(request: ListInstancesRequest, headers: {
|
|
955
|
+
[key: string]: string;
|
|
956
|
+
}, runtime: $Util.RuntimeOptions): Promise<ListInstancesResponse>;
|
|
957
|
+
startInstance(InstanceId: string): Promise<StartInstanceResponse>;
|
|
958
|
+
startInstanceWithOptions(InstanceId: string, headers: {
|
|
959
|
+
[key: string]: string;
|
|
960
|
+
}, runtime: $Util.RuntimeOptions): Promise<StartInstanceResponse>;
|
|
961
|
+
stopInstance(InstanceId: string, request: StopInstanceRequest): Promise<StopInstanceResponse>;
|
|
962
|
+
stopInstanceWithOptions(InstanceId: string, request: StopInstanceRequest, headers: {
|
|
963
|
+
[key: string]: string;
|
|
964
|
+
}, runtime: $Util.RuntimeOptions): Promise<StopInstanceResponse>;
|
|
965
|
+
updateInstance(InstanceId: string, request: UpdateInstanceRequest): Promise<UpdateInstanceResponse>;
|
|
966
|
+
updateInstanceWithOptions(InstanceId: string, request: UpdateInstanceRequest, headers: {
|
|
967
|
+
[key: string]: string;
|
|
968
|
+
}, runtime: $Util.RuntimeOptions): Promise<UpdateInstanceResponse>;
|
|
969
|
+
}
|