@alicloud/eas20210701 1.1.1 → 1.1.4

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.js CHANGED
@@ -31,6 +31,7 @@ class Instance extends $tea.Model {
31
31
  instanceName: 'InstanceName',
32
32
  instancePort: 'InstancePort',
33
33
  lastState: 'LastState',
34
+ namespace: 'Namespace',
34
35
  readyProcesses: 'ReadyProcesses',
35
36
  reason: 'Reason',
36
37
  restartCount: 'RestartCount',
@@ -47,6 +48,7 @@ class Instance extends $tea.Model {
47
48
  instanceName: 'string',
48
49
  instancePort: 'number',
49
50
  lastState: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
51
+ namespace: 'string',
50
52
  readyProcesses: 'number',
51
53
  reason: 'string',
52
54
  restartCount: 'number',
@@ -208,9 +210,10 @@ class Service extends $tea.Model {
208
210
  serviceConfig: 'ServiceConfig',
209
211
  serviceId: 'ServiceId',
210
212
  serviceName: 'ServiceName',
213
+ source: 'Source',
211
214
  status: 'Status',
212
215
  totalInstance: 'TotalInstance',
213
- updatetime: 'Updatetime',
216
+ updateTime: 'UpdateTime',
214
217
  weight: 'Weight',
215
218
  };
216
219
  }
@@ -239,14 +242,73 @@ class Service extends $tea.Model {
239
242
  serviceConfig: 'string',
240
243
  serviceId: 'string',
241
244
  serviceName: 'string',
245
+ source: 'string',
242
246
  status: 'string',
243
247
  totalInstance: 'number',
244
- updatetime: 'string',
248
+ updateTime: 'string',
245
249
  weight: 'number',
246
250
  };
247
251
  }
248
252
  }
249
253
  exports.Service = Service;
254
+ class CreateBenchmarkTaskRequest extends $tea.Model {
255
+ constructor(map) {
256
+ super(map);
257
+ }
258
+ static names() {
259
+ return {
260
+ body: 'body',
261
+ };
262
+ }
263
+ static types() {
264
+ return {
265
+ body: 'string',
266
+ };
267
+ }
268
+ }
269
+ exports.CreateBenchmarkTaskRequest = CreateBenchmarkTaskRequest;
270
+ class CreateBenchmarkTaskResponseBody extends $tea.Model {
271
+ constructor(map) {
272
+ super(map);
273
+ }
274
+ static names() {
275
+ return {
276
+ message: 'Message',
277
+ name: 'Name',
278
+ region: 'Region',
279
+ requestId: 'RequestId',
280
+ };
281
+ }
282
+ static types() {
283
+ return {
284
+ message: 'string',
285
+ name: 'string',
286
+ region: 'string',
287
+ requestId: 'string',
288
+ };
289
+ }
290
+ }
291
+ exports.CreateBenchmarkTaskResponseBody = CreateBenchmarkTaskResponseBody;
292
+ class CreateBenchmarkTaskResponse extends $tea.Model {
293
+ constructor(map) {
294
+ super(map);
295
+ }
296
+ static names() {
297
+ return {
298
+ headers: 'headers',
299
+ statusCode: 'statusCode',
300
+ body: 'body',
301
+ };
302
+ }
303
+ static types() {
304
+ return {
305
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
306
+ statusCode: 'number',
307
+ body: CreateBenchmarkTaskResponseBody,
308
+ };
309
+ }
310
+ }
311
+ exports.CreateBenchmarkTaskResponse = CreateBenchmarkTaskResponse;
250
312
  class CreateResourceRequest extends $tea.Model {
251
313
  constructor(map) {
252
314
  super(map);
@@ -278,7 +340,7 @@ class CreateResourceResponseBody extends $tea.Model {
278
340
  clusterId: 'ClusterId',
279
341
  ownerUid: 'OwnerUid',
280
342
  requestId: 'RequestId',
281
- resourceID: 'ResourceID',
343
+ resourceId: 'ResourceId',
282
344
  resourceName: 'ResourceName',
283
345
  };
284
346
  }
@@ -287,7 +349,7 @@ class CreateResourceResponseBody extends $tea.Model {
287
349
  clusterId: 'string',
288
350
  ownerUid: 'string',
289
351
  requestId: 'string',
290
- resourceID: 'string',
352
+ resourceId: 'string',
291
353
  resourceName: 'string',
292
354
  };
293
355
  }
