@alicloud/ehpcinstant20230701 1.1.2 → 1.3.0
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 +779 -24
- package/dist/client.js +888 -16
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1352 -57
package/dist/client.js
CHANGED
|
@@ -15,20 +15,30 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.TagResourcesRequestTag = exports.ListTagResourcesResponseBodyTagResources = exports.ListTagResourcesResponseBodyTagResourcesTagResource = exports.ListTagResourcesRequestTag = exports.ListJobsResponseBodyJobList = exports.ListJobsResponseBodyJobListTags = exports.ListJobsRequestSortBy = exports.ListJobsRequestFilter = void 0;
|
|
39
|
+
exports.ListJobExecutorsResponse = exports.ListJobExecutorsResponseBody = exports.ListJobExecutorsRequest = exports.ListImagesResponse = exports.ListImagesResponseBody = exports.ListImagesShrinkRequest = exports.ListImagesRequest = exports.ListExecutorsResponse = exports.ListExecutorsResponseBody = exports.ListExecutorsShrinkRequest = exports.ListExecutorsRequest = exports.GetPoolResponse = exports.GetPoolResponseBody = exports.GetPoolRequest = exports.GetJobResponse = exports.GetJobResponseBody = exports.GetJobRequest = exports.GetImageResponse = exports.GetImageResponseBody = exports.GetImageRequest = exports.GetAppVersionsResponse = exports.GetAppVersionsResponseBody = exports.GetAppVersionsRequest = exports.DescribeJobMetricLastResponse = exports.DescribeJobMetricLastResponseBody = exports.DescribeJobMetricLastShrinkRequest = exports.DescribeJobMetricLastRequest = exports.DescribeJobMetricDataResponse = exports.DescribeJobMetricDataResponseBody = exports.DescribeJobMetricDataShrinkRequest = exports.DescribeJobMetricDataRequest = exports.DeletePoolResponse = exports.DeletePoolResponseBody = exports.DeletePoolRequest = exports.DeleteJobsResponse = exports.DeleteJobsResponseBody = exports.DeleteJobsShrinkRequest = exports.DeleteJobsRequest = exports.CreatePoolResponse = exports.CreatePoolResponseBody = exports.CreatePoolShrinkRequest = exports.CreatePoolRequest = exports.CreateJobResponse = exports.CreateJobResponseBody = exports.CreateJobShrinkRequest = exports.CreateJobRequest = exports.AddImageResponse = exports.AddImageResponseBody = exports.AddImageShrinkRequest = exports.AddImageRequest = void 0;
|
|
40
|
+
exports.GetImageResponseBodyImageDocumentInfo = exports.GetImageResponseBodyImageContainerImageSpec = exports.GetImageResponseBodyImageContainerImageSpecRegistryCredential = exports.GetAppVersionsResponseBodyAppVersions = exports.DescribeJobMetricLastResponseBodyMetrics = exports.DeleteJobsRequestJobSpec = exports.DeleteJobsRequestJobSpecTaskSpec = exports.CreatePoolRequestResourceLimits = exports.CreateJobResponseBodyTasks = exports.CreateJobRequestTasks = exports.CreateJobRequestTasksTaskSpec = exports.CreateJobRequestTasksTaskSpecVolumeMount = exports.CreateJobRequestTasksTaskSpecTaskExecutor = exports.CreateJobRequestTasksTaskSpecTaskExecutorVM = exports.CreateJobRequestTasksTaskSpecTaskExecutorContainer = exports.CreateJobRequestTasksTaskSpecTaskExecutorContainerEnvironmentVars = exports.CreateJobRequestTasksTaskSpecResource = exports.CreateJobRequestTasksTaskSpecResourceDisks = exports.CreateJobRequestTasksExecutorPolicy = exports.CreateJobRequestTasksExecutorPolicyArraySpec = exports.CreateJobRequestDeploymentPolicy = exports.CreateJobRequestDeploymentPolicyTag = exports.CreateJobRequestDeploymentPolicyNetwork = exports.AddImageRequestVMImageSpec = exports.AddImageRequestContainerImageSpec = exports.AddImageRequestContainerImageSpecRegistryCredential = exports.UpdatePoolResponse = exports.UpdatePoolResponseBody = exports.UpdatePoolShrinkRequest = exports.UpdatePoolRequest = exports.UnTagResourcesResponse = exports.UnTagResourcesResponseBody = exports.UnTagResourcesRequest = exports.TagResourcesResponse = exports.TagResourcesResponseBody = exports.TagResourcesRequest = exports.RemoveImageResponse = exports.RemoveImageResponseBody = exports.RemoveImageRequest = exports.ListTagResourcesResponse = exports.ListTagResourcesResponseBody = exports.ListTagResourcesRequest = exports.ListPoolsResponse = exports.ListPoolsResponseBody = exports.ListPoolsShrinkRequest = exports.ListPoolsRequest = exports.ListJobsResponse = exports.ListJobsResponseBody = exports.ListJobsShrinkRequest = exports.ListJobsRequest = void 0;
|
|
41
|
+
exports.UpdatePoolRequestResourceLimits = exports.TagResourcesRequestTag = exports.ListTagResourcesResponseBodyTagResources = exports.ListTagResourcesResponseBodyTagResourcesTagResource = exports.ListTagResourcesRequestTag = exports.ListPoolsResponseBodyPoolList = exports.ListPoolsRequestFilter = exports.ListJobsResponseBodyJobList = exports.ListJobsResponseBodyJobListTags = exports.ListJobsRequestSortBy = exports.ListJobsRequestFilter = exports.ListJobExecutorsResponseBodyExecutors = exports.ListJobExecutorsResponseBodyExecutorsTags = exports.ListJobExecutorsResponseBodyExecutorStatus = exports.ListImagesResponseBodyImages = exports.ListExecutorsResponseBodyExecutors = exports.ListExecutorsResponseBodyExecutorsTags = exports.ListExecutorsResponseBodyExecutorsResource = exports.ListExecutorsResponseBodyExecutorsResourceDisks = exports.ListExecutorsRequestFilter = exports.GetPoolResponseBodyPoolInfo = exports.GetJobResponseBodyJobInfo = exports.GetJobResponseBodyJobInfoTasks = exports.GetJobResponseBodyJobInfoTasksTaskSpec = exports.GetJobResponseBodyJobInfoTasksTaskSpecTaskExecutor = exports.GetJobResponseBodyJobInfoTasksTaskSpecTaskExecutorVM = exports.GetJobResponseBodyJobInfoTasksTaskSpecResource = exports.GetJobResponseBodyJobInfoTasksTaskSpecResourceDisks = exports.GetJobResponseBodyJobInfoTasksExecutorStatus = exports.GetJobResponseBodyJobInfoTasksExecutorPolicy = exports.GetJobResponseBodyJobInfoTasksExecutorPolicyArraySpec = exports.GetJobResponseBodyJobInfoDeploymentPolicy = exports.GetJobResponseBodyJobInfoDeploymentPolicyTags = exports.GetJobResponseBodyJobInfoDeploymentPolicyNetwork = exports.GetImageResponseBodyImage = exports.GetImageResponseBodyImageVMImageSpec = void 0;
|
|
32
42
|
// This file is auto-generated, don't edit it
|
|
33
43
|
/**
|
|
34
44
|
*/
|
|
@@ -217,6 +227,82 @@ class CreateJobResponse extends $tea.Model {
|
|
|
217
227
|
}
|
|
218
228
|
}
|
|
219
229
|
exports.CreateJobResponse = CreateJobResponse;
|
|
230
|
+
class CreatePoolRequest extends $tea.Model {
|
|
231
|
+
static names() {
|
|
232
|
+
return {
|
|
233
|
+
poolName: 'PoolName',
|
|
234
|
+
priority: 'Priority',
|
|
235
|
+
resourceLimits: 'ResourceLimits',
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
static types() {
|
|
239
|
+
return {
|
|
240
|
+
poolName: 'string',
|
|
241
|
+
priority: 'number',
|
|
242
|
+
resourceLimits: CreatePoolRequestResourceLimits,
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
constructor(map) {
|
|
246
|
+
super(map);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
exports.CreatePoolRequest = CreatePoolRequest;
|
|
250
|
+
class CreatePoolShrinkRequest extends $tea.Model {
|
|
251
|
+
static names() {
|
|
252
|
+
return {
|
|
253
|
+
poolName: 'PoolName',
|
|
254
|
+
priority: 'Priority',
|
|
255
|
+
resourceLimitsShrink: 'ResourceLimits',
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
static types() {
|
|
259
|
+
return {
|
|
260
|
+
poolName: 'string',
|
|
261
|
+
priority: 'number',
|
|
262
|
+
resourceLimitsShrink: 'string',
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
constructor(map) {
|
|
266
|
+
super(map);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
exports.CreatePoolShrinkRequest = CreatePoolShrinkRequest;
|
|
270
|
+
class CreatePoolResponseBody extends $tea.Model {
|
|
271
|
+
static names() {
|
|
272
|
+
return {
|
|
273
|
+
requestId: 'RequestId',
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
static types() {
|
|
277
|
+
return {
|
|
278
|
+
requestId: 'string',
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
constructor(map) {
|
|
282
|
+
super(map);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
exports.CreatePoolResponseBody = CreatePoolResponseBody;
|
|
286
|
+
class CreatePoolResponse extends $tea.Model {
|
|
287
|
+
static names() {
|
|
288
|
+
return {
|
|
289
|
+
headers: 'headers',
|
|
290
|
+
statusCode: 'statusCode',
|
|
291
|
+
body: 'body',
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
static types() {
|
|
295
|
+
return {
|
|
296
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
297
|
+
statusCode: 'number',
|
|
298
|
+
body: CreatePoolResponseBody,
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
constructor(map) {
|
|
302
|
+
super(map);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
exports.CreatePoolResponse = CreatePoolResponse;
|
|
220
306
|
class DeleteJobsRequest extends $tea.Model {
|
|
221
307
|
static names() {
|
|
222
308
|
return {
|
|
@@ -289,6 +375,58 @@ class DeleteJobsResponse extends $tea.Model {
|
|
|
289
375
|
}
|
|
290
376
|
}
|
|
291
377
|
exports.DeleteJobsResponse = DeleteJobsResponse;
|
|
378
|
+
class DeletePoolRequest extends $tea.Model {
|
|
379
|
+
static names() {
|
|
380
|
+
return {
|
|
381
|
+
poolName: 'PoolName',
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
static types() {
|
|
385
|
+
return {
|
|
386
|
+
poolName: 'string',
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
constructor(map) {
|
|
390
|
+
super(map);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
exports.DeletePoolRequest = DeletePoolRequest;
|
|
394
|
+
class DeletePoolResponseBody extends $tea.Model {
|
|
395
|
+
static names() {
|
|
396
|
+
return {
|
|
397
|
+
requestId: 'RequestId',
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
static types() {
|
|
401
|
+
return {
|
|
402
|
+
requestId: 'string',
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
constructor(map) {
|
|
406
|
+
super(map);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
exports.DeletePoolResponseBody = DeletePoolResponseBody;
|
|
410
|
+
class DeletePoolResponse extends $tea.Model {
|
|
411
|
+
static names() {
|
|
412
|
+
return {
|
|
413
|
+
headers: 'headers',
|
|
414
|
+
statusCode: 'statusCode',
|
|
415
|
+
body: 'body',
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
static types() {
|
|
419
|
+
return {
|
|
420
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
421
|
+
statusCode: 'number',
|
|
422
|
+
body: DeletePoolResponseBody,
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
constructor(map) {
|
|
426
|
+
super(map);
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
exports.DeletePoolResponse = DeletePoolResponse;
|
|
292
430
|
class DescribeJobMetricDataRequest extends $tea.Model {
|
|
293
431
|
static names() {
|
|
294
432
|
return {
|
|
@@ -451,6 +589,76 @@ class DescribeJobMetricLastResponse extends $tea.Model {
|
|
|
451
589
|
}
|
|
452
590
|
}
|
|
453
591
|
exports.DescribeJobMetricLastResponse = DescribeJobMetricLastResponse;
|
|
592
|
+
class GetAppVersionsRequest extends $tea.Model {
|
|
593
|
+
static names() {
|
|
594
|
+
return {
|
|
595
|
+
appName: 'AppName',
|
|
596
|
+
imageCategory: 'ImageCategory',
|
|
597
|
+
imageType: 'ImageType',
|
|
598
|
+
pageNumber: 'PageNumber',
|
|
599
|
+
pageSize: 'PageSize',
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
static types() {
|
|
603
|
+
return {
|
|
604
|
+
appName: 'string',
|
|
605
|
+
imageCategory: 'string',
|
|
606
|
+
imageType: 'string',
|
|
607
|
+
pageNumber: 'number',
|
|
608
|
+
pageSize: 'number',
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
constructor(map) {
|
|
612
|
+
super(map);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
exports.GetAppVersionsRequest = GetAppVersionsRequest;
|
|
616
|
+
class GetAppVersionsResponseBody extends $tea.Model {
|
|
617
|
+
static names() {
|
|
618
|
+
return {
|
|
619
|
+
appVersions: 'AppVersions',
|
|
620
|
+
pageNumber: 'PageNumber',
|
|
621
|
+
pageSize: 'PageSize',
|
|
622
|
+
requestId: 'RequestId',
|
|
623
|
+
success: 'Success',
|
|
624
|
+
totalCount: 'TotalCount',
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
static types() {
|
|
628
|
+
return {
|
|
629
|
+
appVersions: { 'type': 'array', 'itemType': GetAppVersionsResponseBodyAppVersions },
|
|
630
|
+
pageNumber: 'number',
|
|
631
|
+
pageSize: 'number',
|
|
632
|
+
requestId: 'string',
|
|
633
|
+
success: 'boolean',
|
|
634
|
+
totalCount: 'number',
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
constructor(map) {
|
|
638
|
+
super(map);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
exports.GetAppVersionsResponseBody = GetAppVersionsResponseBody;
|
|
642
|
+
class GetAppVersionsResponse extends $tea.Model {
|
|
643
|
+
static names() {
|
|
644
|
+
return {
|
|
645
|
+
headers: 'headers',
|
|
646
|
+
statusCode: 'statusCode',
|
|
647
|
+
body: 'body',
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
static types() {
|
|
651
|
+
return {
|
|
652
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
653
|
+
statusCode: 'number',
|
|
654
|
+
body: GetAppVersionsResponseBody,
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
constructor(map) {
|
|
658
|
+
super(map);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
exports.GetAppVersionsResponse = GetAppVersionsResponse;
|
|
454
662
|
class GetImageRequest extends $tea.Model {
|
|
455
663
|
static names() {
|
|
456
664
|
return {
|
|
@@ -567,6 +775,60 @@ class GetJobResponse extends $tea.Model {
|
|
|
567
775
|
}
|
|
568
776
|
}
|
|
569
777
|
exports.GetJobResponse = GetJobResponse;
|
|
778
|
+
class GetPoolRequest extends $tea.Model {
|
|
779
|
+
static names() {
|
|
780
|
+
return {
|
|
781
|
+
poolName: 'PoolName',
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
static types() {
|
|
785
|
+
return {
|
|
786
|
+
poolName: 'string',
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
constructor(map) {
|
|
790
|
+
super(map);
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
exports.GetPoolRequest = GetPoolRequest;
|
|
794
|
+
class GetPoolResponseBody extends $tea.Model {
|
|
795
|
+
static names() {
|
|
796
|
+
return {
|
|
797
|
+
poolInfo: 'PoolInfo',
|
|
798
|
+
requestId: 'RequestId',
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
static types() {
|
|
802
|
+
return {
|
|
803
|
+
poolInfo: GetPoolResponseBodyPoolInfo,
|
|
804
|
+
requestId: 'string',
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
constructor(map) {
|
|
808
|
+
super(map);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
exports.GetPoolResponseBody = GetPoolResponseBody;
|
|
812
|
+
class GetPoolResponse extends $tea.Model {
|
|
813
|
+
static names() {
|
|
814
|
+
return {
|
|
815
|
+
headers: 'headers',
|
|
816
|
+
statusCode: 'statusCode',
|
|
817
|
+
body: 'body',
|
|
818
|
+
};
|
|
819
|
+
}
|
|
820
|
+
static types() {
|
|
821
|
+
return {
|
|
822
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
823
|
+
statusCode: 'number',
|
|
824
|
+
body: GetPoolResponseBody,
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
constructor(map) {
|
|
828
|
+
super(map);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
exports.GetPoolResponse = GetPoolResponse;
|
|
570
832
|
class ListExecutorsRequest extends $tea.Model {
|
|
571
833
|
static names() {
|
|
572
834
|
return {
|
|
@@ -658,6 +920,7 @@ class ListImagesRequest extends $tea.Model {
|
|
|
658
920
|
imageIds: 'ImageIds',
|
|
659
921
|
imageNames: 'ImageNames',
|
|
660
922
|
imageType: 'ImageType',
|
|
923
|
+
mode: 'Mode',
|
|
661
924
|
pageNumber: 'PageNumber',
|
|
662
925
|
pageSize: 'PageSize',
|
|
663
926
|
};
|
|
@@ -668,6 +931,7 @@ class ListImagesRequest extends $tea.Model {
|
|
|
668
931
|
imageIds: { 'type': 'array', 'itemType': 'string' },
|
|
669
932
|
imageNames: { 'type': 'array', 'itemType': 'string' },
|
|
670
933
|
imageType: 'string',
|
|
934
|
+
mode: 'string',
|
|
671
935
|
pageNumber: 'number',
|
|
672
936
|
pageSize: 'number',
|
|
673
937
|
};
|
|
@@ -684,6 +948,7 @@ class ListImagesShrinkRequest extends $tea.Model {
|
|
|
684
948
|
imageIdsShrink: 'ImageIds',
|
|
685
949
|
imageNamesShrink: 'ImageNames',
|
|
686
950
|
imageType: 'ImageType',
|
|
951
|
+
mode: 'Mode',
|
|
687
952
|
pageNumber: 'PageNumber',
|
|
688
953
|
pageSize: 'PageSize',
|
|
689
954
|
};
|
|
@@ -694,6 +959,7 @@ class ListImagesShrinkRequest extends $tea.Model {
|
|
|
694
959
|
imageIdsShrink: 'string',
|
|
695
960
|
imageNamesShrink: 'string',
|
|
696
961
|
imageType: 'string',
|
|
962
|
+
mode: 'string',
|
|
697
963
|
pageNumber: 'number',
|
|
698
964
|
pageSize: 'number',
|
|
699
965
|
};
|
|
@@ -909,6 +1175,90 @@ class ListJobsResponse extends $tea.Model {
|
|
|
909
1175
|
}
|
|
910
1176
|
}
|
|
911
1177
|
exports.ListJobsResponse = ListJobsResponse;
|
|
1178
|
+
class ListPoolsRequest extends $tea.Model {
|
|
1179
|
+
static names() {
|
|
1180
|
+
return {
|
|
1181
|
+
filter: 'Filter',
|
|
1182
|
+
pageNumber: 'PageNumber',
|
|
1183
|
+
pageSize: 'PageSize',
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
static types() {
|
|
1187
|
+
return {
|
|
1188
|
+
filter: ListPoolsRequestFilter,
|
|
1189
|
+
pageNumber: 'number',
|
|
1190
|
+
pageSize: 'number',
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
constructor(map) {
|
|
1194
|
+
super(map);
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
exports.ListPoolsRequest = ListPoolsRequest;
|
|
1198
|
+
class ListPoolsShrinkRequest extends $tea.Model {
|
|
1199
|
+
static names() {
|
|
1200
|
+
return {
|
|
1201
|
+
filterShrink: 'Filter',
|
|
1202
|
+
pageNumber: 'PageNumber',
|
|
1203
|
+
pageSize: 'PageSize',
|
|
1204
|
+
};
|
|
1205
|
+
}
|
|
1206
|
+
static types() {
|
|
1207
|
+
return {
|
|
1208
|
+
filterShrink: 'string',
|
|
1209
|
+
pageNumber: 'number',
|
|
1210
|
+
pageSize: 'number',
|
|
1211
|
+
};
|
|
1212
|
+
}
|
|
1213
|
+
constructor(map) {
|
|
1214
|
+
super(map);
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
exports.ListPoolsShrinkRequest = ListPoolsShrinkRequest;
|
|
1218
|
+
class ListPoolsResponseBody extends $tea.Model {
|
|
1219
|
+
static names() {
|
|
1220
|
+
return {
|
|
1221
|
+
pageNumber: 'PageNumber',
|
|
1222
|
+
pageSize: 'PageSize',
|
|
1223
|
+
poolList: 'PoolList',
|
|
1224
|
+
requestId: 'RequestId',
|
|
1225
|
+
totalCount: 'TotalCount',
|
|
1226
|
+
};
|
|
1227
|
+
}
|
|
1228
|
+
static types() {
|
|
1229
|
+
return {
|
|
1230
|
+
pageNumber: 'number',
|
|
1231
|
+
pageSize: 'number',
|
|
1232
|
+
poolList: { 'type': 'array', 'itemType': ListPoolsResponseBodyPoolList },
|
|
1233
|
+
requestId: 'string',
|
|
1234
|
+
totalCount: 'number',
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
constructor(map) {
|
|
1238
|
+
super(map);
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
exports.ListPoolsResponseBody = ListPoolsResponseBody;
|
|
1242
|
+
class ListPoolsResponse extends $tea.Model {
|
|
1243
|
+
static names() {
|
|
1244
|
+
return {
|
|
1245
|
+
headers: 'headers',
|
|
1246
|
+
statusCode: 'statusCode',
|
|
1247
|
+
body: 'body',
|
|
1248
|
+
};
|
|
1249
|
+
}
|
|
1250
|
+
static types() {
|
|
1251
|
+
return {
|
|
1252
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1253
|
+
statusCode: 'number',
|
|
1254
|
+
body: ListPoolsResponseBody,
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
constructor(map) {
|
|
1258
|
+
super(map);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
exports.ListPoolsResponse = ListPoolsResponse;
|
|
912
1262
|
class ListTagResourcesRequest extends $tea.Model {
|
|
913
1263
|
static names() {
|
|
914
1264
|
return {
|
|
@@ -1143,6 +1493,82 @@ class UnTagResourcesResponse extends $tea.Model {
|
|
|
1143
1493
|
}
|
|
1144
1494
|
}
|
|
1145
1495
|
exports.UnTagResourcesResponse = UnTagResourcesResponse;
|
|
1496
|
+
class UpdatePoolRequest extends $tea.Model {
|
|
1497
|
+
static names() {
|
|
1498
|
+
return {
|
|
1499
|
+
poolName: 'PoolName',
|
|
1500
|
+
priority: 'Priority',
|
|
1501
|
+
resourceLimits: 'ResourceLimits',
|
|
1502
|
+
};
|
|
1503
|
+
}
|
|
1504
|
+
static types() {
|
|
1505
|
+
return {
|
|
1506
|
+
poolName: 'string',
|
|
1507
|
+
priority: 'number',
|
|
1508
|
+
resourceLimits: UpdatePoolRequestResourceLimits,
|
|
1509
|
+
};
|
|
1510
|
+
}
|
|
1511
|
+
constructor(map) {
|
|
1512
|
+
super(map);
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
exports.UpdatePoolRequest = UpdatePoolRequest;
|
|
1516
|
+
class UpdatePoolShrinkRequest extends $tea.Model {
|
|
1517
|
+
static names() {
|
|
1518
|
+
return {
|
|
1519
|
+
poolName: 'PoolName',
|
|
1520
|
+
priority: 'Priority',
|
|
1521
|
+
resourceLimitsShrink: 'ResourceLimits',
|
|
1522
|
+
};
|
|
1523
|
+
}
|
|
1524
|
+
static types() {
|
|
1525
|
+
return {
|
|
1526
|
+
poolName: 'string',
|
|
1527
|
+
priority: 'number',
|
|
1528
|
+
resourceLimitsShrink: 'string',
|
|
1529
|
+
};
|
|
1530
|
+
}
|
|
1531
|
+
constructor(map) {
|
|
1532
|
+
super(map);
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
exports.UpdatePoolShrinkRequest = UpdatePoolShrinkRequest;
|
|
1536
|
+
class UpdatePoolResponseBody extends $tea.Model {
|
|
1537
|
+
static names() {
|
|
1538
|
+
return {
|
|
1539
|
+
requestId: 'RequestId',
|
|
1540
|
+
};
|
|
1541
|
+
}
|
|
1542
|
+
static types() {
|
|
1543
|
+
return {
|
|
1544
|
+
requestId: 'string',
|
|
1545
|
+
};
|
|
1546
|
+
}
|
|
1547
|
+
constructor(map) {
|
|
1548
|
+
super(map);
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
exports.UpdatePoolResponseBody = UpdatePoolResponseBody;
|
|
1552
|
+
class UpdatePoolResponse extends $tea.Model {
|
|
1553
|
+
static names() {
|
|
1554
|
+
return {
|
|
1555
|
+
headers: 'headers',
|
|
1556
|
+
statusCode: 'statusCode',
|
|
1557
|
+
body: 'body',
|
|
1558
|
+
};
|
|
1559
|
+
}
|
|
1560
|
+
static types() {
|
|
1561
|
+
return {
|
|
1562
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1563
|
+
statusCode: 'number',
|
|
1564
|
+
body: UpdatePoolResponseBody,
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
constructor(map) {
|
|
1568
|
+
super(map);
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
exports.UpdatePoolResponse = UpdatePoolResponse;
|
|
1146
1572
|
class AddImageRequestContainerImageSpecRegistryCredential extends $tea.Model {
|
|
1147
1573
|
static names() {
|
|
1148
1574
|
return {
|
|
@@ -1497,6 +1923,22 @@ class CreateJobResponseBodyTasks extends $tea.Model {
|
|
|
1497
1923
|
}
|
|
1498
1924
|
}
|
|
1499
1925
|
exports.CreateJobResponseBodyTasks = CreateJobResponseBodyTasks;
|
|
1926
|
+
class CreatePoolRequestResourceLimits extends $tea.Model {
|
|
1927
|
+
static names() {
|
|
1928
|
+
return {
|
|
1929
|
+
maxExectorNum: 'MaxExectorNum',
|
|
1930
|
+
};
|
|
1931
|
+
}
|
|
1932
|
+
static types() {
|
|
1933
|
+
return {
|
|
1934
|
+
maxExectorNum: 'number',
|
|
1935
|
+
};
|
|
1936
|
+
}
|
|
1937
|
+
constructor(map) {
|
|
1938
|
+
super(map);
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
exports.CreatePoolRequestResourceLimits = CreatePoolRequestResourceLimits;
|
|
1500
1942
|
class DeleteJobsRequestJobSpecTaskSpec extends $tea.Model {
|
|
1501
1943
|
static names() {
|
|
1502
1944
|
return {
|
|
@@ -1551,6 +1993,26 @@ class DescribeJobMetricLastResponseBodyMetrics extends $tea.Model {
|
|
|
1551
1993
|
}
|
|
1552
1994
|
}
|
|
1553
1995
|
exports.DescribeJobMetricLastResponseBodyMetrics = DescribeJobMetricLastResponseBodyMetrics;
|
|
1996
|
+
class GetAppVersionsResponseBodyAppVersions extends $tea.Model {
|
|
1997
|
+
static names() {
|
|
1998
|
+
return {
|
|
1999
|
+
imageId: 'ImageId',
|
|
2000
|
+
name: 'Name',
|
|
2001
|
+
version: 'Version',
|
|
2002
|
+
};
|
|
2003
|
+
}
|
|
2004
|
+
static types() {
|
|
2005
|
+
return {
|
|
2006
|
+
imageId: 'string',
|
|
2007
|
+
name: 'string',
|
|
2008
|
+
version: 'string',
|
|
2009
|
+
};
|
|
2010
|
+
}
|
|
2011
|
+
constructor(map) {
|
|
2012
|
+
super(map);
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
exports.GetAppVersionsResponseBodyAppVersions = GetAppVersionsResponseBodyAppVersions;
|
|
1554
2016
|
class GetImageResponseBodyImageContainerImageSpecRegistryCredential extends $tea.Model {
|
|
1555
2017
|
static names() {
|
|
1556
2018
|
return {
|
|
@@ -1574,8 +2036,11 @@ exports.GetImageResponseBodyImageContainerImageSpecRegistryCredential = GetImage
|
|
|
1574
2036
|
class GetImageResponseBodyImageContainerImageSpec extends $tea.Model {
|
|
1575
2037
|
static names() {
|
|
1576
2038
|
return {
|
|
2039
|
+
architecture: 'Architecture',
|
|
1577
2040
|
isACREnterprise: 'IsACREnterprise',
|
|
1578
2041
|
isACRRegistry: 'IsACRRegistry',
|
|
2042
|
+
osTag: 'OsTag',
|
|
2043
|
+
platform: 'Platform',
|
|
1579
2044
|
registryCredential: 'RegistryCredential',
|
|
1580
2045
|
registryCriId: 'RegistryCriId',
|
|
1581
2046
|
registryUrl: 'RegistryUrl',
|
|
@@ -1583,18 +2048,41 @@ class GetImageResponseBodyImageContainerImageSpec extends $tea.Model {
|
|
|
1583
2048
|
}
|
|
1584
2049
|
static types() {
|
|
1585
2050
|
return {
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
2051
|
+
architecture: 'string',
|
|
2052
|
+
isACREnterprise: 'boolean',
|
|
2053
|
+
isACRRegistry: 'boolean',
|
|
2054
|
+
osTag: 'string',
|
|
2055
|
+
platform: 'string',
|
|
2056
|
+
registryCredential: GetImageResponseBodyImageContainerImageSpecRegistryCredential,
|
|
2057
|
+
registryCriId: 'string',
|
|
2058
|
+
registryUrl: 'string',
|
|
2059
|
+
};
|
|
2060
|
+
}
|
|
2061
|
+
constructor(map) {
|
|
2062
|
+
super(map);
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
exports.GetImageResponseBodyImageContainerImageSpec = GetImageResponseBodyImageContainerImageSpec;
|
|
2066
|
+
class GetImageResponseBodyImageDocumentInfo extends $tea.Model {
|
|
2067
|
+
static names() {
|
|
2068
|
+
return {
|
|
2069
|
+
document: 'Document',
|
|
2070
|
+
documentId: 'DocumentId',
|
|
2071
|
+
encodingMode: 'EncodingMode',
|
|
2072
|
+
};
|
|
2073
|
+
}
|
|
2074
|
+
static types() {
|
|
2075
|
+
return {
|
|
2076
|
+
document: 'string',
|
|
2077
|
+
documentId: 'string',
|
|
2078
|
+
encodingMode: 'string',
|
|
1591
2079
|
};
|
|
1592
2080
|
}
|
|
1593
2081
|
constructor(map) {
|
|
1594
2082
|
super(map);
|
|
1595
2083
|
}
|
|
1596
2084
|
}
|
|
1597
|
-
exports.
|
|
2085
|
+
exports.GetImageResponseBodyImageDocumentInfo = GetImageResponseBodyImageDocumentInfo;
|
|
1598
2086
|
class GetImageResponseBodyImageVMImageSpec extends $tea.Model {
|
|
1599
2087
|
static names() {
|
|
1600
2088
|
return {
|
|
@@ -1624,6 +2112,7 @@ class GetImageResponseBodyImage extends $tea.Model {
|
|
|
1624
2112
|
containerImageSpec: 'ContainerImageSpec',
|
|
1625
2113
|
createTime: 'CreateTime',
|
|
1626
2114
|
description: 'Description',
|
|
2115
|
+
documentInfo: 'DocumentInfo',
|
|
1627
2116
|
imageType: 'ImageType',
|
|
1628
2117
|
name: 'Name',
|
|
1629
2118
|
size: 'Size',
|
|
@@ -1638,6 +2127,7 @@ class GetImageResponseBodyImage extends $tea.Model {
|
|
|
1638
2127
|
containerImageSpec: GetImageResponseBodyImageContainerImageSpec,
|
|
1639
2128
|
createTime: 'string',
|
|
1640
2129
|
description: 'string',
|
|
2130
|
+
documentInfo: GetImageResponseBodyImageDocumentInfo,
|
|
1641
2131
|
imageType: 'string',
|
|
1642
2132
|
name: 'string',
|
|
1643
2133
|
size: 'string',
|
|
@@ -1921,6 +2411,38 @@ class GetJobResponseBodyJobInfo extends $tea.Model {
|
|
|
1921
2411
|
}
|
|
1922
2412
|
}
|
|
1923
2413
|
exports.GetJobResponseBodyJobInfo = GetJobResponseBodyJobInfo;
|
|
2414
|
+
class GetPoolResponseBodyPoolInfo extends $tea.Model {
|
|
2415
|
+
static names() {
|
|
2416
|
+
return {
|
|
2417
|
+
createTime: 'CreateTime',
|
|
2418
|
+
exectorUsage: 'ExectorUsage',
|
|
2419
|
+
isDefault: 'IsDefault',
|
|
2420
|
+
maxExectorNum: 'MaxExectorNum',
|
|
2421
|
+
poolName: 'PoolName',
|
|
2422
|
+
priority: 'Priority',
|
|
2423
|
+
reason: 'Reason',
|
|
2424
|
+
status: 'Status',
|
|
2425
|
+
updateTime: 'UpdateTime',
|
|
2426
|
+
};
|
|
2427
|
+
}
|
|
2428
|
+
static types() {
|
|
2429
|
+
return {
|
|
2430
|
+
createTime: 'string',
|
|
2431
|
+
exectorUsage: 'number',
|
|
2432
|
+
isDefault: 'boolean',
|
|
2433
|
+
maxExectorNum: 'number',
|
|
2434
|
+
poolName: 'string',
|
|
2435
|
+
priority: 'number',
|
|
2436
|
+
reason: 'string',
|
|
2437
|
+
status: 'string',
|
|
2438
|
+
updateTime: 'string',
|
|
2439
|
+
};
|
|
2440
|
+
}
|
|
2441
|
+
constructor(map) {
|
|
2442
|
+
super(map);
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
exports.GetPoolResponseBodyPoolInfo = GetPoolResponseBodyPoolInfo;
|
|
1924
2446
|
class ListExecutorsRequestFilter extends $tea.Model {
|
|
1925
2447
|
static names() {
|
|
1926
2448
|
return {
|
|
@@ -2061,11 +2583,14 @@ class ListImagesResponseBodyImages extends $tea.Model {
|
|
|
2061
2583
|
appId: 'AppId',
|
|
2062
2584
|
createTime: 'CreateTime',
|
|
2063
2585
|
description: 'Description',
|
|
2586
|
+
documentId: 'DocumentId',
|
|
2064
2587
|
imageId: 'ImageId',
|
|
2065
2588
|
imageType: 'ImageType',
|
|
2066
2589
|
name: 'Name',
|
|
2067
2590
|
osTag: 'OsTag',
|
|
2591
|
+
updateTime: 'UpdateTime',
|
|
2068
2592
|
version: 'Version',
|
|
2593
|
+
weight: 'Weight',
|
|
2069
2594
|
};
|
|
2070
2595
|
}
|
|
2071
2596
|
static types() {
|
|
@@ -2073,11 +2598,14 @@ class ListImagesResponseBodyImages extends $tea.Model {
|
|
|
2073
2598
|
appId: 'string',
|
|
2074
2599
|
createTime: 'string',
|
|
2075
2600
|
description: 'string',
|
|
2601
|
+
documentId: 'number',
|
|
2076
2602
|
imageId: 'string',
|
|
2077
2603
|
imageType: 'string',
|
|
2078
2604
|
name: 'string',
|
|
2079
2605
|
osTag: 'string',
|
|
2606
|
+
updateTime: 'string',
|
|
2080
2607
|
version: 'string',
|
|
2608
|
+
weight: 'number',
|
|
2081
2609
|
};
|
|
2082
2610
|
}
|
|
2083
2611
|
constructor(map) {
|
|
@@ -2265,6 +2793,52 @@ class ListJobsResponseBodyJobList extends $tea.Model {
|
|
|
2265
2793
|
}
|
|
2266
2794
|
}
|
|
2267
2795
|
exports.ListJobsResponseBodyJobList = ListJobsResponseBodyJobList;
|
|
2796
|
+
class ListPoolsRequestFilter extends $tea.Model {
|
|
2797
|
+
static names() {
|
|
2798
|
+
return {
|
|
2799
|
+
poolName: 'PoolName',
|
|
2800
|
+
status: 'Status',
|
|
2801
|
+
timeCreatedAfter: 'TimeCreatedAfter',
|
|
2802
|
+
timeCreatedBefore: 'TimeCreatedBefore',
|
|
2803
|
+
};
|
|
2804
|
+
}
|
|
2805
|
+
static types() {
|
|
2806
|
+
return {
|
|
2807
|
+
poolName: { 'type': 'array', 'itemType': 'string' },
|
|
2808
|
+
status: { 'type': 'array', 'itemType': 'string' },
|
|
2809
|
+
timeCreatedAfter: 'number',
|
|
2810
|
+
timeCreatedBefore: 'number',
|
|
2811
|
+
};
|
|
2812
|
+
}
|
|
2813
|
+
constructor(map) {
|
|
2814
|
+
super(map);
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
exports.ListPoolsRequestFilter = ListPoolsRequestFilter;
|
|
2818
|
+
class ListPoolsResponseBodyPoolList extends $tea.Model {
|
|
2819
|
+
static names() {
|
|
2820
|
+
return {
|
|
2821
|
+
isDefault: 'IsDefault',
|
|
2822
|
+
maxExectorNum: 'MaxExectorNum',
|
|
2823
|
+
poolName: 'PoolName',
|
|
2824
|
+
priority: 'Priority',
|
|
2825
|
+
status: 'Status',
|
|
2826
|
+
};
|
|
2827
|
+
}
|
|
2828
|
+
static types() {
|
|
2829
|
+
return {
|
|
2830
|
+
isDefault: 'boolean',
|
|
2831
|
+
maxExectorNum: 'number',
|
|
2832
|
+
poolName: 'string',
|
|
2833
|
+
priority: 'number',
|
|
2834
|
+
status: 'string',
|
|
2835
|
+
};
|
|
2836
|
+
}
|
|
2837
|
+
constructor(map) {
|
|
2838
|
+
super(map);
|
|
2839
|
+
}
|
|
2840
|
+
}
|
|
2841
|
+
exports.ListPoolsResponseBodyPoolList = ListPoolsResponseBodyPoolList;
|
|
2268
2842
|
class ListTagResourcesRequestTag extends $tea.Model {
|
|
2269
2843
|
static names() {
|
|
2270
2844
|
return {
|
|
@@ -2339,6 +2913,22 @@ class TagResourcesRequestTag extends $tea.Model {
|
|
|
2339
2913
|
}
|
|
2340
2914
|
}
|
|
2341
2915
|
exports.TagResourcesRequestTag = TagResourcesRequestTag;
|
|
2916
|
+
class UpdatePoolRequestResourceLimits extends $tea.Model {
|
|
2917
|
+
static names() {
|
|
2918
|
+
return {
|
|
2919
|
+
maxExectorNum: 'MaxExectorNum',
|
|
2920
|
+
};
|
|
2921
|
+
}
|
|
2922
|
+
static types() {
|
|
2923
|
+
return {
|
|
2924
|
+
maxExectorNum: 'number',
|
|
2925
|
+
};
|
|
2926
|
+
}
|
|
2927
|
+
constructor(map) {
|
|
2928
|
+
super(map);
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
exports.UpdatePoolRequestResourceLimits = UpdatePoolRequestResourceLimits;
|
|
2342
2932
|
class Client extends openapi_client_1.default {
|
|
2343
2933
|
constructor(config) {
|
|
2344
2934
|
super(config);
|
|
@@ -2476,6 +3066,56 @@ class Client extends openapi_client_1.default {
|
|
|
2476
3066
|
let runtime = new $Util.RuntimeOptions({});
|
|
2477
3067
|
return await this.createJobWithOptions(request, runtime);
|
|
2478
3068
|
}
|
|
3069
|
+
/**
|
|
3070
|
+
* 创建资源池
|
|
3071
|
+
*
|
|
3072
|
+
* @param tmpReq - CreatePoolRequest
|
|
3073
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3074
|
+
* @returns CreatePoolResponse
|
|
3075
|
+
*/
|
|
3076
|
+
async createPoolWithOptions(tmpReq, runtime) {
|
|
3077
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
3078
|
+
let request = new CreatePoolShrinkRequest({});
|
|
3079
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
3080
|
+
if (!tea_util_1.default.isUnset(tmpReq.resourceLimits)) {
|
|
3081
|
+
request.resourceLimitsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.resourceLimits, "ResourceLimits", "json");
|
|
3082
|
+
}
|
|
3083
|
+
let query = {};
|
|
3084
|
+
if (!tea_util_1.default.isUnset(request.poolName)) {
|
|
3085
|
+
query["PoolName"] = request.poolName;
|
|
3086
|
+
}
|
|
3087
|
+
if (!tea_util_1.default.isUnset(request.priority)) {
|
|
3088
|
+
query["Priority"] = request.priority;
|
|
3089
|
+
}
|
|
3090
|
+
if (!tea_util_1.default.isUnset(request.resourceLimitsShrink)) {
|
|
3091
|
+
query["ResourceLimits"] = request.resourceLimitsShrink;
|
|
3092
|
+
}
|
|
3093
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3094
|
+
query: openapi_util_1.default.query(query),
|
|
3095
|
+
});
|
|
3096
|
+
let params = new $OpenApi.Params({
|
|
3097
|
+
action: "CreatePool",
|
|
3098
|
+
version: "2023-07-01",
|
|
3099
|
+
protocol: "HTTPS",
|
|
3100
|
+
pathname: "/",
|
|
3101
|
+
method: "POST",
|
|
3102
|
+
authType: "AK",
|
|
3103
|
+
style: "RPC",
|
|
3104
|
+
reqBodyType: "formData",
|
|
3105
|
+
bodyType: "json",
|
|
3106
|
+
});
|
|
3107
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreatePoolResponse({}));
|
|
3108
|
+
}
|
|
3109
|
+
/**
|
|
3110
|
+
* 创建资源池
|
|
3111
|
+
*
|
|
3112
|
+
* @param request - CreatePoolRequest
|
|
3113
|
+
* @returns CreatePoolResponse
|
|
3114
|
+
*/
|
|
3115
|
+
async createPool(request) {
|
|
3116
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3117
|
+
return await this.createPoolWithOptions(request, runtime);
|
|
3118
|
+
}
|
|
2479
3119
|
/**
|
|
2480
3120
|
* 删除作业
|
|
2481
3121
|
*
|
|
@@ -2526,6 +3166,45 @@ class Client extends openapi_client_1.default {
|
|
|
2526
3166
|
let runtime = new $Util.RuntimeOptions({});
|
|
2527
3167
|
return await this.deleteJobsWithOptions(request, runtime);
|
|
2528
3168
|
}
|
|
3169
|
+
/**
|
|
3170
|
+
* 删除资源池
|
|
3171
|
+
*
|
|
3172
|
+
* @param request - DeletePoolRequest
|
|
3173
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3174
|
+
* @returns DeletePoolResponse
|
|
3175
|
+
*/
|
|
3176
|
+
async deletePoolWithOptions(request, runtime) {
|
|
3177
|
+
tea_util_1.default.validateModel(request);
|
|
3178
|
+
let query = {};
|
|
3179
|
+
if (!tea_util_1.default.isUnset(request.poolName)) {
|
|
3180
|
+
query["PoolName"] = request.poolName;
|
|
3181
|
+
}
|
|
3182
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3183
|
+
query: openapi_util_1.default.query(query),
|
|
3184
|
+
});
|
|
3185
|
+
let params = new $OpenApi.Params({
|
|
3186
|
+
action: "DeletePool",
|
|
3187
|
+
version: "2023-07-01",
|
|
3188
|
+
protocol: "HTTPS",
|
|
3189
|
+
pathname: "/",
|
|
3190
|
+
method: "POST",
|
|
3191
|
+
authType: "AK",
|
|
3192
|
+
style: "RPC",
|
|
3193
|
+
reqBodyType: "formData",
|
|
3194
|
+
bodyType: "json",
|
|
3195
|
+
});
|
|
3196
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeletePoolResponse({}));
|
|
3197
|
+
}
|
|
3198
|
+
/**
|
|
3199
|
+
* 删除资源池
|
|
3200
|
+
*
|
|
3201
|
+
* @param request - DeletePoolRequest
|
|
3202
|
+
* @returns DeletePoolResponse
|
|
3203
|
+
*/
|
|
3204
|
+
async deletePool(request) {
|
|
3205
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3206
|
+
return await this.deletePoolWithOptions(request, runtime);
|
|
3207
|
+
}
|
|
2529
3208
|
/**
|
|
2530
3209
|
* 查询作业性能数据
|
|
2531
3210
|
*
|
|
@@ -2629,6 +3308,57 @@ class Client extends openapi_client_1.default {
|
|
|
2629
3308
|
let runtime = new $Util.RuntimeOptions({});
|
|
2630
3309
|
return await this.describeJobMetricLastWithOptions(request, runtime);
|
|
2631
3310
|
}
|
|
3311
|
+
/**
|
|
3312
|
+
* 查看应用版本列表
|
|
3313
|
+
*
|
|
3314
|
+
* @param request - GetAppVersionsRequest
|
|
3315
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3316
|
+
* @returns GetAppVersionsResponse
|
|
3317
|
+
*/
|
|
3318
|
+
async getAppVersionsWithOptions(request, runtime) {
|
|
3319
|
+
tea_util_1.default.validateModel(request);
|
|
3320
|
+
let query = {};
|
|
3321
|
+
if (!tea_util_1.default.isUnset(request.appName)) {
|
|
3322
|
+
query["AppName"] = request.appName;
|
|
3323
|
+
}
|
|
3324
|
+
if (!tea_util_1.default.isUnset(request.imageCategory)) {
|
|
3325
|
+
query["ImageCategory"] = request.imageCategory;
|
|
3326
|
+
}
|
|
3327
|
+
if (!tea_util_1.default.isUnset(request.imageType)) {
|
|
3328
|
+
query["ImageType"] = request.imageType;
|
|
3329
|
+
}
|
|
3330
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
3331
|
+
query["PageNumber"] = request.pageNumber;
|
|
3332
|
+
}
|
|
3333
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
3334
|
+
query["PageSize"] = request.pageSize;
|
|
3335
|
+
}
|
|
3336
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3337
|
+
query: openapi_util_1.default.query(query),
|
|
3338
|
+
});
|
|
3339
|
+
let params = new $OpenApi.Params({
|
|
3340
|
+
action: "GetAppVersions",
|
|
3341
|
+
version: "2023-07-01",
|
|
3342
|
+
protocol: "HTTPS",
|
|
3343
|
+
pathname: "/",
|
|
3344
|
+
method: "POST",
|
|
3345
|
+
authType: "AK",
|
|
3346
|
+
style: "RPC",
|
|
3347
|
+
reqBodyType: "formData",
|
|
3348
|
+
bodyType: "json",
|
|
3349
|
+
});
|
|
3350
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetAppVersionsResponse({}));
|
|
3351
|
+
}
|
|
3352
|
+
/**
|
|
3353
|
+
* 查看应用版本列表
|
|
3354
|
+
*
|
|
3355
|
+
* @param request - GetAppVersionsRequest
|
|
3356
|
+
* @returns GetAppVersionsResponse
|
|
3357
|
+
*/
|
|
3358
|
+
async getAppVersions(request) {
|
|
3359
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3360
|
+
return await this.getAppVersionsWithOptions(request, runtime);
|
|
3361
|
+
}
|
|
2632
3362
|
/**
|
|
2633
3363
|
* 查询托管侧镜像详情。
|
|
2634
3364
|
*
|
|
@@ -2713,6 +3443,45 @@ class Client extends openapi_client_1.default {
|
|
|
2713
3443
|
let runtime = new $Util.RuntimeOptions({});
|
|
2714
3444
|
return await this.getJobWithOptions(request, runtime);
|
|
2715
3445
|
}
|
|
3446
|
+
/**
|
|
3447
|
+
* 查询队列详细信息
|
|
3448
|
+
*
|
|
3449
|
+
* @param request - GetPoolRequest
|
|
3450
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3451
|
+
* @returns GetPoolResponse
|
|
3452
|
+
*/
|
|
3453
|
+
async getPoolWithOptions(request, runtime) {
|
|
3454
|
+
tea_util_1.default.validateModel(request);
|
|
3455
|
+
let query = {};
|
|
3456
|
+
if (!tea_util_1.default.isUnset(request.poolName)) {
|
|
3457
|
+
query["PoolName"] = request.poolName;
|
|
3458
|
+
}
|
|
3459
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3460
|
+
query: openapi_util_1.default.query(query),
|
|
3461
|
+
});
|
|
3462
|
+
let params = new $OpenApi.Params({
|
|
3463
|
+
action: "GetPool",
|
|
3464
|
+
version: "2023-07-01",
|
|
3465
|
+
protocol: "HTTPS",
|
|
3466
|
+
pathname: "/",
|
|
3467
|
+
method: "POST",
|
|
3468
|
+
authType: "AK",
|
|
3469
|
+
style: "RPC",
|
|
3470
|
+
reqBodyType: "formData",
|
|
3471
|
+
bodyType: "json",
|
|
3472
|
+
});
|
|
3473
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetPoolResponse({}));
|
|
3474
|
+
}
|
|
3475
|
+
/**
|
|
3476
|
+
* 查询队列详细信息
|
|
3477
|
+
*
|
|
3478
|
+
* @param request - GetPoolRequest
|
|
3479
|
+
* @returns GetPoolResponse
|
|
3480
|
+
*/
|
|
3481
|
+
async getPool(request) {
|
|
3482
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3483
|
+
return await this.getPoolWithOptions(request, runtime);
|
|
3484
|
+
}
|
|
2716
3485
|
/**
|
|
2717
3486
|
* 查询全局Executor信息
|
|
2718
3487
|
*
|
|
@@ -2793,6 +3562,9 @@ class Client extends openapi_client_1.default {
|
|
|
2793
3562
|
if (!tea_util_1.default.isUnset(request.imageType)) {
|
|
2794
3563
|
query["ImageType"] = request.imageType;
|
|
2795
3564
|
}
|
|
3565
|
+
if (!tea_util_1.default.isUnset(request.mode)) {
|
|
3566
|
+
query["Mode"] = request.mode;
|
|
3567
|
+
}
|
|
2796
3568
|
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
2797
3569
|
query["PageNumber"] = request.pageNumber;
|
|
2798
3570
|
}
|
|
@@ -2929,6 +3701,56 @@ class Client extends openapi_client_1.default {
|
|
|
2929
3701
|
let runtime = new $Util.RuntimeOptions({});
|
|
2930
3702
|
return await this.listJobsWithOptions(request, runtime);
|
|
2931
3703
|
}
|
|
3704
|
+
/**
|
|
3705
|
+
* 查询资源池列表
|
|
3706
|
+
*
|
|
3707
|
+
* @param tmpReq - ListPoolsRequest
|
|
3708
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3709
|
+
* @returns ListPoolsResponse
|
|
3710
|
+
*/
|
|
3711
|
+
async listPoolsWithOptions(tmpReq, runtime) {
|
|
3712
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
3713
|
+
let request = new ListPoolsShrinkRequest({});
|
|
3714
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
3715
|
+
if (!tea_util_1.default.isUnset(tmpReq.filter)) {
|
|
3716
|
+
request.filterShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.filter, "Filter", "json");
|
|
3717
|
+
}
|
|
3718
|
+
let query = {};
|
|
3719
|
+
if (!tea_util_1.default.isUnset(request.filterShrink)) {
|
|
3720
|
+
query["Filter"] = request.filterShrink;
|
|
3721
|
+
}
|
|
3722
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
3723
|
+
query["PageNumber"] = request.pageNumber;
|
|
3724
|
+
}
|
|
3725
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
3726
|
+
query["PageSize"] = request.pageSize;
|
|
3727
|
+
}
|
|
3728
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3729
|
+
query: openapi_util_1.default.query(query),
|
|
3730
|
+
});
|
|
3731
|
+
let params = new $OpenApi.Params({
|
|
3732
|
+
action: "ListPools",
|
|
3733
|
+
version: "2023-07-01",
|
|
3734
|
+
protocol: "HTTPS",
|
|
3735
|
+
pathname: "/",
|
|
3736
|
+
method: "POST",
|
|
3737
|
+
authType: "AK",
|
|
3738
|
+
style: "RPC",
|
|
3739
|
+
reqBodyType: "formData",
|
|
3740
|
+
bodyType: "json",
|
|
3741
|
+
});
|
|
3742
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListPoolsResponse({}));
|
|
3743
|
+
}
|
|
3744
|
+
/**
|
|
3745
|
+
* 查询资源池列表
|
|
3746
|
+
*
|
|
3747
|
+
* @param request - ListPoolsRequest
|
|
3748
|
+
* @returns ListPoolsResponse
|
|
3749
|
+
*/
|
|
3750
|
+
async listPools(request) {
|
|
3751
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3752
|
+
return await this.listPoolsWithOptions(request, runtime);
|
|
3753
|
+
}
|
|
2932
3754
|
/**
|
|
2933
3755
|
* 查询一个或多个资源已经绑定的标签列表
|
|
2934
3756
|
*
|
|
@@ -3115,6 +3937,56 @@ class Client extends openapi_client_1.default {
|
|
|
3115
3937
|
let runtime = new $Util.RuntimeOptions({});
|
|
3116
3938
|
return await this.unTagResourcesWithOptions(request, runtime);
|
|
3117
3939
|
}
|
|
3940
|
+
/**
|
|
3941
|
+
* 更新资源池
|
|
3942
|
+
*
|
|
3943
|
+
* @param tmpReq - UpdatePoolRequest
|
|
3944
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3945
|
+
* @returns UpdatePoolResponse
|
|
3946
|
+
*/
|
|
3947
|
+
async updatePoolWithOptions(tmpReq, runtime) {
|
|
3948
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
3949
|
+
let request = new UpdatePoolShrinkRequest({});
|
|
3950
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
3951
|
+
if (!tea_util_1.default.isUnset(tmpReq.resourceLimits)) {
|
|
3952
|
+
request.resourceLimitsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.resourceLimits, "ResourceLimits", "json");
|
|
3953
|
+
}
|
|
3954
|
+
let query = {};
|
|
3955
|
+
if (!tea_util_1.default.isUnset(request.poolName)) {
|
|
3956
|
+
query["PoolName"] = request.poolName;
|
|
3957
|
+
}
|
|
3958
|
+
if (!tea_util_1.default.isUnset(request.priority)) {
|
|
3959
|
+
query["Priority"] = request.priority;
|
|
3960
|
+
}
|
|
3961
|
+
if (!tea_util_1.default.isUnset(request.resourceLimitsShrink)) {
|
|
3962
|
+
query["ResourceLimits"] = request.resourceLimitsShrink;
|
|
3963
|
+
}
|
|
3964
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3965
|
+
query: openapi_util_1.default.query(query),
|
|
3966
|
+
});
|
|
3967
|
+
let params = new $OpenApi.Params({
|
|
3968
|
+
action: "UpdatePool",
|
|
3969
|
+
version: "2023-07-01",
|
|
3970
|
+
protocol: "HTTPS",
|
|
3971
|
+
pathname: "/",
|
|
3972
|
+
method: "POST",
|
|
3973
|
+
authType: "AK",
|
|
3974
|
+
style: "RPC",
|
|
3975
|
+
reqBodyType: "formData",
|
|
3976
|
+
bodyType: "json",
|
|
3977
|
+
});
|
|
3978
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdatePoolResponse({}));
|
|
3979
|
+
}
|
|
3980
|
+
/**
|
|
3981
|
+
* 更新资源池
|
|
3982
|
+
*
|
|
3983
|
+
* @param request - UpdatePoolRequest
|
|
3984
|
+
* @returns UpdatePoolResponse
|
|
3985
|
+
*/
|
|
3986
|
+
async updatePool(request) {
|
|
3987
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3988
|
+
return await this.updatePoolWithOptions(request, runtime);
|
|
3989
|
+
}
|
|
3118
3990
|
}
|
|
3119
3991
|
exports.default = Client;
|
|
3120
3992
|
//# sourceMappingURL=client.js.map
|