@alicloud/eas20210701 1.1.2 → 1.1.3

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,6 +210,7 @@ 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
216
  updatetime: 'Updatetime',
@@ -241,6 +242,7 @@ 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
248
  updatetime: 'string',
@@ -249,6 +251,64 @@ class Service extends $tea.Model {
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
  }
@@ -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,115 @@ 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 CreateStressRequest extends $tea.Model {
731
+ constructor(map) {
732
+ super(map);
733
+ }
734
+ static names() {
735
+ return {
736
+ body: 'body',
737
+ };
738
+ }
739
+ static types() {
740
+ return {
741
+ body: 'string',
742
+ };
743
+ }
744
+ }
745
+ exports.CreateStressRequest = CreateStressRequest;
746
+ class CreateStressResponseBody extends $tea.Model {
747
+ constructor(map) {
748
+ super(map);
749
+ }
750
+ static names() {
751
+ return {
752
+ message: 'Message',
753
+ name: 'Name',
754
+ region: 'Region',
755
+ requestId: 'RequestId',
756
+ };
757
+ }
758
+ static types() {
759
+ return {
760
+ message: 'string',
761
+ name: 'string',
762
+ region: 'string',
763
+ requestId: 'string',
764
+ };
765
+ }
766
+ }
767
+ exports.CreateStressResponseBody = CreateStressResponseBody;
768
+ class CreateStressResponse extends $tea.Model {
769
+ constructor(map) {
770
+ super(map);
771
+ }
772
+ static names() {
773
+ return {
774
+ headers: 'headers',
775
+ statusCode: 'statusCode',
776
+ body: 'body',
777
+ };
778
+ }
779
+ static types() {
780
+ return {
781
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
782
+ statusCode: 'number',
783
+ body: CreateStressResponseBody,
784
+ };
785
+ }
786
+ }
787
+ exports.CreateStressResponse = CreateStressResponse;
788
+ class DeleteBenchmarkTaskResponseBody extends $tea.Model {
789
+ constructor(map) {
790
+ super(map);
791
+ }
792
+ static names() {
793
+ return {
794
+ message: 'Message',
795
+ requestId: 'RequestId',
796
+ };
797
+ }
798
+ static types() {
799
+ return {
800
+ message: 'string',
801
+ requestId: 'string',
802
+ };
803
+ }
804
+ }
805
+ exports.DeleteBenchmarkTaskResponseBody = DeleteBenchmarkTaskResponseBody;
806
+ class DeleteBenchmarkTaskResponse extends $tea.Model {
807
+ constructor(map) {
808
+ super(map);
809
+ }
810
+ static names() {
811
+ return {
812
+ headers: 'headers',
813
+ statusCode: 'statusCode',
814
+ body: 'body',
815
+ };
816
+ }
817
+ static types() {
818
+ return {
819
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
820
+ statusCode: 'number',
821
+ body: DeleteBenchmarkTaskResponseBody,
822
+ };
823
+ }
824
+ }
825
+ exports.DeleteBenchmarkTaskResponse = DeleteBenchmarkTaskResponse;
656
826
  class DeleteResourceResponseBody extends $tea.Model {
657
827
  constructor(map) {
658
828
  super(map);
@@ -678,12 +848,14 @@ class DeleteResourceResponse extends $tea.Model {
678
848
  static names() {
679
849
  return {
680
850
  headers: 'headers',
851
+ statusCode: 'statusCode',
681
852
  body: 'body',
682
853
  };
683
854
  }
684
855
  static types() {
685
856
  return {
686
857
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
858
+ statusCode: 'number',
687
859
  body: DeleteResourceResponseBody,
688
860
  };
689
861
  }
@@ -714,12 +886,14 @@ class DeleteResourceDLinkResponse extends $tea.Model {
714
886
  static names() {
715
887
  return {
716
888
  headers: 'headers',
889
+ statusCode: 'statusCode',
717
890
  body: 'body',
718
891
  };
719
892
  }
720
893
  static types() {
721
894
  return {
722
895
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
896
+ statusCode: 'number',
723
897
  body: DeleteResourceDLinkResponseBody,
724
898
  };
725
899
  }
@@ -768,12 +942,14 @@ class DeleteResourceInstancesResponse extends $tea.Model {
768
942
  static names() {
769
943
  return {
770
944
  headers: 'headers',
945
+ statusCode: 'statusCode',
771
946
  body: 'body',
772
947
  };
773
948
  }
774
949
  static types() {
775
950
  return {
776
951
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
952
+ statusCode: 'number',
777
953
  body: DeleteResourceInstancesResponseBody,
778
954
  };
779
955
  }
@@ -804,12 +980,14 @@ class DeleteResourceLogResponse extends $tea.Model {
804
980
  static names() {
805
981
  return {
806
982
  headers: 'headers',
983
+ statusCode: 'statusCode',
807
984
  body: 'body',
808
985
  };
809
986
  }
810
987
  static types() {
811
988
  return {
812
989
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
990
+ statusCode: 'number',
813
991
  body: DeleteResourceLogResponseBody,
814
992
  };
815
993
  }
@@ -840,12 +1018,14 @@ class DeleteServiceResponse extends $tea.Model {
840
1018
  static names() {
841
1019
  return {
842
1020
  headers: 'headers',
1021
+ statusCode: 'statusCode',
843
1022
  body: 'body',
844
1023
  };
845
1024
  }
846
1025
  static types() {
847
1026
  return {
848
1027
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1028
+ statusCode: 'number',
849
1029
  body: DeleteServiceResponseBody,
850
1030
  };
851
1031
  }
@@ -876,12 +1056,14 @@ class DeleteServiceAutoScalerResponse extends $tea.Model {
876
1056
  static names() {
877
1057
  return {
878
1058
  headers: 'headers',
1059
+ statusCode: 'statusCode',
879
1060
  body: 'body',
880
1061
  };
881
1062
  }
882
1063
  static types() {
883
1064
  return {
884
1065
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1066
+ statusCode: 'number',
885
1067
  body: DeleteServiceAutoScalerResponseBody,
886
1068
  };
887
1069
  }
@@ -912,12 +1094,14 @@ class DeleteServiceCronScalerResponse extends $tea.Model {
912
1094
  static names() {
913
1095
  return {
914
1096
  headers: 'headers',
1097
+ statusCode: 'statusCode',
915
1098
  body: 'body',
916
1099
  };
917
1100
  }
918
1101
  static types() {
919
1102
  return {
920
1103
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1104
+ statusCode: 'number',
921
1105
  body: DeleteServiceCronScalerResponseBody,
922
1106
  };
923
1107
  }
@@ -964,12 +1148,14 @@ class DeleteServiceInstancesResponse extends $tea.Model {
964
1148
  static names() {
965
1149
  return {
966
1150
  headers: 'headers',
1151
+ statusCode: 'statusCode',
967
1152
  body: 'body',
968
1153
  };
969
1154
  }
970
1155
  static types() {
971
1156
  return {
972
1157
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1158
+ statusCode: 'number',
973
1159
  body: DeleteServiceInstancesResponseBody,
974
1160
  };
975
1161
  }
@@ -1000,53 +1186,153 @@ class DeleteServiceMirrorResponse extends $tea.Model {
1000
1186
  static names() {
1001
1187
  return {
1002
1188
  headers: 'headers',
1189
+ statusCode: 'statusCode',
1003
1190
  body: 'body',
1004
1191
  };
1005
1192
  }
1006
1193
  static types() {
1007
1194
  return {
1008
1195
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1196
+ statusCode: 'number',
1009
1197
  body: DeleteServiceMirrorResponseBody,
1010
1198
  };
1011
1199
  }
1012
1200
  }
1013
1201
  exports.DeleteServiceMirrorResponse = DeleteServiceMirrorResponse;
1014
- class DescribeRegionsResponseBody extends $tea.Model {
1202
+ class DeleteStressResponseBody extends $tea.Model {
1203
+ constructor(map) {
1204
+ super(map);
1205
+ }
1206
+ static names() {
1207
+ return {
1208
+ message: 'Message',
1209
+ requestId: 'RequestId',
1210
+ };
1211
+ }
1212
+ static types() {
1213
+ return {
1214
+ message: 'string',
1215
+ requestId: 'string',
1216
+ };
1217
+ }
1218
+ }
1219
+ exports.DeleteStressResponseBody = DeleteStressResponseBody;
1220
+ class DeleteStressResponse 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: DeleteStressResponseBody,
1236
+ };
1237
+ }
1238
+ }
1239
+ exports.DeleteStressResponse = DeleteStressResponse;
1240
+ class DescribeBenchmarkTaskResponseBody extends $tea.Model {
1241
+ constructor(map) {
1242
+ super(map);
1243
+ }
1244
+ static names() {
1245
+ return {
1246
+ availableAgent: 'AvailableAgent',
1247
+ callerUid: 'CallerUid',
1248
+ desiredAgent: 'DesiredAgent',
1249
+ message: 'Message',
1250
+ parentUid: 'ParentUid',
1251
+ reason: 'Reason',
1252
+ requestId: 'RequestId',
1253
+ serviceName: 'ServiceName',
1254
+ status: 'Status',
1255
+ taskId: 'TaskId',
1256
+ taskName: 'TaskName',
1257
+ token: 'Token',
1258
+ };
1259
+ }
1260
+ static types() {
1261
+ return {
1262
+ availableAgent: 'number',
1263
+ callerUid: 'string',
1264
+ desiredAgent: 'number',
1265
+ message: 'string',
1266
+ parentUid: 'string',
1267
+ reason: 'string',
1268
+ requestId: 'string',
1269
+ serviceName: 'string',
1270
+ status: 'string',
1271
+ taskId: 'string',
1272
+ taskName: 'string',
1273
+ token: 'string',
1274
+ };
1275
+ }
1276
+ }
1277
+ exports.DescribeBenchmarkTaskResponseBody = DescribeBenchmarkTaskResponseBody;
1278
+ class DescribeBenchmarkTaskResponse extends $tea.Model {
1279
+ constructor(map) {
1280
+ super(map);
1281
+ }
1282
+ static names() {
1283
+ return {
1284
+ headers: 'headers',
1285
+ statusCode: 'statusCode',
1286
+ body: 'body',
1287
+ };
1288
+ }
1289
+ static types() {
1290
+ return {
1291
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1292
+ statusCode: 'number',
1293
+ body: DescribeBenchmarkTaskResponseBody,
1294
+ };
1295
+ }
1296
+ }
1297
+ exports.DescribeBenchmarkTaskResponse = DescribeBenchmarkTaskResponse;
1298
+ class DescribeBenchmarkTaskReportResponseBody extends $tea.Model {
1015
1299
  constructor(map) {
1016
1300
  super(map);
1017
1301
  }
1018
1302
  static names() {
1019
1303
  return {
1020
- regions: 'Regions',
1304
+ reportUrl: 'ReportUrl',
1021
1305
  requestId: 'RequestId',
1022
1306
  };
1023
1307
  }
1024
1308
  static types() {
1025
1309
  return {
1026
- regions: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegions },
1310
+ reportUrl: 'string',
1027
1311
  requestId: 'string',
1028
1312
  };
1029
1313
  }
1030
1314
  }
1031
- exports.DescribeRegionsResponseBody = DescribeRegionsResponseBody;
1032
- class DescribeRegionsResponse extends $tea.Model {
1315
+ exports.DescribeBenchmarkTaskReportResponseBody = DescribeBenchmarkTaskReportResponseBody;
1316
+ class DescribeBenchmarkTaskReportResponse extends $tea.Model {
1033
1317
  constructor(map) {
1034
1318
  super(map);
1035
1319
  }
1036
1320
  static names() {
1037
1321
  return {
1038
1322
  headers: 'headers',
1323
+ statusCode: 'statusCode',
1039
1324
  body: 'body',
1040
1325
  };
1041
1326
  }
1042
1327
  static types() {
1043
1328
  return {
1044
1329
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1045
- body: DescribeRegionsResponseBody,
1330
+ statusCode: 'number',
1331
+ body: DescribeBenchmarkTaskReportResponseBody,
1046
1332
  };
1047
1333
  }
1048
1334
  }
1049
- exports.DescribeRegionsResponse = DescribeRegionsResponse;
1335
+ exports.DescribeBenchmarkTaskReportResponse = DescribeBenchmarkTaskReportResponse;
1050
1336
  class DescribeResourceResponseBody extends $tea.Model {
1051
1337
  constructor(map) {
1052
1338
  super(map);
@@ -1098,12 +1384,14 @@ class DescribeResourceResponse extends $tea.Model {
1098
1384
  static names() {
1099
1385
  return {
1100
1386
  headers: 'headers',
1387
+ statusCode: 'statusCode',
1101
1388
  body: 'body',
1102
1389
  };
1103
1390
  }
1104
1391
  static types() {
1105
1392
  return {
1106
1393
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1394
+ statusCode: 'number',
1107
1395
  body: DescribeResourceResponseBody,
1108
1396
  };
1109
1397
  }
@@ -1142,12 +1430,14 @@ class DescribeResourceDLinkResponse extends $tea.Model {
1142
1430
  static names() {
1143
1431
  return {
1144
1432
  headers: 'headers',
1433
+ statusCode: 'statusCode',
1145
1434
  body: 'body',
1146
1435
  };
1147
1436
  }
1148
1437
  static types() {
1149
1438
  return {
1150
1439
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1440
+ statusCode: 'number',
1151
1441
  body: DescribeResourceDLinkResponseBody,
1152
1442
  };
1153
1443
  }
@@ -1184,12 +1474,14 @@ class DescribeResourceLogResponse extends $tea.Model {
1184
1474
  static names() {
1185
1475
  return {
1186
1476
  headers: 'headers',
1477
+ statusCode: 'statusCode',
1187
1478
  body: 'body',
1188
1479
  };
1189
1480
  }
1190
1481
  static types() {
1191
1482
  return {
1192
1483
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1484
+ statusCode: 'number',
1193
1485
  body: DescribeResourceLogResponseBody,
1194
1486
  };
1195
1487
  }
@@ -1202,12 +1494,14 @@ class DescribeServiceResponse extends $tea.Model {
1202
1494
  static names() {
1203
1495
  return {
1204
1496
  headers: 'headers',
1497
+ statusCode: 'statusCode',
1205
1498
  body: 'body',
1206
1499
  };
1207
1500
  }
1208
1501
  static types() {
1209
1502
  return {
1210
1503
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1504
+ statusCode: 'number',
1211
1505
  body: Service,
1212
1506
  };
1213
1507
  }
@@ -1246,12 +1540,14 @@ class DescribeServiceAutoScalerResponse extends $tea.Model {
1246
1540
  static names() {
1247
1541
  return {
1248
1542
  headers: 'headers',
1543
+ statusCode: 'statusCode',
1249
1544
  body: 'body',
1250
1545
  };
1251
1546
  }
1252
1547
  static types() {
1253
1548
  return {
1254
1549
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1550
+ statusCode: 'number',
1255
1551
  body: DescribeServiceAutoScalerResponseBody,
1256
1552
  };
1257
1553
  }
@@ -1286,12 +1582,14 @@ class DescribeServiceCronScalerResponse extends $tea.Model {
1286
1582
  static names() {
1287
1583
  return {
1288
1584
  headers: 'headers',
1585
+ statusCode: 'statusCode',
1289
1586
  body: 'body',
1290
1587
  };
1291
1588
  }
1292
1589
  static types() {
1293
1590
  return {
1294
1591
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1592
+ statusCode: 'number',
1295
1593
  body: DescribeServiceCronScalerResponseBody,
1296
1594
  };
1297
1595
  }
@@ -1354,12 +1652,14 @@ class DescribeServiceLogResponse extends $tea.Model {
1354
1652
  static names() {
1355
1653
  return {
1356
1654
  headers: 'headers',
1655
+ statusCode: 'statusCode',
1357
1656
  body: 'body',
1358
1657
  };
1359
1658
  }
1360
1659
  static types() {
1361
1660
  return {
1362
1661
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1662
+ statusCode: 'number',
1363
1663
  body: DescribeServiceLogResponseBody,
1364
1664
  };
1365
1665
  }
@@ -1394,78 +1694,114 @@ class DescribeServiceMirrorResponse extends $tea.Model {
1394
1694
  static names() {
1395
1695
  return {
1396
1696
  headers: 'headers',
1697
+ statusCode: 'statusCode',
1397
1698
  body: 'body',
1398
1699
  };
1399
1700
  }
1400
1701
  static types() {
1401
1702
  return {
1402
1703
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1704
+ statusCode: 'number',
1403
1705
  body: DescribeServiceMirrorResponseBody,
1404
1706
  };
1405
1707
  }
1406
1708
  }
1407
1709
  exports.DescribeServiceMirrorResponse = DescribeServiceMirrorResponse;
1408
- class ListResourceInstanceWorkerRequest extends $tea.Model {
1710
+ class DescribeStressResponseBody extends $tea.Model {
1409
1711
  constructor(map) {
1410
1712
  super(map);
1411
1713
  }
1412
1714
  static names() {
1413
1715
  return {
1414
- pageNumber: 'PageNumber',
1415
- pageSize: 'PageSize',
1716
+ availableAgent: 'AvailableAgent',
1717
+ callerUid: 'CallerUid',
1718
+ desiredAgent: 'DesiredAgent',
1719
+ message: 'Message',
1720
+ parentUid: 'ParentUid',
1721
+ reason: 'Reason',
1722
+ requestId: 'RequestId',
1723
+ serviceName: 'ServiceName',
1724
+ status: 'Status',
1725
+ stressName: 'StressName',
1726
+ token: 'Token',
1416
1727
  };
1417
1728
  }
1418
1729
  static types() {
1419
1730
  return {
1420
- pageNumber: 'number',
1421
- pageSize: 'number',
1731
+ availableAgent: 'number',
1732
+ callerUid: 'string',
1733
+ desiredAgent: 'number',
1734
+ message: 'string',
1735
+ parentUid: 'string',
1736
+ reason: 'string',
1737
+ requestId: 'string',
1738
+ serviceName: 'string',
1739
+ status: 'string',
1740
+ stressName: 'string',
1741
+ token: 'string',
1422
1742
  };
1423
1743
  }
1424
1744
  }
1425
- exports.ListResourceInstanceWorkerRequest = ListResourceInstanceWorkerRequest;
1426
- class ListResourceInstanceWorkerResponseBody extends $tea.Model {
1745
+ exports.DescribeStressResponseBody = DescribeStressResponseBody;
1746
+ class DescribeStressResponse extends $tea.Model {
1747
+ constructor(map) {
1748
+ super(map);
1749
+ }
1750
+ static names() {
1751
+ return {
1752
+ headers: 'headers',
1753
+ statusCode: 'statusCode',
1754
+ body: 'body',
1755
+ };
1756
+ }
1757
+ static types() {
1758
+ return {
1759
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1760
+ statusCode: 'number',
1761
+ body: DescribeStressResponseBody,
1762
+ };
1763
+ }
1764
+ }
1765
+ exports.DescribeStressResponse = DescribeStressResponse;
1766
+ class ListBenchmarkTaskResponseBody extends $tea.Model {
1427
1767
  constructor(map) {
1428
1768
  super(map);
1429
1769
  }
1430
1770
  static names() {
1431
1771
  return {
1432
- pageNumber: 'PageNumber',
1433
- pageSize: 'PageSize',
1434
- pods: 'Pods',
1435
1772
  requestId: 'RequestId',
1436
- totalCount: 'TotalCount',
1773
+ tasks: 'Tasks',
1437
1774
  };
1438
1775
  }
1439
1776
  static types() {
1440
1777
  return {
1441
- pageNumber: 'number',
1442
- pageSize: 'number',
1443
- pods: { 'type': 'array', 'itemType': ResourceInstanceWorker },
1444
1778
  requestId: 'string',
1445
- totalCount: 'number',
1779
+ tasks: { 'type': 'array', 'itemType': ListBenchmarkTaskResponseBodyTasks },
1446
1780
  };
1447
1781
  }
1448
1782
  }
1449
- exports.ListResourceInstanceWorkerResponseBody = ListResourceInstanceWorkerResponseBody;
1450
- class ListResourceInstanceWorkerResponse extends $tea.Model {
1783
+ exports.ListBenchmarkTaskResponseBody = ListBenchmarkTaskResponseBody;
1784
+ class ListBenchmarkTaskResponse extends $tea.Model {
1451
1785
  constructor(map) {
1452
1786
  super(map);
1453
1787
  }
1454
1788
  static names() {
1455
1789
  return {
1456
1790
  headers: 'headers',
1791
+ statusCode: 'statusCode',
1457
1792
  body: 'body',
1458
1793
  };
1459
1794
  }
1460
1795
  static types() {
1461
1796
  return {
1462
1797
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1463
- body: ListResourceInstanceWorkerResponseBody,
1798
+ statusCode: 'number',
1799
+ body: ListBenchmarkTaskResponseBody,
1464
1800
  };
1465
1801
  }
1466
1802
  }
1467
- exports.ListResourceInstanceWorkerResponse = ListResourceInstanceWorkerResponse;
1468
- class ListResourceInstancesRequest extends $tea.Model {
1803
+ exports.ListBenchmarkTaskResponse = ListBenchmarkTaskResponse;
1804
+ class ListResourceInstanceWorkerRequest extends $tea.Model {
1469
1805
  constructor(map) {
1470
1806
  super(map);
1471
1807
  }
@@ -1482,14 +1818,78 @@ class ListResourceInstancesRequest extends $tea.Model {
1482
1818
  };
1483
1819
  }
1484
1820
  }
1485
- exports.ListResourceInstancesRequest = ListResourceInstancesRequest;
1486
- class ListResourceInstancesResponseBody extends $tea.Model {
1821
+ exports.ListResourceInstanceWorkerRequest = ListResourceInstanceWorkerRequest;
1822
+ class ListResourceInstanceWorkerResponseBody extends $tea.Model {
1487
1823
  constructor(map) {
1488
1824
  super(map);
1489
1825
  }
1490
1826
  static names() {
1491
1827
  return {
1492
- instances: 'Instances',
1828
+ pageNumber: 'PageNumber',
1829
+ pageSize: 'PageSize',
1830
+ pods: 'Pods',
1831
+ requestId: 'RequestId',
1832
+ totalCount: 'TotalCount',
1833
+ };
1834
+ }
1835
+ static types() {
1836
+ return {
1837
+ pageNumber: 'number',
1838
+ pageSize: 'number',
1839
+ pods: { 'type': 'array', 'itemType': ResourceInstanceWorker },
1840
+ requestId: 'string',
1841
+ totalCount: 'number',
1842
+ };
1843
+ }
1844
+ }
1845
+ exports.ListResourceInstanceWorkerResponseBody = ListResourceInstanceWorkerResponseBody;
1846
+ class ListResourceInstanceWorkerResponse extends $tea.Model {
1847
+ constructor(map) {
1848
+ super(map);
1849
+ }
1850
+ static names() {
1851
+ return {
1852
+ headers: 'headers',
1853
+ statusCode: 'statusCode',
1854
+ body: 'body',
1855
+ };
1856
+ }
1857
+ static types() {
1858
+ return {
1859
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1860
+ statusCode: 'number',
1861
+ body: ListResourceInstanceWorkerResponseBody,
1862
+ };
1863
+ }
1864
+ }
1865
+ exports.ListResourceInstanceWorkerResponse = ListResourceInstanceWorkerResponse;
1866
+ class ListResourceInstancesRequest extends $tea.Model {
1867
+ constructor(map) {
1868
+ super(map);
1869
+ }
1870
+ static names() {
1871
+ return {
1872
+ chargeType: 'ChargeType',
1873
+ pageNumber: 'PageNumber',
1874
+ pageSize: 'PageSize',
1875
+ };
1876
+ }
1877
+ static types() {
1878
+ return {
1879
+ chargeType: 'string',
1880
+ pageNumber: 'number',
1881
+ pageSize: 'number',
1882
+ };
1883
+ }
1884
+ }
1885
+ exports.ListResourceInstancesRequest = ListResourceInstancesRequest;
1886
+ class ListResourceInstancesResponseBody extends $tea.Model {
1887
+ constructor(map) {
1888
+ super(map);
1889
+ }
1890
+ static names() {
1891
+ return {
1892
+ instances: 'Instances',
1493
1893
  pageNumber: 'PageNumber',
1494
1894
  pageSize: 'PageSize',
1495
1895
  requestId: 'RequestId',
@@ -1514,12 +1914,14 @@ class ListResourceInstancesResponse extends $tea.Model {
1514
1914
  static names() {
1515
1915
  return {
1516
1916
  headers: 'headers',
1917
+ statusCode: 'statusCode',
1517
1918
  body: 'body',
1518
1919
  };
1519
1920
  }
1520
1921
  static types() {
1521
1922
  return {
1522
1923
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1924
+ statusCode: 'number',
1523
1925
  body: ListResourceInstancesResponseBody,
1524
1926
  };
1525
1927
  }
@@ -1574,12 +1976,14 @@ class ListResourceServicesResponse extends $tea.Model {
1574
1976
  static names() {
1575
1977
  return {
1576
1978
  headers: 'headers',
1979
+ statusCode: 'statusCode',
1577
1980
  body: 'body',
1578
1981
  };
1579
1982
  }
1580
1983
  static types() {
1581
1984
  return {
1582
1985
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1986
+ statusCode: 'number',
1583
1987
  body: ListResourceServicesResponseBody,
1584
1988
  };
1585
1989
  }
@@ -1634,12 +2038,14 @@ class ListResourcesResponse extends $tea.Model {
1634
2038
  static names() {
1635
2039
  return {
1636
2040
  headers: 'headers',
2041
+ statusCode: 'statusCode',
1637
2042
  body: 'body',
1638
2043
  };
1639
2044
  }
1640
2045
  static types() {
1641
2046
  return {
1642
2047
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2048
+ statusCode: 'number',
1643
2049
  body: ListResourcesResponseBody,
1644
2050
  };
1645
2051
  }
@@ -1694,12 +2100,14 @@ class ListServiceInstancesResponse extends $tea.Model {
1694
2100
  static names() {
1695
2101
  return {
1696
2102
  headers: 'headers',
2103
+ statusCode: 'statusCode',
1697
2104
  body: 'body',
1698
2105
  };
1699
2106
  }
1700
2107
  static types() {
1701
2108
  return {
1702
2109
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2110
+ statusCode: 'number',
1703
2111
  body: ListServiceInstancesResponseBody,
1704
2112
  };
1705
2113
  }
@@ -1760,17 +2168,57 @@ class ListServicesResponse extends $tea.Model {
1760
2168
  static names() {
1761
2169
  return {
1762
2170
  headers: 'headers',
2171
+ statusCode: 'statusCode',
1763
2172
  body: 'body',
1764
2173
  };
1765
2174
  }
1766
2175
  static types() {
1767
2176
  return {
1768
2177
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2178
+ statusCode: 'number',
1769
2179
  body: ListServicesResponseBody,
1770
2180
  };
1771
2181
  }
1772
2182
  }
1773
2183
  exports.ListServicesResponse = ListServicesResponse;
2184
+ class ListStressesResponseBody extends $tea.Model {
2185
+ constructor(map) {
2186
+ super(map);
2187
+ }
2188
+ static names() {
2189
+ return {
2190
+ requestId: 'RequestId',
2191
+ stresses: 'Stresses',
2192
+ };
2193
+ }
2194
+ static types() {
2195
+ return {
2196
+ requestId: 'string',
2197
+ stresses: { 'type': 'array', 'itemType': ListStressesResponseBodyStresses },
2198
+ };
2199
+ }
2200
+ }
2201
+ exports.ListStressesResponseBody = ListStressesResponseBody;
2202
+ class ListStressesResponse extends $tea.Model {
2203
+ constructor(map) {
2204
+ super(map);
2205
+ }
2206
+ static names() {
2207
+ return {
2208
+ headers: 'headers',
2209
+ statusCode: 'statusCode',
2210
+ body: 'body',
2211
+ };
2212
+ }
2213
+ static types() {
2214
+ return {
2215
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2216
+ statusCode: 'number',
2217
+ body: ListStressesResponseBody,
2218
+ };
2219
+ }
2220
+ }
2221
+ exports.ListStressesResponse = ListStressesResponse;
1774
2222
  class ReleaseServiceRequest extends $tea.Model {
1775
2223
  constructor(map) {
1776
2224
  super(map);
@@ -1812,17 +2260,95 @@ class ReleaseServiceResponse extends $tea.Model {
1812
2260
  static names() {
1813
2261
  return {
1814
2262
  headers: 'headers',
2263
+ statusCode: 'statusCode',
1815
2264
  body: 'body',
1816
2265
  };
1817
2266
  }
1818
2267
  static types() {
1819
2268
  return {
1820
2269
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2270
+ statusCode: 'number',
1821
2271
  body: ReleaseServiceResponseBody,
1822
2272
  };
1823
2273
  }
1824
2274
  }
1825
2275
  exports.ReleaseServiceResponse = ReleaseServiceResponse;
2276
+ class ReportStressResponseBody extends $tea.Model {
2277
+ constructor(map) {
2278
+ super(map);
2279
+ }
2280
+ static names() {
2281
+ return {
2282
+ reportUrl: 'ReportUrl',
2283
+ requestId: 'RequestId',
2284
+ };
2285
+ }
2286
+ static types() {
2287
+ return {
2288
+ reportUrl: 'string',
2289
+ requestId: 'string',
2290
+ };
2291
+ }
2292
+ }
2293
+ exports.ReportStressResponseBody = ReportStressResponseBody;
2294
+ class ReportStressResponse extends $tea.Model {
2295
+ constructor(map) {
2296
+ super(map);
2297
+ }
2298
+ static names() {
2299
+ return {
2300
+ headers: 'headers',
2301
+ statusCode: 'statusCode',
2302
+ body: 'body',
2303
+ };
2304
+ }
2305
+ static types() {
2306
+ return {
2307
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2308
+ statusCode: 'number',
2309
+ body: ReportStressResponseBody,
2310
+ };
2311
+ }
2312
+ }
2313
+ exports.ReportStressResponse = ReportStressResponse;
2314
+ class StartBenchmarkTaskResponseBody extends $tea.Model {
2315
+ constructor(map) {
2316
+ super(map);
2317
+ }
2318
+ static names() {
2319
+ return {
2320
+ message: 'Message',
2321
+ requestId: 'RequestId',
2322
+ };
2323
+ }
2324
+ static types() {
2325
+ return {
2326
+ message: 'string',
2327
+ requestId: 'string',
2328
+ };
2329
+ }
2330
+ }
2331
+ exports.StartBenchmarkTaskResponseBody = StartBenchmarkTaskResponseBody;
2332
+ class StartBenchmarkTaskResponse extends $tea.Model {
2333
+ constructor(map) {
2334
+ super(map);
2335
+ }
2336
+ static names() {
2337
+ return {
2338
+ headers: 'headers',
2339
+ statusCode: 'statusCode',
2340
+ body: 'body',
2341
+ };
2342
+ }
2343
+ static types() {
2344
+ return {
2345
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2346
+ statusCode: 'number',
2347
+ body: StartBenchmarkTaskResponseBody,
2348
+ };
2349
+ }
2350
+ }
2351
+ exports.StartBenchmarkTaskResponse = StartBenchmarkTaskResponse;
1826
2352
  class StartServiceResponseBody extends $tea.Model {
1827
2353
  constructor(map) {
1828
2354
  super(map);
@@ -1848,17 +2374,95 @@ class StartServiceResponse extends $tea.Model {
1848
2374
  static names() {
1849
2375
  return {
1850
2376
  headers: 'headers',
2377
+ statusCode: 'statusCode',
1851
2378
  body: 'body',
1852
2379
  };
1853
2380
  }
1854
2381
  static types() {
1855
2382
  return {
1856
2383
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2384
+ statusCode: 'number',
1857
2385
  body: StartServiceResponseBody,
1858
2386
  };
1859
2387
  }
1860
2388
  }
1861
2389
  exports.StartServiceResponse = StartServiceResponse;
2390
+ class StartStressResponseBody extends $tea.Model {
2391
+ constructor(map) {
2392
+ super(map);
2393
+ }
2394
+ static names() {
2395
+ return {
2396
+ message: 'Message',
2397
+ requestId: 'RequestId',
2398
+ };
2399
+ }
2400
+ static types() {
2401
+ return {
2402
+ message: 'string',
2403
+ requestId: 'string',
2404
+ };
2405
+ }
2406
+ }
2407
+ exports.StartStressResponseBody = StartStressResponseBody;
2408
+ class StartStressResponse extends $tea.Model {
2409
+ constructor(map) {
2410
+ super(map);
2411
+ }
2412
+ static names() {
2413
+ return {
2414
+ headers: 'headers',
2415
+ statusCode: 'statusCode',
2416
+ body: 'body',
2417
+ };
2418
+ }
2419
+ static types() {
2420
+ return {
2421
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2422
+ statusCode: 'number',
2423
+ body: StartStressResponseBody,
2424
+ };
2425
+ }
2426
+ }
2427
+ exports.StartStressResponse = StartStressResponse;
2428
+ class StopBenchmarkTaskResponseBody extends $tea.Model {
2429
+ constructor(map) {
2430
+ super(map);
2431
+ }
2432
+ static names() {
2433
+ return {
2434
+ message: 'Message',
2435
+ requestId: 'RequestId',
2436
+ };
2437
+ }
2438
+ static types() {
2439
+ return {
2440
+ message: 'string',
2441
+ requestId: 'string',
2442
+ };
2443
+ }
2444
+ }
2445
+ exports.StopBenchmarkTaskResponseBody = StopBenchmarkTaskResponseBody;
2446
+ class StopBenchmarkTaskResponse extends $tea.Model {
2447
+ constructor(map) {
2448
+ super(map);
2449
+ }
2450
+ static names() {
2451
+ return {
2452
+ headers: 'headers',
2453
+ statusCode: 'statusCode',
2454
+ body: 'body',
2455
+ };
2456
+ }
2457
+ static types() {
2458
+ return {
2459
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2460
+ statusCode: 'number',
2461
+ body: StopBenchmarkTaskResponseBody,
2462
+ };
2463
+ }
2464
+ }
2465
+ exports.StopBenchmarkTaskResponse = StopBenchmarkTaskResponse;
1862
2466
  class StopServiceResponseBody extends $tea.Model {
1863
2467
  constructor(map) {
1864
2468
  super(map);
@@ -1884,17 +2488,113 @@ class StopServiceResponse extends $tea.Model {
1884
2488
  static names() {
1885
2489
  return {
1886
2490
  headers: 'headers',
2491
+ statusCode: 'statusCode',
1887
2492
  body: 'body',
1888
2493
  };
1889
2494
  }
1890
2495
  static types() {
1891
2496
  return {
1892
2497
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2498
+ statusCode: 'number',
1893
2499
  body: StopServiceResponseBody,
1894
2500
  };
1895
2501
  }
1896
2502
  }
1897
2503
  exports.StopServiceResponse = StopServiceResponse;
2504
+ class StopStressResponseBody extends $tea.Model {
2505
+ constructor(map) {
2506
+ super(map);
2507
+ }
2508
+ static names() {
2509
+ return {
2510
+ code: 'Code',
2511
+ message: 'Message',
2512
+ requestId: 'RequestId',
2513
+ };
2514
+ }
2515
+ static types() {
2516
+ return {
2517
+ code: 'number',
2518
+ message: 'string',
2519
+ requestId: 'string',
2520
+ };
2521
+ }
2522
+ }
2523
+ exports.StopStressResponseBody = StopStressResponseBody;
2524
+ class StopStressResponse extends $tea.Model {
2525
+ constructor(map) {
2526
+ super(map);
2527
+ }
2528
+ static names() {
2529
+ return {
2530
+ headers: 'headers',
2531
+ statusCode: 'statusCode',
2532
+ body: 'body',
2533
+ };
2534
+ }
2535
+ static types() {
2536
+ return {
2537
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2538
+ statusCode: 'number',
2539
+ body: StopStressResponseBody,
2540
+ };
2541
+ }
2542
+ }
2543
+ exports.StopStressResponse = StopStressResponse;
2544
+ class UpdateBenchmarkTaskRequest extends $tea.Model {
2545
+ constructor(map) {
2546
+ super(map);
2547
+ }
2548
+ static names() {
2549
+ return {
2550
+ body: 'body',
2551
+ };
2552
+ }
2553
+ static types() {
2554
+ return {
2555
+ body: 'string',
2556
+ };
2557
+ }
2558
+ }
2559
+ exports.UpdateBenchmarkTaskRequest = UpdateBenchmarkTaskRequest;
2560
+ class UpdateBenchmarkTaskResponseBody extends $tea.Model {
2561
+ constructor(map) {
2562
+ super(map);
2563
+ }
2564
+ static names() {
2565
+ return {
2566
+ message: 'Message',
2567
+ requestId: 'RequestId',
2568
+ };
2569
+ }
2570
+ static types() {
2571
+ return {
2572
+ message: 'string',
2573
+ requestId: 'string',
2574
+ };
2575
+ }
2576
+ }
2577
+ exports.UpdateBenchmarkTaskResponseBody = UpdateBenchmarkTaskResponseBody;
2578
+ class UpdateBenchmarkTaskResponse extends $tea.Model {
2579
+ constructor(map) {
2580
+ super(map);
2581
+ }
2582
+ static names() {
2583
+ return {
2584
+ headers: 'headers',
2585
+ statusCode: 'statusCode',
2586
+ body: 'body',
2587
+ };
2588
+ }
2589
+ static types() {
2590
+ return {
2591
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2592
+ statusCode: 'number',
2593
+ body: UpdateBenchmarkTaskResponseBody,
2594
+ };
2595
+ }
2596
+ }
2597
+ exports.UpdateBenchmarkTaskResponse = UpdateBenchmarkTaskResponse;
1898
2598
  class UpdateResourceRequest extends $tea.Model {
1899
2599
  constructor(map) {
1900
2600
  super(map);
@@ -1938,12 +2638,14 @@ class UpdateResourceResponse extends $tea.Model {
1938
2638
  static names() {
1939
2639
  return {
1940
2640
  headers: 'headers',
2641
+ statusCode: 'statusCode',
1941
2642
  body: 'body',
1942
2643
  };
1943
2644
  }
1944
2645
  static types() {
1945
2646
  return {
1946
2647
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2648
+ statusCode: 'number',
1947
2649
  body: UpdateResourceResponseBody,
1948
2650
  };
1949
2651
  }
@@ -1996,12 +2698,14 @@ class UpdateResourceDLinkResponse extends $tea.Model {
1996
2698
  static names() {
1997
2699
  return {
1998
2700
  headers: 'headers',
2701
+ statusCode: 'statusCode',
1999
2702
  body: 'body',
2000
2703
  };
2001
2704
  }
2002
2705
  static types() {
2003
2706
  return {
2004
2707
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2708
+ statusCode: 'number',
2005
2709
  body: UpdateResourceDLinkResponseBody,
2006
2710
  };
2007
2711
  }
@@ -2048,12 +2752,14 @@ class UpdateServiceResponse extends $tea.Model {
2048
2752
  static names() {
2049
2753
  return {
2050
2754
  headers: 'headers',
2755
+ statusCode: 'statusCode',
2051
2756
  body: 'body',
2052
2757
  };
2053
2758
  }
2054
2759
  static types() {
2055
2760
  return {
2056
2761
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2762
+ statusCode: 'number',
2057
2763
  body: UpdateServiceResponseBody,
2058
2764
  };
2059
2765
  }
@@ -2104,12 +2810,14 @@ class UpdateServiceAutoScalerResponse extends $tea.Model {
2104
2810
  static names() {
2105
2811
  return {
2106
2812
  headers: 'headers',
2813
+ statusCode: 'statusCode',
2107
2814
  body: 'body',
2108
2815
  };
2109
2816
  }
2110
2817
  static types() {
2111
2818
  return {
2112
2819
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2820
+ statusCode: 'number',
2113
2821
  body: UpdateServiceAutoScalerResponseBody,
2114
2822
  };
2115
2823
  }
@@ -2158,12 +2866,14 @@ class UpdateServiceCronScalerResponse extends $tea.Model {
2158
2866
  static names() {
2159
2867
  return {
2160
2868
  headers: 'headers',
2869
+ statusCode: 'statusCode',
2161
2870
  body: 'body',
2162
2871
  };
2163
2872
  }
2164
2873
  static types() {
2165
2874
  return {
2166
2875
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2876
+ statusCode: 'number',
2167
2877
  body: UpdateServiceCronScalerResponseBody,
2168
2878
  };
2169
2879
  }
@@ -2212,12 +2922,14 @@ class UpdateServiceMirrorResponse extends $tea.Model {
2212
2922
  static names() {
2213
2923
  return {
2214
2924
  headers: 'headers',
2925
+ statusCode: 'statusCode',
2215
2926
  body: 'body',
2216
2927
  };
2217
2928
  }
2218
2929
  static types() {
2219
2930
  return {
2220
2931
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2932
+ statusCode: 'number',
2221
2933
  body: UpdateServiceMirrorResponseBody,
2222
2934
  };
2223
2935
  }
@@ -2264,17 +2976,73 @@ class UpdateServiceVersionResponse extends $tea.Model {
2264
2976
  static names() {
2265
2977
  return {
2266
2978
  headers: 'headers',
2979
+ statusCode: 'statusCode',
2267
2980
  body: 'body',
2268
2981
  };
2269
2982
  }
2270
2983
  static types() {
2271
2984
  return {
2272
2985
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2986
+ statusCode: 'number',
2273
2987
  body: UpdateServiceVersionResponseBody,
2274
2988
  };
2275
2989
  }
2276
2990
  }
2277
2991
  exports.UpdateServiceVersionResponse = UpdateServiceVersionResponse;
2992
+ class UpdateStressRequest extends $tea.Model {
2993
+ constructor(map) {
2994
+ super(map);
2995
+ }
2996
+ static names() {
2997
+ return {
2998
+ body: 'body',
2999
+ };
3000
+ }
3001
+ static types() {
3002
+ return {
3003
+ body: 'string',
3004
+ };
3005
+ }
3006
+ }
3007
+ exports.UpdateStressRequest = UpdateStressRequest;
3008
+ class UpdateStressResponseBody extends $tea.Model {
3009
+ constructor(map) {
3010
+ super(map);
3011
+ }
3012
+ static names() {
3013
+ return {
3014
+ message: 'Message',
3015
+ requestId: 'RequestId',
3016
+ };
3017
+ }
3018
+ static types() {
3019
+ return {
3020
+ message: 'string',
3021
+ requestId: 'string',
3022
+ };
3023
+ }
3024
+ }
3025
+ exports.UpdateStressResponseBody = UpdateStressResponseBody;
3026
+ class UpdateStressResponse extends $tea.Model {
3027
+ constructor(map) {
3028
+ super(map);
3029
+ }
3030
+ static names() {
3031
+ return {
3032
+ headers: 'headers',
3033
+ statusCode: 'statusCode',
3034
+ body: 'body',
3035
+ };
3036
+ }
3037
+ static types() {
3038
+ return {
3039
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3040
+ statusCode: 'number',
3041
+ body: UpdateStressResponseBody,
3042
+ };
3043
+ }
3044
+ }
3045
+ exports.UpdateStressResponse = UpdateStressResponse;
2278
3046
  class CreateServiceAutoScalerRequestStrategies extends $tea.Model {
2279
3047
  constructor(map) {
2280
3048
  super(map);
@@ -2313,22 +3081,6 @@ class CreateServiceCronScalerRequestScaleJobs extends $tea.Model {
2313
3081
  }
2314
3082
  }
2315
3083
  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
3084
  class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
2333
3085
  constructor(map) {
2334
3086
  super(map);
@@ -2357,6 +3109,68 @@ class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
2357
3109
  }
2358
3110
  }
2359
3111
  exports.DescribeServiceCronScalerResponseBodyScaleJobs = DescribeServiceCronScalerResponseBodyScaleJobs;
3112
+ class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
3113
+ constructor(map) {
3114
+ super(map);
3115
+ }
3116
+ static names() {
3117
+ return {
3118
+ availableAgent: 'AvailableAgent',
3119
+ createTime: 'CreateTime',
3120
+ message: 'Message',
3121
+ region: 'Region',
3122
+ serviceName: 'ServiceName',
3123
+ status: 'Status',
3124
+ taskId: 'TaskId',
3125
+ taskName: 'TaskName',
3126
+ updateTime: 'UpdateTime',
3127
+ };
3128
+ }
3129
+ static types() {
3130
+ return {
3131
+ availableAgent: 'number',
3132
+ createTime: 'string',
3133
+ message: 'string',
3134
+ region: 'string',
3135
+ serviceName: 'string',
3136
+ status: 'string',
3137
+ taskId: 'string',
3138
+ taskName: 'string',
3139
+ updateTime: 'string',
3140
+ };
3141
+ }
3142
+ }
3143
+ exports.ListBenchmarkTaskResponseBodyTasks = ListBenchmarkTaskResponseBodyTasks;
3144
+ class ListStressesResponseBodyStresses extends $tea.Model {
3145
+ constructor(map) {
3146
+ super(map);
3147
+ }
3148
+ static names() {
3149
+ return {
3150
+ availableAgent: 'AvailableAgent',
3151
+ createTime: 'CreateTime',
3152
+ message: 'Message',
3153
+ region: 'Region',
3154
+ serviceName: 'ServiceName',
3155
+ status: 'Status',
3156
+ stressName: 'StressName',
3157
+ updateTime: 'UpdateTime',
3158
+ };
3159
+ }
3160
+ static types() {
3161
+ return {
3162
+ availableAgent: 'number',
3163
+ createTime: 'string',
3164
+ message: 'string',
3165
+ region: 'string',
3166
+ serviceName: 'string',
3167
+ status: 'string',
3168
+ stressName: 'string',
3169
+ updateTime: 'string',
3170
+ };
3171
+ }
3172
+ }
3173
+ exports.ListStressesResponseBodyStresses = ListStressesResponseBodyStresses;
2360
3174
  class UpdateServiceAutoScalerRequestStrategies extends $tea.Model {
2361
3175
  constructor(map) {
2362
3176
  super(map);
@@ -2428,6 +3242,30 @@ class Client extends openapi_client_1.default {
2428
3242
  }
2429
3243
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
2430
3244
  }
3245
+ async createBenchmarkTask(request) {
3246
+ let runtime = new $Util.RuntimeOptions({});
3247
+ let headers = {};
3248
+ return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
3249
+ }
3250
+ async createBenchmarkTaskWithOptions(request, headers, runtime) {
3251
+ tea_util_1.default.validateModel(request);
3252
+ let req = new $OpenApi.OpenApiRequest({
3253
+ headers: headers,
3254
+ body: request.body,
3255
+ });
3256
+ let params = new $OpenApi.Params({
3257
+ action: "CreateBenchmarkTask",
3258
+ version: "2021-07-01",
3259
+ protocol: "HTTPS",
3260
+ pathname: `/api/v2/benchmark-tasks`,
3261
+ method: "POST",
3262
+ authType: "AK",
3263
+ style: "ROA",
3264
+ reqBodyType: "json",
3265
+ bodyType: "json",
3266
+ });
3267
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateBenchmarkTaskResponse({}));
3268
+ }
2431
3269
  async createResource(request) {
2432
3270
  let runtime = new $Util.RuntimeOptions({});
2433
3271
  let headers = {};
@@ -2666,6 +3504,54 @@ class Client extends openapi_client_1.default {
2666
3504
  });
2667
3505
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceMirrorResponse({}));
2668
3506
  }
3507
+ async createStress(request) {
3508
+ let runtime = new $Util.RuntimeOptions({});
3509
+ let headers = {};
3510
+ return await this.createStressWithOptions(request, headers, runtime);
3511
+ }
3512
+ async createStressWithOptions(request, headers, runtime) {
3513
+ tea_util_1.default.validateModel(request);
3514
+ let req = new $OpenApi.OpenApiRequest({
3515
+ headers: headers,
3516
+ body: request.body,
3517
+ });
3518
+ let params = new $OpenApi.Params({
3519
+ action: "CreateStress",
3520
+ version: "2021-07-01",
3521
+ protocol: "HTTPS",
3522
+ pathname: `/api/v2/stress`,
3523
+ method: "POST",
3524
+ authType: "AK",
3525
+ style: "ROA",
3526
+ reqBodyType: "json",
3527
+ bodyType: "json",
3528
+ });
3529
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateStressResponse({}));
3530
+ }
3531
+ async deleteBenchmarkTask(ClusterId, TaskName) {
3532
+ let runtime = new $Util.RuntimeOptions({});
3533
+ let headers = {};
3534
+ return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3535
+ }
3536
+ async deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3537
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3538
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
3539
+ let req = new $OpenApi.OpenApiRequest({
3540
+ headers: headers,
3541
+ });
3542
+ let params = new $OpenApi.Params({
3543
+ action: "DeleteBenchmarkTask",
3544
+ version: "2021-07-01",
3545
+ protocol: "HTTPS",
3546
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}`,
3547
+ method: "DELETE",
3548
+ authType: "AK",
3549
+ style: "ROA",
3550
+ reqBodyType: "json",
3551
+ bodyType: "json",
3552
+ });
3553
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteBenchmarkTaskResponse({}));
3554
+ }
2669
3555
  async deleteResource(ClusterId, ResourceId) {
2670
3556
  let runtime = new $Util.RuntimeOptions({});
2671
3557
  let headers = {};
@@ -2897,27 +3783,77 @@ class Client extends openapi_client_1.default {
2897
3783
  });
2898
3784
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceMirrorResponse({}));
2899
3785
  }
2900
- async describeRegions() {
3786
+ async deleteStress(ClusterId, StressName) {
3787
+ let runtime = new $Util.RuntimeOptions({});
3788
+ let headers = {};
3789
+ return await this.deleteStressWithOptions(ClusterId, StressName, headers, runtime);
3790
+ }
3791
+ async deleteStressWithOptions(ClusterId, StressName, headers, runtime) {
3792
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3793
+ StressName = openapi_util_1.default.getEncodeParam(StressName);
3794
+ let req = new $OpenApi.OpenApiRequest({
3795
+ headers: headers,
3796
+ });
3797
+ let params = new $OpenApi.Params({
3798
+ action: "DeleteStress",
3799
+ version: "2021-07-01",
3800
+ protocol: "HTTPS",
3801
+ pathname: `/api/v2/stress/${ClusterId}/${StressName}`,
3802
+ method: "DELETE",
3803
+ authType: "AK",
3804
+ style: "ROA",
3805
+ reqBodyType: "json",
3806
+ bodyType: "json",
3807
+ });
3808
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteStressResponse({}));
3809
+ }
3810
+ async describeBenchmarkTask(ClusterId, TaskName) {
2901
3811
  let runtime = new $Util.RuntimeOptions({});
2902
3812
  let headers = {};
2903
- return await this.describeRegionsWithOptions(headers, runtime);
3813
+ return await this.describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
2904
3814
  }
2905
- async describeRegionsWithOptions(headers, runtime) {
3815
+ async describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3816
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3817
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
3818
+ let req = new $OpenApi.OpenApiRequest({
3819
+ headers: headers,
3820
+ });
3821
+ let params = new $OpenApi.Params({
3822
+ action: "DescribeBenchmarkTask",
3823
+ version: "2021-07-01",
3824
+ protocol: "HTTPS",
3825
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}`,
3826
+ method: "GET",
3827
+ authType: "AK",
3828
+ style: "ROA",
3829
+ reqBodyType: "json",
3830
+ bodyType: "json",
3831
+ });
3832
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskResponse({}));
3833
+ }
3834
+ async describeBenchmarkTaskReport(ClusterId, TaskName) {
3835
+ let runtime = new $Util.RuntimeOptions({});
3836
+ let headers = {};
3837
+ return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, headers, runtime);
3838
+ }
3839
+ async describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, headers, runtime) {
3840
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3841
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
2906
3842
  let req = new $OpenApi.OpenApiRequest({
2907
3843
  headers: headers,
2908
3844
  });
2909
3845
  let params = new $OpenApi.Params({
2910
- action: "DescribeRegions",
3846
+ action: "DescribeBenchmarkTaskReport",
2911
3847
  version: "2021-07-01",
2912
3848
  protocol: "HTTPS",
2913
- pathname: `/api/v2/regions`,
3849
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}/report`,
2914
3850
  method: "GET",
2915
3851
  authType: "AK",
2916
3852
  style: "ROA",
2917
3853
  reqBodyType: "json",
2918
3854
  bodyType: "json",
2919
3855
  });
2920
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeRegionsResponse({}));
3856
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskReportResponse({}));
2921
3857
  }
2922
3858
  async describeResource(ClusterId, ResourceId) {
2923
3859
  let runtime = new $Util.RuntimeOptions({});
@@ -3132,6 +4068,52 @@ class Client extends openapi_client_1.default {
3132
4068
  });
3133
4069
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
3134
4070
  }
4071
+ async describeStress(ClusterId, StressName) {
4072
+ let runtime = new $Util.RuntimeOptions({});
4073
+ let headers = {};
4074
+ return await this.describeStressWithOptions(ClusterId, StressName, headers, runtime);
4075
+ }
4076
+ async describeStressWithOptions(ClusterId, StressName, headers, runtime) {
4077
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
4078
+ StressName = openapi_util_1.default.getEncodeParam(StressName);
4079
+ let req = new $OpenApi.OpenApiRequest({
4080
+ headers: headers,
4081
+ });
4082
+ let params = new $OpenApi.Params({
4083
+ action: "DescribeStress",
4084
+ version: "2021-07-01",
4085
+ protocol: "HTTPS",
4086
+ pathname: `/api/v2/stress/${ClusterId}/${StressName}`,
4087
+ method: "GET",
4088
+ authType: "AK",
4089
+ style: "ROA",
4090
+ reqBodyType: "json",
4091
+ bodyType: "json",
4092
+ });
4093
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeStressResponse({}));
4094
+ }
4095
+ async listBenchmarkTask() {
4096
+ let runtime = new $Util.RuntimeOptions({});
4097
+ let headers = {};
4098
+ return await this.listBenchmarkTaskWithOptions(headers, runtime);
4099
+ }
4100
+ async listBenchmarkTaskWithOptions(headers, runtime) {
4101
+ let req = new $OpenApi.OpenApiRequest({
4102
+ headers: headers,
4103
+ });
4104
+ let params = new $OpenApi.Params({
4105
+ action: "ListBenchmarkTask",
4106
+ version: "2021-07-01",
4107
+ protocol: "HTTPS",
4108
+ pathname: `/api/v2/benchmark-tasks`,
4109
+ method: "GET",
4110
+ authType: "AK",
4111
+ style: "ROA",
4112
+ reqBodyType: "json",
4113
+ bodyType: "json",
4114
+ });
4115
+ return $tea.cast(await this.callApi(params, req, runtime), new ListBenchmarkTaskResponse({}));
4116
+ }
3135
4117
  async listResourceInstanceWorker(ClusterId, ResourceId, InstanceName, request) {
3136
4118
  let runtime = new $Util.RuntimeOptions({});
3137
4119
  let headers = {};
@@ -3176,6 +4158,9 @@ class Client extends openapi_client_1.default {
3176
4158
  ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
3177
4159
  ResourceId = openapi_util_1.default.getEncodeParam(ResourceId);
3178
4160
  let query = {};
4161
+ if (!tea_util_1.default.isUnset(request.chargeType)) {
4162
+ query["ChargeType"] = request.chargeType;
4163
+ }
3179
4164
  if (!tea_util_1.default.isUnset(request.pageNumber)) {
3180
4165
  query["PageNumber"] = request.pageNumber;
3181
4166
  }
@@ -3336,6 +4321,28 @@ class Client extends openapi_client_1.default {
3336
4321
  });
3337
4322
  return $tea.cast(await this.callApi(params, req, runtime), new ListServicesResponse({}));
3338
4323
  }
4324
+ async listStresses() {
4325
+ let runtime = new $Util.RuntimeOptions({});
4326
+ let headers = {};
4327
+ return await this.listStressesWithOptions(headers, runtime);
4328
+ }
4329
+ async listStressesWithOptions(headers, runtime) {
4330
+ let req = new $OpenApi.OpenApiRequest({
4331
+ headers: headers,
4332
+ });
4333
+ let params = new $OpenApi.Params({
4334
+ action: "ListStresses",
4335
+ version: "2021-07-01",
4336
+ protocol: "HTTPS",
4337
+ pathname: `/api/v2/stress`,
4338
+ method: "GET",
4339
+ authType: "AK",
4340
+ style: "ROA",
4341
+ reqBodyType: "json",
4342
+ bodyType: "json",
4343
+ });
4344
+ return $tea.cast(await this.callApi(params, req, runtime), new ListStressesResponse({}));
4345
+ }
3339
4346
  async releaseService(ClusterId, ServiceName, request) {
3340
4347
  let runtime = new $Util.RuntimeOptions({});
3341
4348
  let headers = {};
@@ -3366,6 +4373,54 @@ class Client extends openapi_client_1.default {
3366
4373
  });
3367
4374
  return $tea.cast(await this.callApi(params, req, runtime), new ReleaseServiceResponse({}));
3368
4375
  }
4376
+ async reportStress(ClusterId, StressName) {
4377
+ let runtime = new $Util.RuntimeOptions({});
4378
+ let headers = {};
4379
+ return await this.reportStressWithOptions(ClusterId, StressName, headers, runtime);
4380
+ }
4381
+ async reportStressWithOptions(ClusterId, StressName, headers, runtime) {
4382
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
4383
+ StressName = openapi_util_1.default.getEncodeParam(StressName);
4384
+ let req = new $OpenApi.OpenApiRequest({
4385
+ headers: headers,
4386
+ });
4387
+ let params = new $OpenApi.Params({
4388
+ action: "ReportStress",
4389
+ version: "2021-07-01",
4390
+ protocol: "HTTPS",
4391
+ pathname: `/api/v2/stress/${ClusterId}/${StressName}/report`,
4392
+ method: "GET",
4393
+ authType: "AK",
4394
+ style: "ROA",
4395
+ reqBodyType: "json",
4396
+ bodyType: "json",
4397
+ });
4398
+ return $tea.cast(await this.callApi(params, req, runtime), new ReportStressResponse({}));
4399
+ }
4400
+ async startBenchmarkTask(ClusterId, TaskName) {
4401
+ let runtime = new $Util.RuntimeOptions({});
4402
+ let headers = {};
4403
+ return await this.startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4404
+ }
4405
+ async startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
4406
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
4407
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
4408
+ let req = new $OpenApi.OpenApiRequest({
4409
+ headers: headers,
4410
+ });
4411
+ let params = new $OpenApi.Params({
4412
+ action: "StartBenchmarkTask",
4413
+ version: "2021-07-01",
4414
+ protocol: "HTTPS",
4415
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}/start`,
4416
+ method: "PUT",
4417
+ authType: "AK",
4418
+ style: "ROA",
4419
+ reqBodyType: "json",
4420
+ bodyType: "json",
4421
+ });
4422
+ return $tea.cast(await this.callApi(params, req, runtime), new StartBenchmarkTaskResponse({}));
4423
+ }
3369
4424
  async startService(ClusterId, ServiceName) {
3370
4425
  let runtime = new $Util.RuntimeOptions({});
3371
4426
  let headers = {};
@@ -3390,6 +4445,54 @@ class Client extends openapi_client_1.default {
3390
4445
  });
3391
4446
  return $tea.cast(await this.callApi(params, req, runtime), new StartServiceResponse({}));
3392
4447
  }
4448
+ async startStress(ClusterId, StressName) {
4449
+ let runtime = new $Util.RuntimeOptions({});
4450
+ let headers = {};
4451
+ return await this.startStressWithOptions(ClusterId, StressName, headers, runtime);
4452
+ }
4453
+ async startStressWithOptions(ClusterId, StressName, headers, runtime) {
4454
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
4455
+ StressName = openapi_util_1.default.getEncodeParam(StressName);
4456
+ let req = new $OpenApi.OpenApiRequest({
4457
+ headers: headers,
4458
+ });
4459
+ let params = new $OpenApi.Params({
4460
+ action: "StartStress",
4461
+ version: "2021-07-01",
4462
+ protocol: "HTTPS",
4463
+ pathname: `/api/v2/stress/${ClusterId}/${StressName}/start`,
4464
+ method: "PUT",
4465
+ authType: "AK",
4466
+ style: "ROA",
4467
+ reqBodyType: "json",
4468
+ bodyType: "json",
4469
+ });
4470
+ return $tea.cast(await this.callApi(params, req, runtime), new StartStressResponse({}));
4471
+ }
4472
+ async stopBenchmarkTask(ClusterId, TaskName) {
4473
+ let runtime = new $Util.RuntimeOptions({});
4474
+ let headers = {};
4475
+ return await this.stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4476
+ }
4477
+ async stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
4478
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
4479
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
4480
+ let req = new $OpenApi.OpenApiRequest({
4481
+ headers: headers,
4482
+ });
4483
+ let params = new $OpenApi.Params({
4484
+ action: "StopBenchmarkTask",
4485
+ version: "2021-07-01",
4486
+ protocol: "HTTPS",
4487
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}/stop`,
4488
+ method: "PUT",
4489
+ authType: "AK",
4490
+ style: "ROA",
4491
+ reqBodyType: "json",
4492
+ bodyType: "json",
4493
+ });
4494
+ return $tea.cast(await this.callApi(params, req, runtime), new StopBenchmarkTaskResponse({}));
4495
+ }
3393
4496
  async stopService(ClusterId, ServiceName) {
3394
4497
  let runtime = new $Util.RuntimeOptions({});
3395
4498
  let headers = {};
@@ -3414,6 +4517,56 @@ class Client extends openapi_client_1.default {
3414
4517
  });
3415
4518
  return $tea.cast(await this.callApi(params, req, runtime), new StopServiceResponse({}));
3416
4519
  }
4520
+ async stopStress(ClusterId, StressName) {
4521
+ let runtime = new $Util.RuntimeOptions({});
4522
+ let headers = {};
4523
+ return await this.stopStressWithOptions(ClusterId, StressName, headers, runtime);
4524
+ }
4525
+ async stopStressWithOptions(ClusterId, StressName, headers, runtime) {
4526
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
4527
+ StressName = openapi_util_1.default.getEncodeParam(StressName);
4528
+ let req = new $OpenApi.OpenApiRequest({
4529
+ headers: headers,
4530
+ });
4531
+ let params = new $OpenApi.Params({
4532
+ action: "StopStress",
4533
+ version: "2021-07-01",
4534
+ protocol: "HTTPS",
4535
+ pathname: `/api/v2/stress/${ClusterId}/${StressName}/stop`,
4536
+ method: "PUT",
4537
+ authType: "AK",
4538
+ style: "ROA",
4539
+ reqBodyType: "json",
4540
+ bodyType: "json",
4541
+ });
4542
+ return $tea.cast(await this.callApi(params, req, runtime), new StopStressResponse({}));
4543
+ }
4544
+ async updateBenchmarkTask(ClusterId, TaskName, request) {
4545
+ let runtime = new $Util.RuntimeOptions({});
4546
+ let headers = {};
4547
+ return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
4548
+ }
4549
+ async updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime) {
4550
+ tea_util_1.default.validateModel(request);
4551
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
4552
+ TaskName = openapi_util_1.default.getEncodeParam(TaskName);
4553
+ let req = new $OpenApi.OpenApiRequest({
4554
+ headers: headers,
4555
+ body: request.body,
4556
+ });
4557
+ let params = new $OpenApi.Params({
4558
+ action: "UpdateBenchmarkTask",
4559
+ version: "2021-07-01",
4560
+ protocol: "HTTPS",
4561
+ pathname: `/api/v2/benchmark-tasks/${ClusterId}/${TaskName}`,
4562
+ method: "PUT",
4563
+ authType: "AK",
4564
+ style: "ROA",
4565
+ reqBodyType: "json",
4566
+ bodyType: "json",
4567
+ });
4568
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateBenchmarkTaskResponse({}));
4569
+ }
3417
4570
  async updateResource(ClusterId, ResourceId, request) {
3418
4571
  let runtime = new $Util.RuntimeOptions({});
3419
4572
  let headers = {};
@@ -3641,6 +4794,32 @@ class Client extends openapi_client_1.default {
3641
4794
  });
3642
4795
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceVersionResponse({}));
3643
4796
  }
4797
+ async updateStress(ClusterId, StressName, request) {
4798
+ let runtime = new $Util.RuntimeOptions({});
4799
+ let headers = {};
4800
+ return await this.updateStressWithOptions(ClusterId, StressName, request, headers, runtime);
4801
+ }
4802
+ async updateStressWithOptions(ClusterId, StressName, request, headers, runtime) {
4803
+ tea_util_1.default.validateModel(request);
4804
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
4805
+ StressName = openapi_util_1.default.getEncodeParam(StressName);
4806
+ let req = new $OpenApi.OpenApiRequest({
4807
+ headers: headers,
4808
+ body: request.body,
4809
+ });
4810
+ let params = new $OpenApi.Params({
4811
+ action: "UpdateStress",
4812
+ version: "2021-07-01",
4813
+ protocol: "HTTPS",
4814
+ pathname: `/api/v2/stress/${ClusterId}/${StressName}`,
4815
+ method: "PUT",
4816
+ authType: "AK",
4817
+ style: "ROA",
4818
+ reqBodyType: "json",
4819
+ bodyType: "json",
4820
+ });
4821
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateStressResponse({}));
4822
+ }
3644
4823
  }
3645
4824
  exports.default = Client;
3646
4825
  //# sourceMappingURL=client.js.map