@alicloud/eas20210701 1.1.2 → 1.1.5

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
@@ -210,9 +210,10 @@ class Service extends $tea.Model {
210
210
  serviceConfig: 'ServiceConfig',
211
211
  serviceId: 'ServiceId',
212
212
  serviceName: 'ServiceName',
213
+ source: 'Source',
213
214
  status: 'Status',
214
215
  totalInstance: 'TotalInstance',
215
- updatetime: 'Updatetime',
216
+ updateTime: 'UpdateTime',
216
217
  weight: 'Weight',
217
218
  };
218
219
  }
@@ -241,14 +242,73 @@ class Service extends $tea.Model {
241
242
  serviceConfig: 'string',
242
243
  serviceId: 'string',
243
244
  serviceName: 'string',
245
+ source: 'string',
244
246
  status: 'string',
245
247
  totalInstance: 'number',
246
- updatetime: 'string',
248
+ updateTime: 'string',
247
249
  weight: 'number',
248
250
  };
249
251
  }
250
252
  }
251
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;
252
312
  class CreateResourceRequest extends $tea.Model {
253
313
  constructor(map) {
254
314
  super(map);
@@ -302,12 +362,14 @@ class CreateResourceResponse extends $tea.Model {
302
362
  static names() {
303
363
  return {
304
364
  headers: 'headers',
365
+ statusCode: 'statusCode',
305
366
  body: 'body',
306
367
  };
307
368
  }
308
369
  static types() {
309
370
  return {
310
371
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
372
+ statusCode: 'number',
311
373
  body: CreateResourceResponseBody,
312
374
  };
313
375
  }
@@ -362,12 +424,14 @@ class CreateResourceInstancesResponse extends $tea.Model {
362
424
  static names() {
363
425
  return {
364
426
  headers: 'headers',
427
+ statusCode: 'statusCode',
365
428
  body: 'body',
366
429
  };
367
430
  }
368
431
  static types() {
369
432
  return {
370
433
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
434
+ statusCode: 'number',
371
435
  body: CreateResourceInstancesResponseBody,
372
436
  };
373
437
  }
@@ -416,12 +480,14 @@ class CreateResourceLogResponse extends $tea.Model {
416
480
  static names() {
417
481
  return {
418
482
  headers: 'headers',
483
+ statusCode: 'statusCode',
419
484
  body: 'body',
420
485
  };
421
486
  }
422
487
  static types() {
423
488
  return {
424
489
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
490
+ statusCode: 'number',
425
491
  body: CreateResourceLogResponseBody,
426
492
  };
427
493
  }
@@ -478,12 +544,14 @@ class CreateServiceResponse extends $tea.Model {
478
544
  static names() {
479
545
  return {
480
546
  headers: 'headers',
547
+ statusCode: 'statusCode',
481
548
  body: 'body',
482
549
  };
483
550
  }
484
551
  static types() {
485
552
  return {
486
553
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
554
+ statusCode: 'number',
487
555
  body: CreateServiceResponseBody,
488
556
  };
489
557
  }
@@ -495,9 +563,9 @@ class CreateServiceAutoScalerRequest extends $tea.Model {
495
563
  }
496
564
  static names() {
497
565
  return {
498
- max: 'Max',
499
- min: 'Min',
500
- strategies: 'Strategies',
566
+ max: 'max',
567
+ min: 'min',
568
+ strategies: 'strategies',
501
569
  };
502
570
  }
503
571
  static types() {
@@ -534,12 +602,14 @@ class CreateServiceAutoScalerResponse extends $tea.Model {
534
602
  static names() {
535
603
  return {
536
604
  headers: 'headers',
605
+ statusCode: 'statusCode',
537
606
  body: 'body',
538
607
  };
539
608
  }
540
609
  static types() {
541
610
  return {
542
611
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
612
+ statusCode: 'number',
543
613
  body: CreateServiceAutoScalerResponseBody,
544
614
  };
545
615
  }
@@ -588,12 +658,14 @@ class CreateServiceCronScalerResponse extends $tea.Model {
588
658
  static names() {
589
659
  return {
590
660
  headers: 'headers',
661
+ statusCode: 'statusCode',
591
662
  body: 'body',
592
663
  };
593
664
  }
594
665
  static types() {
595
666
  return {
596
667
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
668
+ statusCode: 'number',
597
669
  body: CreateServiceCronScalerResponseBody,
598
670
  };
599
671
  }
@@ -642,17 +714,57 @@ class CreateServiceMirrorResponse extends $tea.Model {
642
714
  static names() {
643
715
  return {
644
716
  headers: 'headers',
717
+ statusCode: 'statusCode',
645
718
  body: 'body',
646
719
  };
647
720
  }
648
721
  static types() {
649
722
  return {
650
723
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
724
+ statusCode: 'number',
651
725
  body: CreateServiceMirrorResponseBody,
652
726
  };
653
727
  }
654
728
  }
655
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;
656
768
  class DeleteResourceResponseBody extends $tea.Model {
657
769
  constructor(map) {
658
770
  super(map);
@@ -678,12 +790,14 @@ class DeleteResourceResponse extends $tea.Model {
678
790
  static names() {
679
791
  return {
680
792
  headers: 'headers',
793
+ statusCode: 'statusCode',
681
794
  body: 'body',
682
795
  };
683
796
  }
684
797
  static types() {
685
798
  return {
686
799
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
800
+ statusCode: 'number',
687
801
  body: DeleteResourceResponseBody,
688
802
  };
689
803
  }
@@ -714,12 +828,14 @@ class DeleteResourceDLinkResponse extends $tea.Model {
714
828
  static names() {
715
829
  return {
716
830
  headers: 'headers',
831
+ statusCode: 'statusCode',
717
832
  body: 'body',
718
833
  };
719
834
  }
720
835
  static types() {
721
836
  return {
722
837
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
838
+ statusCode: 'number',
723
839
  body: DeleteResourceDLinkResponseBody,
724
840
  };
725
841
  }
@@ -768,12 +884,14 @@ class DeleteResourceInstancesResponse extends $tea.Model {
768
884
  static names() {
769
885
  return {
770
886
  headers: 'headers',
887
+ statusCode: 'statusCode',
771
888
  body: 'body',
772
889
  };
773
890
  }
774
891
  static types() {
775
892
  return {
776
893
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
894
+ statusCode: 'number',
777
895
  body: DeleteResourceInstancesResponseBody,
778
896
  };
779
897
  }
@@ -804,12 +922,14 @@ class DeleteResourceLogResponse extends $tea.Model {
804
922
  static names() {
805
923
  return {
806
924
  headers: 'headers',
925
+ statusCode: 'statusCode',
807
926
  body: 'body',
808
927
  };
809
928
  }
810
929
  static types() {
811
930
  return {
812
931
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
932
+ statusCode: 'number',
813
933
  body: DeleteResourceLogResponseBody,
814
934
  };
815
935
  }
@@ -840,12 +960,14 @@ class DeleteServiceResponse extends $tea.Model {
840
960
  static names() {
841
961
  return {
842
962
  headers: 'headers',
963
+ statusCode: 'statusCode',
843
964
  body: 'body',
844
965
  };
845
966
  }
846
967
  static types() {
847
968
  return {
848
969
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
970
+ statusCode: 'number',
849
971
  body: DeleteServiceResponseBody,
850
972
  };
851
973
  }
@@ -876,12 +998,14 @@ class DeleteServiceAutoScalerResponse extends $tea.Model {
876
998
  static names() {
877
999
  return {
878
1000
  headers: 'headers',
1001
+ statusCode: 'statusCode',
879
1002
  body: 'body',
880
1003
  };
881
1004
  }
882
1005
  static types() {
883
1006
  return {
884
1007
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1008
+ statusCode: 'number',
885
1009
  body: DeleteServiceAutoScalerResponseBody,
886
1010
  };
887
1011
  }
@@ -912,12 +1036,14 @@ class DeleteServiceCronScalerResponse extends $tea.Model {
912
1036
  static names() {
913
1037
  return {
914
1038
  headers: 'headers',
1039
+ statusCode: 'statusCode',
915
1040
  body: 'body',
916
1041
  };
917
1042
  }
918
1043
  static types() {
919
1044
  return {
920
1045
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1046
+ statusCode: 'number',
921
1047
  body: DeleteServiceCronScalerResponseBody,
922
1048
  };
923
1049
  }
@@ -964,12 +1090,14 @@ class DeleteServiceInstancesResponse extends $tea.Model {
964
1090
  static names() {
965
1091
  return {
966
1092
  headers: 'headers',
1093
+ statusCode: 'statusCode',
967
1094
  body: 'body',
968
1095
  };
969
1096
  }
970
1097
  static types() {
971
1098
  return {
972
1099
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1100
+ statusCode: 'number',
973
1101
  body: DeleteServiceInstancesResponseBody,
974
1102
  };
975
1103
  }
@@ -1000,53 +1128,115 @@ class DeleteServiceMirrorResponse extends $tea.Model {
1000
1128
  static names() {
1001
1129
  return {
1002
1130
  headers: 'headers',
1131
+ statusCode: 'statusCode',
1003
1132
  body: 'body',
1004
1133
  };
1005
1134
  }
1006
1135
  static types() {
1007
1136
  return {
1008
1137
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1138
+ statusCode: 'number',
1009
1139
  body: DeleteServiceMirrorResponseBody,
1010
1140
  };
1011
1141
  }
1012
1142
  }
1013
1143
  exports.DeleteServiceMirrorResponse = DeleteServiceMirrorResponse;
1014
- class DescribeRegionsResponseBody extends $tea.Model {
1144
+ class DescribeBenchmarkTaskResponseBody extends $tea.Model {
1015
1145
  constructor(map) {
1016
1146
  super(map);
1017
1147
  }
1018
1148
  static names() {
1019
1149
  return {
1020
- regions: 'Regions',
1150
+ availableAgent: 'AvailableAgent',
1151
+ callerUid: 'CallerUid',
1152
+ desiredAgent: 'DesiredAgent',
1153
+ message: 'Message',
1154
+ parentUid: 'ParentUid',
1155
+ reason: 'Reason',
1021
1156
  requestId: 'RequestId',
1157
+ serviceName: 'ServiceName',
1158
+ status: 'Status',
1159
+ taskId: 'TaskId',
1160
+ taskName: 'TaskName',
1161
+ token: 'Token',
1022
1162
  };
1023
1163
  }
1024
1164
  static types() {
1025
1165
  return {
1026
- regions: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegions },
1166
+ availableAgent: 'number',
1167
+ callerUid: 'string',
1168
+ desiredAgent: 'number',
1169
+ message: 'string',
1170
+ parentUid: 'string',
1171
+ reason: 'string',
1027
1172
  requestId: 'string',
1173
+ serviceName: 'string',
1174
+ status: 'string',
1175
+ taskId: 'string',
1176
+ taskName: 'string',
1177
+ token: 'string',
1028
1178
  };
1029
1179
  }
1030
1180
  }
1031
- exports.DescribeRegionsResponseBody = DescribeRegionsResponseBody;
1032
- class DescribeRegionsResponse extends $tea.Model {
1181
+ exports.DescribeBenchmarkTaskResponseBody = DescribeBenchmarkTaskResponseBody;
1182
+ class DescribeBenchmarkTaskResponse extends $tea.Model {
1033
1183
  constructor(map) {
1034
1184
  super(map);
1035
1185
  }
1036
1186
  static names() {
1037
1187
  return {
1038
1188
  headers: 'headers',
1189
+ statusCode: 'statusCode',
1039
1190
  body: 'body',
1040
1191
  };
1041
1192
  }
1042
1193
  static types() {
1043
1194
  return {
1044
1195
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1045
- body: DescribeRegionsResponseBody,
1196
+ statusCode: 'number',
1197
+ body: DescribeBenchmarkTaskResponseBody,
1046
1198
  };
1047
1199
  }
1048
1200
  }
1049
- exports.DescribeRegionsResponse = DescribeRegionsResponse;
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;
1050
1240
  class DescribeResourceResponseBody extends $tea.Model {
1051
1241
  constructor(map) {
1052
1242
  super(map);
@@ -1098,12 +1288,14 @@ class DescribeResourceResponse extends $tea.Model {
1098
1288
  static names() {
1099
1289
  return {
1100
1290
  headers: 'headers',
1291
+ statusCode: 'statusCode',
1101
1292
  body: 'body',
1102
1293
  };
1103
1294
  }
1104
1295
  static types() {
1105
1296
  return {
1106
1297
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1298
+ statusCode: 'number',
1107
1299
  body: DescribeResourceResponseBody,
1108
1300
  };
1109
1301
  }
@@ -1142,12 +1334,14 @@ class DescribeResourceDLinkResponse extends $tea.Model {
1142
1334
  static names() {
1143
1335
  return {
1144
1336
  headers: 'headers',
1337
+ statusCode: 'statusCode',
1145
1338
  body: 'body',
1146
1339
  };
1147
1340
  }
1148
1341
  static types() {
1149
1342
  return {
1150
1343
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1344
+ statusCode: 'number',
1151
1345
  body: DescribeResourceDLinkResponseBody,
1152
1346
  };
1153
1347
  }
@@ -1184,12 +1378,14 @@ class DescribeResourceLogResponse extends $tea.Model {
1184
1378
  static names() {
1185
1379
  return {
1186
1380
  headers: 'headers',
1381
+ statusCode: 'statusCode',
1187
1382
  body: 'body',
1188
1383
  };
1189
1384
  }
1190
1385
  static types() {
1191
1386
  return {
1192
1387
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1388
+ statusCode: 'number',
1193
1389
  body: DescribeResourceLogResponseBody,
1194
1390
  };
1195
1391
  }
@@ -1202,12 +1398,14 @@ class DescribeServiceResponse extends $tea.Model {
1202
1398
  static names() {
1203
1399
  return {
1204
1400
  headers: 'headers',
1401
+ statusCode: 'statusCode',
1205
1402
  body: 'body',
1206
1403
  };
1207
1404
  }
1208
1405
  static types() {
1209
1406
  return {
1210
1407
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1408
+ statusCode: 'number',
1211
1409
  body: Service,
1212
1410
  };
1213
1411
  }
@@ -1219,6 +1417,7 @@ class DescribeServiceAutoScalerResponseBody extends $tea.Model {
1219
1417
  }
1220
1418
  static names() {
1221
1419
  return {
1420
+ behavior: 'Behavior',
1222
1421
  currentValues: 'CurrentValues',
1223
1422
  maxReplica: 'MaxReplica',
1224
1423
  minReplica: 'MinReplica',
@@ -1229,6 +1428,7 @@ class DescribeServiceAutoScalerResponseBody extends $tea.Model {
1229
1428
  }
1230
1429
  static types() {
1231
1430
  return {
1431
+ behavior: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
1232
1432
  currentValues: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
1233
1433
  maxReplica: 'number',
1234
1434
  minReplica: 'number',
@@ -1246,12 +1446,14 @@ class DescribeServiceAutoScalerResponse extends $tea.Model {
1246
1446
  static names() {
1247
1447
  return {
1248
1448
  headers: 'headers',
1449
+ statusCode: 'statusCode',
1249
1450
  body: 'body',
1250
1451
  };
1251
1452
  }
1252
1453
  static types() {
1253
1454
  return {
1254
1455
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1456
+ statusCode: 'number',
1255
1457
  body: DescribeServiceAutoScalerResponseBody,
1256
1458
  };
1257
1459
  }
@@ -1286,12 +1488,14 @@ class DescribeServiceCronScalerResponse extends $tea.Model {
1286
1488
  static names() {
1287
1489
  return {
1288
1490
  headers: 'headers',
1491
+ statusCode: 'statusCode',
1289
1492
  body: 'body',
1290
1493
  };
1291
1494
  }
1292
1495
  static types() {
1293
1496
  return {
1294
1497
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1498
+ statusCode: 'number',
1295
1499
  body: DescribeServiceCronScalerResponseBody,
1296
1500
  };
1297
1501
  }
@@ -1354,12 +1558,14 @@ class DescribeServiceLogResponse extends $tea.Model {
1354
1558
  static names() {
1355
1559
  return {
1356
1560
  headers: 'headers',
1561
+ statusCode: 'statusCode',
1357
1562
  body: 'body',
1358
1563
  };
1359
1564
  }
1360
1565
  static types() {
1361
1566
  return {
1362
1567
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1568
+ statusCode: 'number',
1363
1569
  body: DescribeServiceLogResponseBody,
1364
1570
  };
1365
1571
  }
@@ -1394,17 +1600,57 @@ class DescribeServiceMirrorResponse extends $tea.Model {
1394
1600
  static names() {
1395
1601
  return {
1396
1602
  headers: 'headers',
1603
+ statusCode: 'statusCode',
1397
1604
  body: 'body',
1398
1605
  };
1399
1606
  }
1400
1607
  static types() {
1401
1608
  return {
1402
1609
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1610
+ statusCode: 'number',
1403
1611
  body: DescribeServiceMirrorResponseBody,
1404
1612
  };
1405
1613
  }
1406
1614
  }
1407
1615
  exports.DescribeServiceMirrorResponse = DescribeServiceMirrorResponse;
1616
+ class ListBenchmarkTaskResponseBody extends $tea.Model {
1617
+ constructor(map) {
1618
+ super(map);
1619
+ }
1620
+ static names() {
1621
+ return {
1622
+ requestId: 'RequestId',
1623
+ tasks: 'Tasks',
1624
+ };
1625
+ }
1626
+ static types() {
1627
+ return {
1628
+ requestId: 'string',
1629
+ tasks: { 'type': 'array', 'itemType': ListBenchmarkTaskResponseBodyTasks },
1630
+ };
1631
+ }
1632
+ }
1633
+ exports.ListBenchmarkTaskResponseBody = ListBenchmarkTaskResponseBody;
1634
+ class ListBenchmarkTaskResponse extends $tea.Model {
1635
+ constructor(map) {
1636
+ super(map);
1637
+ }
1638
+ static names() {
1639
+ return {
1640
+ headers: 'headers',
1641
+ statusCode: 'statusCode',
1642
+ body: 'body',
1643
+ };
1644
+ }
1645
+ static types() {
1646
+ return {
1647
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1648
+ statusCode: 'number',
1649
+ body: ListBenchmarkTaskResponseBody,
1650
+ };
1651
+ }
1652
+ }
1653
+ exports.ListBenchmarkTaskResponse = ListBenchmarkTaskResponse;
1408
1654
  class ListResourceInstanceWorkerRequest extends $tea.Model {
1409
1655
  constructor(map) {
1410
1656
  super(map);
@@ -1454,12 +1700,14 @@ class ListResourceInstanceWorkerResponse extends $tea.Model {
1454
1700
  static names() {
1455
1701
  return {
1456
1702
  headers: 'headers',
1703
+ statusCode: 'statusCode',
1457
1704
  body: 'body',
1458
1705
  };
1459
1706
  }
1460
1707
  static types() {
1461
1708
  return {
1462
1709
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1710
+ statusCode: 'number',
1463
1711
  body: ListResourceInstanceWorkerResponseBody,
1464
1712
  };
1465
1713
  }
@@ -1471,12 +1719,14 @@ class ListResourceInstancesRequest extends $tea.Model {
1471
1719
  }
1472
1720
  static names() {
1473
1721
  return {
1722
+ chargeType: 'ChargeType',
1474
1723
  pageNumber: 'PageNumber',
1475
1724
  pageSize: 'PageSize',
1476
1725
  };
1477
1726
  }
1478
1727
  static types() {
1479
1728
  return {
1729
+ chargeType: 'string',
1480
1730
  pageNumber: 'number',
1481
1731
  pageSize: 'number',
1482
1732
  };
@@ -1514,12 +1764,14 @@ class ListResourceInstancesResponse extends $tea.Model {
1514
1764
  static names() {
1515
1765
  return {
1516
1766
  headers: 'headers',
1767
+ statusCode: 'statusCode',
1517
1768
  body: 'body',
1518
1769
  };
1519
1770
  }
1520
1771
  static types() {
1521
1772
  return {
1522
1773
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1774
+ statusCode: 'number',
1523
1775
  body: ListResourceInstancesResponseBody,
1524
1776
  };
1525
1777
  }
@@ -1574,12 +1826,14 @@ class ListResourceServicesResponse extends $tea.Model {
1574
1826
  static names() {
1575
1827
  return {
1576
1828
  headers: 'headers',
1829
+ statusCode: 'statusCode',
1577
1830
  body: 'body',
1578
1831
  };
1579
1832
  }
1580
1833
  static types() {
1581
1834
  return {
1582
1835
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1836
+ statusCode: 'number',
1583
1837
  body: ListResourceServicesResponseBody,
1584
1838
  };
1585
1839
  }
@@ -1634,12 +1888,14 @@ class ListResourcesResponse extends $tea.Model {
1634
1888
  static names() {
1635
1889
  return {
1636
1890
  headers: 'headers',
1891
+ statusCode: 'statusCode',
1637
1892
  body: 'body',
1638
1893
  };
1639
1894
  }
1640
1895
  static types() {
1641
1896
  return {
1642
1897
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1898
+ statusCode: 'number',
1643
1899
  body: ListResourcesResponseBody,
1644
1900
  };
1645
1901
  }
@@ -1694,12 +1950,14 @@ class ListServiceInstancesResponse extends $tea.Model {
1694
1950
  static names() {
1695
1951
  return {
1696
1952
  headers: 'headers',
1953
+ statusCode: 'statusCode',
1697
1954
  body: 'body',
1698
1955
  };
1699
1956
  }
1700
1957
  static types() {
1701
1958
  return {
1702
1959
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1960
+ statusCode: 'number',
1703
1961
  body: ListServiceInstancesResponseBody,
1704
1962
  };
1705
1963
  }
@@ -1760,12 +2018,14 @@ class ListServicesResponse extends $tea.Model {
1760
2018
  static names() {
1761
2019
  return {
1762
2020
  headers: 'headers',
2021
+ statusCode: 'statusCode',
1763
2022
  body: 'body',
1764
2023
  };
1765
2024
  }
1766
2025
  static types() {
1767
2026
  return {
1768
2027
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2028
+ statusCode: 'number',
1769
2029
  body: ListServicesResponseBody,
1770
2030
  };
1771
2031
  }
@@ -1812,17 +2072,57 @@ class ReleaseServiceResponse extends $tea.Model {
1812
2072
  static names() {
1813
2073
  return {
1814
2074
  headers: 'headers',
2075
+ statusCode: 'statusCode',
1815
2076
  body: 'body',
1816
2077
  };
1817
2078
  }
1818
2079
  static types() {
1819
2080
  return {
1820
2081
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2082
+ statusCode: 'number',
1821
2083
  body: ReleaseServiceResponseBody,
1822
2084
  };
1823
2085
  }
1824
2086
  }
1825
2087
  exports.ReleaseServiceResponse = ReleaseServiceResponse;
2088
+ class StartBenchmarkTaskResponseBody extends $tea.Model {
2089
+ constructor(map) {
2090
+ super(map);
2091
+ }
2092
+ static names() {
2093
+ return {
2094
+ message: 'Message',
2095
+ requestId: 'RequestId',
2096
+ };
2097
+ }
2098
+ static types() {
2099
+ return {
2100
+ message: 'string',
2101
+ requestId: 'string',
2102
+ };
2103
+ }
2104
+ }
2105
+ exports.StartBenchmarkTaskResponseBody = StartBenchmarkTaskResponseBody;
2106
+ class StartBenchmarkTaskResponse extends $tea.Model {
2107
+ constructor(map) {
2108
+ super(map);
2109
+ }
2110
+ static names() {
2111
+ return {
2112
+ headers: 'headers',
2113
+ statusCode: 'statusCode',
2114
+ body: 'body',
2115
+ };
2116
+ }
2117
+ static types() {
2118
+ return {
2119
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2120
+ statusCode: 'number',
2121
+ body: StartBenchmarkTaskResponseBody,
2122
+ };
2123
+ }
2124
+ }
2125
+ exports.StartBenchmarkTaskResponse = StartBenchmarkTaskResponse;
1826
2126
  class StartServiceResponseBody extends $tea.Model {
1827
2127
  constructor(map) {
1828
2128
  super(map);
@@ -1848,17 +2148,57 @@ class StartServiceResponse extends $tea.Model {
1848
2148
  static names() {
1849
2149
  return {
1850
2150
  headers: 'headers',
2151
+ statusCode: 'statusCode',
1851
2152
  body: 'body',
1852
2153
  };
1853
2154
  }
1854
2155
  static types() {
1855
2156
  return {
1856
2157
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2158
+ statusCode: 'number',
1857
2159
  body: StartServiceResponseBody,
1858
2160
  };
1859
2161
  }
1860
2162
  }
1861
2163
  exports.StartServiceResponse = StartServiceResponse;
2164
+ class StopBenchmarkTaskResponseBody extends $tea.Model {
2165
+ constructor(map) {
2166
+ super(map);
2167
+ }
2168
+ static names() {
2169
+ return {
2170
+ message: 'Message',
2171
+ requestId: 'RequestId',
2172
+ };
2173
+ }
2174
+ static types() {
2175
+ return {
2176
+ message: 'string',
2177
+ requestId: 'string',
2178
+ };
2179
+ }
2180
+ }
2181
+ exports.StopBenchmarkTaskResponseBody = StopBenchmarkTaskResponseBody;
2182
+ class StopBenchmarkTaskResponse extends $tea.Model {
2183
+ constructor(map) {
2184
+ super(map);
2185
+ }
2186
+ static names() {
2187
+ return {
2188
+ headers: 'headers',
2189
+ statusCode: 'statusCode',
2190
+ body: 'body',
2191
+ };
2192
+ }
2193
+ static types() {
2194
+ return {
2195
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2196
+ statusCode: 'number',
2197
+ body: StopBenchmarkTaskResponseBody,
2198
+ };
2199
+ }
2200
+ }
2201
+ exports.StopBenchmarkTaskResponse = StopBenchmarkTaskResponse;
1862
2202
  class StopServiceResponseBody extends $tea.Model {
1863
2203
  constructor(map) {
1864
2204
  super(map);
@@ -1884,17 +2224,73 @@ class StopServiceResponse extends $tea.Model {
1884
2224
  static names() {
1885
2225
  return {
1886
2226
  headers: 'headers',
2227
+ statusCode: 'statusCode',
1887
2228
  body: 'body',
1888
2229
  };
1889
2230
  }
1890
2231
  static types() {
1891
2232
  return {
1892
2233
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2234
+ statusCode: 'number',
1893
2235
  body: StopServiceResponseBody,
1894
2236
  };
1895
2237
  }
1896
2238
  }
1897
2239
  exports.StopServiceResponse = StopServiceResponse;
2240
+ class UpdateBenchmarkTaskRequest extends $tea.Model {
2241
+ constructor(map) {
2242
+ super(map);
2243
+ }
2244
+ static names() {
2245
+ return {
2246
+ body: 'body',
2247
+ };
2248
+ }
2249
+ static types() {
2250
+ return {
2251
+ body: 'string',
2252
+ };
2253
+ }
2254
+ }
2255
+ exports.UpdateBenchmarkTaskRequest = UpdateBenchmarkTaskRequest;
2256
+ class UpdateBenchmarkTaskResponseBody extends $tea.Model {
2257
+ constructor(map) {
2258
+ super(map);
2259
+ }
2260
+ static names() {
2261
+ return {
2262
+ message: 'Message',
2263
+ requestId: 'RequestId',
2264
+ };
2265
+ }
2266
+ static types() {
2267
+ return {
2268
+ message: 'string',
2269
+ requestId: 'string',
2270
+ };
2271
+ }
2272
+ }
2273
+ exports.UpdateBenchmarkTaskResponseBody = UpdateBenchmarkTaskResponseBody;
2274
+ class UpdateBenchmarkTaskResponse extends $tea.Model {
2275
+ constructor(map) {
2276
+ super(map);
2277
+ }
2278
+ static names() {
2279
+ return {
2280
+ headers: 'headers',
2281
+ statusCode: 'statusCode',
2282
+ body: 'body',
2283
+ };
2284
+ }
2285
+ static types() {
2286
+ return {
2287
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2288
+ statusCode: 'number',
2289
+ body: UpdateBenchmarkTaskResponseBody,
2290
+ };
2291
+ }
2292
+ }
2293
+ exports.UpdateBenchmarkTaskResponse = UpdateBenchmarkTaskResponse;
1898
2294
  class UpdateResourceRequest extends $tea.Model {
1899
2295
  constructor(map) {
1900
2296
  super(map);
@@ -1938,12 +2334,14 @@ class UpdateResourceResponse extends $tea.Model {
1938
2334
  static names() {
1939
2335
  return {
1940
2336
  headers: 'headers',
2337
+ statusCode: 'statusCode',
1941
2338
  body: 'body',
1942
2339
  };
1943
2340
  }
1944
2341
  static types() {
1945
2342
  return {
1946
2343
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2344
+ statusCode: 'number',
1947
2345
  body: UpdateResourceResponseBody,
1948
2346
  };
1949
2347
  }
@@ -1996,12 +2394,14 @@ class UpdateResourceDLinkResponse extends $tea.Model {
1996
2394
  static names() {
1997
2395
  return {
1998
2396
  headers: 'headers',
2397
+ statusCode: 'statusCode',
1999
2398
  body: 'body',
2000
2399
  };
2001
2400
  }
2002
2401
  static types() {
2003
2402
  return {
2004
2403
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2404
+ statusCode: 'number',
2005
2405
  body: UpdateResourceDLinkResponseBody,
2006
2406
  };
2007
2407
  }
@@ -2048,12 +2448,14 @@ class UpdateServiceResponse extends $tea.Model {
2048
2448
  static names() {
2049
2449
  return {
2050
2450
  headers: 'headers',
2451
+ statusCode: 'statusCode',
2051
2452
  body: 'body',
2052
2453
  };
2053
2454
  }
2054
2455
  static types() {
2055
2456
  return {
2056
2457
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2458
+ statusCode: 'number',
2057
2459
  body: UpdateServiceResponseBody,
2058
2460
  };
2059
2461
  }
@@ -2065,9 +2467,9 @@ class UpdateServiceAutoScalerRequest extends $tea.Model {
2065
2467
  }
2066
2468
  static names() {
2067
2469
  return {
2068
- max: 'Max',
2069
- min: 'Min',
2070
- strategies: 'Strategies',
2470
+ max: 'max',
2471
+ min: 'min',
2472
+ strategies: 'strategies',
2071
2473
  };
2072
2474
  }
2073
2475
  static types() {
@@ -2104,12 +2506,14 @@ class UpdateServiceAutoScalerResponse extends $tea.Model {
2104
2506
  static names() {
2105
2507
  return {
2106
2508
  headers: 'headers',
2509
+ statusCode: 'statusCode',
2107
2510
  body: 'body',
2108
2511
  };
2109
2512
  }
2110
2513
  static types() {
2111
2514
  return {
2112
2515
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2516
+ statusCode: 'number',
2113
2517
  body: UpdateServiceAutoScalerResponseBody,
2114
2518
  };
2115
2519
  }
@@ -2158,12 +2562,14 @@ class UpdateServiceCronScalerResponse extends $tea.Model {
2158
2562
  static names() {
2159
2563
  return {
2160
2564
  headers: 'headers',
2565
+ statusCode: 'statusCode',
2161
2566
  body: 'body',
2162
2567
  };
2163
2568
  }
2164
2569
  static types() {
2165
2570
  return {
2166
2571
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2572
+ statusCode: 'number',
2167
2573
  body: UpdateServiceCronScalerResponseBody,
2168
2574
  };
2169
2575
  }
@@ -2212,12 +2618,14 @@ class UpdateServiceMirrorResponse extends $tea.Model {
2212
2618
  static names() {
2213
2619
  return {
2214
2620
  headers: 'headers',
2621
+ statusCode: 'statusCode',
2215
2622
  body: 'body',
2216
2623
  };
2217
2624
  }
2218
2625
  static types() {
2219
2626
  return {
2220
2627
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2628
+ statusCode: 'number',
2221
2629
  body: UpdateServiceMirrorResponseBody,
2222
2630
  };
2223
2631
  }
@@ -2264,12 +2672,14 @@ class UpdateServiceVersionResponse extends $tea.Model {
2264
2672
  static names() {
2265
2673
  return {
2266
2674
  headers: 'headers',
2675
+ statusCode: 'statusCode',
2267
2676
  body: 'body',
2268
2677
  };
2269
2678
  }
2270
2679
  static types() {
2271
2680
  return {
2272
2681
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2682
+ statusCode: 'number',
2273
2683
  body: UpdateServiceVersionResponseBody,
2274
2684
  };
2275
2685
  }
@@ -2281,8 +2691,8 @@ class CreateServiceAutoScalerRequestStrategies extends $tea.Model {
2281
2691
  }
2282
2692
  static names() {
2283
2693
  return {
2284
- cpu: 'Cpu',
2285
- qps: 'Qps',
2694
+ cpu: 'cpu',
2695
+ qps: 'qps',
2286
2696
  };
2287
2697
  }
2288
2698
  static types() {
@@ -2313,22 +2723,6 @@ class CreateServiceCronScalerRequestScaleJobs extends $tea.Model {
2313
2723
  }
2314
2724
  }
2315
2725
  exports.CreateServiceCronScalerRequestScaleJobs = CreateServiceCronScalerRequestScaleJobs;
2316
- class DescribeRegionsResponseBodyRegions extends $tea.Model {
2317
- constructor(map) {
2318
- super(map);
2319
- }
2320
- static names() {
2321
- return {
2322
- regionId: 'RegionId',
2323
- };
2324
- }
2325
- static types() {
2326
- return {
2327
- regionId: 'string',
2328
- };
2329
- }
2330
- }
2331
- exports.DescribeRegionsResponseBodyRegions = DescribeRegionsResponseBodyRegions;
2332
2726
  class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
2333
2727
  constructor(map) {
2334
2728
  super(map);
@@ -2357,14 +2751,46 @@ class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
2357
2751
  }
2358
2752
  }
2359
2753
  exports.DescribeServiceCronScalerResponseBodyScaleJobs = DescribeServiceCronScalerResponseBodyScaleJobs;
2754
+ class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
2755
+ constructor(map) {
2756
+ super(map);
2757
+ }
2758
+ static names() {
2759
+ return {
2760
+ availableAgent: 'AvailableAgent',
2761
+ createTime: 'CreateTime',
2762
+ message: 'Message',
2763
+ region: 'Region',
2764
+ serviceName: 'ServiceName',
2765
+ status: 'Status',
2766
+ taskId: 'TaskId',
2767
+ taskName: 'TaskName',
2768
+ updateTime: 'UpdateTime',
2769
+ };
2770
+ }
2771
+ static types() {
2772
+ return {
2773
+ availableAgent: 'number',
2774
+ createTime: 'string',
2775
+ message: 'string',
2776
+ region: 'string',
2777
+ serviceName: 'string',
2778
+ status: 'string',
2779
+ taskId: 'string',
2780
+ taskName: 'string',
2781
+ updateTime: 'string',
2782
+ };
2783
+ }
2784
+ }
2785
+ exports.ListBenchmarkTaskResponseBodyTasks = ListBenchmarkTaskResponseBodyTasks;
2360
2786
  class UpdateServiceAutoScalerRequestStrategies extends $tea.Model {
2361
2787
  constructor(map) {
2362
2788
  super(map);
2363
2789
  }
2364
2790
  static names() {
2365
2791
  return {
2366
- cpu: 'Cpu',
2367
- qps: 'Qps',
2792
+ cpu: 'cpu',
2793
+ qps: 'qps',
2368
2794
  };
2369
2795
  }
2370
2796
  static types() {
@@ -2428,6 +2854,30 @@ class Client extends openapi_client_1.default {
2428
2854
  }
2429
2855
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
2430
2856
  }
2857
+ async createBenchmarkTask(request) {
2858
+ let runtime = new $Util.RuntimeOptions({});
2859
+ let headers = {};
2860
+ return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
2861
+ }
2862
+ async createBenchmarkTaskWithOptions(request, headers, runtime) {
2863
+ tea_util_1.default.validateModel(request);
2864
+ let req = new $OpenApi.OpenApiRequest({
2865
+ headers: headers,
2866
+ body: request.body,
2867
+ });
2868
+ let params = new $OpenApi.Params({
2869
+ action: "CreateBenchmarkTask",
2870
+ version: "2021-07-01",
2871
+ protocol: "HTTPS",
2872
+ pathname: `/api/v2/benchmark-tasks`,
2873
+ method: "POST",
2874
+ authType: "AK",
2875
+ style: "ROA",
2876
+ reqBodyType: "json",
2877
+ bodyType: "json",
2878
+ });
2879
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateBenchmarkTaskResponse({}));
2880
+ }
2431
2881
  async createResource(request) {
2432
2882
  let runtime = new $Util.RuntimeOptions({});
2433
2883
  let headers = {};
@@ -2575,13 +3025,13 @@ class Client extends openapi_client_1.default {
2575
3025
  ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
2576
3026
  let body = {};
2577
3027
  if (!tea_util_1.default.isUnset(request.max)) {
2578
- body["Max"] = request.max;
3028
+ body["max"] = request.max;
2579
3029
  }
2580
3030
  if (!tea_util_1.default.isUnset(request.min)) {
2581
- body["Min"] = request.min;
3031
+ body["min"] = request.min;
2582
3032
  }
2583
3033
  if (!tea_util_1.default.isUnset($tea.toMap(request.strategies))) {
2584
- body["Strategies"] = request.strategies;
3034
+ body["strategies"] = request.strategies;
2585
3035
  }
2586
3036
  let req = new $OpenApi.OpenApiRequest({
2587
3037
  headers: headers,
@@ -2666,6 +3116,30 @@ class Client extends openapi_client_1.default {
2666
3116
  });
2667
3117
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceMirrorResponse({}));
2668
3118
  }
3119
+ async deleteBenchmarkTask(ClusterId, TaskName) {
3120
+ let runtime = new $Util.RuntimeOptions({});
3121
+ let headers = {};
3122
+ return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3123
+ }
3124
+ async deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3125
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3126
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
3127
+ let req = new $OpenApi.OpenApiRequest({
3128
+ headers: headers,
3129
+ });
3130
+ let params = new $OpenApi.Params({
3131
+ action: "DeleteBenchmarkTask",
3132
+ version: "2021-07-01",
3133
+ protocol: "HTTPS",
3134
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}`,
3135
+ method: "DELETE",
3136
+ authType: "AK",
3137
+ style: "ROA",
3138
+ reqBodyType: "json",
3139
+ bodyType: "json",
3140
+ });
3141
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteBenchmarkTaskResponse({}));
3142
+ }
2669
3143
  async deleteResource(ClusterId, ResourceId) {
2670
3144
  let runtime = new $Util.RuntimeOptions({});
2671
3145
  let headers = {};
@@ -2897,27 +3371,53 @@ class Client extends openapi_client_1.default {
2897
3371
  });
2898
3372
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceMirrorResponse({}));
2899
3373
  }
2900
- async describeRegions() {
3374
+ async describeBenchmarkTask(ClusterId, TaskName) {
2901
3375
  let runtime = new $Util.RuntimeOptions({});
2902
3376
  let headers = {};
2903
- return await this.describeRegionsWithOptions(headers, runtime);
3377
+ return await this.describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
2904
3378
  }
2905
- async describeRegionsWithOptions(headers, runtime) {
3379
+ async describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3380
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3381
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
2906
3382
  let req = new $OpenApi.OpenApiRequest({
2907
3383
  headers: headers,
2908
3384
  });
2909
3385
  let params = new $OpenApi.Params({
2910
- action: "DescribeRegions",
3386
+ action: "DescribeBenchmarkTask",
2911
3387
  version: "2021-07-01",
2912
3388
  protocol: "HTTPS",
2913
- pathname: `/api/v2/regions`,
3389
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}`,
2914
3390
  method: "GET",
2915
3391
  authType: "AK",
2916
3392
  style: "ROA",
2917
3393
  reqBodyType: "json",
2918
3394
  bodyType: "json",
2919
3395
  });
2920
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeRegionsResponse({}));
3396
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskResponse({}));
3397
+ }
3398
+ async describeBenchmarkTaskReport(ClusterId, TaskName) {
3399
+ let runtime = new $Util.RuntimeOptions({});
3400
+ let headers = {};
3401
+ return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, headers, runtime);
3402
+ }
3403
+ async describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, headers, runtime) {
3404
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3405
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
3406
+ let req = new $OpenApi.OpenApiRequest({
3407
+ headers: headers,
3408
+ });
3409
+ let params = new $OpenApi.Params({
3410
+ action: "DescribeBenchmarkTaskReport",
3411
+ version: "2021-07-01",
3412
+ protocol: "HTTPS",
3413
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}/report`,
3414
+ method: "GET",
3415
+ authType: "AK",
3416
+ style: "ROA",
3417
+ reqBodyType: "json",
3418
+ bodyType: "json",
3419
+ });
3420
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskReportResponse({}));
2921
3421
  }
2922
3422
  async describeResource(ClusterId, ResourceId) {
2923
3423
  let runtime = new $Util.RuntimeOptions({});
@@ -3132,6 +3632,28 @@ class Client extends openapi_client_1.default {
3132
3632
  });
3133
3633
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
3134
3634
  }
3635
+ async listBenchmarkTask() {
3636
+ let runtime = new $Util.RuntimeOptions({});
3637
+ let headers = {};
3638
+ return await this.listBenchmarkTaskWithOptions(headers, runtime);
3639
+ }
3640
+ async listBenchmarkTaskWithOptions(headers, runtime) {
3641
+ let req = new $OpenApi.OpenApiRequest({
3642
+ headers: headers,
3643
+ });
3644
+ let params = new $OpenApi.Params({
3645
+ action: "ListBenchmarkTask",
3646
+ version: "2021-07-01",
3647
+ protocol: "HTTPS",
3648
+ pathname: `/api/v2/benchmark-tasks`,
3649
+ method: "GET",
3650
+ authType: "AK",
3651
+ style: "ROA",
3652
+ reqBodyType: "json",
3653
+ bodyType: "json",
3654
+ });
3655
+ return $tea.cast(await this.callApi(params, req, runtime), new ListBenchmarkTaskResponse({}));
3656
+ }
3135
3657
  async listResourceInstanceWorker(ClusterId, ResourceId, InstanceName, request) {
3136
3658
  let runtime = new $Util.RuntimeOptions({});
3137
3659
  let headers = {};
@@ -3176,6 +3698,9 @@ class Client extends openapi_client_1.default {
3176
3698
  ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3177
3699
  ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
3178
3700
  let query = {};
3701
+ if (!tea_util_1.default.isUnset(request.chargeType)) {
3702
+ query["ChargeType"] = request.chargeType;
3703
+ }
3179
3704
  if (!tea_util_1.default.isUnset(request.pageNumber)) {
3180
3705
  query["PageNumber"] = request.pageNumber;
3181
3706
  }
@@ -3366,6 +3891,30 @@ class Client extends openapi_client_1.default {
3366
3891
  });
3367
3892
  return $tea.cast(await this.callApi(params, req, runtime), new ReleaseServiceResponse({}));
3368
3893
  }
3894
+ async startBenchmarkTask(ClusterId, TaskName) {
3895
+ let runtime = new $Util.RuntimeOptions({});
3896
+ let headers = {};
3897
+ return await this.startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3898
+ }
3899
+ async startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3900
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3901
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
3902
+ let req = new $OpenApi.OpenApiRequest({
3903
+ headers: headers,
3904
+ });
3905
+ let params = new $OpenApi.Params({
3906
+ action: "StartBenchmarkTask",
3907
+ version: "2021-07-01",
3908
+ protocol: "HTTPS",
3909
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}/start`,
3910
+ method: "PUT",
3911
+ authType: "AK",
3912
+ style: "ROA",
3913
+ reqBodyType: "json",
3914
+ bodyType: "json",
3915
+ });
3916
+ return $tea.cast(await this.callApi(params, req, runtime), new StartBenchmarkTaskResponse({}));
3917
+ }
3369
3918
  async startService(ClusterId, ServiceName) {
3370
3919
  let runtime = new $Util.RuntimeOptions({});
3371
3920
  let headers = {};
@@ -3390,6 +3939,30 @@ class Client extends openapi_client_1.default {
3390
3939
  });
3391
3940
  return $tea.cast(await this.callApi(params, req, runtime), new StartServiceResponse({}));
3392
3941
  }
3942
+ async stopBenchmarkTask(ClusterId, TaskName) {
3943
+ let runtime = new $Util.RuntimeOptions({});
3944
+ let headers = {};
3945
+ return await this.stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3946
+ }
3947
+ async stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3948
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3949
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
3950
+ let req = new $OpenApi.OpenApiRequest({
3951
+ headers: headers,
3952
+ });
3953
+ let params = new $OpenApi.Params({
3954
+ action: "StopBenchmarkTask",
3955
+ version: "2021-07-01",
3956
+ protocol: "HTTPS",
3957
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}/stop`,
3958
+ method: "PUT",
3959
+ authType: "AK",
3960
+ style: "ROA",
3961
+ reqBodyType: "json",
3962
+ bodyType: "json",
3963
+ });
3964
+ return $tea.cast(await this.callApi(params, req, runtime), new StopBenchmarkTaskResponse({}));
3965
+ }
3393
3966
  async stopService(ClusterId, ServiceName) {
3394
3967
  let runtime = new $Util.RuntimeOptions({});
3395
3968
  let headers = {};
@@ -3414,6 +3987,32 @@ class Client extends openapi_client_1.default {
3414
3987
  });
3415
3988
  return $tea.cast(await this.callApi(params, req, runtime), new StopServiceResponse({}));
3416
3989
  }
3990
+ async updateBenchmarkTask(ClusterId, TaskName, request) {
3991
+ let runtime = new $Util.RuntimeOptions({});
3992
+ let headers = {};
3993
+ return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
3994
+ }
3995
+ async updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime) {
3996
+ tea_util_1.default.validateModel(request);
3997
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3998
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
3999
+ let req = new $OpenApi.OpenApiRequest({
4000
+ headers: headers,
4001
+ body: request.body,
4002
+ });
4003
+ let params = new $OpenApi.Params({
4004
+ action: "UpdateBenchmarkTask",
4005
+ version: "2021-07-01",
4006
+ protocol: "HTTPS",
4007
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}`,
4008
+ method: "PUT",
4009
+ authType: "AK",
4010
+ style: "ROA",
4011
+ reqBodyType: "json",
4012
+ bodyType: "json",
4013
+ });
4014
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateBenchmarkTaskResponse({}));
4015
+ }
3417
4016
  async updateResource(ClusterId, ResourceId, request) {
3418
4017
  let runtime = new $Util.RuntimeOptions({});
3419
4018
  let headers = {};
@@ -3520,13 +4119,13 @@ class Client extends openapi_client_1.default {
3520
4119
  ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
3521
4120
  let body = {};
3522
4121
  if (!tea_util_1.default.isUnset(request.max)) {
3523
- body["Max"] = request.max;
4122
+ body["max"] = request.max;
3524
4123
  }
3525
4124
  if (!tea_util_1.default.isUnset(request.min)) {
3526
- body["Min"] = request.min;
4125
+ body["min"] = request.min;
3527
4126
  }
3528
4127
  if (!tea_util_1.default.isUnset($tea.toMap(request.strategies))) {
3529
- body["Strategies"] = request.strategies;
4128
+ body["strategies"] = request.strategies;
3530
4129
  }
3531
4130
  let req = new $OpenApi.OpenApiRequest({
3532
4131
  headers: headers,