@alicloud/pai-dsw20220101 0.0.1 → 1.1.12
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/LICENSE +13 -0
- package/README.md +25 -0
- package/dist/client.d.ts +185 -0
- package/dist/client.js +358 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +479 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
English | [简体中文](README-CN.md)
|
|
2
|
+

|
|
3
|
+
|
|
4
|
+
# Alibaba Cloud pai-dsw SDK for NodeJS
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
If you use `npm` to manage your dependence, you can use the following command:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install @alicloud/pai-dsw20220101 -S
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Issues
|
|
14
|
+
[Opening an Issue](https://github.com/aliyun/alibabacloud-typescript-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
[Usage Document](https://github.com/aliyun/alibabacloud-typescript-sdk/blob/master/docs/Usage-EN.md#quick-examples)
|
|
18
|
+
|
|
19
|
+
## References
|
|
20
|
+
* [Latest Release](https://github.com/aliyun/alibabacloud-typescript-sdk/)
|
|
21
|
+
|
|
22
|
+
## License
|
|
23
|
+
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
|
24
|
+
|
|
25
|
+
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
package/dist/client.d.ts
CHANGED
|
@@ -4,6 +4,21 @@
|
|
|
4
4
|
import * as $Util from '@alicloud/tea-util';
|
|
5
5
|
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
|
|
6
6
|
import * as $tea from '@alicloud/tea-typescript';
|
|
7
|
+
export declare class DemoCategory extends $tea.Model {
|
|
8
|
+
categoryCode?: string;
|
|
9
|
+
categoryName?: string;
|
|
10
|
+
order?: number;
|
|
11
|
+
subCategories?: DemoCategory[];
|
|
12
|
+
static names(): {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
static types(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
constructor(map?: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
7
22
|
export declare class CreateInstanceRequest extends $tea.Model {
|
|
8
23
|
accessibility?: string;
|
|
9
24
|
datasets?: CreateInstanceRequestDatasets[];
|
|
@@ -27,8 +42,12 @@ export declare class CreateInstanceRequest extends $tea.Model {
|
|
|
27
42
|
});
|
|
28
43
|
}
|
|
29
44
|
export declare class CreateInstanceResponseBody extends $tea.Model {
|
|
45
|
+
code?: string;
|
|
46
|
+
httpStatusCode?: number;
|
|
30
47
|
instanceId?: string;
|
|
48
|
+
message?: string;
|
|
31
49
|
requestId?: string;
|
|
50
|
+
success?: boolean;
|
|
32
51
|
static names(): {
|
|
33
52
|
[key: string]: string;
|
|
34
53
|
};
|
|
@@ -68,8 +87,12 @@ export declare class CreateInstanceShutdownTimerRequest extends $tea.Model {
|
|
|
68
87
|
});
|
|
69
88
|
}
|
|
70
89
|
export declare class CreateInstanceShutdownTimerResponseBody extends $tea.Model {
|
|
90
|
+
code?: string;
|
|
91
|
+
httpStatusCode?: number;
|
|
71
92
|
instanceId?: string;
|
|
93
|
+
message?: string;
|
|
72
94
|
requestId?: string;
|
|
95
|
+
success?: boolean;
|
|
73
96
|
static names(): {
|
|
74
97
|
[key: string]: string;
|
|
75
98
|
};
|
|
@@ -110,9 +133,13 @@ export declare class CreateInstanceSnapshotRequest extends $tea.Model {
|
|
|
110
133
|
});
|
|
111
134
|
}
|
|
112
135
|
export declare class CreateInstanceSnapshotResponseBody extends $tea.Model {
|
|
136
|
+
code?: string;
|
|
137
|
+
httpStatusCode?: number;
|
|
113
138
|
instanceId?: string;
|
|
139
|
+
message?: string;
|
|
114
140
|
requestId?: string;
|
|
115
141
|
snapshotId?: string;
|
|
142
|
+
success?: boolean;
|
|
116
143
|
static names(): {
|
|
117
144
|
[key: string]: string;
|
|
118
145
|
};
|
|
@@ -139,8 +166,12 @@ export declare class CreateInstanceSnapshotResponse extends $tea.Model {
|
|
|
139
166
|
});
|
|
140
167
|
}
|
|
141
168
|
export declare class DeleteInstanceResponseBody extends $tea.Model {
|
|
169
|
+
code?: string;
|
|
170
|
+
httpStatusCode?: number;
|
|
142
171
|
instanceId?: string;
|
|
172
|
+
message?: string;
|
|
143
173
|
requestId?: string;
|
|
174
|
+
success?: boolean;
|
|
144
175
|
static names(): {
|
|
145
176
|
[key: string]: string;
|
|
146
177
|
};
|
|
@@ -167,8 +198,12 @@ export declare class DeleteInstanceResponse extends $tea.Model {
|
|
|
167
198
|
});
|
|
168
199
|
}
|
|
169
200
|
export declare class DeleteInstanceShutdownTimerResponseBody extends $tea.Model {
|
|
201
|
+
code?: string;
|
|
202
|
+
httpStatusCode?: number;
|
|
170
203
|
instanceId?: string;
|
|
204
|
+
message?: string;
|
|
171
205
|
requestId?: string;
|
|
206
|
+
success?: boolean;
|
|
172
207
|
static names(): {
|
|
173
208
|
[key: string]: string;
|
|
174
209
|
};
|
|
@@ -195,9 +230,13 @@ export declare class DeleteInstanceShutdownTimerResponse extends $tea.Model {
|
|
|
195
230
|
});
|
|
196
231
|
}
|
|
197
232
|
export declare class DeleteInstanceSnapshotResponseBody extends $tea.Model {
|
|
233
|
+
code?: string;
|
|
234
|
+
httpStatusCode?: number;
|
|
198
235
|
instanceId?: string;
|
|
236
|
+
message?: string;
|
|
199
237
|
requestId?: string;
|
|
200
238
|
snapshotId?: string;
|
|
239
|
+
success?: boolean;
|
|
201
240
|
static names(): {
|
|
202
241
|
[key: string]: string;
|
|
203
242
|
};
|
|
@@ -227,6 +266,7 @@ export declare class GetInstanceResponseBody extends $tea.Model {
|
|
|
227
266
|
acceleratorType?: string;
|
|
228
267
|
accessibility?: string;
|
|
229
268
|
accumulatedRunningTimeInMs?: number;
|
|
269
|
+
code?: string;
|
|
230
270
|
datasets?: GetInstanceResponseBodyDatasets[];
|
|
231
271
|
ecsSpec?: string;
|
|
232
272
|
environmentVariables?: {
|
|
@@ -234,6 +274,7 @@ export declare class GetInstanceResponseBody extends $tea.Model {
|
|
|
234
274
|
};
|
|
235
275
|
gmtCreateTime?: string;
|
|
236
276
|
gmtModifiedTime?: string;
|
|
277
|
+
httpStatusCode?: number;
|
|
237
278
|
imageId?: string;
|
|
238
279
|
imageName?: string;
|
|
239
280
|
imageUrl?: string;
|
|
@@ -243,13 +284,16 @@ export declare class GetInstanceResponseBody extends $tea.Model {
|
|
|
243
284
|
instanceUrl?: string;
|
|
244
285
|
jupyterlabUrl?: string;
|
|
245
286
|
latestSnapshot?: GetInstanceResponseBodyLatestSnapshot;
|
|
287
|
+
message?: string;
|
|
246
288
|
paymentType?: string;
|
|
247
289
|
reasonCode?: string;
|
|
248
290
|
reasonMessage?: string;
|
|
249
291
|
requestId?: string;
|
|
250
292
|
status?: string;
|
|
293
|
+
success?: boolean;
|
|
251
294
|
terminalUrl?: string;
|
|
252
295
|
userId?: string;
|
|
296
|
+
userName?: string;
|
|
253
297
|
userVpc?: GetInstanceResponseBodyUserVpc;
|
|
254
298
|
webIDEUrl?: string;
|
|
255
299
|
workspaceId?: string;
|
|
@@ -280,12 +324,16 @@ export declare class GetInstanceResponse extends $tea.Model {
|
|
|
280
324
|
});
|
|
281
325
|
}
|
|
282
326
|
export declare class GetInstanceShutdownTimerResponseBody extends $tea.Model {
|
|
327
|
+
code?: string;
|
|
283
328
|
dueTime?: string;
|
|
284
329
|
gmtCreateTime?: string;
|
|
285
330
|
gmtModifiedTime?: string;
|
|
331
|
+
httpStatusCode?: number;
|
|
286
332
|
instanceId?: string;
|
|
333
|
+
message?: string;
|
|
287
334
|
remainingTimeInMs?: number;
|
|
288
335
|
requestId?: string;
|
|
336
|
+
success?: boolean;
|
|
289
337
|
static names(): {
|
|
290
338
|
[key: string]: string;
|
|
291
339
|
};
|
|
@@ -312,17 +360,21 @@ export declare class GetInstanceShutdownTimerResponse extends $tea.Model {
|
|
|
312
360
|
});
|
|
313
361
|
}
|
|
314
362
|
export declare class GetInstanceSnapshotResponseBody extends $tea.Model {
|
|
363
|
+
code?: string;
|
|
315
364
|
gmtCreateTime?: string;
|
|
316
365
|
gmtModifiedTime?: string;
|
|
366
|
+
httpStatusCode?: number;
|
|
317
367
|
imageId?: string;
|
|
318
368
|
imageUrl?: string;
|
|
319
369
|
instanceId?: string;
|
|
370
|
+
message?: string;
|
|
320
371
|
reasonCode?: string;
|
|
321
372
|
reasonMessage?: string;
|
|
322
373
|
requestId?: string;
|
|
323
374
|
snapshotId?: string;
|
|
324
375
|
snapshotName?: string;
|
|
325
376
|
status?: string;
|
|
377
|
+
success?: boolean;
|
|
326
378
|
static names(): {
|
|
327
379
|
[key: string]: string;
|
|
328
380
|
};
|
|
@@ -350,7 +402,11 @@ export declare class GetInstanceSnapshotResponse extends $tea.Model {
|
|
|
350
402
|
}
|
|
351
403
|
export declare class GetUserConfigResponseBody extends $tea.Model {
|
|
352
404
|
accountSufficient?: boolean;
|
|
405
|
+
code?: string;
|
|
406
|
+
httpStatusCode?: number;
|
|
407
|
+
message?: string;
|
|
353
408
|
requestId?: string;
|
|
409
|
+
success?: boolean;
|
|
354
410
|
static names(): {
|
|
355
411
|
[key: string]: string;
|
|
356
412
|
};
|
|
@@ -376,6 +432,78 @@ export declare class GetUserConfigResponse extends $tea.Model {
|
|
|
376
432
|
[key: string]: any;
|
|
377
433
|
});
|
|
378
434
|
}
|
|
435
|
+
export declare class ListDemoCategoriesResponseBody extends $tea.Model {
|
|
436
|
+
categories?: DemoCategory[];
|
|
437
|
+
requestId?: string;
|
|
438
|
+
static names(): {
|
|
439
|
+
[key: string]: string;
|
|
440
|
+
};
|
|
441
|
+
static types(): {
|
|
442
|
+
[key: string]: any;
|
|
443
|
+
};
|
|
444
|
+
constructor(map?: {
|
|
445
|
+
[key: string]: any;
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
export declare class ListDemoCategoriesResponse extends $tea.Model {
|
|
449
|
+
headers: {
|
|
450
|
+
[key: string]: string;
|
|
451
|
+
};
|
|
452
|
+
body: ListDemoCategoriesResponseBody;
|
|
453
|
+
static names(): {
|
|
454
|
+
[key: string]: string;
|
|
455
|
+
};
|
|
456
|
+
static types(): {
|
|
457
|
+
[key: string]: any;
|
|
458
|
+
};
|
|
459
|
+
constructor(map?: {
|
|
460
|
+
[key: string]: any;
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
export declare class ListDemosRequest extends $tea.Model {
|
|
464
|
+
category?: string;
|
|
465
|
+
demoName?: string;
|
|
466
|
+
pageNumber?: number;
|
|
467
|
+
pageSize?: number;
|
|
468
|
+
static names(): {
|
|
469
|
+
[key: string]: string;
|
|
470
|
+
};
|
|
471
|
+
static types(): {
|
|
472
|
+
[key: string]: any;
|
|
473
|
+
};
|
|
474
|
+
constructor(map?: {
|
|
475
|
+
[key: string]: any;
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
export declare class ListDemosResponseBody extends $tea.Model {
|
|
479
|
+
demos?: ListDemosResponseBodyDemos[];
|
|
480
|
+
requestId?: string;
|
|
481
|
+
totalCount?: number;
|
|
482
|
+
static names(): {
|
|
483
|
+
[key: string]: string;
|
|
484
|
+
};
|
|
485
|
+
static types(): {
|
|
486
|
+
[key: string]: any;
|
|
487
|
+
};
|
|
488
|
+
constructor(map?: {
|
|
489
|
+
[key: string]: any;
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
export declare class ListDemosResponse extends $tea.Model {
|
|
493
|
+
headers: {
|
|
494
|
+
[key: string]: string;
|
|
495
|
+
};
|
|
496
|
+
body: ListDemosResponseBody;
|
|
497
|
+
static names(): {
|
|
498
|
+
[key: string]: string;
|
|
499
|
+
};
|
|
500
|
+
static types(): {
|
|
501
|
+
[key: string]: any;
|
|
502
|
+
};
|
|
503
|
+
constructor(map?: {
|
|
504
|
+
[key: string]: any;
|
|
505
|
+
});
|
|
506
|
+
}
|
|
379
507
|
export declare class ListEcsSpecsRequest extends $tea.Model {
|
|
380
508
|
acceleratorType?: string;
|
|
381
509
|
order?: string;
|
|
@@ -393,8 +521,12 @@ export declare class ListEcsSpecsRequest extends $tea.Model {
|
|
|
393
521
|
});
|
|
394
522
|
}
|
|
395
523
|
export declare class ListEcsSpecsResponseBody extends $tea.Model {
|
|
524
|
+
code?: string;
|
|
396
525
|
ecsSpecs?: ListEcsSpecsResponseBodyEcsSpecs[];
|
|
526
|
+
httpStatusCode?: number;
|
|
527
|
+
message?: string;
|
|
397
528
|
requestId?: string;
|
|
529
|
+
success?: boolean;
|
|
398
530
|
totalCount?: number;
|
|
399
531
|
static names(): {
|
|
400
532
|
[key: string]: string;
|
|
@@ -437,8 +569,12 @@ export declare class ListInstanceSnapshotRequest extends $tea.Model {
|
|
|
437
569
|
});
|
|
438
570
|
}
|
|
439
571
|
export declare class ListInstanceSnapshotResponseBody extends $tea.Model {
|
|
572
|
+
code?: string;
|
|
573
|
+
httpStatusCode?: number;
|
|
574
|
+
message?: string;
|
|
440
575
|
requestId?: string;
|
|
441
576
|
snapshots?: ListInstanceSnapshotResponseBodySnapshots[];
|
|
577
|
+
success?: boolean;
|
|
442
578
|
totalCount?: number;
|
|
443
579
|
static names(): {
|
|
444
580
|
[key: string]: string;
|
|
@@ -478,12 +614,16 @@ export declare class ListInstanceStatisticsRequest extends $tea.Model {
|
|
|
478
614
|
});
|
|
479
615
|
}
|
|
480
616
|
export declare class ListInstanceStatisticsResponseBody extends $tea.Model {
|
|
617
|
+
code?: string;
|
|
618
|
+
httpStatusCode?: number;
|
|
619
|
+
message?: string;
|
|
481
620
|
requestId?: string;
|
|
482
621
|
statistics?: {
|
|
483
622
|
[key: string]: {
|
|
484
623
|
[key: string]: any;
|
|
485
624
|
};
|
|
486
625
|
};
|
|
626
|
+
success?: boolean;
|
|
487
627
|
static names(): {
|
|
488
628
|
[key: string]: string;
|
|
489
629
|
};
|
|
@@ -510,10 +650,13 @@ export declare class ListInstanceStatisticsResponse extends $tea.Model {
|
|
|
510
650
|
});
|
|
511
651
|
}
|
|
512
652
|
export declare class ListInstancesRequest extends $tea.Model {
|
|
653
|
+
acceleratorType?: string;
|
|
654
|
+
accessibility?: string;
|
|
513
655
|
instanceName?: string;
|
|
514
656
|
order?: string;
|
|
515
657
|
pageNumber?: number;
|
|
516
658
|
pageSize?: number;
|
|
659
|
+
paymentType?: string;
|
|
517
660
|
sortBy?: string;
|
|
518
661
|
status?: string;
|
|
519
662
|
workspaceId?: string;
|
|
@@ -528,8 +671,12 @@ export declare class ListInstancesRequest extends $tea.Model {
|
|
|
528
671
|
});
|
|
529
672
|
}
|
|
530
673
|
export declare class ListInstancesResponseBody extends $tea.Model {
|
|
674
|
+
code?: string;
|
|
675
|
+
httpStatusCode?: number;
|
|
531
676
|
instances?: ListInstancesResponseBodyInstances[];
|
|
677
|
+
message?: string;
|
|
532
678
|
requestId?: string;
|
|
679
|
+
success?: boolean;
|
|
533
680
|
totalCount?: number;
|
|
534
681
|
static names(): {
|
|
535
682
|
[key: string]: string;
|
|
@@ -557,8 +704,12 @@ export declare class ListInstancesResponse extends $tea.Model {
|
|
|
557
704
|
});
|
|
558
705
|
}
|
|
559
706
|
export declare class StartInstanceResponseBody extends $tea.Model {
|
|
707
|
+
code?: string;
|
|
708
|
+
httpStatusCode?: number;
|
|
560
709
|
instanceId?: string;
|
|
710
|
+
message?: string;
|
|
561
711
|
requestId?: string;
|
|
712
|
+
success?: boolean;
|
|
562
713
|
static names(): {
|
|
563
714
|
[key: string]: string;
|
|
564
715
|
};
|
|
@@ -597,8 +748,12 @@ export declare class StopInstanceRequest extends $tea.Model {
|
|
|
597
748
|
});
|
|
598
749
|
}
|
|
599
750
|
export declare class StopInstanceResponseBody extends $tea.Model {
|
|
751
|
+
code?: string;
|
|
752
|
+
httpStatusCode?: number;
|
|
600
753
|
instanceId?: string;
|
|
754
|
+
message?: string;
|
|
601
755
|
requestId?: string;
|
|
756
|
+
success?: boolean;
|
|
602
757
|
static names(): {
|
|
603
758
|
[key: string]: string;
|
|
604
759
|
};
|
|
@@ -637,8 +792,12 @@ export declare class UpdateInstanceRequest extends $tea.Model {
|
|
|
637
792
|
});
|
|
638
793
|
}
|
|
639
794
|
export declare class UpdateInstanceResponseBody extends $tea.Model {
|
|
795
|
+
code?: string;
|
|
796
|
+
httpStatusCode?: number;
|
|
640
797
|
instanceId?: string;
|
|
798
|
+
message?: string;
|
|
641
799
|
requestId?: string;
|
|
800
|
+
success?: boolean;
|
|
642
801
|
static names(): {
|
|
643
802
|
[key: string]: string;
|
|
644
803
|
};
|
|
@@ -751,6 +910,23 @@ export declare class GetInstanceResponseBodyUserVpc extends $tea.Model {
|
|
|
751
910
|
[key: string]: any;
|
|
752
911
|
});
|
|
753
912
|
}
|
|
913
|
+
export declare class ListDemosResponseBodyDemos extends $tea.Model {
|
|
914
|
+
categories?: string[];
|
|
915
|
+
demoDescription?: string;
|
|
916
|
+
demoName?: string;
|
|
917
|
+
demoUrl?: string;
|
|
918
|
+
order?: number;
|
|
919
|
+
size?: number;
|
|
920
|
+
static names(): {
|
|
921
|
+
[key: string]: string;
|
|
922
|
+
};
|
|
923
|
+
static types(): {
|
|
924
|
+
[key: string]: any;
|
|
925
|
+
};
|
|
926
|
+
constructor(map?: {
|
|
927
|
+
[key: string]: any;
|
|
928
|
+
});
|
|
929
|
+
}
|
|
754
930
|
export declare class ListEcsSpecsResponseBodyEcsSpecs extends $tea.Model {
|
|
755
931
|
acceleratorType?: string;
|
|
756
932
|
CPU?: number;
|
|
@@ -879,6 +1055,7 @@ export declare class ListInstancesResponseBodyInstances extends $tea.Model {
|
|
|
879
1055
|
status?: string;
|
|
880
1056
|
terminalUrl?: string;
|
|
881
1057
|
userId?: string;
|
|
1058
|
+
userName?: string;
|
|
882
1059
|
userVpc?: ListInstancesResponseBodyInstancesUserVpc;
|
|
883
1060
|
webIDEUrl?: string;
|
|
884
1061
|
workspaceId?: string;
|
|
@@ -938,6 +1115,14 @@ export default class Client extends OpenApi {
|
|
|
938
1115
|
getUserConfigWithOptions(headers: {
|
|
939
1116
|
[key: string]: string;
|
|
940
1117
|
}, runtime: $Util.RuntimeOptions): Promise<GetUserConfigResponse>;
|
|
1118
|
+
listDemoCategories(): Promise<ListDemoCategoriesResponse>;
|
|
1119
|
+
listDemoCategoriesWithOptions(headers: {
|
|
1120
|
+
[key: string]: string;
|
|
1121
|
+
}, runtime: $Util.RuntimeOptions): Promise<ListDemoCategoriesResponse>;
|
|
1122
|
+
listDemos(request: ListDemosRequest): Promise<ListDemosResponse>;
|
|
1123
|
+
listDemosWithOptions(request: ListDemosRequest, headers: {
|
|
1124
|
+
[key: string]: string;
|
|
1125
|
+
}, runtime: $Util.RuntimeOptions): Promise<ListDemosResponse>;
|
|
941
1126
|
listEcsSpecs(request: ListEcsSpecsRequest): Promise<ListEcsSpecsResponse>;
|
|
942
1127
|
listEcsSpecsWithOptions(request: ListEcsSpecsRequest, headers: {
|
|
943
1128
|
[key: string]: string;
|