@alicloud/eas20210701 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -19,6 +19,42 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
19
19
  const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
20
20
  const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
21
21
  const $tea = __importStar(require("@alicloud/tea-typescript"));
22
+ class ContainerInfo extends $tea.Model {
23
+ constructor(map) {
24
+ super(map);
25
+ }
26
+ static names() {
27
+ return {
28
+ currentReaon: 'CurrentReaon',
29
+ currentStatus: 'CurrentStatus',
30
+ currentTimestamp: 'CurrentTimestamp',
31
+ image: 'Image',
32
+ lastReason: 'LastReason',
33
+ lastStatus: 'LastStatus',
34
+ lastTimestamp: 'LastTimestamp',
35
+ name: 'Name',
36
+ port: 'Port',
37
+ ready: 'Ready',
38
+ restartCount: 'RestartCount',
39
+ };
40
+ }
41
+ static types() {
42
+ return {
43
+ currentReaon: 'string',
44
+ currentStatus: 'string',
45
+ currentTimestamp: 'string',
46
+ image: 'string',
47
+ lastReason: 'string',
48
+ lastStatus: 'string',
49
+ lastTimestamp: 'string',
50
+ name: 'string',
51
+ port: 'number',
52
+ ready: 'boolean',
53
+ restartCount: 'number',
54
+ };
55
+ }
56
+ }
57
+ exports.ContainerInfo = ContainerInfo;
22
58
  class Group extends $tea.Model {
23
59
  constructor(map) {
24
60
  super(map);
@@ -55,35 +91,49 @@ class Instance extends $tea.Model {
55
91
  }
56
92
  static names() {
57
93
  return {
94
+ currentAmount: 'CurrentAmount',
58
95
  hostIP: 'HostIP',
59
96
  hostName: 'HostName',
60
97
  innerIP: 'InnerIP',
61
98
  instanceName: 'InstanceName',
62
99
  instancePort: 'InstancePort',
100
+ isSpot: 'IsSpot',
63
101
  lastState: 'LastState',
64
102
  namespace: 'Namespace',
103
+ originalAmount: 'OriginalAmount',
65
104
  readyProcesses: 'ReadyProcesses',
66
105
  reason: 'Reason',
106
+ resourceType: 'ResourceType',
67
107
  restartCount: 'RestartCount',
108
+ role: 'Role',
68
109
  startAt: 'StartAt',
69
110
  status: 'Status',
111
+ tenantHostIP: 'TenantHostIP',
112
+ tenantInstanceIP: 'TenantInstanceIP',
70
113
  totalProcesses: 'TotalProcesses',
71
114
  };
72
115
  }
73
116
  static types() {
74
117
  return {
118
+ currentAmount: 'number',
75
119
  hostIP: 'string',
76
120
  hostName: 'string',
77
121
  innerIP: 'string',
78
122
  instanceName: 'string',
79
123
  instancePort: 'number',
124
+ isSpot: 'boolean',
80
125
  lastState: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
81
126
  namespace: 'string',
127
+ originalAmount: 'number',
82
128
  readyProcesses: 'number',
83
129
  reason: 'string',
130
+ resourceType: 'string',
84
131
  restartCount: 'number',
132
+ role: 'string',
85
133
  startAt: 'string',
86
134
  status: 'string',
135
+ tenantHostIP: 'string',
136
+ tenantInstanceIP: 'string',
87
137
  totalProcesses: 'number',
88
138
  };
89
139
  }
@@ -148,11 +198,15 @@ class ResourceInstance extends $tea.Model {
148
198
  instanceMemory: 'InstanceMemory',
149
199
  instanceName: 'InstanceName',
150
200
  instanceStatus: 'InstanceStatus',
201
+ instanceSystemDiskSize: 'InstanceSystemDiskSize',
202
+ instanceTenantIp: 'InstanceTenantIp',
151
203
  instanceType: 'InstanceType',
152
204
  instanceUsedCpu: 'InstanceUsedCpu',
153
205
  instanceUsedGpu: 'InstanceUsedGpu',
206
+ instanceUsedGpuMemory: 'InstanceUsedGpuMemory',
154
207
  instanceUsedMemory: 'InstanceUsedMemory',
155
208
  region: 'Region',
209
+ resourceId: 'ResourceId',
156
210
  zone: 'Zone',
157
211
  };
158
212
  }
@@ -171,11 +225,15 @@ class ResourceInstance extends $tea.Model {
171
225
  instanceMemory: 'string',
172
226
  instanceName: 'string',
173
227
  instanceStatus: 'string',
228
+ instanceSystemDiskSize: 'number',
229
+ instanceTenantIp: 'string',
174
230
  instanceType: 'string',
175
231
  instanceUsedCpu: 'number',
176
232
  instanceUsedGpu: 'number',
233
+ instanceUsedGpuMemory: 'string',
177
234
  instanceUsedMemory: 'string',
178
235
  region: 'string',
236
+ resourceId: 'string',
179
237
  zone: 'string',
180
238
  };
181
239
  }