@@ -300,12 +362,14 @@ class CreateResourceResponse extends $tea.Model {
300
362
  static names() {
301
363
  return {
302
364
  headers: 'headers',
365
+ statusCode: 'statusCode',
303
366
  body: 'body',
304
367
  };
305
368
  }
306
369
  static types() {
307
370
  return {
308
371
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
372
+ statusCode: 'number',
309
373
  body: CreateResourceResponseBody,
310
374
  };
311
375
  }
@@ -360,12 +424,14 @@ class CreateResourceInstancesResponse extends $tea.Model {
360
424
  static names() {
361
425
  return {
362
426
  headers: 'headers',
427
+ statusCode: 'statusCode',
363
428
  body: 'body',
364
429
  };
365
430
  }
366
431
  static types() {
367
432
  return {
368
433
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
434
+ statusCode: 'number',
369
435
  body: CreateResourceInstancesResponseBody,
370
436
  };
371
437
  }
@@ -414,12 +480,14 @@ class CreateResourceLogResponse extends $tea.Model {
414
480
  static names() {
415
481
  return {
416
482
  headers: 'headers',
483
+ statusCode: 'statusCode',
417
484
  body: 'body',
418
485
  };
419
486
  }
420
487
  static types() {
421
488
  return {
422
489
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
490
+ statusCode: 'number',
423
491
  body: CreateResourceLogResponseBody,
424
492
  };
425
493
  }
@@ -476,12 +544,14 @@ class CreateServiceResponse extends $tea.Model {
476
544
  static names() {
477
545
  return {
478
546
  headers: 'headers',
547
+ statusCode: 'statusCode',
479
548
  body: 'body',
480
549
  };
481
550
  }
482
551
  static types() {
483
552
  return {
484
553
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
554
+ statusCode: 'number',
485
555
  body: CreateServiceResponseBody,
486
556
  };
487
557
  }
@@ -532,12 +602,14 @@ class CreateServiceAutoScalerResponse extends $tea.Model {
532
602
  static names() {
533
603
  return {
534
604
  headers: 'headers',
605
+ statusCode: 'statusCode',
535
606
  body: 'body',
536
607
  };
537
608
  }
538
609
  static types() {
539
610
  return {
540
611
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
612
+ statusCode: 'number',
541
613
  body: CreateServiceAutoScalerResponseBody,
542
614
  };
543
615
  }
@@ -586,12 +658,14 @@ class CreateServiceCronScalerResponse extends $tea.Model {
586
658
  static names() {
587
659
  return {
588
660
  headers: 'headers',
661
+ statusCode: 'statusCode',
589
662
  body: 'body',
590
663
  };
591
664
  }
592
665
  static types() {
593
666
  return {
594
667
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
668
+ statusCode: 'number',
595
669
  body: CreateServiceCronScalerResponseBody,
596
670
  };
597
671
  }
@@ -640,17 +714,57 @@ class CreateServiceMirrorResponse extends $tea.Model {
640
714
  static names() {
641
715
  return {
642
716
  headers: 'headers',
717
+ statusCode: 'statusCode',
643
718
  body: 'body',
644
719
  };
645
720
  }
646
721
  static types() {
647
722
  return {
648
723
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
724
+ statusCode: 'number',
649
725
  body: CreateServiceMirrorResponseBody,
650
726
  };
651
727
  }
652
728
  }
653
729
  exports.CreateServiceMirrorResponse = CreateServiceMirrorResponse;
730
+ class DeleteBenchmarkTaskResponseBody extends $tea.Model {
731
+ constructor(map) {
732
+ super(map);
733
+ }
734
+ static names() {
735
+ return {
736
+ message: 'Message',
737
+ requestId: 'RequestId',
738
+ };
739
+ }
740
+ static types() {
741
+ return {
742
+ message: 'string',
743
+ requestId: 'string',
744
+ };
745
+ }
746
+ }
747
+ exports.DeleteBenchmarkTaskResponseBody = DeleteBenchmarkTaskResponseBody;
748
+ class DeleteBenchmarkTaskResponse extends $tea.Model {
749
+ constructor(map) {
750
+ super(map);
751
+ }
752
+ static names() {
753
+ return {
754
+ headers: 'headers',
755
+ statusCode: 'statusCode',
756
+ body: 'body',
757
+ };
758
+ }
759
+ static types() {
760
+ return {
761
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
762
+ statusCode: 'number',
763
+ body: DeleteBenchmarkTaskResponseBody,
764
+ };
765
+ }
766
+ }
767
+ exports.DeleteBenchmarkTaskResponse = DeleteBenchmarkTaskResponse;
654
768
  class DeleteResourceResponseBody extends $tea.Model {
655
769
  constructor(map) {
656
770
  super(map);
@@ -676,12 +790,14 @@ class DeleteResourceResponse extends $tea.Model {
676
790
  static names() {
677
791
  return {
678
792
  headers: 'headers',
793
+ statusCode: 'statusCode',
679
794
  body: 'body',
680
795
  };
681
796
  }
682
797
  static types() {
683
798
  return {
684
799
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
800
+ statusCode: 'number',
685
801
  body: DeleteResourceResponseBody,
686
802
  };
687
803
  }
@@ -712,12 +828,14 @@ class DeleteResourceDLinkResponse extends $tea.Model {
712
828
  static names() {
713
829
  return {
714
830
  headers: 'headers',
831
+ statusCode: 'statusCode',
715
832
  body: 'body',
716
833
  };
717
834
  }
718
835
  static types() {
719
836
  return {
720
837
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
838
+ statusCode: 'number',
721
839
  body: DeleteResourceDLinkResponseBody,
722
840
  };
723
841
  }
@@ -766,12 +884,14 @@ class DeleteResourceInstancesResponse extends $tea.Model {
766
884
  static names() {
767
885
  return {
768
886
  headers: 'headers',
887
+ statusCode: 'statusCode',
769
888
  body: 'body',
770
889
  };
771
890
  }
772
891
  static types() {
773
892
  return {
774
893
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
894
+ statusCode: 'number',
775
895
  body: DeleteResourceInstancesResponseBody,
776
896
  };
777
897
  }
@@ -802,12 +922,14 @@ class DeleteResourceLogResponse extends $tea.Model {
802
922
  static names() {
803
923
  return {
804
924
  headers: 'headers',
925
+ statusCode: 'statusCode',
805
926
  body: 'body',
806
927
  };
807
928
  }
808
929
  static types() {
809
930
  return {
810
931
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
932
+ statusCode: 'number',
811
933
  body: DeleteResourceLogResponseBody,
812
934
  };
813
935
  }
@@ -838,12 +960,14 @@ class DeleteServiceResponse extends $tea.Model {
838
960
  static names() {
839
961
  return {
840
962
  headers: 'headers',
963
+ statusCode: 'statusCode',
841
964
  body: 'body',
842
965
  };
843
966
  }
844
967
  static types() {
845
968
  return {
846
969
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
970
+ statusCode: 'number',
847
971
  body: DeleteServiceResponseBody,
848
972
  };
849
973
  }
@@ -874,12 +998,14 @@ class DeleteServiceAutoScalerResponse extends $tea.Model {
874
998
  static names() {
875
999
  return {
876
1000
  headers: 'headers',
1001
+ statusCode: 'statusCode',
877
1002
  body: 'body',
878
1003
  };
879
1004
  }
880
1005
  static types() {
881
1006
  return {
882
1007
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1008
+ statusCode: 'number',
883
1009
  body: DeleteServiceAutoScalerResponseBody,
884
1010
  };
885
1011
  }
@@ -910,12 +1036,14 @@ class DeleteServiceCronScalerResponse extends $tea.Model {
910
1036
  static names() {
911
1037
  return {
912
1038
  headers: 'headers',
1039
+ statusCode: 'statusCode',
913
1040
  body: 'body',
914
1041
  };
915
1042
  }
916
1043
  static types() {
917
1044
  return {
918
1045
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1046
+ statusCode: 'number',
919
1047
  body: DeleteServiceCronScalerResponseBody,
920
1048
  };
921
1049
  }
@@ -962,12 +1090,14 @@ class DeleteServiceInstancesResponse extends $tea.Model {
962
1090
  static names() {
963
1091
  return {
964
1092
  headers: 'headers',
1093
+ statusCode: 'statusCode',
965
1094
  body: 'body',
966
1095
  };
967
1096
  }
968
1097
  static types() {
969
1098
  return {
970
1099
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1100
+ statusCode: 'number',
971
1101
  body: DeleteServiceInstancesResponseBody,
972
1102
  };
973
1103
  }
@@ -998,17 +1128,115 @@ class DeleteServiceMirrorResponse extends $tea.Model {
998
1128
  static names() {
999
1129
  return {
1000
1130
  headers: 'headers',
1131
+ statusCode: 'statusCode',
1001
1132
  body: 'body',
1002
1133
  };
1003
1134
  }
1004
1135
  static types() {
1005
1136
  return {
1006
1137
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1138
+ statusCode: 'number',
1007
1139
  body: DeleteServiceMirrorResponseBody,
1008
1140
  };
1009
1141
  }
1010
1142
  }
1011
1143
  exports.DeleteServiceMirrorResponse = DeleteServiceMirrorResponse;
1144
+ class DescribeBenchmarkTaskResponseBody extends $tea.Model {
1145
+ constructor(map) {
1146
+ super(map);
1147
+ }
1148
+ static names() {
1149
+ return {
1150
+ availableAgent: 'AvailableAgent',
1151
+ callerUid: 'CallerUid',
1152
+ desiredAgent: 'DesiredAgent',
1153
+ message: 'Message',
1154
+ parentUid: 'ParentUid',
1155
+ reason: 'Reason',
1156
+ requestId: 'RequestId',
1157
+ serviceName: 'ServiceName',
1158
+ status: 'Status',
1159
+ taskId: 'TaskId',
1160
+ taskName: 'TaskName',
1161
+ token: 'Token',
1162
+ };
1163
+ }
1164
+ static types() {
1165
+ return {
1166
+ availableAgent: 'number',
1167
+ callerUid: 'string',
1168
+ desiredAgent: 'number',
1169
+ message: 'string',
1170
+ parentUid: 'string',
1171
+ reason: 'string',
1172
+ requestId: 'string',
1173
+ serviceName: 'string',
1174
+ status: 'string',
1175
+ taskId: 'string',
1176
+ taskName: 'string',
1177
+ token: 'string',
1178
+ };
1179
+ }
1180
+ }
1181
+ exports.DescribeBenchmarkTaskResponseBody = DescribeBenchmarkTaskResponseBody;
1182
+ class DescribeBenchmarkTaskResponse extends $tea.Model {
1183
+ constructor(map) {
1184
+ super(map);
1185
+ }
1186
+ static names() {
1187
+ return {
1188
+ headers: 'headers',
1189
+ statusCode: 'statusCode',
1190
+ body: 'body',
1191
+ };
1192
+ }
1193
+ static types() {
1194
+ return {
1195
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1196
+ statusCode: 'number',
1197
+ body: DescribeBenchmarkTaskResponseBody,
1198
+ };
1199
+ }
1200
+ }
1201
+ exports.DescribeBenchmarkTaskResponse = DescribeBenchmarkTaskResponse;
1202
+ class DescribeBenchmarkTaskReportResponseBody extends $tea.Model {
1203
+ constructor(map) {
1204
+ super(map);
1205
+ }
1206
+ static names() {
1207
+ return {
1208
+ reportUrl: 'ReportUrl',
1209
+ requestId: 'RequestId',
1210
+ };
1211
+ }
1212
+ static types() {
1213
+ return {
1214
+ reportUrl: 'string',
1215
+ requestId: 'string',
1216
+ };
1217
+ }
1218
+ }
1219
+ exports.DescribeBenchmarkTaskReportResponseBody = DescribeBenchmarkTaskReportResponseBody;
1220
+ class DescribeBenchmarkTaskReportResponse extends $tea.Model {
1221
+ constructor(map) {
1222
+ super(map);
1223
+ }
1224
+ static names() {
1225
+ return {
1226
+ headers: 'headers',
1227
+ statusCode: 'statusCode',
1228
+ body: 'body',
1229
+ };
1230
+ }
1231
+ static types() {
1232
+ return {
1233
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1234
+ statusCode: 'number',
1235
+ body: DescribeBenchmarkTaskReportResponseBody,
1236
+ };
1237
+ }
1238
+ }
1239
+ exports.DescribeBenchmarkTaskReportResponse = DescribeBenchmarkTaskReportResponse;
1012
1240
  class DescribeResourceResponseBody extends $tea.Model {
1013
1241
  constructor(map) {
1014
1242
  super(map);
@@ -1060,12 +1288,14 @@ class DescribeResourceResponse extends $tea.Model {
1060
1288
  static names() {
1061
1289
  return {
1062
1290
  headers: 'headers',
1291
+ statusCode: 'statusCode',
1063
1292
  body: 'body',
1064
1293
  };
1065
1294
  }
1066
1295
  static types() {
1067
1296
  return {
1068
1297
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1298
+ statusCode: 'number',
1069
1299
  body: DescribeResourceResponseBody,
1070
1300
  };
1071
1301
  }
@@ -1104,12 +1334,14 @@ class DescribeResourceDLinkResponse extends $tea.Model {
1104
1334
  static names() {
1105
1335
  return {
1106
1336
  headers: 'headers',
1337
+ statusCode: 'statusCode',
1107
1338
  body: 'body',
1108
1339
  };
1109
1340
  }
1110
1341
  static types() {
1111
1342
  return {
1112
1343
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1344
+ statusCode: 'number',
1113
1345
  body: DescribeResourceDLinkResponseBody,
1114
1346
  };
1115
1347
  }
@@ -1146,12 +1378,14 @@ class DescribeResourceLogResponse extends $tea.Model {
1146
1378
  static names() {
1147
1379
  return {
1148
1380
  headers: 'headers',
1381
+ statusCode: 'statusCode',
1149
1382
  body: 'body',
1150
1383
  };
1151
1384
  }
1152
1385
  static types() {
1153
1386
  return {
1154
1387
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1388
+ statusCode: 'number',
1155
1389
  body: DescribeResourceLogResponseBody,
1156
1390
  };
1157
1391
  }
@@ -1164,12 +1398,14 @@ class DescribeServiceResponse extends $tea.Model {
1164
1398
  static names() {
1165
1399
  return {
1166
1400
  headers: 'headers',
1401
+ statusCode: 'statusCode',
1167
1402
  body: 'body',
1168
1403
  };
1169
1404
  }
1170
1405
  static types() {
1171
1406
  return {
1172
1407
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1408
+ statusCode: 'number',
1173
1409
  body: Service,
1174
1410
  };
1175
1411
  }
@@ -1181,6 +1417,7 @@ class DescribeServiceAutoScalerResponseBody extends $tea.Model {
1181
1417
  }
1182
1418
  static names() {
1183
1419
  return {
1420
+ currentValues: 'CurrentValues',
1184
1421
  maxReplica: 'MaxReplica',
1185
1422
  minReplica: 'MinReplica',
1186
1423
  requestId: 'RequestId',
@@ -1190,6 +1427,7 @@ class DescribeServiceAutoScalerResponseBody extends $tea.Model {
1190
1427
  }
1191
1428
  static types() {
1192
1429
  return {
1430
+ currentValues: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
1193
1431
  maxReplica: 'number',
1194
1432
  minReplica: 'number',
1195
1433
  requestId: 'string',
@@ -1206,12 +1444,14 @@ class DescribeServiceAutoScalerResponse extends $tea.Model {
1206
1444
  static names() {
1207
1445
  return {
1208
1446
  headers: 'headers',
1447
+ statusCode: 'statusCode',
1209
1448
  body: 'body',
1210
1449
  };
1211
1450
  }
1212
1451
  static types() {
1213
1452
  return {
1214
1453
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1454
+ statusCode: 'number',
1215
1455
  body: DescribeServiceAutoScalerResponseBody,
1216
1456
  };
1217
1457
  }
@@ -1246,12 +1486,14 @@ class DescribeServiceCronScalerResponse extends $tea.Model {
1246
1486
  static names() {
1247
1487
  return {
1248
1488
  headers: 'headers',
1489
+ statusCode: 'statusCode',
1249
1490
  body: 'body',
1250
1491
  };
1251
1492
  }
1252
1493
  static types() {
1253
1494
  return {
1254
1495
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1496
+ statusCode: 'number',
1255
1497
  body: DescribeServiceCronScalerResponseBody,
1256
1498
  };
1257
1499
  }
@@ -1314,12 +1556,14 @@ class DescribeServiceLogResponse extends $tea.Model {
1314
1556
  static names() {
1315
1557
  return {
1316
1558
  headers: 'headers',
1559
+ statusCode: 'statusCode',
1317
1560
  body: 'body',
1318
1561
  };
1319
1562
  }
1320
1563
  static types() {
1321
1564
  return {
1322
1565
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1566
+ statusCode: 'number',
1323
1567
  body: DescribeServiceLogResponseBody,
1324
1568
  };
1325
1569
  }
@@ -1354,17 +1598,57 @@ class DescribeServiceMirrorResponse extends $tea.Model {
1354
1598
  static names() {
1355
1599
  return {
1356
1600
  headers: 'headers',
1601
+ statusCode: 'statusCode',
1357
1602
  body: 'body',
1358
1603
  };
1359
1604
  }
1360
1605
  static types() {
1361
1606
  return {
1362
1607
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1608
+ statusCode: 'number',
1363
1609
  body: DescribeServiceMirrorResponseBody,
1364
1610
  };
1365
1611
  }
1366
1612
  }
1367
1613
  exports.DescribeServiceMirrorResponse = DescribeServiceMirrorResponse;
1614
+ class ListBenchmarkTaskResponseBody extends $tea.Model {
1615
+ constructor(map) {
1616
+ super(map);
1617
+ }
1618
+ static names() {
1619
+ return {
1620
+ requestId: 'RequestId',
1621
+ tasks: 'Tasks',
1622
+ };
1623
+ }
1624
+ static types() {
1625
+ return {
1626
+ requestId: 'string',
1627
+ tasks: { 'type': 'array', 'itemType': ListBenchmarkTaskResponseBodyTasks },
1628
+ };
1629
+ }
1630
+ }
1631
+ exports.ListBenchmarkTaskResponseBody = ListBenchmarkTaskResponseBody;
1632
+ class ListBenchmarkTaskResponse extends $tea.Model {
1633
+ constructor(map) {
1634
+ super(map);
1635
+ }
1636
+ static names() {
1637
+ return {
1638
+ headers: 'headers',
1639
+ statusCode: 'statusCode',
1640
+ body: 'body',
1641
+ };
1642
+ }
1643
+ static types() {
1644
+ return {
1645
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1646
+ statusCode: 'number',
1647
+ body: ListBenchmarkTaskResponseBody,
1648
+ };
1649
+ }
1650
+ }
1651
+ exports.ListBenchmarkTaskResponse = ListBenchmarkTaskResponse;
1368
1652
  class ListResourceInstanceWorkerRequest extends $tea.Model {
1369
1653
  constructor(map) {
1370
1654
  super(map);
@@ -1414,12 +1698,14 @@ class ListResourceInstanceWorkerResponse extends $tea.Model {
1414
1698
  static names() {
1415
1699
  return {
1416
1700
  headers: 'headers',
1701
+ statusCode: 'statusCode',
1417
1702
  body: 'body',
1418
1703
  };
1419
1704
  }
1420
1705
  static types() {
1421
1706
  return {
1422
1707
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1708
+ statusCode: 'number',
1423
1709
  body: ListResourceInstanceWorkerResponseBody,
1424
1710
  };
1425
1711
  }
@@ -1431,12 +1717,14 @@ class ListResourceInstancesRequest extends $tea.Model {
1431
1717
  }
1432
1718
  static names() {
1433
1719
  return {
1720
+ chargeType: 'ChargeType',
1434
1721
  pageNumber: 'PageNumber',
1435
1722
  pageSize: 'PageSize',
1436
1723
  };
1437
1724
  }
1438
1725
  static types() {
1439
1726
  return {
1727
+ chargeType: 'string',
1440
1728
  pageNumber: 'number',
1441
1729
  pageSize: 'number',
1442
1730
  };
@@ -1474,12 +1762,14 @@ class ListResourceInstancesResponse extends $tea.Model {
1474
1762
  static names() {
1475
1763
  return {
1476
1764
  headers: 'headers',
1765
+ statusCode: 'statusCode',
1477
1766
  body: 'body',
1478
1767
  };
1479
1768
  }
1480
1769
  static types() {
1481
1770
  return {
1482
1771
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1772
+ statusCode: 'number',
1483
1773
  body: ListResourceInstancesResponseBody,
1484
1774
  };
1485
1775
  }
@@ -1534,12 +1824,14 @@ class ListResourceServicesResponse extends $tea.Model {
1534
1824
  static names() {
1535
1825
  return {
1536
1826
  headers: 'headers',
1827
+ statusCode: 'statusCode',
1537
1828
  body: 'body',
1538
1829
  };
1539
1830
  }
1540
1831
  static types() {
1541
1832
  return {
1542
1833
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1834
+ statusCode: 'number',
1543
1835
  body: ListResourceServicesResponseBody,
1544
1836
  };
1545
1837
  }
@@ -1594,12 +1886,14 @@ class ListResourcesResponse extends $tea.Model {
1594
1886
  static names() {
1595
1887
  return {
1596
1888
  headers: 'headers',
1889
+ statusCode: 'statusCode',
1597
1890
  body: 'body',
1598
1891
  };
1599
1892
  }
1600
1893
  static types() {
1601
1894
  return {
1602
1895
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1896
+ statusCode: 'number',
1603
1897
  body: ListResourcesResponseBody,
1604
1898
  };
1605
1899
  }
@@ -1654,12 +1948,14 @@ class ListServiceInstancesResponse extends $tea.Model {
1654
1948
  static names() {
1655
1949
  return {
1656
1950
  headers: 'headers',
1951
+ statusCode: 'statusCode',
1657
1952
  body: 'body',
1658
1953
  };
1659
1954
  }
1660
1955
  static types() {
1661
1956
  return {
1662
1957
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1958
+ statusCode: 'number',
1663
1959
  body: ListServiceInstancesResponseBody,
1664
1960
  };
1665
1961
  }
@@ -1720,12 +2016,14 @@ class ListServicesResponse extends $tea.Model {
1720
2016
  static names() {
1721
2017
  return {
1722
2018
  headers: 'headers',
2019
+ statusCode: 'statusCode',
1723
2020
  body: 'body',
1724
2021
  };
1725
2022
  }
1726
2023
  static types() {
1727
2024
  return {
1728
2025
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2026
+ statusCode: 'number',
1729
2027
  body: ListServicesResponseBody,
1730
2028
  };
1731
2029
  }
@@ -1772,17 +2070,57 @@ class ReleaseServiceResponse extends $tea.Model {
1772
2070
  static names() {
1773
2071
  return {
1774
2072
  headers: 'headers',
2073
+ statusCode: 'statusCode',
1775
2074
  body: 'body',
1776
2075
  };
1777
2076
  }
1778
2077
  static types() {
1779
2078
  return {
1780
2079
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2080
+ statusCode: 'number',
1781
2081
  body: ReleaseServiceResponseBody,
1782
2082
  };
1783
2083
  }
1784
2084
  }
1785
2085
  exports.ReleaseServiceResponse = ReleaseServiceResponse;
2086
+ class StartBenchmarkTaskResponseBody extends $tea.Model {
2087
+ constructor(map) {
2088
+ super(map);
2089
+ }
2090
+ static names() {
2091
+ return {
2092
+ message: 'Message',
2093
+ requestId: 'RequestId',
2094
+ };
2095
+ }
2096
+ static types() {
2097
+ return {
2098
+ message: 'string',
2099
+ requestId: 'string',
2100
+ };
2101
+ }
2102
+ }
2103
+ exports.StartBenchmarkTaskResponseBody = StartBenchmarkTaskResponseBody;
2104
+ class StartBenchmarkTaskResponse extends $tea.Model {
2105
+ constructor(map) {
2106
+ super(map);
2107
+ }
2108
+ static names() {
2109
+ return {
2110
+ headers: 'headers',
2111
+ statusCode: 'statusCode',
2112
+ body: 'body',
2113
+ };
2114
+ }
2115
+ static types() {
2116
+ return {
2117
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2118
+ statusCode: 'number',
2119
+ body: StartBenchmarkTaskResponseBody,
2120
+ };
2121
+ }
2122
+ }
2123
+ exports.StartBenchmarkTaskResponse = StartBenchmarkTaskResponse;
1786
2124
  class StartServiceResponseBody extends $tea.Model {
1787
2125
  constructor(map) {
1788
2126
  super(map);
@@ -1808,17 +2146,57 @@ class StartServiceResponse extends $tea.Model {
1808
2146
  static names() {
1809
2147
  return {
1810
2148
  headers: 'headers',
2149
+ statusCode: 'statusCode',
1811
2150
  body: 'body',
1812
2151
  };
1813
2152
  }
1814
2153
  static types() {
1815
2154
  return {
1816
2155
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2156
+ statusCode: 'number',
1817
2157
  body: StartServiceResponseBody,
1818
2158
  };
1819
2159
  }
1820
2160
  }
1821
2161
  exports.StartServiceResponse = StartServiceResponse;
2162
+ class StopBenchmarkTaskResponseBody extends $tea.Model {
2163
+ constructor(map) {
2164
+ super(map);
2165
+ }
2166
+ static names() {
2167
+ return {
2168
+ message: 'Message',
2169
+ requestId: 'RequestId',
2170
+ };
2171
+ }
2172
+ static types() {
2173
+ return {
2174
+ message: 'string',
2175
+ requestId: 'string',
2176
+ };
2177
+ }
2178
+ }
2179
+ exports.StopBenchmarkTaskResponseBody = StopBenchmarkTaskResponseBody;
2180
+ class StopBenchmarkTaskResponse extends $tea.Model {
2181
+ constructor(map) {
2182
+ super(map);
2183
+ }
2184
+ static names() {
2185
+ return {
2186
+ headers: 'headers',
2187
+ statusCode: 'statusCode',
2188
+ body: 'body',
2189
+ };
2190
+ }
2191
+ static types() {
2192
+ return {
2193
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2194
+ statusCode: 'number',
2195
+ body: StopBenchmarkTaskResponseBody,
2196
+ };
2197
+ }
2198
+ }
2199
+ exports.StopBenchmarkTaskResponse = StopBenchmarkTaskResponse;
1822
2200
  class StopServiceResponseBody extends $tea.Model {
1823
2201
  constructor(map) {
1824
2202
  super(map);
@@ -1844,17 +2222,73 @@ class StopServiceResponse extends $tea.Model {
1844
2222
  static names() {
1845
2223
  return {
1846
2224
  headers: 'headers',
2225
+ statusCode: 'statusCode',
1847
2226
  body: 'body',
1848
2227
  };
1849
2228
  }
1850
2229
  static types() {
1851
2230
  return {
1852
2231
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2232
+ statusCode: 'number',
1853
2233
  body: StopServiceResponseBody,
1854
2234
  };
1855
2235
  }
1856
2236
  }
1857
2237
  exports.StopServiceResponse = StopServiceResponse;
2238
+ class UpdateBenchmarkTaskRequest extends $tea.Model {
2239
+ constructor(map) {
2240
+ super(map);
2241
+ }
2242
+ static names() {
2243
+ return {
2244
+ body: 'body',
2245
+ };
2246
+ }
2247
+ static types() {
2248
+ return {
2249
+ body: 'string',
2250
+ };
2251
+ }
2252
+ }
2253
+ exports.UpdateBenchmarkTaskRequest = UpdateBenchmarkTaskRequest;
2254
+ class UpdateBenchmarkTaskResponseBody extends $tea.Model {
2255
+ constructor(map) {
2256
+ super(map);
2257
+ }
2258
+ static names() {
2259
+ return {
2260
+ message: 'Message',
2261
+ requestId: 'RequestId',
2262
+ };
2263
+ }
2264
+ static types() {
2265
+ return {
2266
+ message: 'string',
2267
+ requestId: 'string',
2268
+ };
2269
+ }
2270
+ }
2271
+ exports.UpdateBenchmarkTaskResponseBody = UpdateBenchmarkTaskResponseBody;
2272
+ class UpdateBenchmarkTaskResponse extends $tea.Model {
2273
+ constructor(map) {
2274
+ super(map);
2275
+ }
2276
+ static names() {
2277
+ return {
2278
+ headers: 'headers',
2279
+ statusCode: 'statusCode',
2280
+ body: 'body',
2281
+ };
2282
+ }
2283
+ static types() {
2284
+ return {
2285
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2286
+ statusCode: 'number',
2287
+ body: UpdateBenchmarkTaskResponseBody,
2288
+ };
2289
+ }
2290
+ }
2291
+ exports.UpdateBenchmarkTaskResponse = UpdateBenchmarkTaskResponse;
1858
2292
  class UpdateResourceRequest extends $tea.Model {
1859
2293
  constructor(map) {
1860
2294
  super(map);
@@ -1898,12 +2332,14 @@ class UpdateResourceResponse extends $tea.Model {
1898
2332
  static names() {
1899
2333
  return {
1900
2334
  headers: 'headers',
2335
+ statusCode: 'statusCode',
1901
2336
  body: 'body',
1902
2337
  };
1903
2338
  }
1904
2339
  static types() {
1905
2340
  return {
1906
2341
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2342
+ statusCode: 'number',
1907
2343
  body: UpdateResourceResponseBody,
1908
2344
  };
1909
2345
  }
@@ -1956,12 +2392,14 @@ class UpdateResourceDLinkResponse extends $tea.Model {
1956
2392
  static names() {
1957
2393
  return {
1958
2394
  headers: 'headers',
2395
+ statusCode: 'statusCode',
1959
2396
  body: 'body',
1960
2397
  };
1961
2398
  }
1962
2399
  static types() {
1963
2400
  return {
1964
2401
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2402
+ statusCode: 'number',
1965
2403
  body: UpdateResourceDLinkResponseBody,
1966
2404
  };
1967
2405
  }
@@ -2008,12 +2446,14 @@ class UpdateServiceResponse extends $tea.Model {
2008
2446
  static names() {
2009
2447
  return {
2010
2448
  headers: 'headers',
2449
+ statusCode: 'statusCode',
2011
2450
  body: 'body',
2012
2451
  };
2013
2452
  }
2014
2453
  static types() {
2015
2454
  return {
2016
2455
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2456
+ statusCode: 'number',
2017
2457
  body: UpdateServiceResponseBody,
2018
2458
  };
2019
2459
  }
@@ -2064,12 +2504,14 @@ class UpdateServiceAutoScalerResponse extends $tea.Model {
2064
2504
  static names() {
2065
2505
  return {
2066
2506
  headers: 'headers',
2507
+ statusCode: 'statusCode',
2067
2508
  body: 'body',
2068
2509
  };
2069
2510
  }
2070
2511
  static types() {
2071
2512
  return {
2072
2513
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2514
+ statusCode: 'number',
2073
2515
  body: UpdateServiceAutoScalerResponseBody,
2074
2516
  };
2075
2517
  }
@@ -2118,12 +2560,14 @@ class UpdateServiceCronScalerResponse extends $tea.Model {
2118
2560
  static names() {
2119
2561
  return {
2120
2562
  headers: 'headers',
2563
+ statusCode: 'statusCode',
2121
2564
  body: 'body',
2122
2565
  };
2123
2566
  }
2124
2567
  static types() {
2125
2568
  return {
2126
2569
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2570
+ statusCode: 'number',
2127
2571
  body: UpdateServiceCronScalerResponseBody,
2128
2572
  };
2129
2573
  }
@@ -2172,12 +2616,14 @@ class UpdateServiceMirrorResponse extends $tea.Model {
2172
2616
  static names() {
2173
2617
  return {
2174
2618
  headers: 'headers',
2619
+ statusCode: 'statusCode',
2175
2620
  body: 'body',
2176
2621
  };
2177
2622
  }
2178
2623
  static types() {
2179
2624
  return {
2180
2625
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2626
+ statusCode: 'number',
2181
2627
  body: UpdateServiceMirrorResponseBody,
2182
2628
  };
2183
2629
  }
@@ -2224,12 +2670,14 @@ class UpdateServiceVersionResponse extends $tea.Model {
2224
2670
  static names() {
2225
2671
  return {
2226
2672
  headers: 'headers',
2673
+ statusCode: 'statusCode',
2227
2674
  body: 'body',
2228
2675
  };
2229
2676
  }
2230
2677
  static types() {
2231
2678
  return {
2232
2679
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2680
+ statusCode: 'number',
2233
2681
  body: UpdateServiceVersionResponseBody,
2234
2682
  };
2235
2683
  }
@@ -2279,6 +2727,7 @@ class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
2279
2727
  }
2280
2728
  static names() {
2281
2729
  return {
2730
+ createTime: 'CreateTime',
2282
2731
  lastProbeTime: 'LastProbeTime',
2283
2732
  message: 'Message',
2284
2733
  name: 'Name',
@@ -2289,6 +2738,7 @@ class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
2289
2738
  }
2290
2739
  static types() {
2291
2740
  return {
2741
+ createTime: 'string',
2292
2742
  lastProbeTime: 'string',
2293
2743
  message: 'string',
2294
2744
  name: 'string',
@@ -2299,6 +2749,38 @@ class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
2299
2749
  }
2300
2750
  }
2301
2751
  exports.DescribeServiceCronScalerResponseBodyScaleJobs = DescribeServiceCronScalerResponseBodyScaleJobs;
2752
+ class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
2753
+ constructor(map) {
2754
+ super(map);
2755
+ }
2756
+ static names() {
2757
+ return {
2758
+ availableAgent: 'AvailableAgent',
2759
+ createTime: 'CreateTime',
2760
+ message: 'Message',
2761
+ region: 'Region',
2762
+ serviceName: 'ServiceName',
2763
+ status: 'Status',
2764
+ taskId: 'TaskId',
2765
+ taskName: 'TaskName',
2766
+ updateTime: 'UpdateTime',
2767
+ };
2768
+ }
2769
+ static types() {
2770
+ return {
2771
+ availableAgent: 'number',
2772
+ createTime: 'string',
2773
+ message: 'string',
2774
+ region: 'string',
2775
+ serviceName: 'string',
2776
+ status: 'string',
2777
+ taskId: 'string',
2778
+ taskName: 'string',
2779
+ updateTime: 'string',
2780
+ };
2781
+ }
2782
+ }
2783
+ exports.ListBenchmarkTaskResponseBodyTasks = ListBenchmarkTaskResponseBodyTasks;
2302
2784
  class UpdateServiceAutoScalerRequestStrategies extends $tea.Model {
2303
2785
  constructor(map) {
2304
2786
  super(map);
@@ -2350,55 +2832,13 @@ class Client extends openapi_client_1.default {
2350
2832
  'cn-hongkong': "pai-eas.cn-hongkong.aliyuncs.com",
2351
2833
  'ap-southeast-1': "pai-eas.ap-southeast-1.aliyuncs.com",
2352
2834
  'ap-southeast-5': "pai-eas.ap-southeast-5.aliyuncs.com",
2353
- 'us-west-1': "pai-eas.us-west-1.aliyuncs.com",
2354
2835
  'us-east-1': "pai-eas.us-east-1.aliyuncs.com",
2836
+ 'us-west-1': "pai-eas.us-west-1.aliyuncs.com",
2355
2837
  'eu-central-1': "pai-eas.eu-central-1.aliyuncs.com",
2356
2838
  'ap-south-1': "pai-eas.ap-south-1.aliyuncs.com",
2357
2839
  'cn-shanghai-finance-1': "pai-eas.cn-shanghai-finance-1.aliyuncs.com",
2358
2840
  'cn-north-2-gov-1': "pai-eas.cn-north-2-gov-1.aliyuncs.com",
2359
- 'ap-northeast-1': "eas.aliyuncs.com",
2360
- 'ap-northeast-2-pop': "eas.aliyuncs.com",
2361
- 'ap-southeast-2': "eas.aliyuncs.com",
2362
- 'ap-southeast-3': "eas.aliyuncs.com",
2363
- 'cn-beijing-finance-1': "eas.aliyuncs.com",
2364
- 'cn-beijing-finance-pop': "eas.aliyuncs.com",
2365
- 'cn-beijing-gov-1': "eas.aliyuncs.com",
2366
- 'cn-beijing-nu16-b01': "eas.aliyuncs.com",
2367
2841
  'cn-chengdu': "pai-eas.cn-chengdu.aliyuncs.com",
2368
- 'cn-edge-1': "eas.aliyuncs.com",
2369
- 'cn-fujian': "eas.aliyuncs.com",
2370
- 'cn-haidian-cm12-c01': "eas.aliyuncs.com",
2371
- 'cn-hangzhou-bj-b01': "eas.aliyuncs.com",
2372
- 'cn-hangzhou-finance': "eas.aliyuncs.com",
2373
- 'cn-hangzhou-internal-prod-1': "eas.aliyuncs.com",
2374
- 'cn-hangzhou-internal-test-1': "eas.aliyuncs.com",
2375
- 'cn-hangzhou-internal-test-2': "eas.aliyuncs.com",
2376
- 'cn-hangzhou-internal-test-3': "eas.aliyuncs.com",
2377
- 'cn-hangzhou-test-306': "eas.aliyuncs.com",
2378
- 'cn-hongkong-finance-pop': "eas.aliyuncs.com",
2379
- 'cn-huhehaote': "eas.aliyuncs.com",
2380
- 'cn-huhehaote-nebula-1': "eas.aliyuncs.com",
2381
- 'cn-qingdao': "eas.aliyuncs.com",
2382
- 'cn-qingdao-nebula': "eas.aliyuncs.com",
2383
- 'cn-shanghai-et15-b01': "eas.aliyuncs.com",
2384
- 'cn-shanghai-et2-b01': "eas.aliyuncs.com",
2385
- 'cn-shanghai-inner': "eas.aliyuncs.com",
2386
- 'cn-shanghai-internal-test-1': "eas.aliyuncs.com",
2387
- 'cn-shenzhen-finance-1': "eas.aliyuncs.com",
2388
- 'cn-shenzhen-inner': "eas.aliyuncs.com",
2389
- 'cn-shenzhen-st4-d01': "eas.aliyuncs.com",
2390
- 'cn-shenzhen-su18-b01': "eas.aliyuncs.com",
2391
- 'cn-wuhan': "eas.aliyuncs.com",
2392
- 'cn-wulanchabu': "eas.aliyuncs.com",
2393
- 'cn-yushanfang': "eas.aliyuncs.com",
2394
- 'cn-zhangbei': "eas.aliyuncs.com",
2395
- 'cn-zhangbei-na61-b01': "eas.aliyuncs.com",
2396
- 'cn-zhangjiakou-na62-a01': "eas.aliyuncs.com",
2397
- 'cn-zhengzhou-nebula-1': "eas.aliyuncs.com",
2398
- 'eu-west-1': "eas.aliyuncs.com",
2399
- 'eu-west-1-oxs': "eas.aliyuncs.com",
2400
- 'me-east-1': "eas.aliyuncs.com",
2401
- 'rus-west-1-pop': "eas.aliyuncs.com",
2402
2842
  };
2403
2843
  this.checkConfig(config);
2404
2844
  this._endpoint = this.getEndpoint("eas", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -2412,6 +2852,30 @@ class Client extends openapi_client_1.default {
2412
2852
  }
2413
2853
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
2414
2854
  }
2855
+ async createBenchmarkTask(request) {
2856
+ let runtime = new $Util.RuntimeOptions({});
2857
+ let headers = {};
2858
+ return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
2859
+ }
2860
+ async createBenchmarkTaskWithOptions(request, headers, runtime) {
2861
+ tea_util_1.default.validateModel(request);
2862
+ let req = new $OpenApi.OpenApiRequest({
2863
+ headers: headers,
2864
+ body: request.body,
2865
+ });
2866
+ let params = new $OpenApi.Params({
2867
+ action: "CreateBenchmarkTask",
2868
+ version: "2021-07-01",
2869
+ protocol: "HTTPS",
2870
+ pathname: `/api/v2/benchmark-tasks`,
2871
+ method: "POST",
2872
+ authType: "AK",
2873
+ style: "ROA",
2874
+ reqBodyType: "json",
2875
+ bodyType: "json",
2876
+ });
2877
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateBenchmarkTaskResponse({}));
2878
+ }
2415
2879
  async createResource(request) {
2416
2880
  let runtime = new $Util.RuntimeOptions({});
2417
2881
  let headers = {};
@@ -2650,6 +3114,30 @@ class Client extends openapi_client_1.default {
2650
3114
  });
2651
3115
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceMirrorResponse({}));
2652
3116
  }
3117
+ async deleteBenchmarkTask(ClusterId, TaskName) {
3118
+ let runtime = new $Util.RuntimeOptions({});
3119
+ let headers = {};
3120
+ return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3121
+ }
3122
+ async deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3123
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3124
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
3125
+ let req = new $OpenApi.OpenApiRequest({
3126
+ headers: headers,
3127
+ });
3128
+ let params = new $OpenApi.Params({
3129
+ action: "DeleteBenchmarkTask",
3130
+ version: "2021-07-01",
3131
+ protocol: "HTTPS",
3132
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}`,
3133
+ method: "DELETE",
3134
+ authType: "AK",
3135
+ style: "ROA",
3136
+ reqBodyType: "json",
3137
+ bodyType: "json",
3138
+ });
3139
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteBenchmarkTaskResponse({}));
3140
+ }
2653
3141
  async deleteResource(ClusterId, ResourceId) {
2654
3142
  let runtime = new $Util.RuntimeOptions({});
2655
3143
  let headers = {};
@@ -2881,6 +3369,54 @@ class Client extends openapi_client_1.default {
2881
3369
  });
2882
3370
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceMirrorResponse({}));
2883
3371
  }
3372
+ async describeBenchmarkTask(ClusterId, TaskName) {
3373
+ let runtime = new $Util.RuntimeOptions({});
3374
+ let headers = {};
3375
+ return await this.describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3376
+ }
3377
+ async describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3378
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3379
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
3380
+ let req = new $OpenApi.OpenApiRequest({
3381
+ headers: headers,
3382
+ });
3383
+ let params = new $OpenApi.Params({
3384
+ action: "DescribeBenchmarkTask",
3385
+ version: "2021-07-01",
3386
+ protocol: "HTTPS",
3387
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}`,
3388
+ method: "GET",
3389
+ authType: "AK",
3390
+ style: "ROA",
3391
+ reqBodyType: "json",
3392
+ bodyType: "json",
3393
+ });
3394
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskResponse({}));
3395
+ }
3396
+ async describeBenchmarkTaskReport(ClusterId, TaskName) {
3397
+ let runtime = new $Util.RuntimeOptions({});
3398
+ let headers = {};
3399
+ return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, headers, runtime);
3400
+ }
3401
+ async describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, headers, runtime) {
3402
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3403
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
3404
+ let req = new $OpenApi.OpenApiRequest({
3405
+ headers: headers,
3406
+ });
3407
+ let params = new $OpenApi.Params({
3408
+ action: "DescribeBenchmarkTaskReport",
3409
+ version: "2021-07-01",
3410
+ protocol: "HTTPS",
3411
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}/report`,
3412
+ method: "GET",
3413
+ authType: "AK",
3414
+ style: "ROA",
3415
+ reqBodyType: "json",
3416
+ bodyType: "json",
3417
+ });
3418
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskReportResponse({}));
3419
+ }
2884
3420
  async describeResource(ClusterId, ResourceId) {
2885
3421
  let runtime = new $Util.RuntimeOptions({});
2886
3422
  let headers = {};
@@ -3094,6 +3630,28 @@ class Client extends openapi_client_1.default {
3094
3630
  });
3095
3631
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
3096
3632
  }
3633
+ async listBenchmarkTask() {
3634
+ let runtime = new $Util.RuntimeOptions({});
3635
+ let headers = {};
3636
+ return await this.listBenchmarkTaskWithOptions(headers, runtime);
3637
+ }
3638
+ async listBenchmarkTaskWithOptions(headers, runtime) {
3639
+ let req = new $OpenApi.OpenApiRequest({
3640
+ headers: headers,
3641
+ });
3642
+ let params = new $OpenApi.Params({
3643
+ action: "ListBenchmarkTask",
3644
+ version: "2021-07-01",
3645
+ protocol: "HTTPS",
3646
+ pathname: `/api/v2/benchmark-tasks`,
3647
+ method: "GET",
3648
+ authType: "AK",
3649
+ style: "ROA",
3650
+ reqBodyType: "json",
3651
+ bodyType: "json",
3652
+ });
3653
+ return $tea.cast(await this.callApi(params, req, runtime), new ListBenchmarkTaskResponse({}));
3654
+ }
3097
3655
  async listResourceInstanceWorker(ClusterId, ResourceId, InstanceName, request) {
3098
3656
  let runtime = new $Util.RuntimeOptions({});
3099
3657
  let headers = {};
@@ -3138,6 +3696,9 @@ class Client extends openapi_client_1.default {
3138
3696
  ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3139
3697
  ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
3140
3698
  let query = {};
3699
+ if (!tea_util_1.default.isUnset(request.chargeType)) {
3700
+ query["ChargeType"] = request.chargeType;
3701
+ }
3141
3702
  if (!tea_util_1.default.isUnset(request.pageNumber)) {
3142
3703
  query["PageNumber"] = request.pageNumber;
3143
3704
  }
@@ -3328,6 +3889,30 @@ class Client extends openapi_client_1.default {
3328
3889
  });
3329
3890
  return $tea.cast(await this.callApi(params, req, runtime), new ReleaseServiceResponse({}));
3330
3891
  }
3892
+ async startBenchmarkTask(ClusterId, TaskName) {
3893
+ let runtime = new $Util.RuntimeOptions({});
3894
+ let headers = {};
3895
+ return await this.startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3896
+ }
3897
+ async startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3898
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3899
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
3900
+ let req = new $OpenApi.OpenApiRequest({
3901
+ headers: headers,
3902
+ });
3903
+ let params = new $OpenApi.Params({
3904
+ action: "StartBenchmarkTask",
3905
+ version: "2021-07-01",
3906
+ protocol: "HTTPS",
3907
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}/start`,
3908
+ method: "PUT",
3909
+ authType: "AK",
3910
+ style: "ROA",
3911
+ reqBodyType: "json",
3912
+ bodyType: "json",
3913
+ });
3914
+ return $tea.cast(await this.callApi(params, req, runtime), new StartBenchmarkTaskResponse({}));
3915
+ }
3331
3916
  async startService(ClusterId, ServiceName) {
3332
3917
  let runtime = new $Util.RuntimeOptions({});
3333
3918
  let headers = {};
@@ -3352,6 +3937,30 @@ class Client extends openapi_client_1.default {
3352
3937
  });
3353
3938
  return $tea.cast(await this.callApi(params, req, runtime), new StartServiceResponse({}));
3354
3939
  }
3940
+ async stopBenchmarkTask(ClusterId, TaskName) {
3941
+ let runtime = new $Util.RuntimeOptions({});
3942
+ let headers = {};
3943
+ return await this.stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3944
+ }
3945
+ async stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3946
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3947
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
3948
+ let req = new $OpenApi.OpenApiRequest({
3949
+ headers: headers,
3950
+ });
3951
+ let params = new $OpenApi.Params({
3952
+ action: "StopBenchmarkTask",
3953
+ version: "2021-07-01",
3954
+ protocol: "HTTPS",
3955
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}/stop`,
3956
+ method: "PUT",
3957
+ authType: "AK",
3958
+ style: "ROA",
3959
+ reqBodyType: "json",
3960
+ bodyType: "json",
3961
+ });
3962
+ return $tea.cast(await this.callApi(params, req, runtime), new StopBenchmarkTaskResponse({}));
3963
+ }
3355
3964
  async stopService(ClusterId, ServiceName) {
3356
3965
  let runtime = new $Util.RuntimeOptions({});
3357
3966
  let headers = {};
@@ -3376,6 +3985,32 @@ class Client extends openapi_client_1.default {
3376
3985
  });
3377
3986
  return $tea.cast(await this.callApi(params, req, runtime), new StopServiceResponse({}));
3378
3987
  }
3988
+ async updateBenchmarkTask(ClusterId, TaskName, request) {
3989
+ let runtime = new $Util.RuntimeOptions({});
3990
+ let headers = {};
3991
+ return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
3992
+ }
3993
+ async updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime) {
3994
+ tea_util_1.default.validateModel(request);
3995
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3996
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
3997
+ let req = new $OpenApi.OpenApiRequest({
3998
+ headers: headers,
3999
+ body: request.body,
4000
+ });
4001
+ let params = new $OpenApi.Params({
4002
+ action: "UpdateBenchmarkTask",
4003
+ version: "2021-07-01",
4004
+ protocol: "HTTPS",
4005
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}`,
4006
+ method: "PUT",
4007
+ authType: "AK",
4008
+ style: "ROA",
4009
+ reqBodyType: "json",
4010
+ bodyType: "json",
4011
+ });
4012
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateBenchmarkTaskResponse({}));
4013
+ }
3379
4014
  async updateResource(ClusterId, ResourceId, request) {
3380
4015
  let runtime = new $Util.RuntimeOptions({});
3381
4016
  let headers = {};