@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/src/client.ts CHANGED
@@ -8,6 +8,55 @@ import OpenApiUtil from '@alicloud/openapi-util';
8
8
  import EndpointUtil from '@alicloud/endpoint-util';
9
9
  import * as $tea from '@alicloud/tea-typescript';
10
10
 
11
+ export class ContainerInfo extends $tea.Model {
12
+ currentReaon?: string;
13
+ currentStatus?: string;
14
+ currentTimestamp?: string;
15
+ image?: string;
16
+ lastReason?: string;
17
+ lastStatus?: string;
18
+ lastTimestamp?: string;
19
+ name?: string;
20
+ port?: number;
21
+ ready?: boolean;
22
+ restartCount?: number;
23
+ static names(): { [key: string]: string } {
24
+ return {
25
+ currentReaon: 'CurrentReaon',
26
+ currentStatus: 'CurrentStatus',
27
+ currentTimestamp: 'CurrentTimestamp',
28
+ image: 'Image',
29
+ lastReason: 'LastReason',
30
+ lastStatus: 'LastStatus',
31
+ lastTimestamp: 'LastTimestamp',
32
+ name: 'Name',
33
+ port: 'Port',
34
+ ready: 'Ready',
35
+ restartCount: 'RestartCount',
36
+ };
37
+ }
38
+
39
+ static types(): { [key: string]: any } {
40
+ return {
41
+ currentReaon: 'string',
42
+ currentStatus: 'string',
43
+ currentTimestamp: 'string',
44
+ image: 'string',
45
+ lastReason: 'string',
46
+ lastStatus: 'string',
47
+ lastTimestamp: 'string',
48
+ name: 'string',
49
+ port: 'number',
50
+ ready: 'boolean',
51
+ restartCount: 'number',
52
+ };
53
+ }
54
+
55
+ constructor(map?: { [key: string]: any }) {
56
+ super(map);
57
+ }
58
+ }
59
+
11
60
  export class Group extends $tea.Model {
12
61
  accessToken?: string;
13
62
  clusterId?: string;
@@ -49,51 +98,72 @@ export class Group extends $tea.Model {
49
98
  }
50
99
 
51
100
  export class Instance extends $tea.Model {
101
+ currentAmount?: number;
52
102
  hostIP?: string;
53
103
  hostName?: string;
54
104
  innerIP?: string;
55
105
  instanceName?: string;
56
106
  instancePort?: number;
107
+ isSpot?: boolean;
57
108
  lastState?: { [key: string]: any }[];
58
109
  namespace?: string;
110
+ originalAmount?: number;
59
111
  readyProcesses?: number;
60
112
  reason?: string;
113
+ resourceType?: string;
61
114
  restartCount?: number;
115
+ role?: string;
62
116
  startAt?: string;
63
117
  status?: string;
118
+ tenantHostIP?: string;
119
+ tenantInstanceIP?: string;
64
120
  totalProcesses?: number;
65
121
  static names(): { [key: string]: string } {
66
122
  return {
123
+ currentAmount: 'CurrentAmount',
67
124
  hostIP: 'HostIP',
68
125
  hostName: 'HostName',
69
126
  innerIP: 'InnerIP',
70
127
  instanceName: 'InstanceName',
71
128
  instancePort: 'InstancePort',
129
+ isSpot: 'IsSpot',
72
130
  lastState: 'LastState',
73
131
  namespace: 'Namespace',
132
+ originalAmount: 'OriginalAmount',
74
133
  readyProcesses: 'ReadyProcesses',
75
134
  reason: 'Reason',
135
+ resourceType: 'ResourceType',
76
136
  restartCount: 'RestartCount',
137
+ role: 'Role',
77
138
  startAt: 'StartAt',
78
139
  status: 'Status',
140
+ tenantHostIP: 'TenantHostIP',
141
+ tenantInstanceIP: 'TenantInstanceIP',
79
142
  totalProcesses: 'TotalProcesses',
80
143
  };
81
144
  }
82
145
 
83
146
  static types(): { [key: string]: any } {
84
147
  return {
148
+ currentAmount: 'number',
85
149
  hostIP: 'string',
86
150
  hostName: 'string',
87
151
  innerIP: 'string',
88
152
  instanceName: 'string',
89
153
  instancePort: 'number',
154
+ isSpot: 'boolean',
90
155
  lastState: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
91
156
  namespace: 'string',
157
+ originalAmount: 'number',
92
158
  readyProcesses: 'number',
93
159
  reason: 'string',
160
+ resourceType: 'string',
94
161
  restartCount: 'number',
162
+ role: 'string',
95
163
  startAt: 'string',
96
164
  status: 'string',
165
+ tenantHostIP: 'string',
166
+ tenantInstanceIP: 'string',
97
167
  totalProcesses: 'number',
98
168
  };
99
169
  }
@@ -172,11 +242,15 @@ export class ResourceInstance extends $tea.Model {
172
242
  instanceMemory?: string;
173
243
  instanceName?: string;
174
244
  instanceStatus?: string;
245
+ instanceSystemDiskSize?: number;
246
+ instanceTenantIp?: string;
175
247
  instanceType?: string;
176
248
  instanceUsedCpu?: number;
177
249
  instanceUsedGpu?: number;
250
+ instanceUsedGpuMemory?: string;
178
251
  instanceUsedMemory?: string;
179
252
  region?: string;
253
+ resourceId?: string;
180
254
  zone?: string;
181
255
  static names(): { [key: string]: string } {
182
256
  return {
@@ -193,11 +267,15 @@ export class ResourceInstance extends $tea.Model {
193
267
  instanceMemory: 'InstanceMemory',
194
268
  instanceName: 'InstanceName',
195
269
  instanceStatus: 'InstanceStatus',
270
+ instanceSystemDiskSize: 'InstanceSystemDiskSize',
271
+ instanceTenantIp: 'InstanceTenantIp',
196
272
  instanceType: 'InstanceType',
197
273
  instanceUsedCpu: 'InstanceUsedCpu',
198
274
  instanceUsedGpu: 'InstanceUsedGpu',
275
+ instanceUsedGpuMemory: 'InstanceUsedGpuMemory',
199
276
  instanceUsedMemory: 'InstanceUsedMemory',
200
277
  region: 'Region',
278
+ resourceId: 'ResourceId',
201
279
  zone: 'Zone',
202
280
  };
203
281
  }
@@ -217,11 +295,15 @@ export class ResourceInstance extends $tea.Model {
217
295
  instanceMemory: 'string',
218
296
  instanceName: 'string',
219
297
  instanceStatus: 'string',
298
+ instanceSystemDiskSize: 'number',
299
+ instanceTenantIp: 'string',
220
300
  instanceType: 'string',
221
301
  instanceUsedCpu: 'number',
222
302
  instanceUsedGpu: 'number',
303
+ instanceUsedGpuMemory: 'string',
223
304
  instanceUsedMemory: 'string',
224
305
  region: 'string',
306
+ resourceId: 'string',
225
307
  zone: 'string',
226
308
  };
227
309
  }
@@ -294,6 +376,7 @@ export class Service extends $tea.Model {
294
376
  image?: string;
295
377
  internetEndpoint?: string;
296
378
  intranetEndpoint?: string;
379
+ labels?: ServiceLabels[];
297
380
  latestVersion?: number;
298
381
  memory?: number;
299
382
  message?: string;
@@ -331,6 +414,7 @@ export class Service extends $tea.Model {
331
414
  image: 'Image',
332
415
  internetEndpoint: 'InternetEndpoint',
333
416
  intranetEndpoint: 'IntranetEndpoint',
417
+ labels: 'Labels',
334
418
  latestVersion: 'LatestVersion',
335
419
  memory: 'Memory',
336
420
  message: 'Message',
@@ -371,6 +455,7 @@ export class Service extends $tea.Model {
371
455
  image: 'string',
372
456
  internetEndpoint: 'string',
373
457
  intranetEndpoint: 'string',
458
+ labels: { 'type': 'array', 'itemType': ServiceLabels },
374
459
  latestVersion: 'number',
375
460
  memory: 'number',
376
461
  message: 'string',
@@ -404,6 +489,53 @@ export class Service extends $tea.Model {
404
489
  }
405
490
  }
406
491
 
492
+ export class CommitServiceResponseBody extends $tea.Model {
493
+ message?: string;
494
+ requestId?: string;
495
+ static names(): { [key: string]: string } {
496
+ return {
497
+ message: 'Message',
498
+ requestId: 'RequestId',
499
+ };
500
+ }
501
+
502
+ static types(): { [key: string]: any } {
503
+ return {
504
+ message: 'string',
505
+ requestId: 'string',
506
+ };
507
+ }
508
+
509
+ constructor(map?: { [key: string]: any }) {
510
+ super(map);
511
+ }
512
+ }
513
+
514
+ export class CommitServiceResponse extends $tea.Model {
515
+ headers: { [key: string]: string };
516
+ statusCode: number;
517
+ body: CommitServiceResponseBody;
518
+ static names(): { [key: string]: string } {
519
+ return {
520
+ headers: 'headers',
521
+ statusCode: 'statusCode',
522
+ body: 'body',
523
+ };
524
+ }
525
+
526
+ static types(): { [key: string]: any } {
527
+ return {
528
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
529
+ statusCode: 'number',
530
+ body: CommitServiceResponseBody,
531
+ };
532
+ }
533
+
534
+ constructor(map?: { [key: string]: any }) {
535
+ super(map);
536
+ }
537
+ }
538
+
407
539
  export class CreateBenchmarkTaskRequest extends $tea.Model {
408
540
  body?: string;
409
541
  static names(): { [key: string]: string } {
@@ -481,12 +613,16 @@ export class CreateResourceRequest extends $tea.Model {
481
613
  chargeType?: string;
482
614
  ecsInstanceCount?: number;
483
615
  ecsInstanceType?: string;
616
+ systemDiskSize?: number;
617
+ zone?: string;
484
618
  static names(): { [key: string]: string } {
485
619
  return {
486
620
  autoRenewal: 'AutoRenewal',
487
621
  chargeType: 'ChargeType',
488
622
  ecsInstanceCount: 'EcsInstanceCount',
489
623
  ecsInstanceType: 'EcsInstanceType',
624
+ systemDiskSize: 'SystemDiskSize',
625
+ zone: 'Zone',
490
626
  };
491
627
  }
492
628
 
@@ -496,6 +632,8 @@ export class CreateResourceRequest extends $tea.Model {
496
632
  chargeType: 'string',
497
633
  ecsInstanceCount: 'number',
498
634
  ecsInstanceType: 'string',
635
+ systemDiskSize: 'number',
636
+ zone: 'string',
499
637
  };
500
638
  }
501
639
 
@@ -506,6 +644,7 @@ export class CreateResourceRequest extends $tea.Model {
506
644
 
507
645
  export class CreateResourceResponseBody extends $tea.Model {
508
646
  clusterId?: string;
647
+ instanceIds?: string[];
509
648
  ownerUid?: string;
510
649
  requestId?: string;
511
650
  resourceId?: string;
@@ -513,6 +652,7 @@ export class CreateResourceResponseBody extends $tea.Model {
513
652
  static names(): { [key: string]: string } {
514
653
  return {
515
654
  clusterId: 'ClusterId',
655
+ instanceIds: 'InstanceIds',
516
656
  ownerUid: 'OwnerUid',
517
657
  requestId: 'RequestId',
518
658
  resourceId: 'ResourceId',
@@ -523,6 +663,7 @@ export class CreateResourceResponseBody extends $tea.Model {
523
663
  static types(): { [key: string]: any } {
524
664
  return {
525
665
  clusterId: 'string',
666
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
526
667
  ownerUid: 'string',
527
668
  requestId: 'string',
528
669
  resourceId: 'string',
@@ -565,14 +706,18 @@ export class CreateResourceInstancesRequest extends $tea.Model {
565
706
  chargeType?: string;
566
707
  ecsInstanceCount?: number;
567
708
  ecsInstanceType?: string;
709
+ systemDiskSize?: number;
568
710
  userData?: string;
711
+ zone?: string;
569
712
  static names(): { [key: string]: string } {
570
713
  return {
571
714
  autoRenewal: 'AutoRenewal',
572
715
  chargeType: 'ChargeType',
573
716
  ecsInstanceCount: 'EcsInstanceCount',
574
717
  ecsInstanceType: 'EcsInstanceType',
718
+ systemDiskSize: 'SystemDiskSize',
575
719
  userData: 'UserData',
720
+ zone: 'Zone',
576
721
  };
577
722
  }
578
723
 
@@ -582,7 +727,9 @@ export class CreateResourceInstancesRequest extends $tea.Model {
582
727
  chargeType: 'string',
583
728
  ecsInstanceCount: 'number',
584
729
  ecsInstanceType: 'string',
730
+ systemDiskSize: 'number',
585
731
  userData: 'string',
732
+ zone: 'string',
586
733
  };
587
734
  }
588
735
 
@@ -592,10 +739,12 @@ export class CreateResourceInstancesRequest extends $tea.Model {
592
739
  }
593
740
 
594
741
  export class CreateResourceInstancesResponseBody extends $tea.Model {
742
+ instanceIds?: string[];
595
743
  message?: string;
596
744
  requestId?: string;
597
745
  static names(): { [key: string]: string } {
598
746
  return {
747
+ instanceIds: 'InstanceIds',
599
748
  message: 'Message',
600
749
  requestId: 'RequestId',
601
750
  };
@@ -603,6 +752,7 @@ export class CreateResourceInstancesResponseBody extends $tea.Model {
603
752
 
604
753
  static types(): { [key: string]: any } {
605
754
  return {
755
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
606
756
  message: 'string',
607
757
  requestId: 'string',
608
758
  };
@@ -708,15 +858,46 @@ export class CreateResourceLogResponse extends $tea.Model {
708
858
  }
709
859
 
710
860
  export class CreateServiceRequest extends $tea.Model {
861
+ develop?: string;
862
+ labels?: { [key: string]: string };
863
+ body?: string;
864
+ static names(): { [key: string]: string } {
865
+ return {
866
+ develop: 'Develop',
867
+ labels: 'Labels',
868
+ body: 'body',
869
+ };
870
+ }
871
+
872
+ static types(): { [key: string]: any } {
873
+ return {
874
+ develop: 'string',
875
+ labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
876
+ body: 'string',
877
+ };
878
+ }
879
+
880
+ constructor(map?: { [key: string]: any }) {
881
+ super(map);
882
+ }
883
+ }
884
+
885
+ export class CreateServiceShrinkRequest extends $tea.Model {
886
+ develop?: string;
887
+ labelsShrink?: string;
711
888
  body?: string;
712
889
  static names(): { [key: string]: string } {
713
890
  return {
891
+ develop: 'Develop',
892
+ labelsShrink: 'Labels',
714
893
  body: 'body',
715
894
  };
716
895
  }
717
896
 
718
897
  static types(): { [key: string]: any } {
719
898
  return {
899
+ develop: 'string',
900
+ labelsShrink: 'string',
720
901
  body: 'string',
721
902
  };
722
903
  }
@@ -789,11 +970,13 @@ export class CreateServiceResponse extends $tea.Model {
789
970
  }
790
971
 
791
972
  export class CreateServiceAutoScalerRequest extends $tea.Model {
973
+ behavior?: CreateServiceAutoScalerRequestBehavior;
792
974
  max?: number;
793
975
  min?: number;
794
976
  scaleStrategies?: CreateServiceAutoScalerRequestScaleStrategies[];
795
977
  static names(): { [key: string]: string } {
796
978
  return {
979
+ behavior: 'behavior',
797
980
  max: 'max',
798
981
  min: 'min',
799
982
  scaleStrategies: 'scaleStrategies',
@@ -802,6 +985,7 @@ export class CreateServiceAutoScalerRequest extends $tea.Model {
802
985
 
803
986
  static types(): { [key: string]: any } {
804
987
  return {
988
+ behavior: CreateServiceAutoScalerRequestBehavior,
805
989
  max: 'number',
806
990
  min: 'number',
807
991
  scaleStrategies: { 'type': 'array', 'itemType': CreateServiceAutoScalerRequestScaleStrategies },
@@ -1462,6 +1646,91 @@ export class DeleteServiceInstancesResponse extends $tea.Model {
1462
1646
  }
1463
1647
  }
1464
1648
 
1649
+ export class DeleteServiceLabelRequest extends $tea.Model {
1650
+ keys?: string[];
1651
+ static names(): { [key: string]: string } {
1652
+ return {
1653
+ keys: 'Keys',
1654
+ };
1655
+ }
1656
+
1657
+ static types(): { [key: string]: any } {
1658
+ return {
1659
+ keys: { 'type': 'array', 'itemType': 'string' },
1660
+ };
1661
+ }
1662
+
1663
+ constructor(map?: { [key: string]: any }) {
1664
+ super(map);
1665
+ }
1666
+ }
1667
+
1668
+ export class DeleteServiceLabelShrinkRequest extends $tea.Model {
1669
+ keysShrink?: string;
1670
+ static names(): { [key: string]: string } {
1671
+ return {
1672
+ keysShrink: 'Keys',
1673
+ };
1674
+ }
1675
+
1676
+ static types(): { [key: string]: any } {
1677
+ return {
1678
+ keysShrink: 'string',
1679
+ };
1680
+ }
1681
+
1682
+ constructor(map?: { [key: string]: any }) {
1683
+ super(map);
1684
+ }
1685
+ }
1686
+
1687
+ export class DeleteServiceLabelResponseBody extends $tea.Model {
1688
+ message?: string;
1689
+ requestId?: string;
1690
+ static names(): { [key: string]: string } {
1691
+ return {
1692
+ message: 'Message',
1693
+ requestId: 'RequestId',
1694
+ };
1695
+ }
1696
+
1697
+ static types(): { [key: string]: any } {
1698
+ return {
1699
+ message: 'string',
1700
+ requestId: 'string',
1701
+ };
1702
+ }
1703
+
1704
+ constructor(map?: { [key: string]: any }) {
1705
+ super(map);
1706
+ }
1707
+ }
1708
+
1709
+ export class DeleteServiceLabelResponse extends $tea.Model {
1710
+ headers: { [key: string]: string };
1711
+ statusCode: number;
1712
+ body: DeleteServiceLabelResponseBody;
1713
+ static names(): { [key: string]: string } {
1714
+ return {
1715
+ headers: 'headers',
1716
+ statusCode: 'statusCode',
1717
+ body: 'body',
1718
+ };
1719
+ }
1720
+
1721
+ static types(): { [key: string]: any } {
1722
+ return {
1723
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1724
+ statusCode: 'number',
1725
+ body: DeleteServiceLabelResponseBody,
1726
+ };
1727
+ }
1728
+
1729
+ constructor(map?: { [key: string]: any }) {
1730
+ super(map);
1731
+ }
1732
+ }
1733
+
1465
1734
  export class DeleteServiceMirrorResponseBody extends $tea.Model {
1466
1735
  message?: string;
1467
1736
  requestId?: string;
@@ -2026,12 +2295,16 @@ export class DescribeServiceCronScalerResponse extends $tea.Model {
2026
2295
 
2027
2296
  export class DescribeServiceEventRequest extends $tea.Model {
2028
2297
  endTime?: string;
2298
+ eventType?: string;
2299
+ instanceName?: string;
2029
2300
  pageNum?: string;
2030
2301
  pageSize?: string;
2031
2302
  startTime?: string;
2032
2303
  static names(): { [key: string]: string } {
2033
2304
  return {
2034
2305
  endTime: 'EndTime',
2306
+ eventType: 'EventType',
2307
+ instanceName: 'InstanceName',
2035
2308
  pageNum: 'PageNum',
2036
2309
  pageSize: 'PageSize',
2037
2310
  startTime: 'StartTime',
@@ -2041,6 +2314,8 @@ export class DescribeServiceEventRequest extends $tea.Model {
2041
2314
  static types(): { [key: string]: any } {
2042
2315
  return {
2043
2316
  endTime: 'string',
2317
+ eventType: 'string',
2318
+ instanceName: 'string',
2044
2319
  pageNum: 'string',
2045
2320
  pageSize: 'string',
2046
2321
  startTime: 'string',
@@ -2109,30 +2384,39 @@ export class DescribeServiceEventResponse extends $tea.Model {
2109
2384
  }
2110
2385
 
2111
2386
  export class DescribeServiceLogRequest extends $tea.Model {
2387
+ containerName?: string;
2112
2388
  endTime?: string;
2389
+ instanceName?: string;
2113
2390
  ip?: string;
2114
2391
  keyword?: string;
2115
2392
  pageNum?: number;
2116
2393
  pageSize?: number;
2394
+ previous?: boolean;
2117
2395
  startTime?: string;
2118
2396
  static names(): { [key: string]: string } {
2119
2397
  return {
2398
+ containerName: 'ContainerName',
2120
2399
  endTime: 'EndTime',
2400
+ instanceName: 'InstanceName',
2121
2401
  ip: 'Ip',
2122
2402
  keyword: 'Keyword',
2123
2403
  pageNum: 'PageNum',
2124
2404
  pageSize: 'PageSize',
2405
+ previous: 'Previous',
2125
2406
  startTime: 'StartTime',
2126
2407
  };
2127
2408
  }
2128
2409
 
2129
2410
  static types(): { [key: string]: any } {
2130
2411
  return {
2412
+ containerName: 'string',
2131
2413
  endTime: 'string',
2414
+ instanceName: 'string',
2132
2415
  ip: 'string',
2133
2416
  keyword: 'string',
2134
2417
  pageNum: 'number',
2135
2418
  pageSize: 'number',
2419
+ previous: 'boolean',
2136
2420
  startTime: 'string',
2137
2421
  };
2138
2422
  }
@@ -2251,6 +2535,72 @@ export class DescribeServiceMirrorResponse extends $tea.Model {
2251
2535
  }
2252
2536
  }
2253
2537
 
2538
+ export class DevelopServiceRequest extends $tea.Model {
2539
+ exit?: string;
2540
+ static names(): { [key: string]: string } {
2541
+ return {
2542
+ exit: 'Exit',
2543
+ };
2544
+ }
2545
+
2546
+ static types(): { [key: string]: any } {
2547
+ return {
2548
+ exit: 'string',
2549
+ };
2550
+ }
2551
+
2552
+ constructor(map?: { [key: string]: any }) {
2553
+ super(map);
2554
+ }
2555
+ }
2556
+
2557
+ export class DevelopServiceResponseBody extends $tea.Model {
2558
+ message?: string;
2559
+ requestId?: string;
2560
+ static names(): { [key: string]: string } {
2561
+ return {
2562
+ message: 'Message',
2563
+ requestId: 'RequestId',
2564
+ };
2565
+ }
2566
+
2567
+ static types(): { [key: string]: any } {
2568
+ return {
2569
+ message: 'string',
2570
+ requestId: 'string',
2571
+ };
2572
+ }
2573
+
2574
+ constructor(map?: { [key: string]: any }) {
2575
+ super(map);
2576
+ }
2577
+ }
2578
+
2579
+ export class DevelopServiceResponse extends $tea.Model {
2580
+ headers: { [key: string]: string };
2581
+ statusCode: number;
2582
+ body: DevelopServiceResponseBody;
2583
+ static names(): { [key: string]: string } {
2584
+ return {
2585
+ headers: 'headers',
2586
+ statusCode: 'statusCode',
2587
+ body: 'body',
2588
+ };
2589
+ }
2590
+
2591
+ static types(): { [key: string]: any } {
2592
+ return {
2593
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2594
+ statusCode: 'number',
2595
+ body: DevelopServiceResponseBody,
2596
+ };
2597
+ }
2598
+
2599
+ constructor(map?: { [key: string]: any }) {
2600
+ super(map);
2601
+ }
2602
+ }
2603
+
2254
2604
  export class ListBenchmarkTaskRequest extends $tea.Model {
2255
2605
  filter?: string;
2256
2606
  pageNumber?: string;
@@ -2496,27 +2846,42 @@ export class ListResourceInstanceWorkerResponse extends $tea.Model {
2496
2846
 
2497
2847
  export class ListResourceInstancesRequest extends $tea.Model {
2498
2848
  chargeType?: string;
2849
+ filter?: string;
2850
+ instanceIP?: string;
2499
2851
  instanceId?: string;
2500
2852
  instanceName?: string;
2853
+ instanceStatus?: string;
2854
+ order?: string;
2501
2855
  pageNumber?: number;
2502
2856
  pageSize?: number;
2857
+ sort?: string;
2503
2858
  static names(): { [key: string]: string } {
2504
2859
  return {
2505
2860
  chargeType: 'ChargeType',
2861
+ filter: 'Filter',
2862
+ instanceIP: 'InstanceIP',
2506
2863
  instanceId: 'InstanceId',
2507
2864
  instanceName: 'InstanceName',
2865
+ instanceStatus: 'InstanceStatus',
2866
+ order: 'Order',
2508
2867
  pageNumber: 'PageNumber',
2509
2868
  pageSize: 'PageSize',
2869
+ sort: 'Sort',
2510
2870
  };
2511
2871
  }
2512
2872
 
2513
2873
  static types(): { [key: string]: any } {
2514
2874
  return {
2515
2875
  chargeType: 'string',
2876
+ filter: 'string',
2877
+ instanceIP: 'string',
2516
2878
  instanceId: 'string',
2517
2879
  instanceName: 'string',
2880
+ instanceStatus: 'string',
2881
+ order: 'string',
2518
2882
  pageNumber: 'number',
2519
2883
  pageSize: 'number',
2884
+ sort: 'string',
2520
2885
  };
2521
2886
  }
2522
2887
 
@@ -2744,19 +3109,52 @@ export class ListResourcesResponse extends $tea.Model {
2744
3109
  }
2745
3110
 
2746
3111
  export class ListServiceInstancesRequest extends $tea.Model {
3112
+ filter?: string;
3113
+ hostIP?: string;
3114
+ instanceIP?: string;
3115
+ instanceName?: string;
3116
+ instanceStatus?: string;
3117
+ instanceType?: string;
3118
+ isSpot?: boolean;
3119
+ order?: string;
2747
3120
  pageNumber?: number;
2748
3121
  pageSize?: number;
2749
- static names(): { [key: string]: string } {
3122
+ resourceType?: string;
3123
+ role?: string;
3124
+ sort?: string;
3125
+ static names(): { [key: string]: string } {
2750
3126
  return {
3127
+ filter: 'Filter',
3128
+ hostIP: 'HostIP',
3129
+ instanceIP: 'InstanceIP',
3130
+ instanceName: 'InstanceName',
3131
+ instanceStatus: 'InstanceStatus',
3132
+ instanceType: 'InstanceType',
3133
+ isSpot: 'IsSpot',
3134
+ order: 'Order',
2751
3135
  pageNumber: 'PageNumber',
2752
3136
  pageSize: 'PageSize',
3137
+ resourceType: 'ResourceType',
3138
+ role: 'Role',
3139
+ sort: 'Sort',
2753
3140
  };
2754
3141
  }
2755
3142
 
2756
3143
  static types(): { [key: string]: any } {
2757
3144
  return {
3145
+ filter: 'string',
3146
+ hostIP: 'string',
3147
+ instanceIP: 'string',
3148
+ instanceName: 'string',
3149
+ instanceStatus: 'string',
3150
+ instanceType: 'string',
3151
+ isSpot: 'boolean',
3152
+ order: 'string',
2758
3153
  pageNumber: 'number',
2759
3154
  pageSize: 'number',
3155
+ resourceType: 'string',
3156
+ role: 'string',
3157
+ sort: 'string',
2760
3158
  };
2761
3159
  }
2762
3160
 
@@ -2902,17 +3300,86 @@ export class ListServiceVersionsResponse extends $tea.Model {
2902
3300
  export class ListServicesRequest extends $tea.Model {
2903
3301
  filter?: string;
2904
3302
  groupName?: string;
3303
+ label?: { [key: string]: string };
3304
+ order?: string;
3305
+ pageNumber?: number;
3306
+ pageSize?: number;
3307
+ parentServiceUid?: string;
3308
+ resourceName?: string;
3309
+ serviceName?: string;
3310
+ serviceStatus?: string;
3311
+ serviceType?: string;
3312
+ serviceUid?: string;
3313
+ sort?: string;
3314
+ static names(): { [key: string]: string } {
3315
+ return {
3316
+ filter: 'Filter',
3317
+ groupName: 'GroupName',
3318
+ label: 'Label',
3319
+ order: 'Order',
3320
+ pageNumber: 'PageNumber',
3321
+ pageSize: 'PageSize',
3322
+ parentServiceUid: 'ParentServiceUid',
3323
+ resourceName: 'ResourceName',
3324
+ serviceName: 'ServiceName',
3325
+ serviceStatus: 'ServiceStatus',
3326
+ serviceType: 'ServiceType',
3327
+ serviceUid: 'ServiceUid',
3328
+ sort: 'Sort',
3329
+ };
3330
+ }
3331
+
3332
+ static types(): { [key: string]: any } {
3333
+ return {
3334
+ filter: 'string',
3335
+ groupName: 'string',
3336
+ label: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3337
+ order: 'string',
3338
+ pageNumber: 'number',
3339
+ pageSize: 'number',
3340
+ parentServiceUid: 'string',
3341
+ resourceName: 'string',
3342
+ serviceName: 'string',
3343
+ serviceStatus: 'string',
3344
+ serviceType: 'string',
3345
+ serviceUid: 'string',
3346
+ sort: 'string',
3347
+ };
3348
+ }
3349
+
3350
+ constructor(map?: { [key: string]: any }) {
3351
+ super(map);
3352
+ }
3353
+ }
3354
+
3355
+ export class ListServicesShrinkRequest extends $tea.Model {
3356
+ filter?: string;
3357
+ groupName?: string;
3358
+ labelShrink?: string;
2905
3359
  order?: string;
2906
3360
  pageNumber?: number;
2907
3361
  pageSize?: number;
3362
+ parentServiceUid?: string;
3363
+ resourceName?: string;
3364
+ serviceName?: string;
3365
+ serviceStatus?: string;
3366
+ serviceType?: string;
3367
+ serviceUid?: string;
2908
3368
  sort?: string;
2909
3369
  static names(): { [key: string]: string } {
2910
3370
  return {
2911
3371
  filter: 'Filter',
2912
3372
  groupName: 'GroupName',
3373
+ labelShrink: 'Label',
2913
3374
  order: 'Order',
2914
3375
  pageNumber: 'PageNumber',
2915
3376
  pageSize: 'PageSize',
3377
+ parentServiceUid: 'ParentServiceUid',
3378
+ resourceName: 'ResourceName',
3379
+ serviceName: 'ServiceName',
3380
+ serviceStatus: 'ServiceStatus',
3381
+ serviceType: 'ServiceType',
3382
+ serviceUid: 'ServiceUid',
2916
3383
  sort: 'Sort',
2917
3384
  };
2918
3385
  }
@@ -2921,9 +3388,16 @@ export class ListServicesRequest extends $tea.Model {
2921
3388
  return {
2922
3389
  filter: 'string',
2923
3390
  groupName: 'string',
3391
+ labelShrink: 'string',
2924
3392
  order: 'string',
2925
3393
  pageNumber: 'number',
2926
3394
  pageSize: 'number',
3395
+ parentServiceUid: 'string',
3396
+ resourceName: 'string',
3397
+ serviceName: 'string',
3398
+ serviceStatus: 'string',
3399
+ serviceType: 'string',
3400
+ serviceUid: 'string',
2927
3401
  sort: 'string',
2928
3402
  };
2929
3403
  }
@@ -3592,11 +4066,13 @@ export class UpdateServiceResponse extends $tea.Model {
3592
4066
  }
3593
4067
 
3594
4068
  export class UpdateServiceAutoScalerRequest extends $tea.Model {
4069
+ behavior?: UpdateServiceAutoScalerRequestBehavior;
3595
4070
  max?: number;
3596
4071
  min?: number;
3597
4072
  scaleStrategies?: UpdateServiceAutoScalerRequestScaleStrategies[];
3598
4073
  static names(): { [key: string]: string } {
3599
4074
  return {
4075
+ behavior: 'behavior',
3600
4076
  max: 'max',
3601
4077
  min: 'min',
3602
4078
  scaleStrategies: 'scaleStrategies',
@@ -3605,6 +4081,7 @@ export class UpdateServiceAutoScalerRequest extends $tea.Model {
3605
4081
 
3606
4082
  static types(): { [key: string]: any } {
3607
4083
  return {
4084
+ behavior: UpdateServiceAutoScalerRequestBehavior,
3608
4085
  max: 'number',
3609
4086
  min: 'number',
3610
4087
  scaleStrategies: { 'type': 'array', 'itemType': UpdateServiceAutoScalerRequestScaleStrategies },
@@ -3732,6 +4209,72 @@ export class UpdateServiceCronScalerResponse extends $tea.Model {
3732
4209
  }
3733
4210
  }
3734
4211
 
4212
+ export class UpdateServiceLabelRequest extends $tea.Model {
4213
+ labels?: { [key: string]: string };
4214
+ static names(): { [key: string]: string } {
4215
+ return {
4216
+ labels: 'Labels',
4217
+ };
4218
+ }
4219
+
4220
+ static types(): { [key: string]: any } {
4221
+ return {
4222
+ labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4223
+ };
4224
+ }
4225
+
4226
+ constructor(map?: { [key: string]: any }) {
4227
+ super(map);
4228
+ }
4229
+ }
4230
+
4231
+ export class UpdateServiceLabelResponseBody extends $tea.Model {
4232
+ message?: string;
4233
+ requestId?: string;
4234
+ static names(): { [key: string]: string } {
4235
+ return {
4236
+ message: 'Message',
4237
+ requestId: 'RequestId',
4238
+ };
4239
+ }
4240
+
4241
+ static types(): { [key: string]: any } {
4242
+ return {
4243
+ message: 'string',
4244
+ requestId: 'string',
4245
+ };
4246
+ }
4247
+
4248
+ constructor(map?: { [key: string]: any }) {
4249
+ super(map);
4250
+ }
4251
+ }
4252
+
4253
+ export class UpdateServiceLabelResponse extends $tea.Model {
4254
+ headers: { [key: string]: string };
4255
+ statusCode: number;
4256
+ body: UpdateServiceLabelResponseBody;
4257
+ static names(): { [key: string]: string } {
4258
+ return {
4259
+ headers: 'headers',
4260
+ statusCode: 'statusCode',
4261
+ body: 'body',
4262
+ };
4263
+ }
4264
+
4265
+ static types(): { [key: string]: any } {
4266
+ return {
4267
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4268
+ statusCode: 'number',
4269
+ body: UpdateServiceLabelResponseBody,
4270
+ };
4271
+ }
4272
+
4273
+ constructor(map?: { [key: string]: any }) {
4274
+ super(map);
4275
+ }
4276
+ }
4277
+
3735
4278
  export class UpdateServiceMirrorRequest extends $tea.Model {
3736
4279
  ratio?: number;
3737
4280
  target?: string[];
@@ -3933,6 +4476,113 @@ export class UpdateServiceVersionResponse extends $tea.Model {
3933
4476
  }
3934
4477
  }
3935
4478
 
4479
+ export class ServiceLabels extends $tea.Model {
4480
+ labelKey?: string;
4481
+ labelValue?: string;
4482
+ static names(): { [key: string]: string } {
4483
+ return {
4484
+ labelKey: 'LabelKey',
4485
+ labelValue: 'LabelValue',
4486
+ };
4487
+ }
4488
+
4489
+ static types(): { [key: string]: any } {
4490
+ return {
4491
+ labelKey: 'string',
4492
+ labelValue: 'string',
4493
+ };
4494
+ }
4495
+
4496
+ constructor(map?: { [key: string]: any }) {
4497
+ super(map);
4498
+ }
4499
+ }
4500
+
4501
+ export class CreateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
4502
+ scaleDownGracePeriodSeconds?: number;
4503
+ scaleUpActivationReplicas?: number;
4504
+ static names(): { [key: string]: string } {
4505
+ return {
4506
+ scaleDownGracePeriodSeconds: 'scaleDownGracePeriodSeconds',
4507
+ scaleUpActivationReplicas: 'scaleUpActivationReplicas',
4508
+ };
4509
+ }
4510
+
4511
+ static types(): { [key: string]: any } {
4512
+ return {
4513
+ scaleDownGracePeriodSeconds: 'number',
4514
+ scaleUpActivationReplicas: 'number',
4515
+ };
4516
+ }
4517
+
4518
+ constructor(map?: { [key: string]: any }) {
4519
+ super(map);
4520
+ }
4521
+ }
4522
+
4523
+ export class CreateServiceAutoScalerRequestBehaviorScaleDown extends $tea.Model {
4524
+ stabilizationWindowSeconds?: number;
4525
+ static names(): { [key: string]: string } {
4526
+ return {
4527
+ stabilizationWindowSeconds: 'stabilizationWindowSeconds',
4528
+ };
4529
+ }
4530
+
4531
+ static types(): { [key: string]: any } {
4532
+ return {
4533
+ stabilizationWindowSeconds: 'number',
4534
+ };
4535
+ }
4536
+
4537
+ constructor(map?: { [key: string]: any }) {
4538
+ super(map);
4539
+ }
4540
+ }
4541
+
4542
+ export class CreateServiceAutoScalerRequestBehaviorScaleUp extends $tea.Model {
4543
+ stabilizationWindowSeconds?: number;
4544
+ static names(): { [key: string]: string } {
4545
+ return {
4546
+ stabilizationWindowSeconds: 'stabilizationWindowSeconds',
4547
+ };
4548
+ }
4549
+
4550
+ static types(): { [key: string]: any } {
4551
+ return {
4552
+ stabilizationWindowSeconds: 'number',
4553
+ };
4554
+ }
4555
+
4556
+ constructor(map?: { [key: string]: any }) {
4557
+ super(map);
4558
+ }
4559
+ }
4560
+
4561
+ export class CreateServiceAutoScalerRequestBehavior extends $tea.Model {
4562
+ onZero?: CreateServiceAutoScalerRequestBehaviorOnZero;
4563
+ scaleDown?: CreateServiceAutoScalerRequestBehaviorScaleDown;
4564
+ scaleUp?: CreateServiceAutoScalerRequestBehaviorScaleUp;
4565
+ static names(): { [key: string]: string } {
4566
+ return {
4567
+ onZero: 'onZero',
4568
+ scaleDown: 'scaleDown',
4569
+ scaleUp: 'scaleUp',
4570
+ };
4571
+ }
4572
+
4573
+ static types(): { [key: string]: any } {
4574
+ return {
4575
+ onZero: CreateServiceAutoScalerRequestBehaviorOnZero,
4576
+ scaleDown: CreateServiceAutoScalerRequestBehaviorScaleDown,
4577
+ scaleUp: CreateServiceAutoScalerRequestBehaviorScaleUp,
4578
+ };
4579
+ }
4580
+
4581
+ constructor(map?: { [key: string]: any }) {
4582
+ super(map);
4583
+ }
4584
+ }
4585
+
3936
4586
  export class CreateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
3937
4587
  metricName?: string;
3938
4588
  service?: string;
@@ -4172,23 +4822,20 @@ export class ListServiceVersionsResponseBodyVersions extends $tea.Model {
4172
4822
  }
4173
4823
  }
4174
4824
 
4175
- export class UpdateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
4176
- metricName?: string;
4177
- service?: string;
4178
- threshold?: number;
4825
+ export class UpdateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
4826
+ scaleDownGracePeriodSeconds?: number;
4827
+ scaleUpActivationReplicas?: number;
4179
4828
  static names(): { [key: string]: string } {
4180
4829
  return {
4181
- metricName: 'metricName',
4182
- service: 'service',
4183
- threshold: 'threshold',
4830
+ scaleDownGracePeriodSeconds: 'scaleDownGracePeriodSeconds',
4831
+ scaleUpActivationReplicas: 'scaleUpActivationReplicas',
4184
4832
  };
4185
4833
  }
4186
4834
 
4187
4835
  static types(): { [key: string]: any } {
4188
4836
  return {
4189
- metricName: 'string',
4190
- service: 'string',
4191
- threshold: 'number',
4837
+ scaleDownGracePeriodSeconds: 'number',
4838
+ scaleUpActivationReplicas: 'number',
4192
4839
  };
4193
4840
  }
4194
4841
 
@@ -4197,23 +4844,17 @@ export class UpdateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
4197
4844
  }
4198
4845
  }
4199
4846
 
4200
- export class UpdateServiceCronScalerRequestScaleJobs extends $tea.Model {
4201
- name?: string;
4202
- schedule?: string;
4203
- targetSize?: number;
4847
+ export class UpdateServiceAutoScalerRequestBehaviorScaleDown extends $tea.Model {
4848
+ stabilizationWindowSeconds?: number;
4204
4849
  static names(): { [key: string]: string } {
4205
4850
  return {
4206
- name: 'Name',
4207
- schedule: 'Schedule',
4208
- targetSize: 'TargetSize',
4851
+ stabilizationWindowSeconds: 'stabilizationWindowSeconds',
4209
4852
  };
4210
4853
  }
4211
4854
 
4212
4855
  static types(): { [key: string]: any } {
4213
4856
  return {
4214
- name: 'string',
4215
- schedule: 'string',
4216
- targetSize: 'number',
4857
+ stabilizationWindowSeconds: 'number',
4217
4858
  };
4218
4859
  }
4219
4860
 
@@ -4222,31 +4863,125 @@ export class UpdateServiceCronScalerRequestScaleJobs extends $tea.Model {
4222
4863
  }
4223
4864
  }
4224
4865
 
4866
+ export class UpdateServiceAutoScalerRequestBehaviorScaleUp extends $tea.Model {
4867
+ stabilizationWindowSeconds?: number;
4868
+ static names(): { [key: string]: string } {
4869
+ return {
4870
+ stabilizationWindowSeconds: 'stabilizationWindowSeconds',
4871
+ };
4872
+ }
4225
4873
 
4226
- export default class Client extends OpenApi {
4227
-
4228
- constructor(config: $OpenApi.Config) {
4229
- super(config);
4230
- this._endpointRule = "regional";
4231
- this._endpointMap = {
4232
- 'cn-beijing': "pai-eas.cn-beijing.aliyuncs.com",
4233
- 'cn-zhangjiakou': "pai-eas.cn-zhangjiakou.aliyuncs.com",
4234
- 'cn-hangzhou': "pai-eas.cn-hangzhou.aliyuncs.com",
4235
- 'cn-shanghai': "pai-eas.cn-shanghai.aliyuncs.com",
4236
- 'cn-shenzhen': "pai-eas.cn-shenzhen.aliyuncs.com",
4237
- 'cn-hongkong': "pai-eas.cn-hongkong.aliyuncs.com",
4238
- 'ap-southeast-1': "pai-eas.ap-southeast-1.aliyuncs.com",
4239
- 'ap-southeast-5': "pai-eas.ap-southeast-5.aliyuncs.com",
4240
- 'us-east-1': "pai-eas.us-east-1.aliyuncs.com",
4241
- 'us-west-1': "pai-eas.us-west-1.aliyuncs.com",
4242
- 'eu-central-1': "pai-eas.eu-central-1.aliyuncs.com",
4243
- 'ap-south-1': "pai-eas.ap-south-1.aliyuncs.com",
4244
- 'cn-shanghai-finance-1': "pai-eas.cn-shanghai-finance-1.aliyuncs.com",
4245
- 'cn-north-2-gov-1': "pai-eas.cn-north-2-gov-1.aliyuncs.com",
4246
- 'cn-chengdu': "pai-eas.cn-chengdu.aliyuncs.com",
4874
+ static types(): { [key: string]: any } {
4875
+ return {
4876
+ stabilizationWindowSeconds: 'number',
4247
4877
  };
4248
- this.checkConfig(config);
4249
- this._endpoint = this.getEndpoint("eas", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
4878
+ }
4879
+
4880
+ constructor(map?: { [key: string]: any }) {
4881
+ super(map);
4882
+ }
4883
+ }
4884
+
4885
+ export class UpdateServiceAutoScalerRequestBehavior extends $tea.Model {
4886
+ onZero?: UpdateServiceAutoScalerRequestBehaviorOnZero;
4887
+ scaleDown?: UpdateServiceAutoScalerRequestBehaviorScaleDown;
4888
+ scaleUp?: UpdateServiceAutoScalerRequestBehaviorScaleUp;
4889
+ static names(): { [key: string]: string } {
4890
+ return {
4891
+ onZero: 'onZero',
4892
+ scaleDown: 'scaleDown',
4893
+ scaleUp: 'scaleUp',
4894
+ };
4895
+ }
4896
+
4897
+ static types(): { [key: string]: any } {
4898
+ return {
4899
+ onZero: UpdateServiceAutoScalerRequestBehaviorOnZero,
4900
+ scaleDown: UpdateServiceAutoScalerRequestBehaviorScaleDown,
4901
+ scaleUp: UpdateServiceAutoScalerRequestBehaviorScaleUp,
4902
+ };
4903
+ }
4904
+
4905
+ constructor(map?: { [key: string]: any }) {
4906
+ super(map);
4907
+ }
4908
+ }
4909
+
4910
+ export class UpdateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
4911
+ metricName?: string;
4912
+ service?: string;
4913
+ threshold?: number;
4914
+ static names(): { [key: string]: string } {
4915
+ return {
4916
+ metricName: 'metricName',
4917
+ service: 'service',
4918
+ threshold: 'threshold',
4919
+ };
4920
+ }
4921
+
4922
+ static types(): { [key: string]: any } {
4923
+ return {
4924
+ metricName: 'string',
4925
+ service: 'string',
4926
+ threshold: 'number',
4927
+ };
4928
+ }
4929
+
4930
+ constructor(map?: { [key: string]: any }) {
4931
+ super(map);
4932
+ }
4933
+ }
4934
+
4935
+ export class UpdateServiceCronScalerRequestScaleJobs extends $tea.Model {
4936
+ name?: string;
4937
+ schedule?: string;
4938
+ targetSize?: number;
4939
+ static names(): { [key: string]: string } {
4940
+ return {
4941
+ name: 'Name',
4942
+ schedule: 'Schedule',
4943
+ targetSize: 'TargetSize',
4944
+ };
4945
+ }
4946
+
4947
+ static types(): { [key: string]: any } {
4948
+ return {
4949
+ name: 'string',
4950
+ schedule: 'string',
4951
+ targetSize: 'number',
4952
+ };
4953
+ }
4954
+
4955
+ constructor(map?: { [key: string]: any }) {
4956
+ super(map);
4957
+ }
4958
+ }
4959
+
4960
+
4961
+ export default class Client extends OpenApi {
4962
+
4963
+ constructor(config: $OpenApi.Config) {
4964
+ super(config);
4965
+ this._endpointRule = "regional";
4966
+ this._endpointMap = {
4967
+ 'cn-beijing': "pai-eas.cn-beijing.aliyuncs.com",
4968
+ 'cn-zhangjiakou': "pai-eas.cn-zhangjiakou.aliyuncs.com",
4969
+ 'cn-hangzhou': "pai-eas.cn-hangzhou.aliyuncs.com",
4970
+ 'cn-shanghai': "pai-eas.cn-shanghai.aliyuncs.com",
4971
+ 'cn-shenzhen': "pai-eas.cn-shenzhen.aliyuncs.com",
4972
+ 'cn-hongkong': "pai-eas.cn-hongkong.aliyuncs.com",
4973
+ 'ap-southeast-1': "pai-eas.ap-southeast-1.aliyuncs.com",
4974
+ 'ap-southeast-5': "pai-eas.ap-southeast-5.aliyuncs.com",
4975
+ 'us-east-1': "pai-eas.us-east-1.aliyuncs.com",
4976
+ 'us-west-1': "pai-eas.us-west-1.aliyuncs.com",
4977
+ 'eu-central-1': "pai-eas.eu-central-1.aliyuncs.com",
4978
+ 'ap-south-1': "pai-eas.ap-south-1.aliyuncs.com",
4979
+ 'cn-shanghai-finance-1': "pai-eas.cn-shanghai-finance-1.aliyuncs.com",
4980
+ 'cn-north-2-gov-1': "pai-eas.cn-north-2-gov-1.aliyuncs.com",
4981
+ 'cn-chengdu': "pai-eas.cn-chengdu.aliyuncs.com",
4982
+ };
4983
+ this.checkConfig(config);
4984
+ this._endpoint = this.getEndpoint("eas", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
4250
4985
  }
4251
4986
 
4252
4987
 
@@ -4262,10 +4997,28 @@ export default class Client extends OpenApi {
4262
4997
  return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
4263
4998
  }
4264
4999
 
4265
- async createBenchmarkTask(request: CreateBenchmarkTaskRequest): Promise<CreateBenchmarkTaskResponse> {
5000
+ async commitServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CommitServiceResponse> {
5001
+ let req = new $OpenApi.OpenApiRequest({
5002
+ headers: headers,
5003
+ });
5004
+ let params = new $OpenApi.Params({
5005
+ action: "CommitService",
5006
+ version: "2021-07-01",
5007
+ protocol: "HTTPS",
5008
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/commit`,
5009
+ method: "PUT",
5010
+ authType: "AK",
5011
+ style: "ROA",
5012
+ reqBodyType: "json",
5013
+ bodyType: "json",
5014
+ });
5015
+ return $tea.cast<CommitServiceResponse>(await this.callApi(params, req, runtime), new CommitServiceResponse({}));
5016
+ }
5017
+
5018
+ async commitService(ClusterId: string, ServiceName: string): Promise<CommitServiceResponse> {
4266
5019
  let runtime = new $Util.RuntimeOptions({ });
4267
5020
  let headers : {[key: string ]: string} = { };
4268
- return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
5021
+ return await this.commitServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4269
5022
  }
4270
5023
 
4271
5024
  async createBenchmarkTaskWithOptions(request: CreateBenchmarkTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateBenchmarkTaskResponse> {
@@ -4288,10 +5041,10 @@ export default class Client extends OpenApi {
4288
5041
  return $tea.cast<CreateBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new CreateBenchmarkTaskResponse({}));
4289
5042
  }
4290
5043
 
4291
- async createResource(request: CreateResourceRequest): Promise<CreateResourceResponse> {
5044
+ async createBenchmarkTask(request: CreateBenchmarkTaskRequest): Promise<CreateBenchmarkTaskResponse> {
4292
5045
  let runtime = new $Util.RuntimeOptions({ });
4293
5046
  let headers : {[key: string ]: string} = { };
4294
- return await this.createResourceWithOptions(request, headers, runtime);
5047
+ return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
4295
5048
  }
4296
5049
 
4297
5050
  async createResourceWithOptions(request: CreateResourceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateResourceResponse> {
@@ -4313,6 +5066,14 @@ export default class Client extends OpenApi {
4313
5066
  body["EcsInstanceType"] = request.ecsInstanceType;
4314
5067
  }
4315
5068
 
5069
+ if (!Util.isUnset(request.systemDiskSize)) {
5070
+ body["SystemDiskSize"] = request.systemDiskSize;
5071
+ }
5072
+
5073
+ if (!Util.isUnset(request.zone)) {
5074
+ body["Zone"] = request.zone;
5075
+ }
5076
+
4316
5077
  let req = new $OpenApi.OpenApiRequest({
4317
5078
  headers: headers,
4318
5079
  body: OpenApiUtil.parseToMap(body),
@@ -4331,10 +5092,10 @@ export default class Client extends OpenApi {
4331
5092
  return $tea.cast<CreateResourceResponse>(await this.callApi(params, req, runtime), new CreateResourceResponse({}));
4332
5093
  }
4333
5094
 
4334
- async createResourceInstances(ClusterId: string, ResourceId: string, request: CreateResourceInstancesRequest): Promise<CreateResourceInstancesResponse> {
5095
+ async createResource(request: CreateResourceRequest): Promise<CreateResourceResponse> {
4335
5096
  let runtime = new $Util.RuntimeOptions({ });
4336
5097
  let headers : {[key: string ]: string} = { };
4337
- return await this.createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
5098
+ return await this.createResourceWithOptions(request, headers, runtime);
4338
5099
  }
4339
5100
 
4340
5101
  async createResourceInstancesWithOptions(ClusterId: string, ResourceId: string, request: CreateResourceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateResourceInstancesResponse> {
@@ -4356,10 +5117,18 @@ export default class Client extends OpenApi {
4356
5117
  body["EcsInstanceType"] = request.ecsInstanceType;
4357
5118
  }
4358
5119
 
5120
+ if (!Util.isUnset(request.systemDiskSize)) {
5121
+ body["SystemDiskSize"] = request.systemDiskSize;
5122
+ }
5123
+
4359
5124
  if (!Util.isUnset(request.userData)) {
4360
5125
  body["UserData"] = request.userData;
4361
5126
  }
4362
5127
 
5128
+ if (!Util.isUnset(request.zone)) {
5129
+ body["Zone"] = request.zone;
5130
+ }
5131
+
4363
5132
  let req = new $OpenApi.OpenApiRequest({
4364
5133
  headers: headers,
4365
5134
  body: OpenApiUtil.parseToMap(body),
@@ -4378,10 +5147,10 @@ export default class Client extends OpenApi {
4378
5147
  return $tea.cast<CreateResourceInstancesResponse>(await this.callApi(params, req, runtime), new CreateResourceInstancesResponse({}));
4379
5148
  }
4380
5149
 
4381
- async createResourceLog(ClusterId: string, ResourceId: string, request: CreateResourceLogRequest): Promise<CreateResourceLogResponse> {
5150
+ async createResourceInstances(ClusterId: string, ResourceId: string, request: CreateResourceInstancesRequest): Promise<CreateResourceInstancesResponse> {
4382
5151
  let runtime = new $Util.RuntimeOptions({ });
4383
5152
  let headers : {[key: string ]: string} = { };
4384
- return await this.createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime);
5153
+ return await this.createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4385
5154
  }
4386
5155
 
4387
5156
  async createResourceLogWithOptions(ClusterId: string, ResourceId: string, request: CreateResourceLogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateResourceLogResponse> {
@@ -4413,16 +5182,32 @@ export default class Client extends OpenApi {
4413
5182
  return $tea.cast<CreateResourceLogResponse>(await this.callApi(params, req, runtime), new CreateResourceLogResponse({}));
4414
5183
  }
4415
5184
 
4416
- async createService(request: CreateServiceRequest): Promise<CreateServiceResponse> {
5185
+ async createResourceLog(ClusterId: string, ResourceId: string, request: CreateResourceLogRequest): Promise<CreateResourceLogResponse> {
4417
5186
  let runtime = new $Util.RuntimeOptions({ });
4418
5187
  let headers : {[key: string ]: string} = { };
4419
- return await this.createServiceWithOptions(request, headers, runtime);
5188
+ return await this.createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime);
4420
5189
  }
4421
5190
 
4422
- async createServiceWithOptions(request: CreateServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateServiceResponse> {
4423
- Util.validateModel(request);
5191
+ async createServiceWithOptions(tmpReq: CreateServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateServiceResponse> {
5192
+ Util.validateModel(tmpReq);
5193
+ let request = new CreateServiceShrinkRequest({ });
5194
+ OpenApiUtil.convert(tmpReq, request);
5195
+ if (!Util.isUnset(tmpReq.labels)) {
5196
+ request.labelsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.labels, "Labels", "json");
5197
+ }
5198
+
5199
+ let query : {[key: string ]: any} = { };
5200
+ if (!Util.isUnset(request.develop)) {
5201
+ query["Develop"] = request.develop;
5202
+ }
5203
+
5204
+ if (!Util.isUnset(request.labelsShrink)) {
5205
+ query["Labels"] = request.labelsShrink;
5206
+ }
5207
+
4424
5208
  let req = new $OpenApi.OpenApiRequest({
4425
5209
  headers: headers,
5210
+ query: OpenApiUtil.query(query),
4426
5211
  body: request.body,
4427
5212
  });
4428
5213
  let params = new $OpenApi.Params({
@@ -4439,15 +5224,19 @@ export default class Client extends OpenApi {
4439
5224
  return $tea.cast<CreateServiceResponse>(await this.callApi(params, req, runtime), new CreateServiceResponse({}));
4440
5225
  }
4441
5226
 
4442
- async createServiceAutoScaler(ClusterId: string, ServiceName: string, request: CreateServiceAutoScalerRequest): Promise<CreateServiceAutoScalerResponse> {
5227
+ async createService(request: CreateServiceRequest): Promise<CreateServiceResponse> {
4443
5228
  let runtime = new $Util.RuntimeOptions({ });
4444
5229
  let headers : {[key: string ]: string} = { };
4445
- return await this.createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
5230
+ return await this.createServiceWithOptions(request, headers, runtime);
4446
5231
  }
4447
5232
 
4448
5233
  async createServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, request: CreateServiceAutoScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateServiceAutoScalerResponse> {
4449
5234
  Util.validateModel(request);
4450
5235
  let body : {[key: string ]: any} = { };
5236
+ if (!Util.isUnset(request.behavior)) {
5237
+ body["behavior"] = request.behavior;
5238
+ }
5239
+
4451
5240
  if (!Util.isUnset(request.max)) {
4452
5241
  body["max"] = request.max;
4453
5242
  }
@@ -4478,10 +5267,10 @@ export default class Client extends OpenApi {
4478
5267
  return $tea.cast<CreateServiceAutoScalerResponse>(await this.callApi(params, req, runtime), new CreateServiceAutoScalerResponse({}));
4479
5268
  }
4480
5269
 
4481
- async createServiceCronScaler(ClusterId: string, ServiceName: string, request: CreateServiceCronScalerRequest): Promise<CreateServiceCronScalerResponse> {
5270
+ async createServiceAutoScaler(ClusterId: string, ServiceName: string, request: CreateServiceAutoScalerRequest): Promise<CreateServiceAutoScalerResponse> {
4482
5271
  let runtime = new $Util.RuntimeOptions({ });
4483
5272
  let headers : {[key: string ]: string} = { };
4484
- return await this.createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
5273
+ return await this.createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
4485
5274
  }
4486
5275
 
4487
5276
  async createServiceCronScalerWithOptions(ClusterId: string, ServiceName: string, request: CreateServiceCronScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateServiceCronScalerResponse> {
@@ -4513,10 +5302,10 @@ export default class Client extends OpenApi {
4513
5302
  return $tea.cast<CreateServiceCronScalerResponse>(await this.callApi(params, req, runtime), new CreateServiceCronScalerResponse({}));
4514
5303
  }
4515
5304
 
4516
- async createServiceMirror(ClusterId: string, ServiceName: string, request: CreateServiceMirrorRequest): Promise<CreateServiceMirrorResponse> {
5305
+ async createServiceCronScaler(ClusterId: string, ServiceName: string, request: CreateServiceCronScalerRequest): Promise<CreateServiceCronScalerResponse> {
4517
5306
  let runtime = new $Util.RuntimeOptions({ });
4518
5307
  let headers : {[key: string ]: string} = { };
4519
- return await this.createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
5308
+ return await this.createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
4520
5309
  }
4521
5310
 
4522
5311
  async createServiceMirrorWithOptions(ClusterId: string, ServiceName: string, request: CreateServiceMirrorRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateServiceMirrorResponse> {
@@ -4548,10 +5337,10 @@ export default class Client extends OpenApi {
4548
5337
  return $tea.cast<CreateServiceMirrorResponse>(await this.callApi(params, req, runtime), new CreateServiceMirrorResponse({}));
4549
5338
  }
4550
5339
 
4551
- async deleteBenchmarkTask(ClusterId: string, TaskName: string): Promise<DeleteBenchmarkTaskResponse> {
5340
+ async createServiceMirror(ClusterId: string, ServiceName: string, request: CreateServiceMirrorRequest): Promise<CreateServiceMirrorResponse> {
4552
5341
  let runtime = new $Util.RuntimeOptions({ });
4553
5342
  let headers : {[key: string ]: string} = { };
4554
- return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
5343
+ return await this.createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
4555
5344
  }
4556
5345
 
4557
5346
  async deleteBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteBenchmarkTaskResponse> {
@@ -4572,10 +5361,10 @@ export default class Client extends OpenApi {
4572
5361
  return $tea.cast<DeleteBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new DeleteBenchmarkTaskResponse({}));
4573
5362
  }
4574
5363
 
4575
- async deleteResource(ClusterId: string, ResourceId: string): Promise<DeleteResourceResponse> {
5364
+ async deleteBenchmarkTask(ClusterId: string, TaskName: string): Promise<DeleteBenchmarkTaskResponse> {
4576
5365
  let runtime = new $Util.RuntimeOptions({ });
4577
5366
  let headers : {[key: string ]: string} = { };
4578
- return await this.deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime);
5367
+ return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4579
5368
  }
4580
5369
 
4581
5370
  async deleteResourceWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteResourceResponse> {
@@ -4596,10 +5385,10 @@ export default class Client extends OpenApi {
4596
5385
  return $tea.cast<DeleteResourceResponse>(await this.callApi(params, req, runtime), new DeleteResourceResponse({}));
4597
5386
  }
4598
5387
 
4599
- async deleteResourceDLink(ClusterId: string, ResourceId: string): Promise<DeleteResourceDLinkResponse> {
5388
+ async deleteResource(ClusterId: string, ResourceId: string): Promise<DeleteResourceResponse> {
4600
5389
  let runtime = new $Util.RuntimeOptions({ });
4601
5390
  let headers : {[key: string ]: string} = { };
4602
- return await this.deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
5391
+ return await this.deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime);
4603
5392
  }
4604
5393
 
4605
5394
  async deleteResourceDLinkWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteResourceDLinkResponse> {
@@ -4620,10 +5409,10 @@ export default class Client extends OpenApi {
4620
5409
  return $tea.cast<DeleteResourceDLinkResponse>(await this.callApi(params, req, runtime), new DeleteResourceDLinkResponse({}));
4621
5410
  }
4622
5411
 
4623
- async deleteResourceInstances(ClusterId: string, ResourceId: string, request: DeleteResourceInstancesRequest): Promise<DeleteResourceInstancesResponse> {
5412
+ async deleteResourceDLink(ClusterId: string, ResourceId: string): Promise<DeleteResourceDLinkResponse> {
4624
5413
  let runtime = new $Util.RuntimeOptions({ });
4625
5414
  let headers : {[key: string ]: string} = { };
4626
- return await this.deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
5415
+ return await this.deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
4627
5416
  }
4628
5417
 
4629
5418
  async deleteResourceInstancesWithOptions(ClusterId: string, ResourceId: string, request: DeleteResourceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteResourceInstancesResponse> {
@@ -4655,10 +5444,10 @@ export default class Client extends OpenApi {
4655
5444
  return $tea.cast<DeleteResourceInstancesResponse>(await this.callApi(params, req, runtime), new DeleteResourceInstancesResponse({}));
4656
5445
  }
4657
5446
 
4658
- async deleteResourceLog(ClusterId: string, ResourceId: string): Promise<DeleteResourceLogResponse> {
5447
+ async deleteResourceInstances(ClusterId: string, ResourceId: string, request: DeleteResourceInstancesRequest): Promise<DeleteResourceInstancesResponse> {
4659
5448
  let runtime = new $Util.RuntimeOptions({ });
4660
5449
  let headers : {[key: string ]: string} = { };
4661
- return await this.deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
5450
+ return await this.deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4662
5451
  }
4663
5452
 
4664
5453
  async deleteResourceLogWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteResourceLogResponse> {
@@ -4679,10 +5468,10 @@ export default class Client extends OpenApi {
4679
5468
  return $tea.cast<DeleteResourceLogResponse>(await this.callApi(params, req, runtime), new DeleteResourceLogResponse({}));
4680
5469
  }
4681
5470
 
4682
- async deleteService(ClusterId: string, ServiceName: string): Promise<DeleteServiceResponse> {
5471
+ async deleteResourceLog(ClusterId: string, ResourceId: string): Promise<DeleteResourceLogResponse> {
4683
5472
  let runtime = new $Util.RuntimeOptions({ });
4684
5473
  let headers : {[key: string ]: string} = { };
4685
- return await this.deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime);
5474
+ return await this.deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
4686
5475
  }
4687
5476
 
4688
5477
  async deleteServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceResponse> {
@@ -4703,10 +5492,10 @@ export default class Client extends OpenApi {
4703
5492
  return $tea.cast<DeleteServiceResponse>(await this.callApi(params, req, runtime), new DeleteServiceResponse({}));
4704
5493
  }
4705
5494
 
4706
- async deleteServiceAutoScaler(ClusterId: string, ServiceName: string): Promise<DeleteServiceAutoScalerResponse> {
5495
+ async deleteService(ClusterId: string, ServiceName: string): Promise<DeleteServiceResponse> {
4707
5496
  let runtime = new $Util.RuntimeOptions({ });
4708
5497
  let headers : {[key: string ]: string} = { };
4709
- return await this.deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
5498
+ return await this.deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4710
5499
  }
4711
5500
 
4712
5501
  async deleteServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceAutoScalerResponse> {
@@ -4727,10 +5516,10 @@ export default class Client extends OpenApi {
4727
5516
  return $tea.cast<DeleteServiceAutoScalerResponse>(await this.callApi(params, req, runtime), new DeleteServiceAutoScalerResponse({}));
4728
5517
  }
4729
5518
 
4730
- async deleteServiceCronScaler(ClusterId: string, ServiceName: string): Promise<DeleteServiceCronScalerResponse> {
5519
+ async deleteServiceAutoScaler(ClusterId: string, ServiceName: string): Promise<DeleteServiceAutoScalerResponse> {
4731
5520
  let runtime = new $Util.RuntimeOptions({ });
4732
5521
  let headers : {[key: string ]: string} = { };
4733
- return await this.deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
5522
+ return await this.deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4734
5523
  }
4735
5524
 
4736
5525
  async deleteServiceCronScalerWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceCronScalerResponse> {
@@ -4751,10 +5540,10 @@ export default class Client extends OpenApi {
4751
5540
  return $tea.cast<DeleteServiceCronScalerResponse>(await this.callApi(params, req, runtime), new DeleteServiceCronScalerResponse({}));
4752
5541
  }
4753
5542
 
4754
- async deleteServiceInstances(ClusterId: string, ServiceName: string, request: DeleteServiceInstancesRequest): Promise<DeleteServiceInstancesResponse> {
5543
+ async deleteServiceCronScaler(ClusterId: string, ServiceName: string): Promise<DeleteServiceCronScalerResponse> {
4755
5544
  let runtime = new $Util.RuntimeOptions({ });
4756
5545
  let headers : {[key: string ]: string} = { };
4757
- return await this.deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
5546
+ return await this.deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4758
5547
  }
4759
5548
 
4760
5549
  async deleteServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: DeleteServiceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceInstancesResponse> {
@@ -4782,10 +5571,47 @@ export default class Client extends OpenApi {
4782
5571
  return $tea.cast<DeleteServiceInstancesResponse>(await this.callApi(params, req, runtime), new DeleteServiceInstancesResponse({}));
4783
5572
  }
4784
5573
 
4785
- async deleteServiceMirror(ClusterId: string, ServiceName: string): Promise<DeleteServiceMirrorResponse> {
5574
+ async deleteServiceInstances(ClusterId: string, ServiceName: string, request: DeleteServiceInstancesRequest): Promise<DeleteServiceInstancesResponse> {
4786
5575
  let runtime = new $Util.RuntimeOptions({ });
4787
5576
  let headers : {[key: string ]: string} = { };
4788
- return await this.deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
5577
+ return await this.deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
5578
+ }
5579
+
5580
+ async deleteServiceLabelWithOptions(ClusterId: string, ServiceName: string, tmpReq: DeleteServiceLabelRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceLabelResponse> {
5581
+ Util.validateModel(tmpReq);
5582
+ let request = new DeleteServiceLabelShrinkRequest({ });
5583
+ OpenApiUtil.convert(tmpReq, request);
5584
+ if (!Util.isUnset(tmpReq.keys)) {
5585
+ request.keysShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.keys, "Keys", "simple");
5586
+ }
5587
+
5588
+ let query : {[key: string ]: any} = { };
5589
+ if (!Util.isUnset(request.keysShrink)) {
5590
+ query["Keys"] = request.keysShrink;
5591
+ }
5592
+
5593
+ let req = new $OpenApi.OpenApiRequest({
5594
+ headers: headers,
5595
+ query: OpenApiUtil.query(query),
5596
+ });
5597
+ let params = new $OpenApi.Params({
5598
+ action: "DeleteServiceLabel",
5599
+ version: "2021-07-01",
5600
+ protocol: "HTTPS",
5601
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/label`,
5602
+ method: "DELETE",
5603
+ authType: "AK",
5604
+ style: "ROA",
5605
+ reqBodyType: "json",
5606
+ bodyType: "json",
5607
+ });
5608
+ return $tea.cast<DeleteServiceLabelResponse>(await this.callApi(params, req, runtime), new DeleteServiceLabelResponse({}));
5609
+ }
5610
+
5611
+ async deleteServiceLabel(ClusterId: string, ServiceName: string, request: DeleteServiceLabelRequest): Promise<DeleteServiceLabelResponse> {
5612
+ let runtime = new $Util.RuntimeOptions({ });
5613
+ let headers : {[key: string ]: string} = { };
5614
+ return await this.deleteServiceLabelWithOptions(ClusterId, ServiceName, request, headers, runtime);
4789
5615
  }
4790
5616
 
4791
5617
  async deleteServiceMirrorWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceMirrorResponse> {
@@ -4806,10 +5632,10 @@ export default class Client extends OpenApi {
4806
5632
  return $tea.cast<DeleteServiceMirrorResponse>(await this.callApi(params, req, runtime), new DeleteServiceMirrorResponse({}));
4807
5633
  }
4808
5634
 
4809
- async describeBenchmarkTask(ClusterId: string, TaskName: string): Promise<DescribeBenchmarkTaskResponse> {
5635
+ async deleteServiceMirror(ClusterId: string, ServiceName: string): Promise<DeleteServiceMirrorResponse> {
4810
5636
  let runtime = new $Util.RuntimeOptions({ });
4811
5637
  let headers : {[key: string ]: string} = { };
4812
- return await this.describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
5638
+ return await this.deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
4813
5639
  }
4814
5640
 
4815
5641
  async describeBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeBenchmarkTaskResponse> {
@@ -4830,10 +5656,10 @@ export default class Client extends OpenApi {
4830
5656
  return $tea.cast<DescribeBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskResponse({}));
4831
5657
  }
4832
5658
 
4833
- async describeBenchmarkTaskReport(ClusterId: string, TaskName: string, request: DescribeBenchmarkTaskReportRequest): Promise<DescribeBenchmarkTaskReportResponse> {
5659
+ async describeBenchmarkTask(ClusterId: string, TaskName: string): Promise<DescribeBenchmarkTaskResponse> {
4834
5660
  let runtime = new $Util.RuntimeOptions({ });
4835
5661
  let headers : {[key: string ]: string} = { };
4836
- return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime);
5662
+ return await this.describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4837
5663
  }
4838
5664
 
4839
5665
  async describeBenchmarkTaskReportWithOptions(ClusterId: string, TaskName: string, request: DescribeBenchmarkTaskReportRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeBenchmarkTaskReportResponse> {
@@ -4861,10 +5687,10 @@ export default class Client extends OpenApi {
4861
5687
  return $tea.cast<DescribeBenchmarkTaskReportResponse>(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskReportResponse({}));
4862
5688
  }
4863
5689
 
4864
- async describeGroup(ClusterId: string, GroupName: string): Promise<DescribeGroupResponse> {
5690
+ async describeBenchmarkTaskReport(ClusterId: string, TaskName: string, request: DescribeBenchmarkTaskReportRequest): Promise<DescribeBenchmarkTaskReportResponse> {
4865
5691
  let runtime = new $Util.RuntimeOptions({ });
4866
5692
  let headers : {[key: string ]: string} = { };
4867
- return await this.describeGroupWithOptions(ClusterId, GroupName, headers, runtime);
5693
+ return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime);
4868
5694
  }
4869
5695
 
4870
5696
  async describeGroupWithOptions(ClusterId: string, GroupName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeGroupResponse> {
@@ -4885,10 +5711,10 @@ export default class Client extends OpenApi {
4885
5711
  return $tea.cast<DescribeGroupResponse>(await this.callApi(params, req, runtime), new DescribeGroupResponse({}));
4886
5712
  }
4887
5713
 
4888
- async describeResource(ClusterId: string, ResourceId: string): Promise<DescribeResourceResponse> {
5714
+ async describeGroup(ClusterId: string, GroupName: string): Promise<DescribeGroupResponse> {
4889
5715
  let runtime = new $Util.RuntimeOptions({ });
4890
5716
  let headers : {[key: string ]: string} = { };
4891
- return await this.describeResourceWithOptions(ClusterId, ResourceId, headers, runtime);
5717
+ return await this.describeGroupWithOptions(ClusterId, GroupName, headers, runtime);
4892
5718
  }
4893
5719
 
4894
5720
  async describeResourceWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeResourceResponse> {
@@ -4909,10 +5735,10 @@ export default class Client extends OpenApi {
4909
5735
  return $tea.cast<DescribeResourceResponse>(await this.callApi(params, req, runtime), new DescribeResourceResponse({}));
4910
5736
  }
4911
5737
 
4912
- async describeResourceDLink(ClusterId: string, ResourceId: string): Promise<DescribeResourceDLinkResponse> {
5738
+ async describeResource(ClusterId: string, ResourceId: string): Promise<DescribeResourceResponse> {
4913
5739
  let runtime = new $Util.RuntimeOptions({ });
4914
5740
  let headers : {[key: string ]: string} = { };
4915
- return await this.describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
5741
+ return await this.describeResourceWithOptions(ClusterId, ResourceId, headers, runtime);
4916
5742
  }
4917
5743
 
4918
5744
  async describeResourceDLinkWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeResourceDLinkResponse> {
@@ -4933,10 +5759,10 @@ export default class Client extends OpenApi {
4933
5759
  return $tea.cast<DescribeResourceDLinkResponse>(await this.callApi(params, req, runtime), new DescribeResourceDLinkResponse({}));
4934
5760
  }
4935
5761
 
4936
- async describeResourceLog(ClusterId: string, ResourceId: string): Promise<DescribeResourceLogResponse> {
5762
+ async describeResourceDLink(ClusterId: string, ResourceId: string): Promise<DescribeResourceDLinkResponse> {
4937
5763
  let runtime = new $Util.RuntimeOptions({ });
4938
5764
  let headers : {[key: string ]: string} = { };
4939
- return await this.describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
5765
+ return await this.describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
4940
5766
  }
4941
5767
 
4942
5768
  async describeResourceLogWithOptions(ClusterId: string, ResourceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeResourceLogResponse> {
@@ -4957,10 +5783,10 @@ export default class Client extends OpenApi {
4957
5783
  return $tea.cast<DescribeResourceLogResponse>(await this.callApi(params, req, runtime), new DescribeResourceLogResponse({}));
4958
5784
  }
4959
5785
 
4960
- async describeService(ClusterId: string, ServiceName: string): Promise<DescribeServiceResponse> {
5786
+ async describeResourceLog(ClusterId: string, ResourceId: string): Promise<DescribeResourceLogResponse> {
4961
5787
  let runtime = new $Util.RuntimeOptions({ });
4962
5788
  let headers : {[key: string ]: string} = { };
4963
- return await this.describeServiceWithOptions(ClusterId, ServiceName, headers, runtime);
5789
+ return await this.describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
4964
5790
  }
4965
5791
 
4966
5792
  async describeServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceResponse> {
@@ -4981,10 +5807,10 @@ export default class Client extends OpenApi {
4981
5807
  return $tea.cast<DescribeServiceResponse>(await this.callApi(params, req, runtime), new DescribeServiceResponse({}));
4982
5808
  }
4983
5809
 
4984
- async describeServiceAutoScaler(ClusterId: string, ServiceName: string): Promise<DescribeServiceAutoScalerResponse> {
5810
+ async describeService(ClusterId: string, ServiceName: string): Promise<DescribeServiceResponse> {
4985
5811
  let runtime = new $Util.RuntimeOptions({ });
4986
5812
  let headers : {[key: string ]: string} = { };
4987
- return await this.describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
5813
+ return await this.describeServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4988
5814
  }
4989
5815
 
4990
5816
  async describeServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceAutoScalerResponse> {
@@ -5005,10 +5831,10 @@ export default class Client extends OpenApi {
5005
5831
  return $tea.cast<DescribeServiceAutoScalerResponse>(await this.callApi(params, req, runtime), new DescribeServiceAutoScalerResponse({}));
5006
5832
  }
5007
5833
 
5008
- async describeServiceCronScaler(ClusterId: string, ServiceName: string): Promise<DescribeServiceCronScalerResponse> {
5834
+ async describeServiceAutoScaler(ClusterId: string, ServiceName: string): Promise<DescribeServiceAutoScalerResponse> {
5009
5835
  let runtime = new $Util.RuntimeOptions({ });
5010
5836
  let headers : {[key: string ]: string} = { };
5011
- return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
5837
+ return await this.describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
5012
5838
  }
5013
5839
 
5014
5840
  async describeServiceCronScalerWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceCronScalerResponse> {
@@ -5029,10 +5855,10 @@ export default class Client extends OpenApi {
5029
5855
  return $tea.cast<DescribeServiceCronScalerResponse>(await this.callApi(params, req, runtime), new DescribeServiceCronScalerResponse({}));
5030
5856
  }
5031
5857
 
5032
- async describeServiceEvent(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest): Promise<DescribeServiceEventResponse> {
5858
+ async describeServiceCronScaler(ClusterId: string, ServiceName: string): Promise<DescribeServiceCronScalerResponse> {
5033
5859
  let runtime = new $Util.RuntimeOptions({ });
5034
5860
  let headers : {[key: string ]: string} = { };
5035
- return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
5861
+ return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
5036
5862
  }
5037
5863
 
5038
5864
  async describeServiceEventWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceEventResponse> {
@@ -5042,6 +5868,14 @@ export default class Client extends OpenApi {
5042
5868
  query["EndTime"] = request.endTime;
5043
5869
  }
5044
5870
 
5871
+ if (!Util.isUnset(request.eventType)) {
5872
+ query["EventType"] = request.eventType;
5873
+ }
5874
+
5875
+ if (!Util.isUnset(request.instanceName)) {
5876
+ query["InstanceName"] = request.instanceName;
5877
+ }
5878
+
5045
5879
  if (!Util.isUnset(request.pageNum)) {
5046
5880
  query["PageNum"] = request.pageNum;
5047
5881
  }
@@ -5072,19 +5906,27 @@ export default class Client extends OpenApi {
5072
5906
  return $tea.cast<DescribeServiceEventResponse>(await this.callApi(params, req, runtime), new DescribeServiceEventResponse({}));
5073
5907
  }
5074
5908
 
5075
- async describeServiceLog(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest): Promise<DescribeServiceLogResponse> {
5909
+ async describeServiceEvent(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest): Promise<DescribeServiceEventResponse> {
5076
5910
  let runtime = new $Util.RuntimeOptions({ });
5077
5911
  let headers : {[key: string ]: string} = { };
5078
- return await this.describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime);
5912
+ return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
5079
5913
  }
5080
5914
 
5081
5915
  async describeServiceLogWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceLogResponse> {
5082
5916
  Util.validateModel(request);
5083
5917
  let query : {[key: string ]: any} = { };
5918
+ if (!Util.isUnset(request.containerName)) {
5919
+ query["ContainerName"] = request.containerName;
5920
+ }
5921
+
5084
5922
  if (!Util.isUnset(request.endTime)) {
5085
5923
  query["EndTime"] = request.endTime;
5086
5924
  }
5087
5925
 
5926
+ if (!Util.isUnset(request.instanceName)) {
5927
+ query["InstanceName"] = request.instanceName;
5928
+ }
5929
+
5088
5930
  if (!Util.isUnset(request.ip)) {
5089
5931
  query["Ip"] = request.ip;
5090
5932
  }
@@ -5101,6 +5943,10 @@ export default class Client extends OpenApi {
5101
5943
  query["PageSize"] = request.pageSize;
5102
5944
  }
5103
5945
 
5946
+ if (!Util.isUnset(request.previous)) {
5947
+ query["Previous"] = request.previous;
5948
+ }
5949
+
5104
5950
  if (!Util.isUnset(request.startTime)) {
5105
5951
  query["StartTime"] = request.startTime;
5106
5952
  }
@@ -5123,10 +5969,10 @@ export default class Client extends OpenApi {
5123
5969
  return $tea.cast<DescribeServiceLogResponse>(await this.callApi(params, req, runtime), new DescribeServiceLogResponse({}));
5124
5970
  }
5125
5971
 
5126
- async describeServiceMirror(ClusterId: string, ServiceName: string): Promise<DescribeServiceMirrorResponse> {
5972
+ async describeServiceLog(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest): Promise<DescribeServiceLogResponse> {
5127
5973
  let runtime = new $Util.RuntimeOptions({ });
5128
5974
  let headers : {[key: string ]: string} = { };
5129
- return await this.describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
5975
+ return await this.describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime);
5130
5976
  }
5131
5977
 
5132
5978
  async describeServiceMirrorWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceMirrorResponse> {
@@ -5147,10 +5993,41 @@ export default class Client extends OpenApi {
5147
5993
  return $tea.cast<DescribeServiceMirrorResponse>(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
5148
5994
  }
5149
5995
 
5150
- async listBenchmarkTask(request: ListBenchmarkTaskRequest): Promise<ListBenchmarkTaskResponse> {
5996
+ async describeServiceMirror(ClusterId: string, ServiceName: string): Promise<DescribeServiceMirrorResponse> {
5151
5997
  let runtime = new $Util.RuntimeOptions({ });
5152
5998
  let headers : {[key: string ]: string} = { };
5153
- return await this.listBenchmarkTaskWithOptions(request, headers, runtime);
5999
+ return await this.describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
6000
+ }
6001
+
6002
+ async developServiceWithOptions(ClusterId: string, ServiceName: string, request: DevelopServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DevelopServiceResponse> {
6003
+ Util.validateModel(request);
6004
+ let query : {[key: string ]: any} = { };
6005
+ if (!Util.isUnset(request.exit)) {
6006
+ query["Exit"] = request.exit;
6007
+ }
6008
+
6009
+ let req = new $OpenApi.OpenApiRequest({
6010
+ headers: headers,
6011
+ query: OpenApiUtil.query(query),
6012
+ });
6013
+ let params = new $OpenApi.Params({
6014
+ action: "DevelopService",
6015
+ version: "2021-07-01",
6016
+ protocol: "HTTPS",
6017
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/develop`,
6018
+ method: "PUT",
6019
+ authType: "AK",
6020
+ style: "ROA",
6021
+ reqBodyType: "json",
6022
+ bodyType: "json",
6023
+ });
6024
+ return $tea.cast<DevelopServiceResponse>(await this.callApi(params, req, runtime), new DevelopServiceResponse({}));
6025
+ }
6026
+
6027
+ async developService(ClusterId: string, ServiceName: string, request: DevelopServiceRequest): Promise<DevelopServiceResponse> {
6028
+ let runtime = new $Util.RuntimeOptions({ });
6029
+ let headers : {[key: string ]: string} = { };
6030
+ return await this.developServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
5154
6031
  }
5155
6032
 
5156
6033
  async listBenchmarkTaskWithOptions(request: ListBenchmarkTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListBenchmarkTaskResponse> {
@@ -5190,10 +6067,10 @@ export default class Client extends OpenApi {
5190
6067
  return $tea.cast<ListBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new ListBenchmarkTaskResponse({}));
5191
6068
  }
5192
6069
 
5193
- async listGroups(request: ListGroupsRequest): Promise<ListGroupsResponse> {
6070
+ async listBenchmarkTask(request: ListBenchmarkTaskRequest): Promise<ListBenchmarkTaskResponse> {
5194
6071
  let runtime = new $Util.RuntimeOptions({ });
5195
6072
  let headers : {[key: string ]: string} = { };
5196
- return await this.listGroupsWithOptions(request, headers, runtime);
6073
+ return await this.listBenchmarkTaskWithOptions(request, headers, runtime);
5197
6074
  }
5198
6075
 
5199
6076
  async listGroupsWithOptions(request: ListGroupsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListGroupsResponse> {
@@ -5229,10 +6106,10 @@ export default class Client extends OpenApi {
5229
6106
  return $tea.cast<ListGroupsResponse>(await this.callApi(params, req, runtime), new ListGroupsResponse({}));
5230
6107
  }
5231
6108
 
5232
- async listResourceInstanceWorker(ClusterId: string, ResourceId: string, InstanceName: string, request: ListResourceInstanceWorkerRequest): Promise<ListResourceInstanceWorkerResponse> {
6109
+ async listGroups(request: ListGroupsRequest): Promise<ListGroupsResponse> {
5233
6110
  let runtime = new $Util.RuntimeOptions({ });
5234
6111
  let headers : {[key: string ]: string} = { };
5235
- return await this.listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime);
6112
+ return await this.listGroupsWithOptions(request, headers, runtime);
5236
6113
  }
5237
6114
 
5238
6115
  async listResourceInstanceWorkerWithOptions(ClusterId: string, ResourceId: string, InstanceName: string, request: ListResourceInstanceWorkerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListResourceInstanceWorkerResponse> {
@@ -5264,10 +6141,10 @@ export default class Client extends OpenApi {
5264
6141
  return $tea.cast<ListResourceInstanceWorkerResponse>(await this.callApi(params, req, runtime), new ListResourceInstanceWorkerResponse({}));
5265
6142
  }
5266
6143
 
5267
- async listResourceInstances(ClusterId: string, ResourceId: string, request: ListResourceInstancesRequest): Promise<ListResourceInstancesResponse> {
6144
+ async listResourceInstanceWorker(ClusterId: string, ResourceId: string, InstanceName: string, request: ListResourceInstanceWorkerRequest): Promise<ListResourceInstanceWorkerResponse> {
5268
6145
  let runtime = new $Util.RuntimeOptions({ });
5269
6146
  let headers : {[key: string ]: string} = { };
5270
- return await this.listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
6147
+ return await this.listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime);
5271
6148
  }
5272
6149
 
5273
6150
  async listResourceInstancesWithOptions(ClusterId: string, ResourceId: string, request: ListResourceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListResourceInstancesResponse> {
@@ -5277,6 +6154,14 @@ export default class Client extends OpenApi {
5277
6154
  query["ChargeType"] = request.chargeType;
5278
6155
  }
5279
6156
 
6157
+ if (!Util.isUnset(request.filter)) {
6158
+ query["Filter"] = request.filter;
6159
+ }
6160
+
6161
+ if (!Util.isUnset(request.instanceIP)) {
6162
+ query["InstanceIP"] = request.instanceIP;
6163
+ }
6164
+
5280
6165
  if (!Util.isUnset(request.instanceId)) {
5281
6166
  query["InstanceId"] = request.instanceId;
5282
6167
  }
@@ -5285,6 +6170,14 @@ export default class Client extends OpenApi {
5285
6170
  query["InstanceName"] = request.instanceName;
5286
6171
  }
5287
6172
 
6173
+ if (!Util.isUnset(request.instanceStatus)) {
6174
+ query["InstanceStatus"] = request.instanceStatus;
6175
+ }
6176
+
6177
+ if (!Util.isUnset(request.order)) {
6178
+ query["Order"] = request.order;
6179
+ }
6180
+
5288
6181
  if (!Util.isUnset(request.pageNumber)) {
5289
6182
  query["PageNumber"] = request.pageNumber;
5290
6183
  }
@@ -5293,6 +6186,10 @@ export default class Client extends OpenApi {
5293
6186
  query["PageSize"] = request.pageSize;
5294
6187
  }
5295
6188
 
6189
+ if (!Util.isUnset(request.sort)) {
6190
+ query["Sort"] = request.sort;
6191
+ }
6192
+
5296
6193
  let req = new $OpenApi.OpenApiRequest({
5297
6194
  headers: headers,
5298
6195
  query: OpenApiUtil.query(query),
@@ -5311,10 +6208,10 @@ export default class Client extends OpenApi {
5311
6208
  return $tea.cast<ListResourceInstancesResponse>(await this.callApi(params, req, runtime), new ListResourceInstancesResponse({}));
5312
6209
  }
5313
6210
 
5314
- async listResourceServices(ClusterId: string, ResourceId: string, request: ListResourceServicesRequest): Promise<ListResourceServicesResponse> {
6211
+ async listResourceInstances(ClusterId: string, ResourceId: string, request: ListResourceInstancesRequest): Promise<ListResourceInstancesResponse> {
5315
6212
  let runtime = new $Util.RuntimeOptions({ });
5316
6213
  let headers : {[key: string ]: string} = { };
5317
- return await this.listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime);
6214
+ return await this.listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
5318
6215
  }
5319
6216
 
5320
6217
  async listResourceServicesWithOptions(ClusterId: string, ResourceId: string, request: ListResourceServicesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListResourceServicesResponse> {
@@ -5346,10 +6243,10 @@ export default class Client extends OpenApi {
5346
6243
  return $tea.cast<ListResourceServicesResponse>(await this.callApi(params, req, runtime), new ListResourceServicesResponse({}));
5347
6244
  }
5348
6245
 
5349
- async listResources(request: ListResourcesRequest): Promise<ListResourcesResponse> {
6246
+ async listResourceServices(ClusterId: string, ResourceId: string, request: ListResourceServicesRequest): Promise<ListResourceServicesResponse> {
5350
6247
  let runtime = new $Util.RuntimeOptions({ });
5351
6248
  let headers : {[key: string ]: string} = { };
5352
- return await this.listResourcesWithOptions(request, headers, runtime);
6249
+ return await this.listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime);
5353
6250
  }
5354
6251
 
5355
6252
  async listResourcesWithOptions(request: ListResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListResourcesResponse> {
@@ -5389,15 +6286,47 @@ export default class Client extends OpenApi {
5389
6286
  return $tea.cast<ListResourcesResponse>(await this.callApi(params, req, runtime), new ListResourcesResponse({}));
5390
6287
  }
5391
6288
 
5392
- async listServiceInstances(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest): Promise<ListServiceInstancesResponse> {
6289
+ async listResources(request: ListResourcesRequest): Promise<ListResourcesResponse> {
5393
6290
  let runtime = new $Util.RuntimeOptions({ });
5394
6291
  let headers : {[key: string ]: string} = { };
5395
- return await this.listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
6292
+ return await this.listResourcesWithOptions(request, headers, runtime);
5396
6293
  }
5397
6294
 
5398
6295
  async listServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServiceInstancesResponse> {
5399
6296
  Util.validateModel(request);
5400
6297
  let query : {[key: string ]: any} = { };
6298
+ if (!Util.isUnset(request.filter)) {
6299
+ query["Filter"] = request.filter;
6300
+ }
6301
+
6302
+ if (!Util.isUnset(request.hostIP)) {
6303
+ query["HostIP"] = request.hostIP;
6304
+ }
6305
+
6306
+ if (!Util.isUnset(request.instanceIP)) {
6307
+ query["InstanceIP"] = request.instanceIP;
6308
+ }
6309
+
6310
+ if (!Util.isUnset(request.instanceName)) {
6311
+ query["InstanceName"] = request.instanceName;
6312
+ }
6313
+
6314
+ if (!Util.isUnset(request.instanceStatus)) {
6315
+ query["InstanceStatus"] = request.instanceStatus;
6316
+ }
6317
+
6318
+ if (!Util.isUnset(request.instanceType)) {
6319
+ query["InstanceType"] = request.instanceType;
6320
+ }
6321
+
6322
+ if (!Util.isUnset(request.isSpot)) {
6323
+ query["IsSpot"] = request.isSpot;
6324
+ }
6325
+
6326
+ if (!Util.isUnset(request.order)) {
6327
+ query["Order"] = request.order;
6328
+ }
6329
+
5401
6330
  if (!Util.isUnset(request.pageNumber)) {
5402
6331
  query["PageNumber"] = request.pageNumber;
5403
6332
  }
@@ -5406,6 +6335,18 @@ export default class Client extends OpenApi {
5406
6335
  query["PageSize"] = request.pageSize;
5407
6336
  }
5408
6337
 
6338
+ if (!Util.isUnset(request.resourceType)) {
6339
+ query["ResourceType"] = request.resourceType;
6340
+ }
6341
+
6342
+ if (!Util.isUnset(request.role)) {
6343
+ query["Role"] = request.role;
6344
+ }
6345
+
6346
+ if (!Util.isUnset(request.sort)) {
6347
+ query["Sort"] = request.sort;
6348
+ }
6349
+
5409
6350
  let req = new $OpenApi.OpenApiRequest({
5410
6351
  headers: headers,
5411
6352
  query: OpenApiUtil.query(query),
@@ -5424,10 +6365,10 @@ export default class Client extends OpenApi {
5424
6365
  return $tea.cast<ListServiceInstancesResponse>(await this.callApi(params, req, runtime), new ListServiceInstancesResponse({}));
5425
6366
  }
5426
6367
 
5427
- async listServiceVersions(ClusterId: string, ServiceName: string, request: ListServiceVersionsRequest): Promise<ListServiceVersionsResponse> {
6368
+ async listServiceInstances(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest): Promise<ListServiceInstancesResponse> {
5428
6369
  let runtime = new $Util.RuntimeOptions({ });
5429
6370
  let headers : {[key: string ]: string} = { };
5430
- return await this.listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime);
6371
+ return await this.listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
5431
6372
  }
5432
6373
 
5433
6374
  async listServiceVersionsWithOptions(ClusterId: string, ServiceName: string, request: ListServiceVersionsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServiceVersionsResponse> {
@@ -5459,14 +6400,20 @@ export default class Client extends OpenApi {
5459
6400
  return $tea.cast<ListServiceVersionsResponse>(await this.callApi(params, req, runtime), new ListServiceVersionsResponse({}));
5460
6401
  }
5461
6402
 
5462
- async listServices(request: ListServicesRequest): Promise<ListServicesResponse> {
6403
+ async listServiceVersions(ClusterId: string, ServiceName: string, request: ListServiceVersionsRequest): Promise<ListServiceVersionsResponse> {
5463
6404
  let runtime = new $Util.RuntimeOptions({ });
5464
6405
  let headers : {[key: string ]: string} = { };
5465
- return await this.listServicesWithOptions(request, headers, runtime);
6406
+ return await this.listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime);
5466
6407
  }
5467
6408
 
5468
- async listServicesWithOptions(request: ListServicesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServicesResponse> {
5469
- Util.validateModel(request);
6409
+ async listServicesWithOptions(tmpReq: ListServicesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServicesResponse> {
6410
+ Util.validateModel(tmpReq);
6411
+ let request = new ListServicesShrinkRequest({ });
6412
+ OpenApiUtil.convert(tmpReq, request);
6413
+ if (!Util.isUnset(tmpReq.label)) {
6414
+ request.labelShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.label, "Label", "json");
6415
+ }
6416
+
5470
6417
  let query : {[key: string ]: any} = { };
5471
6418
  if (!Util.isUnset(request.filter)) {
5472
6419
  query["Filter"] = request.filter;
@@ -5476,6 +6423,10 @@ export default class Client extends OpenApi {
5476
6423
  query["GroupName"] = request.groupName;
5477
6424
  }
5478
6425
 
6426
+ if (!Util.isUnset(request.labelShrink)) {
6427
+ query["Label"] = request.labelShrink;
6428
+ }
6429
+
5479
6430
  if (!Util.isUnset(request.order)) {
5480
6431
  query["Order"] = request.order;
5481
6432
  }
@@ -5488,6 +6439,30 @@ export default class Client extends OpenApi {
5488
6439
  query["PageSize"] = request.pageSize;
5489
6440
  }
5490
6441
 
6442
+ if (!Util.isUnset(request.parentServiceUid)) {
6443
+ query["ParentServiceUid"] = request.parentServiceUid;
6444
+ }
6445
+
6446
+ if (!Util.isUnset(request.resourceName)) {
6447
+ query["ResourceName"] = request.resourceName;
6448
+ }
6449
+
6450
+ if (!Util.isUnset(request.serviceName)) {
6451
+ query["ServiceName"] = request.serviceName;
6452
+ }
6453
+
6454
+ if (!Util.isUnset(request.serviceStatus)) {
6455
+ query["ServiceStatus"] = request.serviceStatus;
6456
+ }
6457
+
6458
+ if (!Util.isUnset(request.serviceType)) {
6459
+ query["ServiceType"] = request.serviceType;
6460
+ }
6461
+
6462
+ if (!Util.isUnset(request.serviceUid)) {
6463
+ query["ServiceUid"] = request.serviceUid;
6464
+ }
6465
+
5491
6466
  if (!Util.isUnset(request.sort)) {
5492
6467
  query["Sort"] = request.sort;
5493
6468
  }
@@ -5510,10 +6485,10 @@ export default class Client extends OpenApi {
5510
6485
  return $tea.cast<ListServicesResponse>(await this.callApi(params, req, runtime), new ListServicesResponse({}));
5511
6486
  }
5512
6487
 
5513
- async releaseService(ClusterId: string, ServiceName: string, request: ReleaseServiceRequest): Promise<ReleaseServiceResponse> {
6488
+ async listServices(request: ListServicesRequest): Promise<ListServicesResponse> {
5514
6489
  let runtime = new $Util.RuntimeOptions({ });
5515
6490
  let headers : {[key: string ]: string} = { };
5516
- return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
6491
+ return await this.listServicesWithOptions(request, headers, runtime);
5517
6492
  }
5518
6493
 
5519
6494
  async releaseServiceWithOptions(ClusterId: string, ServiceName: string, request: ReleaseServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ReleaseServiceResponse> {
@@ -5545,10 +6520,10 @@ export default class Client extends OpenApi {
5545
6520
  return $tea.cast<ReleaseServiceResponse>(await this.callApi(params, req, runtime), new ReleaseServiceResponse({}));
5546
6521
  }
5547
6522
 
5548
- async startBenchmarkTask(ClusterId: string, TaskName: string): Promise<StartBenchmarkTaskResponse> {
6523
+ async releaseService(ClusterId: string, ServiceName: string, request: ReleaseServiceRequest): Promise<ReleaseServiceResponse> {
5549
6524
  let runtime = new $Util.RuntimeOptions({ });
5550
6525
  let headers : {[key: string ]: string} = { };
5551
- return await this.startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
6526
+ return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
5552
6527
  }
5553
6528
 
5554
6529
  async startBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartBenchmarkTaskResponse> {
@@ -5569,10 +6544,10 @@ export default class Client extends OpenApi {
5569
6544
  return $tea.cast<StartBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new StartBenchmarkTaskResponse({}));
5570
6545
  }
5571
6546
 
5572
- async startService(ClusterId: string, ServiceName: string): Promise<StartServiceResponse> {
6547
+ async startBenchmarkTask(ClusterId: string, TaskName: string): Promise<StartBenchmarkTaskResponse> {
5573
6548
  let runtime = new $Util.RuntimeOptions({ });
5574
6549
  let headers : {[key: string ]: string} = { };
5575
- return await this.startServiceWithOptions(ClusterId, ServiceName, headers, runtime);
6550
+ return await this.startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
5576
6551
  }
5577
6552
 
5578
6553
  async startServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartServiceResponse> {
@@ -5593,10 +6568,10 @@ export default class Client extends OpenApi {
5593
6568
  return $tea.cast<StartServiceResponse>(await this.callApi(params, req, runtime), new StartServiceResponse({}));
5594
6569
  }
5595
6570
 
5596
- async stopBenchmarkTask(ClusterId: string, TaskName: string): Promise<StopBenchmarkTaskResponse> {
6571
+ async startService(ClusterId: string, ServiceName: string): Promise<StartServiceResponse> {
5597
6572
  let runtime = new $Util.RuntimeOptions({ });
5598
6573
  let headers : {[key: string ]: string} = { };
5599
- return await this.stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
6574
+ return await this.startServiceWithOptions(ClusterId, ServiceName, headers, runtime);
5600
6575
  }
5601
6576
 
5602
6577
  async stopBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopBenchmarkTaskResponse> {
@@ -5617,10 +6592,10 @@ export default class Client extends OpenApi {
5617
6592
  return $tea.cast<StopBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new StopBenchmarkTaskResponse({}));
5618
6593
  }
5619
6594
 
5620
- async stopService(ClusterId: string, ServiceName: string): Promise<StopServiceResponse> {
6595
+ async stopBenchmarkTask(ClusterId: string, TaskName: string): Promise<StopBenchmarkTaskResponse> {
5621
6596
  let runtime = new $Util.RuntimeOptions({ });
5622
6597
  let headers : {[key: string ]: string} = { };
5623
- return await this.stopServiceWithOptions(ClusterId, ServiceName, headers, runtime);
6598
+ return await this.stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
5624
6599
  }
5625
6600
 
5626
6601
  async stopServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopServiceResponse> {
@@ -5641,10 +6616,10 @@ export default class Client extends OpenApi {
5641
6616
  return $tea.cast<StopServiceResponse>(await this.callApi(params, req, runtime), new StopServiceResponse({}));
5642
6617
  }
5643
6618
 
5644
- async updateBenchmarkTask(ClusterId: string, TaskName: string, request: UpdateBenchmarkTaskRequest): Promise<UpdateBenchmarkTaskResponse> {
6619
+ async stopService(ClusterId: string, ServiceName: string): Promise<StopServiceResponse> {
5645
6620
  let runtime = new $Util.RuntimeOptions({ });
5646
6621
  let headers : {[key: string ]: string} = { };
5647
- return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
6622
+ return await this.stopServiceWithOptions(ClusterId, ServiceName, headers, runtime);
5648
6623
  }
5649
6624
 
5650
6625
  async updateBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, request: UpdateBenchmarkTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateBenchmarkTaskResponse> {
@@ -5667,10 +6642,10 @@ export default class Client extends OpenApi {
5667
6642
  return $tea.cast<UpdateBenchmarkTaskResponse>(await this.callApi(params, req, runtime), new UpdateBenchmarkTaskResponse({}));
5668
6643
  }
5669
6644
 
5670
- async updateResource(ClusterId: string, ResourceId: string, request: UpdateResourceRequest): Promise<UpdateResourceResponse> {
6645
+ async updateBenchmarkTask(ClusterId: string, TaskName: string, request: UpdateBenchmarkTaskRequest): Promise<UpdateBenchmarkTaskResponse> {
5671
6646
  let runtime = new $Util.RuntimeOptions({ });
5672
6647
  let headers : {[key: string ]: string} = { };
5673
- return await this.updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime);
6648
+ return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
5674
6649
  }
5675
6650
 
5676
6651
  async updateResourceWithOptions(ClusterId: string, ResourceId: string, request: UpdateResourceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateResourceResponse> {
@@ -5698,10 +6673,10 @@ export default class Client extends OpenApi {
5698
6673
  return $tea.cast<UpdateResourceResponse>(await this.callApi(params, req, runtime), new UpdateResourceResponse({}));
5699
6674
  }
5700
6675
 
5701
- async updateResourceDLink(ClusterId: string, ResourceId: string, request: UpdateResourceDLinkRequest): Promise<UpdateResourceDLinkResponse> {
6676
+ async updateResource(ClusterId: string, ResourceId: string, request: UpdateResourceRequest): Promise<UpdateResourceResponse> {
5702
6677
  let runtime = new $Util.RuntimeOptions({ });
5703
6678
  let headers : {[key: string ]: string} = { };
5704
- return await this.updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime);
6679
+ return await this.updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime);
5705
6680
  }
5706
6681
 
5707
6682
  async updateResourceDLinkWithOptions(ClusterId: string, ResourceId: string, request: UpdateResourceDLinkRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateResourceDLinkResponse> {
@@ -5741,10 +6716,10 @@ export default class Client extends OpenApi {
5741
6716
  return $tea.cast<UpdateResourceDLinkResponse>(await this.callApi(params, req, runtime), new UpdateResourceDLinkResponse({}));
5742
6717
  }
5743
6718
 
5744
- async updateResourceInstance(ClusterId: string, ResourceId: string, InstanceId: string, request: UpdateResourceInstanceRequest): Promise<UpdateResourceInstanceResponse> {
6719
+ async updateResourceDLink(ClusterId: string, ResourceId: string, request: UpdateResourceDLinkRequest): Promise<UpdateResourceDLinkResponse> {
5745
6720
  let runtime = new $Util.RuntimeOptions({ });
5746
6721
  let headers : {[key: string ]: string} = { };
5747
- return await this.updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime);
6722
+ return await this.updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime);
5748
6723
  }
5749
6724
 
5750
6725
  async updateResourceInstanceWithOptions(ClusterId: string, ResourceId: string, InstanceId: string, request: UpdateResourceInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateResourceInstanceResponse> {
@@ -5772,10 +6747,10 @@ export default class Client extends OpenApi {
5772
6747
  return $tea.cast<UpdateResourceInstanceResponse>(await this.callApi(params, req, runtime), new UpdateResourceInstanceResponse({}));
5773
6748
  }
5774
6749
 
5775
- async updateService(ClusterId: string, ServiceName: string, request: UpdateServiceRequest): Promise<UpdateServiceResponse> {
6750
+ async updateResourceInstance(ClusterId: string, ResourceId: string, InstanceId: string, request: UpdateResourceInstanceRequest): Promise<UpdateResourceInstanceResponse> {
5776
6751
  let runtime = new $Util.RuntimeOptions({ });
5777
6752
  let headers : {[key: string ]: string} = { };
5778
- return await this.updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
6753
+ return await this.updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime);
5779
6754
  }
5780
6755
 
5781
6756
  async updateServiceWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceResponse> {
@@ -5798,15 +6773,19 @@ export default class Client extends OpenApi {
5798
6773
  return $tea.cast<UpdateServiceResponse>(await this.callApi(params, req, runtime), new UpdateServiceResponse({}));
5799
6774
  }
5800
6775
 
5801
- async updateServiceAutoScaler(ClusterId: string, ServiceName: string, request: UpdateServiceAutoScalerRequest): Promise<UpdateServiceAutoScalerResponse> {
6776
+ async updateService(ClusterId: string, ServiceName: string, request: UpdateServiceRequest): Promise<UpdateServiceResponse> {
5802
6777
  let runtime = new $Util.RuntimeOptions({ });
5803
6778
  let headers : {[key: string ]: string} = { };
5804
- return await this.updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
6779
+ return await this.updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
5805
6780
  }
5806
6781
 
5807
6782
  async updateServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceAutoScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceAutoScalerResponse> {
5808
6783
  Util.validateModel(request);
5809
6784
  let body : {[key: string ]: any} = { };
6785
+ if (!Util.isUnset(request.behavior)) {
6786
+ body["behavior"] = request.behavior;
6787
+ }
6788
+
5810
6789
  if (!Util.isUnset(request.max)) {
5811
6790
  body["max"] = request.max;
5812
6791
  }
@@ -5837,10 +6816,10 @@ export default class Client extends OpenApi {
5837
6816
  return $tea.cast<UpdateServiceAutoScalerResponse>(await this.callApi(params, req, runtime), new UpdateServiceAutoScalerResponse({}));
5838
6817
  }
5839
6818
 
5840
- async updateServiceCronScaler(ClusterId: string, ServiceName: string, request: UpdateServiceCronScalerRequest): Promise<UpdateServiceCronScalerResponse> {
6819
+ async updateServiceAutoScaler(ClusterId: string, ServiceName: string, request: UpdateServiceAutoScalerRequest): Promise<UpdateServiceAutoScalerResponse> {
5841
6820
  let runtime = new $Util.RuntimeOptions({ });
5842
6821
  let headers : {[key: string ]: string} = { };
5843
- return await this.updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
6822
+ return await this.updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
5844
6823
  }
5845
6824
 
5846
6825
  async updateServiceCronScalerWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceCronScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceCronScalerResponse> {
@@ -5872,10 +6851,41 @@ export default class Client extends OpenApi {
5872
6851
  return $tea.cast<UpdateServiceCronScalerResponse>(await this.callApi(params, req, runtime), new UpdateServiceCronScalerResponse({}));
5873
6852
  }
5874
6853
 
5875
- async updateServiceMirror(ClusterId: string, ServiceName: string, request: UpdateServiceMirrorRequest): Promise<UpdateServiceMirrorResponse> {
6854
+ async updateServiceCronScaler(ClusterId: string, ServiceName: string, request: UpdateServiceCronScalerRequest): Promise<UpdateServiceCronScalerResponse> {
5876
6855
  let runtime = new $Util.RuntimeOptions({ });
5877
6856
  let headers : {[key: string ]: string} = { };
5878
- return await this.updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
6857
+ return await this.updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
6858
+ }
6859
+
6860
+ async updateServiceLabelWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceLabelRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceLabelResponse> {
6861
+ Util.validateModel(request);
6862
+ let body : {[key: string ]: any} = { };
6863
+ if (!Util.isUnset(request.labels)) {
6864
+ body["Labels"] = request.labels;
6865
+ }
6866
+
6867
+ let req = new $OpenApi.OpenApiRequest({
6868
+ headers: headers,
6869
+ body: OpenApiUtil.parseToMap(body),
6870
+ });
6871
+ let params = new $OpenApi.Params({
6872
+ action: "UpdateServiceLabel",
6873
+ version: "2021-07-01",
6874
+ protocol: "HTTPS",
6875
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/label`,
6876
+ method: "PUT",
6877
+ authType: "AK",
6878
+ style: "ROA",
6879
+ reqBodyType: "json",
6880
+ bodyType: "json",
6881
+ });
6882
+ return $tea.cast<UpdateServiceLabelResponse>(await this.callApi(params, req, runtime), new UpdateServiceLabelResponse({}));
6883
+ }
6884
+
6885
+ async updateServiceLabel(ClusterId: string, ServiceName: string, request: UpdateServiceLabelRequest): Promise<UpdateServiceLabelResponse> {
6886
+ let runtime = new $Util.RuntimeOptions({ });
6887
+ let headers : {[key: string ]: string} = { };
6888
+ return await this.updateServiceLabelWithOptions(ClusterId, ServiceName, request, headers, runtime);
5879
6889
  }
5880
6890
 
5881
6891
  async updateServiceMirrorWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceMirrorRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceMirrorResponse> {
@@ -5907,10 +6917,10 @@ export default class Client extends OpenApi {
5907
6917
  return $tea.cast<UpdateServiceMirrorResponse>(await this.callApi(params, req, runtime), new UpdateServiceMirrorResponse({}));
5908
6918
  }
5909
6919
 
5910
- async updateServiceSafetyLock(ClusterId: string, ServiceName: string, request: UpdateServiceSafetyLockRequest): Promise<UpdateServiceSafetyLockResponse> {
6920
+ async updateServiceMirror(ClusterId: string, ServiceName: string, request: UpdateServiceMirrorRequest): Promise<UpdateServiceMirrorResponse> {
5911
6921
  let runtime = new $Util.RuntimeOptions({ });
5912
6922
  let headers : {[key: string ]: string} = { };
5913
- return await this.updateServiceSafetyLockWithOptions(ClusterId, ServiceName, request, headers, runtime);
6923
+ return await this.updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
5914
6924
  }
5915
6925
 
5916
6926
  async updateServiceSafetyLockWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceSafetyLockRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceSafetyLockResponse> {
@@ -5938,10 +6948,10 @@ export default class Client extends OpenApi {
5938
6948
  return $tea.cast<UpdateServiceSafetyLockResponse>(await this.callApi(params, req, runtime), new UpdateServiceSafetyLockResponse({}));
5939
6949
  }
5940
6950
 
5941
- async updateServiceVersion(ClusterId: string, ServiceName: string, request: UpdateServiceVersionRequest): Promise<UpdateServiceVersionResponse> {
6951
+ async updateServiceSafetyLock(ClusterId: string, ServiceName: string, request: UpdateServiceSafetyLockRequest): Promise<UpdateServiceSafetyLockResponse> {
5942
6952
  let runtime = new $Util.RuntimeOptions({ });
5943
6953
  let headers : {[key: string ]: string} = { };
5944
- return await this.updateServiceVersionWithOptions(ClusterId, ServiceName, request, headers, runtime);
6954
+ return await this.updateServiceSafetyLockWithOptions(ClusterId, ServiceName, request, headers, runtime);
5945
6955
  }
5946
6956
 
5947
6957
  async updateServiceVersionWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceVersionRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceVersionResponse> {
@@ -5969,4 +6979,10 @@ export default class Client extends OpenApi {
5969
6979
  return $tea.cast<UpdateServiceVersionResponse>(await this.callApi(params, req, runtime), new UpdateServiceVersionResponse({}));
5970
6980
  }
5971
6981
 
6982
+ async updateServiceVersion(ClusterId: string, ServiceName: string, request: UpdateServiceVersionRequest): Promise<UpdateServiceVersionResponse> {
6983
+ let runtime = new $Util.RuntimeOptions({ });
6984
+ let headers : {[key: string ]: string} = { };
6985
+ return await this.updateServiceVersionWithOptions(ClusterId, ServiceName, request, headers, runtime);
6986
+ }
6987
+
5972
6988
  }