@@ -235,6 +293,7 @@ class Service extends $tea.Model {
235
293
  image: 'Image',
236
294
  internetEndpoint: 'InternetEndpoint',
237
295
  intranetEndpoint: 'IntranetEndpoint',
296
+ labels: 'Labels',
238
297
  latestVersion: 'LatestVersion',
239
298
  memory: 'Memory',
240
299
  message: 'Message',
@@ -274,6 +333,7 @@ class Service extends $tea.Model {
274
333
  image: 'string',
275
334
  internetEndpoint: 'string',
276
335
  intranetEndpoint: 'string',
336
+ labels: { 'type': 'array', 'itemType': ServiceLabels },
277
337
  latestVersion: 'number',
278
338
  memory: 'number',
279
339
  message: 'string',
@@ -303,6 +363,44 @@ class Service extends $tea.Model {
303
363
  }
304
364
  }
305
365
  exports.Service = Service;
366
+ class CommitServiceResponseBody extends $tea.Model {
367
+ constructor(map) {
368
+ super(map);
369
+ }
370
+ static names() {
371
+ return {
372
+ message: 'Message',
373
+ requestId: 'RequestId',
374
+ };
375
+ }
376
+ static types() {
377
+ return {
378
+ message: 'string',
379
+ requestId: 'string',
380
+ };
381
+ }
382
+ }
383
+ exports.CommitServiceResponseBody = CommitServiceResponseBody;
384
+ class CommitServiceResponse extends $tea.Model {
385
+ constructor(map) {
386
+ super(map);
387
+ }
388
+ static names() {
389
+ return {
390
+ headers: 'headers',
391
+ statusCode: 'statusCode',
392
+ body: 'body',
393
+ };
394
+ }
395
+ static types() {
396
+ return {
397
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
398
+ statusCode: 'number',
399
+ body: CommitServiceResponseBody,
400
+ };
401
+ }
402
+ }
403
+ exports.CommitServiceResponse = CommitServiceResponse;
306
404
  class CreateBenchmarkTaskRequest extends $tea.Model {
307
405
  constructor(map) {
308
406
  super(map);
@@ -371,6 +469,8 @@ class CreateResourceRequest extends $tea.Model {
371
469
  chargeType: 'ChargeType',
372
470
  ecsInstanceCount: 'EcsInstanceCount',
373
471
  ecsInstanceType: 'EcsInstanceType',
472
+ systemDiskSize: 'SystemDiskSize',
473
+ zone: 'Zone',
374
474
  };
375
475
  }
376
476
  static types() {
@@ -379,6 +479,8 @@ class CreateResourceRequest extends $tea.Model {
379
479
  chargeType: 'string',
380
480
  ecsInstanceCount: 'number',
381
481
  ecsInstanceType: 'string',
482
+ systemDiskSize: 'number',
483
+ zone: 'string',
382
484
  };
383
485
  }
384
486
  }
@@ -390,6 +492,7 @@ class CreateResourceResponseBody extends $tea.Model {
390
492
  static names() {
391
493
  return {
392
494
  clusterId: 'ClusterId',
495
+ instanceIds: 'InstanceIds',
393
496
  ownerUid: 'OwnerUid',
394
497
  requestId: 'RequestId',
395
498
  resourceId: 'ResourceId',
@@ -399,6 +502,7 @@ class CreateResourceResponseBody extends $tea.Model {
399
502
  static types() {
400
503
  return {
401
504
  clusterId: 'string',
505
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
402
506
  ownerUid: 'string',
403
507
  requestId: 'string',
404
508
  resourceId: 'string',
@@ -437,7 +541,9 @@ class CreateResourceInstancesRequest extends $tea.Model {
437
541
  chargeType: 'ChargeType',
438
542
  ecsInstanceCount: 'EcsInstanceCount',
439
543
  ecsInstanceType: 'EcsInstanceType',
544
+ systemDiskSize: 'SystemDiskSize',
440
545
  userData: 'UserData',
546
+ zone: 'Zone',
441
547
  };
442
548
  }
443
549
  static types() {
@@ -446,7 +552,9 @@ class CreateResourceInstancesRequest extends $tea.Model {
446
552
  chargeType: 'string',
447
553
  ecsInstanceCount: 'number',
448
554
  ecsInstanceType: 'string',
555
+ systemDiskSize: 'number',
449
556
  userData: 'string',
557
+ zone: 'string',
450
558
  };
451
559
  }
452
560
  }
@@ -457,12 +565,14 @@ class CreateResourceInstancesResponseBody extends $tea.Model {
457
565
  }
458
566
  static names() {
459
567
  return {
568
+ instanceIds: 'InstanceIds',
460
569
  message: 'Message',
461
570
  requestId: 'RequestId',
462
571
  };
463
572
  }
464
573
  static types() {
465
574
  return {
575
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
466
576
  message: 'string',
467
577
  requestId: 'string',
468
578
  };
@@ -551,16 +661,40 @@ class CreateServiceRequest extends $tea.Model {
551
661
  }
552
662
  static names() {
553
663
  return {
664
+ develop: 'Develop',
665
+ labels: 'Labels',
554
666
  body: 'body',
555
667
  };
556
668
  }
557
669
  static types() {
558
670
  return {
671
+ develop: 'string',
672
+ labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
559
673
  body: 'string',
560
674
  };
561
675
  }
562
676
  }
563
677
  exports.CreateServiceRequest = CreateServiceRequest;
678
+ class CreateServiceShrinkRequest extends $tea.Model {
679
+ constructor(map) {
680
+ super(map);
681
+ }
682
+ static names() {
683
+ return {
684
+ develop: 'Develop',
685
+ labelsShrink: 'Labels',
686
+ body: 'body',
687
+ };
688
+ }
689
+ static types() {
690
+ return {
691
+ develop: 'string',
692
+ labelsShrink: 'string',
693
+ body: 'string',
694
+ };
695
+ }
696
+ }
697
+ exports.CreateServiceShrinkRequest = CreateServiceShrinkRequest;
564
698
  class CreateServiceResponseBody extends $tea.Model {
565
699
  constructor(map) {
566
700
  super(map);
@@ -615,6 +749,7 @@ class CreateServiceAutoScalerRequest extends $tea.Model {
615
749
  }
616
750
  static names() {
617
751
  return {
752
+ behavior: 'behavior',
618
753
  max: 'max',
619
754
  min: 'min',
620
755
  scaleStrategies: 'scaleStrategies',
@@ -622,6 +757,7 @@ class CreateServiceAutoScalerRequest extends $tea.Model {
622
757
  }
623
758
  static types() {
624
759
  return {
760
+ behavior: CreateServiceAutoScalerRequestBehavior,
625
761
  max: 'number',
626
762
  min: 'number',
627
763
  scaleStrategies: { 'type': 'array', 'itemType': CreateServiceAutoScalerRequestScaleStrategies },
@@ -1155,6 +1291,76 @@ class DeleteServiceInstancesResponse extends $tea.Model {
1155
1291
  }
1156
1292
  }
1157
1293
  exports.DeleteServiceInstancesResponse = DeleteServiceInstancesResponse;
1294
+ class DeleteServiceLabelRequest extends $tea.Model {
1295
+ constructor(map) {
1296
+ super(map);
1297
+ }
1298
+ static names() {
1299
+ return {
1300
+ keys: 'Keys',
1301
+ };
1302
+ }
1303
+ static types() {
1304
+ return {
1305
+ keys: { 'type': 'array', 'itemType': 'string' },
1306
+ };
1307
+ }
1308
+ }
1309
+ exports.DeleteServiceLabelRequest = DeleteServiceLabelRequest;
1310
+ class DeleteServiceLabelShrinkRequest extends $tea.Model {
1311
+ constructor(map) {
1312
+ super(map);
1313
+ }
1314
+ static names() {
1315
+ return {
1316
+ keysShrink: 'Keys',
1317
+ };
1318
+ }
1319
+ static types() {
1320
+ return {
1321
+ keysShrink: 'string',
1322
+ };
1323
+ }
1324
+ }
1325
+ exports.DeleteServiceLabelShrinkRequest = DeleteServiceLabelShrinkRequest;
1326
+ class DeleteServiceLabelResponseBody extends $tea.Model {
1327
+ constructor(map) {
1328
+ super(map);
1329
+ }
1330
+ static names() {
1331
+ return {
1332
+ message: 'Message',
1333
+ requestId: 'RequestId',
1334
+ };
1335
+ }
1336
+ static types() {
1337
+ return {
1338
+ message: 'string',
1339
+ requestId: 'string',
1340
+ };
1341
+ }
1342
+ }
1343
+ exports.DeleteServiceLabelResponseBody = DeleteServiceLabelResponseBody;
1344
+ class DeleteServiceLabelResponse extends $tea.Model {
1345
+ constructor(map) {
1346
+ super(map);
1347
+ }
1348
+ static names() {
1349
+ return {
1350
+ headers: 'headers',
1351
+ statusCode: 'statusCode',
1352
+ body: 'body',
1353
+ };
1354
+ }
1355
+ static types() {
1356
+ return {
1357
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1358
+ statusCode: 'number',
1359
+ body: DeleteServiceLabelResponseBody,
1360
+ };
1361
+ }
1362
+ }
1363
+ exports.DeleteServiceLabelResponse = DeleteServiceLabelResponse;
1158
1364
  class DeleteServiceMirrorResponseBody extends $tea.Model {
1159
1365
  constructor(map) {
1160
1366
  super(map);
@@ -1600,6 +1806,8 @@ class DescribeServiceEventRequest extends $tea.Model {
1600
1806
  static names() {
1601
1807
  return {
1602
1808
  endTime: 'EndTime',
1809
+ eventType: 'EventType',
1810
+ instanceName: 'InstanceName',
1603
1811
  pageNum: 'PageNum',
1604
1812
  pageSize: 'PageSize',
1605
1813
  startTime: 'StartTime',
@@ -1608,6 +1816,8 @@ class DescribeServiceEventRequest extends $tea.Model {
1608
1816
  static types() {
1609
1817
  return {
1610
1818
  endTime: 'string',
1819
+ eventType: 'string',
1820
+ instanceName: 'string',
1611
1821
  pageNum: 'string',
1612
1822
  pageSize: 'string',
1613
1823
  startTime: 'string',
@@ -1665,21 +1875,27 @@ class DescribeServiceLogRequest extends $tea.Model {
1665
1875
  }
1666
1876
  static names() {
1667
1877
  return {
1878
+ containerName: 'ContainerName',
1668
1879
  endTime: 'EndTime',
1880
+ instanceName: 'InstanceName',
1669
1881
  ip: 'Ip',
1670
1882
  keyword: 'Keyword',
1671
1883
  pageNum: 'PageNum',
1672
1884
  pageSize: 'PageSize',
1885
+ previous: 'Previous',
1673
1886
  startTime: 'StartTime',
1674
1887
  };
1675
1888
  }
1676
1889
  static types() {
1677
1890
  return {
1891
+ containerName: 'string',
1678
1892
  endTime: 'string',
1893
+ instanceName: 'string',
1679
1894
  ip: 'string',
1680
1895
  keyword: 'string',
1681
1896
  pageNum: 'number',
1682
1897
  pageSize: 'number',
1898
+ previous: 'boolean',
1683
1899
  startTime: 'string',
1684
1900
  };
1685
1901
  }
@@ -1771,6 +1987,60 @@ class DescribeServiceMirrorResponse extends $tea.Model {
1771
1987
  }
1772
1988
  }
1773
1989
  exports.DescribeServiceMirrorResponse = DescribeServiceMirrorResponse;
1990
+ class DevelopServiceRequest extends $tea.Model {
1991
+ constructor(map) {
1992
+ super(map);
1993
+ }
1994
+ static names() {
1995
+ return {
1996
+ exit: 'Exit',
1997
+ };
1998
+ }
1999
+ static types() {
2000
+ return {
2001
+ exit: 'string',
2002
+ };
2003
+ }
2004
+ }
2005
+ exports.DevelopServiceRequest = DevelopServiceRequest;
2006
+ class DevelopServiceResponseBody extends $tea.Model {
2007
+ constructor(map) {
2008
+ super(map);
2009
+ }
2010
+ static names() {
2011
+ return {
2012
+ message: 'Message',
2013
+ requestId: 'RequestId',
2014
+ };
2015
+ }
2016
+ static types() {
2017
+ return {
2018
+ message: 'string',
2019
+ requestId: 'string',
2020
+ };
2021
+ }
2022
+ }
2023
+ exports.DevelopServiceResponseBody = DevelopServiceResponseBody;
2024
+ class DevelopServiceResponse extends $tea.Model {
2025
+ constructor(map) {
2026
+ super(map);
2027
+ }
2028
+ static names() {
2029
+ return {
2030
+ headers: 'headers',
2031
+ statusCode: 'statusCode',
2032
+ body: 'body',
2033
+ };
2034
+ }
2035
+ static types() {
2036
+ return {
2037
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2038
+ statusCode: 'number',
2039
+ body: DevelopServiceResponseBody,
2040
+ };
2041
+ }
2042
+ }
2043
+ exports.DevelopServiceResponse = DevelopServiceResponse;
1774
2044
  class ListBenchmarkTaskRequest extends $tea.Model {
1775
2045
  constructor(map) {
1776
2046
  super(map);
@@ -1970,19 +2240,29 @@ class ListResourceInstancesRequest extends $tea.Model {
1970
2240
  static names() {
1971
2241
  return {
1972
2242
  chargeType: 'ChargeType',
2243
+ filter: 'Filter',
2244
+ instanceIP: 'InstanceIP',
1973
2245
  instanceId: 'InstanceId',
1974
2246
  instanceName: 'InstanceName',
2247
+ instanceStatus: 'InstanceStatus',
2248
+ order: 'Order',
1975
2249
  pageNumber: 'PageNumber',
1976
2250
  pageSize: 'PageSize',
2251
+ sort: 'Sort',
1977
2252
  };
1978
2253
  }
1979
2254
  static types() {
1980
2255
  return {
1981
2256
  chargeType: 'string',
2257
+ filter: 'string',
2258
+ instanceIP: 'string',
1982
2259
  instanceId: 'string',
1983
2260
  instanceName: 'string',
2261
+ instanceStatus: 'string',
2262
+ order: 'string',
1984
2263
  pageNumber: 'number',
1985
2264
  pageSize: 'number',
2265
+ sort: 'string',
1986
2266
  };
1987
2267
  }
1988
2268
  }
@@ -2165,14 +2445,36 @@ class ListServiceInstancesRequest extends $tea.Model {
2165
2445
  }
2166
2446
  static names() {
2167
2447
  return {
2448
+ filter: 'Filter',
2449
+ hostIP: 'HostIP',
2450
+ instanceIP: 'InstanceIP',
2451
+ instanceName: 'InstanceName',
2452
+ instanceStatus: 'InstanceStatus',
2453
+ instanceType: 'InstanceType',
2454
+ isSpot: 'IsSpot',
2455
+ order: 'Order',
2168
2456
  pageNumber: 'PageNumber',
2169
2457
  pageSize: 'PageSize',
2458
+ resourceType: 'ResourceType',
2459
+ role: 'Role',
2460
+ sort: 'Sort',
2170
2461
  };
2171
2462
  }
2172
2463
  static types() {
2173
2464
  return {
2465
+ filter: 'string',
2466
+ hostIP: 'string',
2467
+ instanceIP: 'string',
2468
+ instanceName: 'string',
2469
+ instanceStatus: 'string',
2470
+ instanceType: 'string',
2471
+ isSpot: 'boolean',
2472
+ order: 'string',
2174
2473
  pageNumber: 'number',
2175
2474
  pageSize: 'number',
2475
+ resourceType: 'string',
2476
+ role: 'string',
2477
+ sort: 'string',
2176
2478
  };
2177
2479
  }
2178
2480
  }
@@ -2291,9 +2593,16 @@ class ListServicesRequest extends $tea.Model {
2291
2593
  return {
2292
2594
  filter: 'Filter',
2293
2595
  groupName: 'GroupName',
2596
+ label: 'Label',
2294
2597
  order: 'Order',
2295
2598
  pageNumber: 'PageNumber',
2296
2599
  pageSize: 'PageSize',
2600
+ parentServiceUid: 'ParentServiceUid',
2601
+ resourceName: 'ResourceName',
2602
+ serviceName: 'ServiceName',
2603
+ serviceStatus: 'ServiceStatus',
2604
+ serviceType: 'ServiceType',
2605
+ serviceUid: 'ServiceUid',
2297
2606
  sort: 'Sort',
2298
2607
  };
2299
2608
  }
@@ -2301,14 +2610,61 @@ class ListServicesRequest extends $tea.Model {
2301
2610
  return {
2302
2611
  filter: 'string',
2303
2612
  groupName: 'string',
2613
+ label: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2304
2614
  order: 'string',
2305
2615
  pageNumber: 'number',
2306
2616
  pageSize: 'number',
2617
+ parentServiceUid: 'string',
2618
+ resourceName: 'string',
2619
+ serviceName: 'string',
2620
+ serviceStatus: 'string',
2621
+ serviceType: 'string',
2622
+ serviceUid: 'string',
2307
2623
  sort: 'string',
2308
2624
  };
2309
2625
  }
2310
2626
  }
2311
2627
  exports.ListServicesRequest = ListServicesRequest;
2628
+ class ListServicesShrinkRequest extends $tea.Model {
2629
+ constructor(map) {
2630
+ super(map);
2631
+ }
2632
+ static names() {
2633
+ return {
2634
+ filter: 'Filter',
2635
+ groupName: 'GroupName',
2636
+ labelShrink: 'Label',
2637
+ order: 'Order',
2638
+ pageNumber: 'PageNumber',
2639
+ pageSize: 'PageSize',
2640
+ parentServiceUid: 'ParentServiceUid',
2641
+ resourceName: 'ResourceName',
2642
+ serviceName: 'ServiceName',
2643
+ serviceStatus: 'ServiceStatus',
2644
+ serviceType: 'ServiceType',
2645
+ serviceUid: 'ServiceUid',
2646
+ sort: 'Sort',
2647
+ };
2648
+ }
2649
+ static types() {
2650
+ return {
2651
+ filter: 'string',
2652
+ groupName: 'string',
2653
+ labelShrink: 'string',
2654
+ order: 'string',
2655
+ pageNumber: 'number',
2656
+ pageSize: 'number',
2657
+ parentServiceUid: 'string',
2658
+ resourceName: 'string',
2659
+ serviceName: 'string',
2660
+ serviceStatus: 'string',
2661
+ serviceType: 'string',
2662
+ serviceUid: 'string',
2663
+ sort: 'string',
2664
+ };
2665
+ }
2666
+ }
2667
+ exports.ListServicesShrinkRequest = ListServicesShrinkRequest;
2312
2668
  class ListServicesResponseBody extends $tea.Model {
2313
2669
  constructor(map) {
2314
2670
  super(map);
@@ -2847,6 +3203,7 @@ class UpdateServiceAutoScalerRequest extends $tea.Model {
2847
3203
  }
2848
3204
  static names() {
2849
3205
  return {
3206
+ behavior: 'behavior',
2850
3207
  max: 'max',
2851
3208
  min: 'min',
2852
3209
  scaleStrategies: 'scaleStrategies',
@@ -2854,6 +3211,7 @@ class UpdateServiceAutoScalerRequest extends $tea.Model {
2854
3211
  }
2855
3212
  static types() {
2856
3213
  return {
3214
+ behavior: UpdateServiceAutoScalerRequestBehavior,
2857
3215
  max: 'number',
2858
3216
  min: 'number',
2859
3217
  scaleStrategies: { 'type': 'array', 'itemType': UpdateServiceAutoScalerRequestScaleStrategies },
@@ -2955,25 +3313,23 @@ class UpdateServiceCronScalerResponse extends $tea.Model {
2955
3313
  }
2956
3314
  }
2957
3315
  exports.UpdateServiceCronScalerResponse = UpdateServiceCronScalerResponse;
2958
- class UpdateServiceMirrorRequest extends $tea.Model {
3316
+ class UpdateServiceLabelRequest extends $tea.Model {
2959
3317
  constructor(map) {
2960
3318
  super(map);
2961
3319
  }
2962
3320
  static names() {
2963
3321
  return {
2964
- ratio: 'Ratio',
2965
- target: 'Target',
3322
+ labels: 'Labels',
2966
3323
  };
2967
3324
  }
2968
3325
  static types() {
2969
3326
  return {
2970
- ratio: 'number',
2971
- target: { 'type': 'array', 'itemType': 'string' },
3327
+ labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2972
3328
  };
2973
3329
  }
2974
3330
  }
2975
- exports.UpdateServiceMirrorRequest = UpdateServiceMirrorRequest;
2976
- class UpdateServiceMirrorResponseBody extends $tea.Model {
3331
+ exports.UpdateServiceLabelRequest = UpdateServiceLabelRequest;
3332
+ class UpdateServiceLabelResponseBody extends $tea.Model {
2977
3333
  constructor(map) {
2978
3334
  super(map);
2979
3335
  }
@@ -2990,8 +3346,8 @@ class UpdateServiceMirrorResponseBody extends $tea.Model {
2990
3346
  };
2991
3347
  }
2992
3348
  }
2993
- exports.UpdateServiceMirrorResponseBody = UpdateServiceMirrorResponseBody;
2994
- class UpdateServiceMirrorResponse extends $tea.Model {
3349
+ exports.UpdateServiceLabelResponseBody = UpdateServiceLabelResponseBody;
3350
+ class UpdateServiceLabelResponse extends $tea.Model {
2995
3351
  constructor(map) {
2996
3352
  super(map);
2997
3353
  }
@@ -3006,19 +3362,75 @@ class UpdateServiceMirrorResponse extends $tea.Model {
3006
3362
  return {
3007
3363
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3008
3364
  statusCode: 'number',
3009
- body: UpdateServiceMirrorResponseBody,
3365
+ body: UpdateServiceLabelResponseBody,
3010
3366
  };
3011
3367
  }
3012
3368
  }
3013
- exports.UpdateServiceMirrorResponse = UpdateServiceMirrorResponse;
3014
- class UpdateServiceSafetyLockRequest extends $tea.Model {
3369
+ exports.UpdateServiceLabelResponse = UpdateServiceLabelResponse;
3370
+ class UpdateServiceMirrorRequest extends $tea.Model {
3015
3371
  constructor(map) {
3016
3372
  super(map);
3017
3373
  }
3018
3374
  static names() {
3019
3375
  return {
3020
- lock: 'Lock',
3021
- };
3376
+ ratio: 'Ratio',
3377
+ target: 'Target',
3378
+ };
3379
+ }
3380
+ static types() {
3381
+ return {
3382
+ ratio: 'number',
3383
+ target: { 'type': 'array', 'itemType': 'string' },
3384
+ };
3385
+ }
3386
+ }
3387
+ exports.UpdateServiceMirrorRequest = UpdateServiceMirrorRequest;
3388
+ class UpdateServiceMirrorResponseBody extends $tea.Model {
3389
+ constructor(map) {
3390
+ super(map);
3391
+ }
3392
+ static names() {
3393
+ return {
3394
+ message: 'Message',
3395
+ requestId: 'RequestId',
3396
+ };
3397
+ }
3398
+ static types() {
3399
+ return {
3400
+ message: 'string',
3401
+ requestId: 'string',
3402
+ };
3403
+ }
3404
+ }
3405
+ exports.UpdateServiceMirrorResponseBody = UpdateServiceMirrorResponseBody;
3406
+ class UpdateServiceMirrorResponse extends $tea.Model {
3407
+ constructor(map) {
3408
+ super(map);
3409
+ }
3410
+ static names() {
3411
+ return {
3412
+ headers: 'headers',
3413
+ statusCode: 'statusCode',
3414
+ body: 'body',
3415
+ };
3416
+ }
3417
+ static types() {
3418
+ return {
3419
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3420
+ statusCode: 'number',
3421
+ body: UpdateServiceMirrorResponseBody,
3422
+ };
3423
+ }
3424
+ }
3425
+ exports.UpdateServiceMirrorResponse = UpdateServiceMirrorResponse;
3426
+ class UpdateServiceSafetyLockRequest extends $tea.Model {
3427
+ constructor(map) {
3428
+ super(map);
3429
+ }
3430
+ static names() {
3431
+ return {
3432
+ lock: 'Lock',
3433
+ };
3022
3434
  }
3023
3435
  static types() {
3024
3436
  return {
@@ -3119,6 +3531,94 @@ class UpdateServiceVersionResponse extends $tea.Model {
3119
3531
  }
3120
3532
  }
3121
3533
  exports.UpdateServiceVersionResponse = UpdateServiceVersionResponse;
3534
+ class ServiceLabels extends $tea.Model {
3535
+ constructor(map) {
3536
+ super(map);
3537
+ }
3538
+ static names() {
3539
+ return {
3540
+ labelKey: 'LabelKey',
3541
+ labelValue: 'LabelValue',
3542
+ };
3543
+ }
3544
+ static types() {
3545
+ return {
3546
+ labelKey: 'string',
3547
+ labelValue: 'string',
3548
+ };
3549
+ }
3550
+ }
3551
+ exports.ServiceLabels = ServiceLabels;
3552
+ class CreateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
3553
+ constructor(map) {
3554
+ super(map);
3555
+ }
3556
+ static names() {
3557
+ return {
3558
+ scaleDownGracePeriodSeconds: 'scaleDownGracePeriodSeconds',
3559
+ scaleUpActivationReplicas: 'scaleUpActivationReplicas',
3560
+ };
3561
+ }
3562
+ static types() {
3563
+ return {
3564
+ scaleDownGracePeriodSeconds: 'number',
3565
+ scaleUpActivationReplicas: 'number',
3566
+ };
3567
+ }
3568
+ }
3569
+ exports.CreateServiceAutoScalerRequestBehaviorOnZero = CreateServiceAutoScalerRequestBehaviorOnZero;
3570
+ class CreateServiceAutoScalerRequestBehaviorScaleDown extends $tea.Model {
3571
+ constructor(map) {
3572
+ super(map);
3573
+ }
3574
+ static names() {
3575
+ return {
3576
+ stabilizationWindowSeconds: 'stabilizationWindowSeconds',
3577
+ };
3578
+ }
3579
+ static types() {
3580
+ return {
3581
+ stabilizationWindowSeconds: 'number',
3582
+ };
3583
+ }
3584
+ }
3585
+ exports.CreateServiceAutoScalerRequestBehaviorScaleDown = CreateServiceAutoScalerRequestBehaviorScaleDown;
3586
+ class CreateServiceAutoScalerRequestBehaviorScaleUp extends $tea.Model {
3587
+ constructor(map) {
3588
+ super(map);
3589
+ }
3590
+ static names() {
3591
+ return {
3592
+ stabilizationWindowSeconds: 'stabilizationWindowSeconds',
3593
+ };
3594
+ }
3595
+ static types() {
3596
+ return {
3597
+ stabilizationWindowSeconds: 'number',
3598
+ };
3599
+ }
3600
+ }
3601
+ exports.CreateServiceAutoScalerRequestBehaviorScaleUp = CreateServiceAutoScalerRequestBehaviorScaleUp;
3602
+ class CreateServiceAutoScalerRequestBehavior extends $tea.Model {
3603
+ constructor(map) {
3604
+ super(map);
3605
+ }
3606
+ static names() {
3607
+ return {
3608
+ onZero: 'onZero',
3609
+ scaleDown: 'scaleDown',
3610
+ scaleUp: 'scaleUp',
3611
+ };
3612
+ }
3613
+ static types() {
3614
+ return {
3615
+ onZero: CreateServiceAutoScalerRequestBehaviorOnZero,
3616
+ scaleDown: CreateServiceAutoScalerRequestBehaviorScaleDown,
3617
+ scaleUp: CreateServiceAutoScalerRequestBehaviorScaleUp,
3618
+ };
3619
+ }
3620
+ }
3621
+ exports.CreateServiceAutoScalerRequestBehavior = CreateServiceAutoScalerRequestBehavior;
3122
3622
  class CreateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
3123
3623
  constructor(map) {
3124
3624
  super(map);
@@ -3305,6 +3805,76 @@ class ListServiceVersionsResponseBodyVersions extends $tea.Model {
3305
3805
  }
3306
3806
  }
3307
3807
  exports.ListServiceVersionsResponseBodyVersions = ListServiceVersionsResponseBodyVersions;
3808
+ class UpdateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
3809
+ constructor(map) {
3810
+ super(map);
3811
+ }
3812
+ static names() {
3813
+ return {
3814
+ scaleDownGracePeriodSeconds: 'scaleDownGracePeriodSeconds',
3815
+ scaleUpActivationReplicas: 'scaleUpActivationReplicas',
3816
+ };
3817
+ }
3818
+ static types() {
3819
+ return {
3820
+ scaleDownGracePeriodSeconds: 'number',
3821
+ scaleUpActivationReplicas: 'number',
3822
+ };
3823
+ }
3824
+ }
3825
+ exports.UpdateServiceAutoScalerRequestBehaviorOnZero = UpdateServiceAutoScalerRequestBehaviorOnZero;
3826
+ class UpdateServiceAutoScalerRequestBehaviorScaleDown extends $tea.Model {
3827
+ constructor(map) {
3828
+ super(map);
3829
+ }
3830
+ static names() {
3831
+ return {
3832
+ stabilizationWindowSeconds: 'stabilizationWindowSeconds',
3833
+ };
3834
+ }
3835
+ static types() {
3836
+ return {
3837
+ stabilizationWindowSeconds: 'number',
3838
+ };
3839
+ }
3840
+ }
3841
+ exports.UpdateServiceAutoScalerRequestBehaviorScaleDown = UpdateServiceAutoScalerRequestBehaviorScaleDown;
3842
+ class UpdateServiceAutoScalerRequestBehaviorScaleUp extends $tea.Model {
3843
+ constructor(map) {
3844
+ super(map);
3845
+ }
3846
+ static names() {
3847
+ return {
3848
+ stabilizationWindowSeconds: 'stabilizationWindowSeconds',
3849
+ };
3850
+ }
3851
+ static types() {
3852
+ return {
3853
+ stabilizationWindowSeconds: 'number',
3854
+ };
3855
+ }
3856
+ }
3857
+ exports.UpdateServiceAutoScalerRequestBehaviorScaleUp = UpdateServiceAutoScalerRequestBehaviorScaleUp;
3858
+ class UpdateServiceAutoScalerRequestBehavior extends $tea.Model {
3859
+ constructor(map) {
3860
+ super(map);
3861
+ }
3862
+ static names() {
3863
+ return {
3864
+ onZero: 'onZero',
3865
+ scaleDown: 'scaleDown',
3866
+ scaleUp: 'scaleUp',
3867
+ };
3868
+ }
3869
+ static types() {
3870
+ return {
3871
+ onZero: UpdateServiceAutoScalerRequestBehaviorOnZero,
3872
+ scaleDown: UpdateServiceAutoScalerRequestBehaviorScaleDown,
3873
+ scaleUp: UpdateServiceAutoScalerRequestBehaviorScaleUp,
3874
+ };
3875
+ }
3876
+ }
3877
+ exports.UpdateServiceAutoScalerRequestBehavior = UpdateServiceAutoScalerRequestBehavior;
3308
3878
  class UpdateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
3309
3879
  constructor(map) {
3310
3880
  super(map);
@@ -3378,10 +3948,27 @@ class Client extends openapi_client_1.default {
3378
3948
  }
3379
3949
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
3380
3950
  }
3381
- async createBenchmarkTask(request) {
3951
+ async commitServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
3952
+ let req = new $OpenApi.OpenApiRequest({
3953
+ headers: headers,
3954
+ });
3955
+ let params = new $OpenApi.Params({
3956
+ action: "CommitService",
3957
+ version: "2021-07-01",
3958
+ protocol: "HTTPS",
3959
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/commit`,
3960
+ method: "PUT",
3961
+ authType: "AK",
3962
+ style: "ROA",
3963
+ reqBodyType: "json",
3964
+ bodyType: "json",
3965
+ });
3966
+ return $tea.cast(await this.callApi(params, req, runtime), new CommitServiceResponse({}));
3967
+ }
3968
+ async commitService(ClusterId, ServiceName) {
3382
3969
  let runtime = new $Util.RuntimeOptions({});
3383
3970
  let headers = {};
3384
- return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
3971
+ return await this.commitServiceWithOptions(ClusterId, ServiceName, headers, runtime);
3385
3972
  }
3386
3973
  async createBenchmarkTaskWithOptions(request, headers, runtime) {
3387
3974
  tea_util_1.default.validateModel(request);
@@ -3402,10 +3989,10 @@ class Client extends openapi_client_1.default {
3402
3989
  });
3403
3990
  return $tea.cast(await this.callApi(params, req, runtime), new CreateBenchmarkTaskResponse({}));
3404
3991
  }
3405
- async createResource(request) {
3992
+ async createBenchmarkTask(request) {
3406
3993
  let runtime = new $Util.RuntimeOptions({});
3407
3994
  let headers = {};
3408
- return await this.createResourceWithOptions(request, headers, runtime);
3995
+ return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
3409
3996
  }
3410
3997
  async createResourceWithOptions(request, headers, runtime) {
3411
3998
  tea_util_1.default.validateModel(request);
@@ -3422,6 +4009,12 @@ class Client extends openapi_client_1.default {
3422
4009
  if (!tea_util_1.default.isUnset(request.ecsInstanceType)) {
3423
4010
  body["EcsInstanceType"] = request.ecsInstanceType;
3424
4011
  }
4012
+ if (!tea_util_1.default.isUnset(request.systemDiskSize)) {
4013
+ body["SystemDiskSize"] = request.systemDiskSize;
4014
+ }
4015
+ if (!tea_util_1.default.isUnset(request.zone)) {
4016
+ body["Zone"] = request.zone;
4017
+ }
3425
4018
  let req = new $OpenApi.OpenApiRequest({
3426
4019
  headers: headers,
3427
4020
  body: openapi_util_1.default.parseToMap(body),
@@ -3439,10 +4032,10 @@ class Client extends openapi_client_1.default {
3439
4032
  });
3440
4033
  return $tea.cast(await this.callApi(params, req, runtime), new CreateResourceResponse({}));
3441
4034
  }
3442
- async createResourceInstances(ClusterId, ResourceId, request) {
4035
+ async createResource(request) {
3443
4036
  let runtime = new $Util.RuntimeOptions({});
3444
4037
  let headers = {};
3445
- return await this.createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4038
+ return await this.createResourceWithOptions(request, headers, runtime);
3446
4039
  }
3447
4040
  async createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
3448
4041
  tea_util_1.default.validateModel(request);
@@ -3459,9 +4052,15 @@ class Client extends openapi_client_1.default {
3459
4052
  if (!tea_util_1.default.isUnset(request.ecsInstanceType)) {
3460
4053
  body["EcsInstanceType"] = request.ecsInstanceType;
3461
4054
  }
4055
+ if (!tea_util_1.default.isUnset(request.systemDiskSize)) {
4056
+ body["SystemDiskSize"] = request.systemDiskSize;
4057
+ }
3462
4058
  if (!tea_util_1.default.isUnset(request.userData)) {
3463
4059
  body["UserData"] = request.userData;
3464
4060
  }
4061
+ if (!tea_util_1.default.isUnset(request.zone)) {
4062
+ body["Zone"] = request.zone;
4063
+ }
3465
4064
  let req = new $OpenApi.OpenApiRequest({
3466
4065
  headers: headers,
3467
4066
  body: openapi_util_1.default.parseToMap(body),
@@ -3479,10 +4078,10 @@ class Client extends openapi_client_1.default {
3479
4078
  });
3480
4079
  return $tea.cast(await this.callApi(params, req, runtime), new CreateResourceInstancesResponse({}));
3481
4080
  }
3482
- async createResourceLog(ClusterId, ResourceId, request) {
4081
+ async createResourceInstances(ClusterId, ResourceId, request) {
3483
4082
  let runtime = new $Util.RuntimeOptions({});
3484
4083
  let headers = {};
3485
- return await this.createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime);
4084
+ return await this.createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
3486
4085
  }
3487
4086
  async createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime) {
3488
4087
  tea_util_1.default.validateModel(request);
@@ -3510,15 +4109,28 @@ class Client extends openapi_client_1.default {
3510
4109
  });
3511
4110
  return $tea.cast(await this.callApi(params, req, runtime), new CreateResourceLogResponse({}));
3512
4111
  }
3513
- async createService(request) {
4112
+ async createResourceLog(ClusterId, ResourceId, request) {
3514
4113
  let runtime = new $Util.RuntimeOptions({});
3515
4114
  let headers = {};
3516
- return await this.createServiceWithOptions(request, headers, runtime);
4115
+ return await this.createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime);
3517
4116
  }
3518
- async createServiceWithOptions(request, headers, runtime) {
3519
- tea_util_1.default.validateModel(request);
4117
+ async createServiceWithOptions(tmpReq, headers, runtime) {
4118
+ tea_util_1.default.validateModel(tmpReq);
4119
+ let request = new CreateServiceShrinkRequest({});
4120
+ openapi_util_1.default.convert(tmpReq, request);
4121
+ if (!tea_util_1.default.isUnset(tmpReq.labels)) {
4122
+ request.labelsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.labels, "Labels", "json");
4123
+ }
4124
+ let query = {};
4125
+ if (!tea_util_1.default.isUnset(request.develop)) {
4126
+ query["Develop"] = request.develop;
4127
+ }
4128
+ if (!tea_util_1.default.isUnset(request.labelsShrink)) {
4129
+ query["Labels"] = request.labelsShrink;
4130
+ }
3520
4131
  let req = new $OpenApi.OpenApiRequest({
3521
4132
  headers: headers,
4133
+ query: openapi_util_1.default.query(query),
3522
4134
  body: request.body,
3523
4135
  });
3524
4136
  let params = new $OpenApi.Params({
@@ -3534,14 +4146,17 @@ class Client extends openapi_client_1.default {
3534
4146
  });
3535
4147
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceResponse({}));
3536
4148
  }
3537
- async createServiceAutoScaler(ClusterId, ServiceName, request) {
4149
+ async createService(request) {
3538
4150
  let runtime = new $Util.RuntimeOptions({});
3539
4151
  let headers = {};
3540
- return await this.createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
4152
+ return await this.createServiceWithOptions(request, headers, runtime);
3541
4153
  }
3542
4154
  async createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3543
4155
  tea_util_1.default.validateModel(request);
3544
4156
  let body = {};
4157
+ if (!tea_util_1.default.isUnset(request.behavior)) {
4158
+ body["behavior"] = request.behavior;
4159
+ }
3545
4160
  if (!tea_util_1.default.isUnset(request.max)) {
3546
4161
  body["max"] = request.max;
3547
4162
  }
@@ -3568,10 +4183,10 @@ class Client extends openapi_client_1.default {
3568
4183
  });
3569
4184
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceAutoScalerResponse({}));
3570
4185
  }
3571
- async createServiceCronScaler(ClusterId, ServiceName, request) {
4186
+ async createServiceAutoScaler(ClusterId, ServiceName, request) {
3572
4187
  let runtime = new $Util.RuntimeOptions({});
3573
4188
  let headers = {};
3574
- return await this.createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
4189
+ return await this.createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
3575
4190
  }
3576
4191
  async createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3577
4192
  tea_util_1.default.validateModel(request);
@@ -3599,10 +4214,10 @@ class Client extends openapi_client_1.default {
3599
4214
  });
3600
4215
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceCronScalerResponse({}));
3601
4216
  }
3602
- async createServiceMirror(ClusterId, ServiceName, request) {
4217
+ async createServiceCronScaler(ClusterId, ServiceName, request) {
3603
4218
  let runtime = new $Util.RuntimeOptions({});
3604
4219
  let headers = {};
3605
- return await this.createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
4220
+ return await this.createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
3606
4221
  }
3607
4222
  async createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3608
4223
  tea_util_1.default.validateModel(request);
@@ -3630,10 +4245,10 @@ class Client extends openapi_client_1.default {
3630
4245
  });
3631
4246
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceMirrorResponse({}));
3632
4247
  }
3633
- async deleteBenchmarkTask(ClusterId, TaskName) {
4248
+ async createServiceMirror(ClusterId, ServiceName, request) {
3634
4249
  let runtime = new $Util.RuntimeOptions({});
3635
4250
  let headers = {};
3636
- return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4251
+ return await this.createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
3637
4252
  }
3638
4253
  async deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3639
4254
  let req = new $OpenApi.OpenApiRequest({
@@ -3652,10 +4267,10 @@ class Client extends openapi_client_1.default {
3652
4267
  });
3653
4268
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteBenchmarkTaskResponse({}));
3654
4269
  }
3655
- async deleteResource(ClusterId, ResourceId) {
4270
+ async deleteBenchmarkTask(ClusterId, TaskName) {
3656
4271
  let runtime = new $Util.RuntimeOptions({});
3657
4272
  let headers = {};
3658
- return await this.deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime);
4273
+ return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3659
4274
  }
3660
4275
  async deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime) {
3661
4276
  let req = new $OpenApi.OpenApiRequest({
@@ -3674,10 +4289,10 @@ class Client extends openapi_client_1.default {
3674
4289
  });
3675
4290
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceResponse({}));
3676
4291
  }
3677
- async deleteResourceDLink(ClusterId, ResourceId) {
4292
+ async deleteResource(ClusterId, ResourceId) {
3678
4293
  let runtime = new $Util.RuntimeOptions({});
3679
4294
  let headers = {};
3680
- return await this.deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
4295
+ return await this.deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime);
3681
4296
  }
3682
4297
  async deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime) {
3683
4298
  let req = new $OpenApi.OpenApiRequest({
@@ -3696,10 +4311,10 @@ class Client extends openapi_client_1.default {
3696
4311
  });
3697
4312
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceDLinkResponse({}));
3698
4313
  }
3699
- async deleteResourceInstances(ClusterId, ResourceId, request) {
4314
+ async deleteResourceDLink(ClusterId, ResourceId) {
3700
4315
  let runtime = new $Util.RuntimeOptions({});
3701
4316
  let headers = {};
3702
- return await this.deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4317
+ return await this.deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
3703
4318
  }
3704
4319
  async deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
3705
4320
  tea_util_1.default.validateModel(request);
@@ -3727,10 +4342,10 @@ class Client extends openapi_client_1.default {
3727
4342
  });
3728
4343
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceInstancesResponse({}));
3729
4344
  }
3730
- async deleteResourceLog(ClusterId, ResourceId) {
4345
+ async deleteResourceInstances(ClusterId, ResourceId, request) {
3731
4346
  let runtime = new $Util.RuntimeOptions({});
3732
4347
  let headers = {};
3733
- return await this.deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
4348
+ return await this.deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
3734
4349
  }
3735
4350
  async deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime) {
3736
4351
  let req = new $OpenApi.OpenApiRequest({
@@ -3749,10 +4364,10 @@ class Client extends openapi_client_1.default {
3749
4364
  });
3750
4365
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceLogResponse({}));
3751
4366
  }
3752
- async deleteService(ClusterId, ServiceName) {
4367
+ async deleteResourceLog(ClusterId, ResourceId) {
3753
4368
  let runtime = new $Util.RuntimeOptions({});
3754
4369
  let headers = {};
3755
- return await this.deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4370
+ return await this.deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
3756
4371
  }
3757
4372
  async deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
3758
4373
  let req = new $OpenApi.OpenApiRequest({
@@ -3771,10 +4386,10 @@ class Client extends openapi_client_1.default {
3771
4386
  });
3772
4387
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceResponse({}));
3773
4388
  }
3774
- async deleteServiceAutoScaler(ClusterId, ServiceName) {
4389
+ async deleteService(ClusterId, ServiceName) {
3775
4390
  let runtime = new $Util.RuntimeOptions({});
3776
4391
  let headers = {};
3777
- return await this.deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4392
+ return await this.deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime);
3778
4393
  }
3779
4394
  async deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
3780
4395
  let req = new $OpenApi.OpenApiRequest({
@@ -3793,10 +4408,10 @@ class Client extends openapi_client_1.default {
3793
4408
  });
3794
4409
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceAutoScalerResponse({}));
3795
4410
  }
3796
- async deleteServiceCronScaler(ClusterId, ServiceName) {
4411
+ async deleteServiceAutoScaler(ClusterId, ServiceName) {
3797
4412
  let runtime = new $Util.RuntimeOptions({});
3798
4413
  let headers = {};
3799
- return await this.deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4414
+ return await this.deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
3800
4415
  }
3801
4416
  async deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
3802
4417
  let req = new $OpenApi.OpenApiRequest({
@@ -3806,47 +4421,80 @@ class Client extends openapi_client_1.default {
3806
4421
  action: "DeleteServiceCronScaler",
3807
4422
  version: "2021-07-01",
3808
4423
  protocol: "HTTPS",
3809
- pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/cronscaler`,
4424
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/cronscaler`,
4425
+ method: "DELETE",
4426
+ authType: "AK",
4427
+ style: "ROA",
4428
+ reqBodyType: "json",
4429
+ bodyType: "json",
4430
+ });
4431
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceCronScalerResponse({}));
4432
+ }
4433
+ async deleteServiceCronScaler(ClusterId, ServiceName) {
4434
+ let runtime = new $Util.RuntimeOptions({});
4435
+ let headers = {};
4436
+ return await this.deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4437
+ }
4438
+ async deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4439
+ tea_util_1.default.validateModel(request);
4440
+ let query = {};
4441
+ if (!tea_util_1.default.isUnset(request.instanceList)) {
4442
+ query["InstanceList"] = request.instanceList;
4443
+ }
4444
+ let req = new $OpenApi.OpenApiRequest({
4445
+ headers: headers,
4446
+ query: openapi_util_1.default.query(query),
4447
+ });
4448
+ let params = new $OpenApi.Params({
4449
+ action: "DeleteServiceInstances",
4450
+ version: "2021-07-01",
4451
+ protocol: "HTTPS",
4452
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/instances`,
3810
4453
  method: "DELETE",
3811
4454
  authType: "AK",
3812
4455
  style: "ROA",
3813
4456
  reqBodyType: "json",
3814
4457
  bodyType: "json",
3815
4458
  });
3816
- return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceCronScalerResponse({}));
4459
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceInstancesResponse({}));
3817
4460
  }
3818
4461
  async deleteServiceInstances(ClusterId, ServiceName, request) {
3819
4462
  let runtime = new $Util.RuntimeOptions({});
3820
4463
  let headers = {};
3821
4464
  return await this.deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
3822
4465
  }
3823
- async deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3824
- tea_util_1.default.validateModel(request);
4466
+ async deleteServiceLabelWithOptions(ClusterId, ServiceName, tmpReq, headers, runtime) {
4467
+ tea_util_1.default.validateModel(tmpReq);
4468
+ let request = new DeleteServiceLabelShrinkRequest({});
4469
+ openapi_util_1.default.convert(tmpReq, request);
4470
+ if (!tea_util_1.default.isUnset(tmpReq.keys)) {
4471
+ request.keysShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.keys, "Keys", "simple");
4472
+ }
3825
4473
  let query = {};
3826
- if (!tea_util_1.default.isUnset(request.instanceList)) {
3827
- query["InstanceList"] = request.instanceList;
4474
+ if (!tea_util_1.default.isUnset(request.keysShrink)) {
4475
+ query["Keys"] = request.keysShrink;
3828
4476
  }
3829
4477
  let req = new $OpenApi.OpenApiRequest({
3830
4478
  headers: headers,
3831
4479
  query: openapi_util_1.default.query(query),
3832
4480
  });
3833
4481
  let params = new $OpenApi.Params({
3834
- action: "DeleteServiceInstances",
4482
+ action: "DeleteServiceLabel",
3835
4483
  version: "2021-07-01",
3836
4484
  protocol: "HTTPS",
3837
- pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/instances`,
4485
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/label`,
3838
4486
  method: "DELETE",
3839
4487
  authType: "AK",
3840
4488
  style: "ROA",
3841
4489
  reqBodyType: "json",
3842
4490
  bodyType: "json",
3843
4491
  });
3844
- return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceInstancesResponse({}));
4492
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceLabelResponse({}));
3845
4493
  }
3846
- async deleteServiceMirror(ClusterId, ServiceName) {
4494
+ async deleteServiceLabel(ClusterId, ServiceName, request) {
3847
4495
  let runtime = new $Util.RuntimeOptions({});
3848
4496
  let headers = {};
3849
- return await this.deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
4497
+ return await this.deleteServiceLabelWithOptions(ClusterId, ServiceName, request, headers, runtime);
3850
4498
  }
3851
4499
  async deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime) {
3852
4500
  let req = new $OpenApi.OpenApiRequest({
@@ -3865,10 +4513,10 @@ class Client extends openapi_client_1.default {
3865
4513
  });
3866
4514
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceMirrorResponse({}));
3867
4515
  }
3868
- async describeBenchmarkTask(ClusterId, TaskName) {
4516
+ async deleteServiceMirror(ClusterId, ServiceName) {
3869
4517
  let runtime = new $Util.RuntimeOptions({});
3870
4518
  let headers = {};
3871
- return await this.describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4519
+ return await this.deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
3872
4520
  }
3873
4521
  async describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3874
4522
  let req = new $OpenApi.OpenApiRequest({
@@ -3887,10 +4535,10 @@ class Client extends openapi_client_1.default {
3887
4535
  });
3888
4536
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskResponse({}));
3889
4537
  }
3890
- async describeBenchmarkTaskReport(ClusterId, TaskName, request) {
4538
+ async describeBenchmarkTask(ClusterId, TaskName) {
3891
4539
  let runtime = new $Util.RuntimeOptions({});
3892
4540
  let headers = {};
3893
- return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime);
4541
+ return await this.describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3894
4542
  }
3895
4543
  async describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime) {
3896
4544
  tea_util_1.default.validateModel(request);
@@ -3915,10 +4563,10 @@ class Client extends openapi_client_1.default {
3915
4563
  });
3916
4564
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskReportResponse({}));
3917
4565
  }
3918
- async describeGroup(ClusterId, GroupName) {
4566
+ async describeBenchmarkTaskReport(ClusterId, TaskName, request) {
3919
4567
  let runtime = new $Util.RuntimeOptions({});
3920
4568
  let headers = {};
3921
- return await this.describeGroupWithOptions(ClusterId, GroupName, headers, runtime);
4569
+ return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime);
3922
4570
  }
3923
4571
  async describeGroupWithOptions(ClusterId, GroupName, headers, runtime) {
3924
4572
  let req = new $OpenApi.OpenApiRequest({
@@ -3937,10 +4585,10 @@ class Client extends openapi_client_1.default {
3937
4585
  });
3938
4586
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeGroupResponse({}));
3939
4587
  }
3940
- async describeResource(ClusterId, ResourceId) {
4588
+ async describeGroup(ClusterId, GroupName) {
3941
4589
  let runtime = new $Util.RuntimeOptions({});
3942
4590
  let headers = {};
3943
- return await this.describeResourceWithOptions(ClusterId, ResourceId, headers, runtime);
4591
+ return await this.describeGroupWithOptions(ClusterId, GroupName, headers, runtime);
3944
4592
  }
3945
4593
  async describeResourceWithOptions(ClusterId, ResourceId, headers, runtime) {
3946
4594
  let req = new $OpenApi.OpenApiRequest({
@@ -3959,10 +4607,10 @@ class Client extends openapi_client_1.default {
3959
4607
  });
3960
4608
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeResourceResponse({}));
3961
4609
  }
3962
- async describeResourceDLink(ClusterId, ResourceId) {
4610
+ async describeResource(ClusterId, ResourceId) {
3963
4611
  let runtime = new $Util.RuntimeOptions({});
3964
4612
  let headers = {};
3965
- return await this.describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
4613
+ return await this.describeResourceWithOptions(ClusterId, ResourceId, headers, runtime);
3966
4614
  }
3967
4615
  async describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime) {
3968
4616
  let req = new $OpenApi.OpenApiRequest({
@@ -3981,10 +4629,10 @@ class Client extends openapi_client_1.default {
3981
4629
  });
3982
4630
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeResourceDLinkResponse({}));
3983
4631
  }
3984
- async describeResourceLog(ClusterId, ResourceId) {
4632
+ async describeResourceDLink(ClusterId, ResourceId) {
3985
4633
  let runtime = new $Util.RuntimeOptions({});
3986
4634
  let headers = {};
3987
- return await this.describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
4635
+ return await this.describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
3988
4636
  }
3989
4637
  async describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime) {
3990
4638
  let req = new $OpenApi.OpenApiRequest({
@@ -4003,10 +4651,10 @@ class Client extends openapi_client_1.default {
4003
4651
  });
4004
4652
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeResourceLogResponse({}));
4005
4653
  }
4006
- async describeService(ClusterId, ServiceName) {
4654
+ async describeResourceLog(ClusterId, ResourceId) {
4007
4655
  let runtime = new $Util.RuntimeOptions({});
4008
4656
  let headers = {};
4009
- return await this.describeServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4657
+ return await this.describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
4010
4658
  }
4011
4659
  async describeServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
4012
4660
  let req = new $OpenApi.OpenApiRequest({
@@ -4025,10 +4673,10 @@ class Client extends openapi_client_1.default {
4025
4673
  });
4026
4674
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceResponse({}));
4027
4675
  }
4028
- async describeServiceAutoScaler(ClusterId, ServiceName) {
4676
+ async describeService(ClusterId, ServiceName) {
4029
4677
  let runtime = new $Util.RuntimeOptions({});
4030
4678
  let headers = {};
4031
- return await this.describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4679
+ return await this.describeServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4032
4680
  }
4033
4681
  async describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
4034
4682
  let req = new $OpenApi.OpenApiRequest({
@@ -4047,10 +4695,10 @@ class Client extends openapi_client_1.default {
4047
4695
  });
4048
4696
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceAutoScalerResponse({}));
4049
4697
  }
4050
- async describeServiceCronScaler(ClusterId, ServiceName) {
4698
+ async describeServiceAutoScaler(ClusterId, ServiceName) {
4051
4699
  let runtime = new $Util.RuntimeOptions({});
4052
4700
  let headers = {};
4053
- return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4701
+ return await this.describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4054
4702
  }
4055
4703
  async describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
4056
4704
  let req = new $OpenApi.OpenApiRequest({
@@ -4069,10 +4717,10 @@ class Client extends openapi_client_1.default {
4069
4717
  });
4070
4718
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceCronScalerResponse({}));
4071
4719
  }
4072
- async describeServiceEvent(ClusterId, ServiceName, request) {
4720
+ async describeServiceCronScaler(ClusterId, ServiceName) {
4073
4721
  let runtime = new $Util.RuntimeOptions({});
4074
4722
  let headers = {};
4075
- return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
4723
+ return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4076
4724
  }
4077
4725
  async describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4078
4726
  tea_util_1.default.validateModel(request);
@@ -4080,6 +4728,12 @@ class Client extends openapi_client_1.default {
4080
4728
  if (!tea_util_1.default.isUnset(request.endTime)) {
4081
4729
  query["EndTime"] = request.endTime;
4082
4730
  }
4731
+ if (!tea_util_1.default.isUnset(request.eventType)) {
4732
+ query["EventType"] = request.eventType;
4733
+ }
4734
+ if (!tea_util_1.default.isUnset(request.instanceName)) {
4735
+ query["InstanceName"] = request.instanceName;
4736
+ }
4083
4737
  if (!tea_util_1.default.isUnset(request.pageNum)) {
4084
4738
  query["PageNum"] = request.pageNum;
4085
4739
  }
@@ -4106,17 +4760,23 @@ class Client extends openapi_client_1.default {
4106
4760
  });
4107
4761
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceEventResponse({}));
4108
4762
  }
4109
- async describeServiceLog(ClusterId, ServiceName, request) {
4763
+ async describeServiceEvent(ClusterId, ServiceName, request) {
4110
4764
  let runtime = new $Util.RuntimeOptions({});
4111
4765
  let headers = {};
4112
- return await this.describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime);
4766
+ return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
4113
4767
  }
4114
4768
  async describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4115
4769
  tea_util_1.default.validateModel(request);
4116
4770
  let query = {};
4771
+ if (!tea_util_1.default.isUnset(request.containerName)) {
4772
+ query["ContainerName"] = request.containerName;
4773
+ }
4117
4774
  if (!tea_util_1.default.isUnset(request.endTime)) {
4118
4775
  query["EndTime"] = request.endTime;
4119
4776
  }
4777
+ if (!tea_util_1.default.isUnset(request.instanceName)) {
4778
+ query["InstanceName"] = request.instanceName;
4779
+ }
4120
4780
  if (!tea_util_1.default.isUnset(request.ip)) {
4121
4781
  query["Ip"] = request.ip;
4122
4782
  }
@@ -4129,6 +4789,9 @@ class Client extends openapi_client_1.default {
4129
4789
  if (!tea_util_1.default.isUnset(request.pageSize)) {
4130
4790
  query["PageSize"] = request.pageSize;
4131
4791
  }
4792
+ if (!tea_util_1.default.isUnset(request.previous)) {
4793
+ query["Previous"] = request.previous;
4794
+ }
4132
4795
  if (!tea_util_1.default.isUnset(request.startTime)) {
4133
4796
  query["StartTime"] = request.startTime;
4134
4797
  }
@@ -4149,10 +4812,10 @@ class Client extends openapi_client_1.default {
4149
4812
  });
4150
4813
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceLogResponse({}));
4151
4814
  }
4152
- async describeServiceMirror(ClusterId, ServiceName) {
4815
+ async describeServiceLog(ClusterId, ServiceName, request) {
4153
4816
  let runtime = new $Util.RuntimeOptions({});
4154
4817
  let headers = {};
4155
- return await this.describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
4818
+ return await this.describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime);
4156
4819
  }
4157
4820
  async describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime) {
4158
4821
  let req = new $OpenApi.OpenApiRequest({
@@ -4171,10 +4834,38 @@ class Client extends openapi_client_1.default {
4171
4834
  });
4172
4835
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
4173
4836
  }
4174
- async listBenchmarkTask(request) {
4837
+ async describeServiceMirror(ClusterId, ServiceName) {
4175
4838
  let runtime = new $Util.RuntimeOptions({});
4176
4839
  let headers = {};
4177
- return await this.listBenchmarkTaskWithOptions(request, headers, runtime);
4840
+ return await this.describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
4841
+ }
4842
+ async developServiceWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4843
+ tea_util_1.default.validateModel(request);
4844
+ let query = {};
4845
+ if (!tea_util_1.default.isUnset(request.exit)) {
4846
+ query["Exit"] = request.exit;
4847
+ }
4848
+ let req = new $OpenApi.OpenApiRequest({
4849
+ headers: headers,
4850
+ query: openapi_util_1.default.query(query),
4851
+ });
4852
+ let params = new $OpenApi.Params({
4853
+ action: "DevelopService",
4854
+ version: "2021-07-01",
4855
+ protocol: "HTTPS",
4856
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/develop`,
4857
+ method: "PUT",
4858
+ authType: "AK",
4859
+ style: "ROA",
4860
+ reqBodyType: "json",
4861
+ bodyType: "json",
4862
+ });
4863
+ return $tea.cast(await this.callApi(params, req, runtime), new DevelopServiceResponse({}));
4864
+ }
4865
+ async developService(ClusterId, ServiceName, request) {
4866
+ let runtime = new $Util.RuntimeOptions({});
4867
+ let headers = {};
4868
+ return await this.developServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
4178
4869
  }
4179
4870
  async listBenchmarkTaskWithOptions(request, headers, runtime) {
4180
4871
  tea_util_1.default.validateModel(request);
@@ -4208,10 +4899,10 @@ class Client extends openapi_client_1.default {
4208
4899
  });
4209
4900
  return $tea.cast(await this.callApi(params, req, runtime), new ListBenchmarkTaskResponse({}));
4210
4901
  }
4211
- async listGroups(request) {
4902
+ async listBenchmarkTask(request) {
4212
4903
  let runtime = new $Util.RuntimeOptions({});
4213
4904
  let headers = {};
4214
- return await this.listGroupsWithOptions(request, headers, runtime);
4905
+ return await this.listBenchmarkTaskWithOptions(request, headers, runtime);
4215
4906
  }
4216
4907
  async listGroupsWithOptions(request, headers, runtime) {
4217
4908
  tea_util_1.default.validateModel(request);
@@ -4242,10 +4933,10 @@ class Client extends openapi_client_1.default {
4242
4933
  });
4243
4934
  return $tea.cast(await this.callApi(params, req, runtime), new ListGroupsResponse({}));
4244
4935
  }
4245
- async listResourceInstanceWorker(ClusterId, ResourceId, InstanceName, request) {
4936
+ async listGroups(request) {
4246
4937
  let runtime = new $Util.RuntimeOptions({});
4247
4938
  let headers = {};
4248
- return await this.listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime);
4939
+ return await this.listGroupsWithOptions(request, headers, runtime);
4249
4940
  }
4250
4941
  async listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime) {
4251
4942
  tea_util_1.default.validateModel(request);
@@ -4273,10 +4964,10 @@ class Client extends openapi_client_1.default {
4273
4964
  });
4274
4965
  return $tea.cast(await this.callApi(params, req, runtime), new ListResourceInstanceWorkerResponse({}));
4275
4966
  }
4276
- async listResourceInstances(ClusterId, ResourceId, request) {
4967
+ async listResourceInstanceWorker(ClusterId, ResourceId, InstanceName, request) {
4277
4968
  let runtime = new $Util.RuntimeOptions({});
4278
4969
  let headers = {};
4279
- return await this.listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4970
+ return await this.listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime);
4280
4971
  }
4281
4972
  async listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
4282
4973
  tea_util_1.default.validateModel(request);
@@ -4284,18 +4975,33 @@ class Client extends openapi_client_1.default {
4284
4975
  if (!tea_util_1.default.isUnset(request.chargeType)) {
4285
4976
  query["ChargeType"] = request.chargeType;
4286
4977
  }
4978
+ if (!tea_util_1.default.isUnset(request.filter)) {
4979
+ query["Filter"] = request.filter;
4980
+ }
4981
+ if (!tea_util_1.default.isUnset(request.instanceIP)) {
4982
+ query["InstanceIP"] = request.instanceIP;
4983
+ }
4287
4984
  if (!tea_util_1.default.isUnset(request.instanceId)) {
4288
4985
  query["InstanceId"] = request.instanceId;
4289
4986
  }
4290
4987
  if (!tea_util_1.default.isUnset(request.instanceName)) {
4291
4988
  query["InstanceName"] = request.instanceName;
4292
4989
  }
4990
+ if (!tea_util_1.default.isUnset(request.instanceStatus)) {
4991
+ query["InstanceStatus"] = request.instanceStatus;
4992
+ }
4993
+ if (!tea_util_1.default.isUnset(request.order)) {
4994
+ query["Order"] = request.order;
4995
+ }
4293
4996
  if (!tea_util_1.default.isUnset(request.pageNumber)) {
4294
4997
  query["PageNumber"] = request.pageNumber;
4295
4998
  }
4296
4999
  if (!tea_util_1.default.isUnset(request.pageSize)) {
4297
5000
  query["PageSize"] = request.pageSize;
4298
5001
  }
5002
+ if (!tea_util_1.default.isUnset(request.sort)) {
5003
+ query["Sort"] = request.sort;
5004
+ }
4299
5005
  let req = new $OpenApi.OpenApiRequest({
4300
5006
  headers: headers,
4301
5007
  query: openapi_util_1.default.query(query),
@@ -4313,10 +5019,10 @@ class Client extends openapi_client_1.default {
4313
5019
  });
4314
5020
  return $tea.cast(await this.callApi(params, req, runtime), new ListResourceInstancesResponse({}));
4315
5021
  }
4316
- async listResourceServices(ClusterId, ResourceId, request) {
5022
+ async listResourceInstances(ClusterId, ResourceId, request) {
4317
5023
  let runtime = new $Util.RuntimeOptions({});
4318
5024
  let headers = {};
4319
- return await this.listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime);
5025
+ return await this.listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4320
5026
  }
4321
5027
  async listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
4322
5028
  tea_util_1.default.validateModel(request);
@@ -4344,10 +5050,10 @@ class Client extends openapi_client_1.default {
4344
5050
  });
4345
5051
  return $tea.cast(await this.callApi(params, req, runtime), new ListResourceServicesResponse({}));
4346
5052
  }
4347
- async listResources(request) {
5053
+ async listResourceServices(ClusterId, ResourceId, request) {
4348
5054
  let runtime = new $Util.RuntimeOptions({});
4349
5055
  let headers = {};
4350
- return await this.listResourcesWithOptions(request, headers, runtime);
5056
+ return await this.listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4351
5057
  }
4352
5058
  async listResourcesWithOptions(request, headers, runtime) {
4353
5059
  tea_util_1.default.validateModel(request);
@@ -4381,20 +5087,53 @@ class Client extends openapi_client_1.default {
4381
5087
  });
4382
5088
  return $tea.cast(await this.callApi(params, req, runtime), new ListResourcesResponse({}));
4383
5089
  }
4384
- async listServiceInstances(ClusterId, ServiceName, request) {
5090
+ async listResources(request) {
4385
5091
  let runtime = new $Util.RuntimeOptions({});
4386
5092
  let headers = {};
4387
- return await this.listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
5093
+ return await this.listResourcesWithOptions(request, headers, runtime);
4388
5094
  }
4389
5095
  async listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4390
5096
  tea_util_1.default.validateModel(request);
4391
5097
  let query = {};
5098
+ if (!tea_util_1.default.isUnset(request.filter)) {
5099
+ query["Filter"] = request.filter;
5100
+ }
5101
+ if (!tea_util_1.default.isUnset(request.hostIP)) {
5102
+ query["HostIP"] = request.hostIP;
5103
+ }
5104
+ if (!tea_util_1.default.isUnset(request.instanceIP)) {
5105
+ query["InstanceIP"] = request.instanceIP;
5106
+ }
5107
+ if (!tea_util_1.default.isUnset(request.instanceName)) {
5108
+ query["InstanceName"] = request.instanceName;
5109
+ }
5110
+ if (!tea_util_1.default.isUnset(request.instanceStatus)) {
5111
+ query["InstanceStatus"] = request.instanceStatus;
5112
+ }
5113
+ if (!tea_util_1.default.isUnset(request.instanceType)) {
5114
+ query["InstanceType"] = request.instanceType;
5115
+ }
5116
+ if (!tea_util_1.default.isUnset(request.isSpot)) {
5117
+ query["IsSpot"] = request.isSpot;
5118
+ }
5119
+ if (!tea_util_1.default.isUnset(request.order)) {
5120
+ query["Order"] = request.order;
5121
+ }
4392
5122
  if (!tea_util_1.default.isUnset(request.pageNumber)) {
4393
5123
  query["PageNumber"] = request.pageNumber;
4394
5124
  }
4395
5125
  if (!tea_util_1.default.isUnset(request.pageSize)) {
4396
5126
  query["PageSize"] = request.pageSize;
4397
5127
  }
5128
+ if (!tea_util_1.default.isUnset(request.resourceType)) {
5129
+ query["ResourceType"] = request.resourceType;
5130
+ }
5131
+ if (!tea_util_1.default.isUnset(request.role)) {
5132
+ query["Role"] = request.role;
5133
+ }
5134
+ if (!tea_util_1.default.isUnset(request.sort)) {
5135
+ query["Sort"] = request.sort;
5136
+ }
4398
5137
  let req = new $OpenApi.OpenApiRequest({
4399
5138
  headers: headers,
4400
5139
  query: openapi_util_1.default.query(query),
@@ -4412,10 +5151,10 @@ class Client extends openapi_client_1.default {
4412
5151
  });
4413
5152
  return $tea.cast(await this.callApi(params, req, runtime), new ListServiceInstancesResponse({}));
4414
5153
  }
4415
- async listServiceVersions(ClusterId, ServiceName, request) {
5154
+ async listServiceInstances(ClusterId, ServiceName, request) {
4416
5155
  let runtime = new $Util.RuntimeOptions({});
4417
5156
  let headers = {};
4418
- return await this.listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime);
5157
+ return await this.listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
4419
5158
  }
4420
5159
  async listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4421
5160
  tea_util_1.default.validateModel(request);
@@ -4443,13 +5182,18 @@ class Client extends openapi_client_1.default {
4443
5182
  });
4444
5183
  return $tea.cast(await this.callApi(params, req, runtime), new ListServiceVersionsResponse({}));
4445
5184
  }
4446
- async listServices(request) {
5185
+ async listServiceVersions(ClusterId, ServiceName, request) {
4447
5186
  let runtime = new $Util.RuntimeOptions({});
4448
5187
  let headers = {};
4449
- return await this.listServicesWithOptions(request, headers, runtime);
5188
+ return await this.listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime);
4450
5189
  }
4451
- async listServicesWithOptions(request, headers, runtime) {
4452
- tea_util_1.default.validateModel(request);
5190
+ async listServicesWithOptions(tmpReq, headers, runtime) {
5191
+ tea_util_1.default.validateModel(tmpReq);
5192
+ let request = new ListServicesShrinkRequest({});
5193
+ openapi_util_1.default.convert(tmpReq, request);
5194
+ if (!tea_util_1.default.isUnset(tmpReq.label)) {
5195
+ request.labelShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.label, "Label", "json");
5196
+ }
4453
5197
  let query = {};
4454
5198
  if (!tea_util_1.default.isUnset(request.filter)) {
4455
5199
  query["Filter"] = request.filter;
@@ -4457,6 +5201,9 @@ class Client extends openapi_client_1.default {
4457
5201
  if (!tea_util_1.default.isUnset(request.groupName)) {
4458
5202
  query["GroupName"] = request.groupName;
4459
5203
  }
5204
+ if (!tea_util_1.default.isUnset(request.labelShrink)) {
5205
+ query["Label"] = request.labelShrink;
5206
+ }
4460
5207
  if (!tea_util_1.default.isUnset(request.order)) {
4461
5208
  query["Order"] = request.order;
4462
5209
  }
@@ -4466,6 +5213,24 @@ class Client extends openapi_client_1.default {
4466
5213
  if (!tea_util_1.default.isUnset(request.pageSize)) {
4467
5214
  query["PageSize"] = request.pageSize;
4468
5215
  }
5216
+ if (!tea_util_1.default.isUnset(request.parentServiceUid)) {
5217
+ query["ParentServiceUid"] = request.parentServiceUid;
5218
+ }
5219
+ if (!tea_util_1.default.isUnset(request.resourceName)) {
5220
+ query["ResourceName"] = request.resourceName;
5221
+ }
5222
+ if (!tea_util_1.default.isUnset(request.serviceName)) {
5223
+ query["ServiceName"] = request.serviceName;
5224
+ }
5225
+ if (!tea_util_1.default.isUnset(request.serviceStatus)) {
5226
+ query["ServiceStatus"] = request.serviceStatus;
5227
+ }
5228
+ if (!tea_util_1.default.isUnset(request.serviceType)) {
5229
+ query["ServiceType"] = request.serviceType;
5230
+ }
5231
+ if (!tea_util_1.default.isUnset(request.serviceUid)) {
5232
+ query["ServiceUid"] = request.serviceUid;
5233
+ }
4469
5234
  if (!tea_util_1.default.isUnset(request.sort)) {
4470
5235
  query["Sort"] = request.sort;
4471
5236
  }
@@ -4486,10 +5251,10 @@ class Client extends openapi_client_1.default {
4486
5251
  });
4487
5252
  return $tea.cast(await this.callApi(params, req, runtime), new ListServicesResponse({}));
4488
5253
  }
4489
- async releaseService(ClusterId, ServiceName, request) {
5254
+ async listServices(request) {
4490
5255
  let runtime = new $Util.RuntimeOptions({});
4491
5256
  let headers = {};
4492
- return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
5257
+ return await this.listServicesWithOptions(request, headers, runtime);
4493
5258
  }
4494
5259
  async releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4495
5260
  tea_util_1.default.validateModel(request);
@@ -4517,10 +5282,10 @@ class Client extends openapi_client_1.default {
4517
5282
  });
4518
5283
  return $tea.cast(await this.callApi(params, req, runtime), new ReleaseServiceResponse({}));
4519
5284
  }
4520
- async startBenchmarkTask(ClusterId, TaskName) {
5285
+ async releaseService(ClusterId, ServiceName, request) {
4521
5286
  let runtime = new $Util.RuntimeOptions({});
4522
5287
  let headers = {};
4523
- return await this.startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
5288
+ return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
4524
5289
  }
4525
5290
  async startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
4526
5291
  let req = new $OpenApi.OpenApiRequest({
@@ -4539,10 +5304,10 @@ class Client extends openapi_client_1.default {
4539
5304
  });
4540
5305
  return $tea.cast(await this.callApi(params, req, runtime), new StartBenchmarkTaskResponse({}));
4541
5306
  }
4542
- async startService(ClusterId, ServiceName) {
5307
+ async startBenchmarkTask(ClusterId, TaskName) {
4543
5308
  let runtime = new $Util.RuntimeOptions({});
4544
5309
  let headers = {};
4545
- return await this.startServiceWithOptions(ClusterId, ServiceName, headers, runtime);
5310
+ return await this.startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4546
5311
  }
4547
5312
  async startServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
4548
5313
  let req = new $OpenApi.OpenApiRequest({
@@ -4561,10 +5326,10 @@ class Client extends openapi_client_1.default {
4561
5326
  });
4562
5327
  return $tea.cast(await this.callApi(params, req, runtime), new StartServiceResponse({}));
4563
5328
  }
4564
- async stopBenchmarkTask(ClusterId, TaskName) {
5329
+ async startService(ClusterId, ServiceName) {
4565
5330
  let runtime = new $Util.RuntimeOptions({});
4566
5331
  let headers = {};
4567
- return await this.stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
5332
+ return await this.startServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4568
5333
  }
4569
5334
  async stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
4570
5335
  let req = new $OpenApi.OpenApiRequest({
@@ -4583,10 +5348,10 @@ class Client extends openapi_client_1.default {
4583
5348
  });
4584
5349
  return $tea.cast(await this.callApi(params, req, runtime), new StopBenchmarkTaskResponse({}));
4585
5350
  }
4586
- async stopService(ClusterId, ServiceName) {
5351
+ async stopBenchmarkTask(ClusterId, TaskName) {
4587
5352
  let runtime = new $Util.RuntimeOptions({});
4588
5353
  let headers = {};
4589
- return await this.stopServiceWithOptions(ClusterId, ServiceName, headers, runtime);
5354
+ return await this.stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4590
5355
  }
4591
5356
  async stopServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
4592
5357
  let req = new $OpenApi.OpenApiRequest({
@@ -4605,10 +5370,10 @@ class Client extends openapi_client_1.default {
4605
5370
  });
4606
5371
  return $tea.cast(await this.callApi(params, req, runtime), new StopServiceResponse({}));
4607
5372
  }
4608
- async updateBenchmarkTask(ClusterId, TaskName, request) {
5373
+ async stopService(ClusterId, ServiceName) {
4609
5374
  let runtime = new $Util.RuntimeOptions({});
4610
5375
  let headers = {};
4611
- return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
5376
+ return await this.stopServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4612
5377
  }
4613
5378
  async updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime) {
4614
5379
  tea_util_1.default.validateModel(request);
@@ -4629,10 +5394,10 @@ class Client extends openapi_client_1.default {
4629
5394
  });
4630
5395
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateBenchmarkTaskResponse({}));
4631
5396
  }
4632
- async updateResource(ClusterId, ResourceId, request) {
5397
+ async updateBenchmarkTask(ClusterId, TaskName, request) {
4633
5398
  let runtime = new $Util.RuntimeOptions({});
4634
5399
  let headers = {};
4635
- return await this.updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime);
5400
+ return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
4636
5401
  }
4637
5402
  async updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime) {
4638
5403
  tea_util_1.default.validateModel(request);
@@ -4657,10 +5422,10 @@ class Client extends openapi_client_1.default {
4657
5422
  });
4658
5423
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateResourceResponse({}));
4659
5424
  }
4660
- async updateResourceDLink(ClusterId, ResourceId, request) {
5425
+ async updateResource(ClusterId, ResourceId, request) {
4661
5426
  let runtime = new $Util.RuntimeOptions({});
4662
5427
  let headers = {};
4663
- return await this.updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime);
5428
+ return await this.updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime);
4664
5429
  }
4665
5430
  async updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime) {
4666
5431
  tea_util_1.default.validateModel(request);
@@ -4694,10 +5459,10 @@ class Client extends openapi_client_1.default {
4694
5459
  });
4695
5460
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateResourceDLinkResponse({}));
4696
5461
  }
4697
- async updateResourceInstance(ClusterId, ResourceId, InstanceId, request) {
5462
+ async updateResourceDLink(ClusterId, ResourceId, request) {
4698
5463
  let runtime = new $Util.RuntimeOptions({});
4699
5464
  let headers = {};
4700
- return await this.updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime);
5465
+ return await this.updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime);
4701
5466
  }
4702
5467
  async updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime) {
4703
5468
  tea_util_1.default.validateModel(request);
@@ -4722,10 +5487,10 @@ class Client extends openapi_client_1.default {
4722
5487
  });
4723
5488
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateResourceInstanceResponse({}));
4724
5489
  }
4725
- async updateService(ClusterId, ServiceName, request) {
5490
+ async updateResourceInstance(ClusterId, ResourceId, InstanceId, request) {
4726
5491
  let runtime = new $Util.RuntimeOptions({});
4727
5492
  let headers = {};
4728
- return await this.updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
5493
+ return await this.updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime);
4729
5494
  }
4730
5495
  async updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4731
5496
  tea_util_1.default.validateModel(request);
@@ -4746,14 +5511,17 @@ class Client extends openapi_client_1.default {
4746
5511
  });
4747
5512
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceResponse({}));
4748
5513
  }
4749
- async updateServiceAutoScaler(ClusterId, ServiceName, request) {
5514
+ async updateService(ClusterId, ServiceName, request) {
4750
5515
  let runtime = new $Util.RuntimeOptions({});
4751
5516
  let headers = {};
4752
- return await this.updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
5517
+ return await this.updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
4753
5518
  }
4754
5519
  async updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4755
5520
  tea_util_1.default.validateModel(request);
4756
5521
  let body = {};
5522
+ if (!tea_util_1.default.isUnset(request.behavior)) {
5523
+ body["behavior"] = request.behavior;
5524
+ }
4757
5525
  if (!tea_util_1.default.isUnset(request.max)) {
4758
5526
  body["max"] = request.max;
4759
5527
  }
@@ -4780,10 +5548,10 @@ class Client extends openapi_client_1.default {
4780
5548
  });
4781
5549
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceAutoScalerResponse({}));
4782
5550
  }
4783
- async updateServiceCronScaler(ClusterId, ServiceName, request) {
5551
+ async updateServiceAutoScaler(ClusterId, ServiceName, request) {
4784
5552
  let runtime = new $Util.RuntimeOptions({});
4785
5553
  let headers = {};
4786
- return await this.updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
5554
+ return await this.updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
4787
5555
  }
4788
5556
  async updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4789
5557
  tea_util_1.default.validateModel(request);
@@ -4811,10 +5579,38 @@ class Client extends openapi_client_1.default {
4811
5579
  });
4812
5580
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceCronScalerResponse({}));
4813
5581
  }
4814
- async updateServiceMirror(ClusterId, ServiceName, request) {
5582
+ async updateServiceCronScaler(ClusterId, ServiceName, request) {
4815
5583
  let runtime = new $Util.RuntimeOptions({});
4816
5584
  let headers = {};
4817
- return await this.updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
5585
+ return await this.updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
5586
+ }
5587
+ async updateServiceLabelWithOptions(ClusterId, ServiceName, request, headers, runtime) {
5588
+ tea_util_1.default.validateModel(request);
5589
+ let body = {};
5590
+ if (!tea_util_1.default.isUnset(request.labels)) {
5591
+ body["Labels"] = request.labels;
5592
+ }
5593
+ let req = new $OpenApi.OpenApiRequest({
5594
+ headers: headers,
5595
+ body: openapi_util_1.default.parseToMap(body),
5596
+ });
5597
+ let params = new $OpenApi.Params({
5598
+ action: "UpdateServiceLabel",
5599
+ version: "2021-07-01",
5600
+ protocol: "HTTPS",
5601
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/label`,
5602
+ method: "PUT",
5603
+ authType: "AK",
5604
+ style: "ROA",
5605
+ reqBodyType: "json",
5606
+ bodyType: "json",
5607
+ });
5608
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceLabelResponse({}));
5609
+ }
5610
+ async updateServiceLabel(ClusterId, ServiceName, request) {
5611
+ let runtime = new $Util.RuntimeOptions({});
5612
+ let headers = {};
5613
+ return await this.updateServiceLabelWithOptions(ClusterId, ServiceName, request, headers, runtime);
4818
5614
  }
4819
5615
  async updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4820
5616
  tea_util_1.default.validateModel(request);
@@ -4842,10 +5638,10 @@ class Client extends openapi_client_1.default {
4842
5638
  });
4843
5639
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceMirrorResponse({}));
4844
5640
  }
4845
- async updateServiceSafetyLock(ClusterId, ServiceName, request) {
5641
+ async updateServiceMirror(ClusterId, ServiceName, request) {
4846
5642
  let runtime = new $Util.RuntimeOptions({});
4847
5643
  let headers = {};
4848
- return await this.updateServiceSafetyLockWithOptions(ClusterId, ServiceName, request, headers, runtime);
5644
+ return await this.updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
4849
5645
  }
4850
5646
  async updateServiceSafetyLockWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4851
5647
  tea_util_1.default.validateModel(request);
@@ -4870,10 +5666,10 @@ class Client extends openapi_client_1.default {
4870
5666
  });
4871
5667
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceSafetyLockResponse({}));
4872
5668
  }
4873
- async updateServiceVersion(ClusterId, ServiceName, request) {
5669
+ async updateServiceSafetyLock(ClusterId, ServiceName, request) {
4874
5670
  let runtime = new $Util.RuntimeOptions({});
4875
5671
  let headers = {};
4876
- return await this.updateServiceVersionWithOptions(ClusterId, ServiceName, request, headers, runtime);
5672
+ return await this.updateServiceSafetyLockWithOptions(ClusterId, ServiceName, request, headers, runtime);
4877
5673
  }
4878
5674
  async updateServiceVersionWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4879
5675
  tea_util_1.default.validateModel(request);
@@ -4898,6 +5694,11 @@ class Client extends openapi_client_1.default {
4898
5694
  });
4899
5695
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceVersionResponse({}));
4900
5696
  }
5697
+ async updateServiceVersion(ClusterId, ServiceName, request) {
5698
+ let runtime = new $Util.RuntimeOptions({});
5699
+ let headers = {};
5700
+ return await this.updateServiceVersionWithOptions(ClusterId, ServiceName, request, headers, runtime);
5701
+ }
4901
5702
  }
4902
5703
  exports.default = Client;
4903
5704
  //# sourceMappingURL=client.js.map