@alicloud/eas20210701 2.0.3 → 2.1.0

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,13 +98,16 @@ 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;
61
113
  resourceType?: string;
@@ -68,13 +120,16 @@ export class Instance extends $tea.Model {
68
120
  totalProcesses?: number;
69
121
  static names(): { [key: string]: string } {
70
122
  return {
123
+ currentAmount: 'CurrentAmount',
71
124
  hostIP: 'HostIP',
72
125
  hostName: 'HostName',
73
126
  innerIP: 'InnerIP',
74
127
  instanceName: 'InstanceName',
75
128
  instancePort: 'InstancePort',
129
+ isSpot: 'IsSpot',
76
130
  lastState: 'LastState',
77
131
  namespace: 'Namespace',
132
+ originalAmount: 'OriginalAmount',
78
133
  readyProcesses: 'ReadyProcesses',
79
134
  reason: 'Reason',
80
135
  resourceType: 'ResourceType',
@@ -90,13 +145,16 @@ export class Instance extends $tea.Model {
90
145
 
91
146
  static types(): { [key: string]: any } {
92
147
  return {
148
+ currentAmount: 'number',
93
149
  hostIP: 'string',
94
150
  hostName: 'string',
95
151
  innerIP: 'string',
96
152
  instanceName: 'string',
97
153
  instancePort: 'number',
154
+ isSpot: 'boolean',
98
155
  lastState: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
99
156
  namespace: 'string',
157
+ originalAmount: 'number',
100
158
  readyProcesses: 'number',
101
159
  reason: 'string',
102
160
  resourceType: 'string',
@@ -184,6 +242,7 @@ export class ResourceInstance extends $tea.Model {
184
242
  instanceMemory?: string;
185
243
  instanceName?: string;
186
244
  instanceStatus?: string;
245
+ instanceSystemDiskSize?: number;
187
246
  instanceTenantIp?: string;
188
247
  instanceType?: string;
189
248
  instanceUsedCpu?: number;
@@ -191,6 +250,7 @@ export class ResourceInstance extends $tea.Model {
191
250
  instanceUsedGpuMemory?: string;
192
251
  instanceUsedMemory?: string;
193
252
  region?: string;
253
+ resourceId?: string;
194
254
  zone?: string;
195
255
  static names(): { [key: string]: string } {
196
256
  return {
@@ -207,6 +267,7 @@ export class ResourceInstance extends $tea.Model {
207
267
  instanceMemory: 'InstanceMemory',
208
268
  instanceName: 'InstanceName',
209
269
  instanceStatus: 'InstanceStatus',
270
+ instanceSystemDiskSize: 'InstanceSystemDiskSize',
210
271
  instanceTenantIp: 'InstanceTenantIp',
211
272
  instanceType: 'InstanceType',
212
273
  instanceUsedCpu: 'InstanceUsedCpu',
@@ -214,6 +275,7 @@ export class ResourceInstance extends $tea.Model {
214
275
  instanceUsedGpuMemory: 'InstanceUsedGpuMemory',
215
276
  instanceUsedMemory: 'InstanceUsedMemory',
216
277
  region: 'Region',
278
+ resourceId: 'ResourceId',
217
279
  zone: 'Zone',
218
280
  };
219
281
  }
@@ -233,6 +295,7 @@ export class ResourceInstance extends $tea.Model {
233
295
  instanceMemory: 'string',
234
296
  instanceName: 'string',
235
297
  instanceStatus: 'string',
298
+ instanceSystemDiskSize: 'number',
236
299
  instanceTenantIp: 'string',
237
300
  instanceType: 'string',
238
301
  instanceUsedCpu: 'number',
@@ -240,6 +303,7 @@ export class ResourceInstance extends $tea.Model {
240
303
  instanceUsedGpuMemory: 'string',
241
304
  instanceUsedMemory: 'string',
242
305
  region: 'string',
306
+ resourceId: 'string',
243
307
  zone: 'string',
244
308
  };
245
309
  }
@@ -328,6 +392,8 @@ export class Service extends $tea.Model {
328
392
  roleAttrs?: string;
329
393
  runningInstance?: number;
330
394
  safetyLock?: string;
395
+ secondaryInternetEndpoint?: string;
396
+ secondaryIntranetEndpoint?: string;
331
397
  serviceConfig?: string;
332
398
  serviceGroup?: string;
333
399
  serviceId?: string;
@@ -366,6 +432,8 @@ export class Service extends $tea.Model {
366
432
  roleAttrs: 'RoleAttrs',
367
433
  runningInstance: 'RunningInstance',
368
434
  safetyLock: 'SafetyLock',
435
+ secondaryInternetEndpoint: 'SecondaryInternetEndpoint',
436
+ secondaryIntranetEndpoint: 'SecondaryIntranetEndpoint',
369
437
  serviceConfig: 'ServiceConfig',
370
438
  serviceGroup: 'ServiceGroup',
371
439
  serviceId: 'ServiceId',
@@ -407,6 +475,8 @@ export class Service extends $tea.Model {
407
475
  roleAttrs: 'string',
408
476
  runningInstance: 'number',
409
477
  safetyLock: 'string',
478
+ secondaryInternetEndpoint: 'string',
479
+ secondaryIntranetEndpoint: 'string',
410
480
  serviceConfig: 'string',
411
481
  serviceGroup: 'string',
412
482
  serviceId: 'string',
@@ -549,12 +619,16 @@ export class CreateResourceRequest extends $tea.Model {
549
619
  chargeType?: string;
550
620
  ecsInstanceCount?: number;
551
621
  ecsInstanceType?: string;
622
+ systemDiskSize?: number;
623
+ zone?: string;
552
624
  static names(): { [key: string]: string } {
553
625
  return {
554
626
  autoRenewal: 'AutoRenewal',
555
627
  chargeType: 'ChargeType',
556
628
  ecsInstanceCount: 'EcsInstanceCount',
557
629
  ecsInstanceType: 'EcsInstanceType',
630
+ systemDiskSize: 'SystemDiskSize',
631
+ zone: 'Zone',
558
632
  };
559
633
  }
560
634
 
@@ -564,6 +638,8 @@ export class CreateResourceRequest extends $tea.Model {
564
638
  chargeType: 'string',
565
639
  ecsInstanceCount: 'number',
566
640
  ecsInstanceType: 'string',
641
+ systemDiskSize: 'number',
642
+ zone: 'string',
567
643
  };
568
644
  }
569
645
 
@@ -574,6 +650,7 @@ export class CreateResourceRequest extends $tea.Model {
574
650
 
575
651
  export class CreateResourceResponseBody extends $tea.Model {
576
652
  clusterId?: string;
653
+ instanceIds?: string[];
577
654
  ownerUid?: string;
578
655
  requestId?: string;
579
656
  resourceId?: string;
@@ -581,6 +658,7 @@ export class CreateResourceResponseBody extends $tea.Model {
581
658
  static names(): { [key: string]: string } {
582
659
  return {
583
660
  clusterId: 'ClusterId',
661
+ instanceIds: 'InstanceIds',
584
662
  ownerUid: 'OwnerUid',
585
663
  requestId: 'RequestId',
586
664
  resourceId: 'ResourceId',
@@ -591,6 +669,7 @@ export class CreateResourceResponseBody extends $tea.Model {
591
669
  static types(): { [key: string]: any } {
592
670
  return {
593
671
  clusterId: 'string',
672
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
594
673
  ownerUid: 'string',
595
674
  requestId: 'string',
596
675
  resourceId: 'string',
@@ -633,14 +712,18 @@ export class CreateResourceInstancesRequest extends $tea.Model {
633
712
  chargeType?: string;
634
713
  ecsInstanceCount?: number;
635
714
  ecsInstanceType?: string;
715
+ systemDiskSize?: number;
636
716
  userData?: string;
717
+ zone?: string;
637
718
  static names(): { [key: string]: string } {
638
719
  return {
639
720
  autoRenewal: 'AutoRenewal',
640
721
  chargeType: 'ChargeType',
641
722
  ecsInstanceCount: 'EcsInstanceCount',
642
723
  ecsInstanceType: 'EcsInstanceType',
724
+ systemDiskSize: 'SystemDiskSize',
643
725
  userData: 'UserData',
726
+ zone: 'Zone',
644
727
  };
645
728
  }
646
729
 
@@ -650,7 +733,9 @@ export class CreateResourceInstancesRequest extends $tea.Model {
650
733
  chargeType: 'string',
651
734
  ecsInstanceCount: 'number',
652
735
  ecsInstanceType: 'string',
736
+ systemDiskSize: 'number',
653
737
  userData: 'string',
738
+ zone: 'string',
654
739
  };
655
740
  }
656
741
 
@@ -660,10 +745,12 @@ export class CreateResourceInstancesRequest extends $tea.Model {
660
745
  }
661
746
 
662
747
  export class CreateResourceInstancesResponseBody extends $tea.Model {
748
+ instanceIds?: string[];
663
749
  message?: string;
664
750
  requestId?: string;
665
751
  static names(): { [key: string]: string } {
666
752
  return {
753
+ instanceIds: 'InstanceIds',
667
754
  message: 'Message',
668
755
  requestId: 'RequestId',
669
756
  };
@@ -671,6 +758,7 @@ export class CreateResourceInstancesResponseBody extends $tea.Model {
671
758
 
672
759
  static types(): { [key: string]: any } {
673
760
  return {
761
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
674
762
  message: 'string',
675
763
  requestId: 'string',
676
764
  };
@@ -888,11 +976,13 @@ export class CreateServiceResponse extends $tea.Model {
888
976
  }
889
977
 
890
978
  export class CreateServiceAutoScalerRequest extends $tea.Model {
979
+ behavior?: CreateServiceAutoScalerRequestBehavior;
891
980
  max?: number;
892
981
  min?: number;
893
982
  scaleStrategies?: CreateServiceAutoScalerRequestScaleStrategies[];
894
983
  static names(): { [key: string]: string } {
895
984
  return {
985
+ behavior: 'behavior',
896
986
  max: 'max',
897
987
  min: 'min',
898
988
  scaleStrategies: 'scaleStrategies',
@@ -901,6 +991,7 @@ export class CreateServiceAutoScalerRequest extends $tea.Model {
901
991
 
902
992
  static types(): { [key: string]: any } {
903
993
  return {
994
+ behavior: CreateServiceAutoScalerRequestBehavior,
904
995
  max: 'number',
905
996
  min: 'number',
906
997
  scaleStrategies: { 'type': 'array', 'itemType': CreateServiceAutoScalerRequestScaleStrategies },
@@ -1496,16 +1587,22 @@ export class DeleteServiceCronScalerResponse extends $tea.Model {
1496
1587
  }
1497
1588
 
1498
1589
  export class DeleteServiceInstancesRequest extends $tea.Model {
1590
+ container?: string;
1499
1591
  instanceList?: string;
1592
+ softRestart?: boolean;
1500
1593
  static names(): { [key: string]: string } {
1501
1594
  return {
1595
+ container: 'Container',
1502
1596
  instanceList: 'InstanceList',
1597
+ softRestart: 'SoftRestart',
1503
1598
  };
1504
1599
  }
1505
1600
 
1506
1601
  static types(): { [key: string]: any } {
1507
1602
  return {
1603
+ container: 'string',
1508
1604
  instanceList: 'string',
1605
+ softRestart: 'boolean',
1509
1606
  };
1510
1607
  }
1511
1608
 
@@ -2208,14 +2305,65 @@ export class DescribeServiceCronScalerResponse extends $tea.Model {
2208
2305
  }
2209
2306
  }
2210
2307
 
2308
+ export class DescribeServiceDiagnosisResponseBody extends $tea.Model {
2309
+ diagnosisList?: DescribeServiceDiagnosisResponseBodyDiagnosisList[];
2310
+ requestId?: string;
2311
+ static names(): { [key: string]: string } {
2312
+ return {
2313
+ diagnosisList: 'DiagnosisList',
2314
+ requestId: 'RequestId',
2315
+ };
2316
+ }
2317
+
2318
+ static types(): { [key: string]: any } {
2319
+ return {
2320
+ diagnosisList: { 'type': 'array', 'itemType': DescribeServiceDiagnosisResponseBodyDiagnosisList },
2321
+ requestId: 'string',
2322
+ };
2323
+ }
2324
+
2325
+ constructor(map?: { [key: string]: any }) {
2326
+ super(map);
2327
+ }
2328
+ }
2329
+
2330
+ export class DescribeServiceDiagnosisResponse extends $tea.Model {
2331
+ headers: { [key: string]: string };
2332
+ statusCode: number;
2333
+ body: DescribeServiceDiagnosisResponseBody;
2334
+ static names(): { [key: string]: string } {
2335
+ return {
2336
+ headers: 'headers',
2337
+ statusCode: 'statusCode',
2338
+ body: 'body',
2339
+ };
2340
+ }
2341
+
2342
+ static types(): { [key: string]: any } {
2343
+ return {
2344
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2345
+ statusCode: 'number',
2346
+ body: DescribeServiceDiagnosisResponseBody,
2347
+ };
2348
+ }
2349
+
2350
+ constructor(map?: { [key: string]: any }) {
2351
+ super(map);
2352
+ }
2353
+ }
2354
+
2211
2355
  export class DescribeServiceEventRequest extends $tea.Model {
2212
2356
  endTime?: string;
2357
+ eventType?: string;
2358
+ instanceName?: string;
2213
2359
  pageNum?: string;
2214
2360
  pageSize?: string;
2215
2361
  startTime?: string;
2216
2362
  static names(): { [key: string]: string } {
2217
2363
  return {
2218
2364
  endTime: 'EndTime',
2365
+ eventType: 'EventType',
2366
+ instanceName: 'InstanceName',
2219
2367
  pageNum: 'PageNum',
2220
2368
  pageSize: 'PageSize',
2221
2369
  startTime: 'StartTime',
@@ -2225,6 +2373,8 @@ export class DescribeServiceEventRequest extends $tea.Model {
2225
2373
  static types(): { [key: string]: any } {
2226
2374
  return {
2227
2375
  endTime: 'string',
2376
+ eventType: 'string',
2377
+ instanceName: 'string',
2228
2378
  pageNum: 'string',
2229
2379
  pageSize: 'string',
2230
2380
  startTime: 'string',
@@ -2292,31 +2442,87 @@ export class DescribeServiceEventResponse extends $tea.Model {
2292
2442
  }
2293
2443
  }
2294
2444
 
2445
+ export class DescribeServiceInstanceDiagnosisResponseBody extends $tea.Model {
2446
+ diagnosis?: DescribeServiceInstanceDiagnosisResponseBodyDiagnosis;
2447
+ requestId?: string;
2448
+ static names(): { [key: string]: string } {
2449
+ return {
2450
+ diagnosis: 'Diagnosis',
2451
+ requestId: 'RequestId',
2452
+ };
2453
+ }
2454
+
2455
+ static types(): { [key: string]: any } {
2456
+ return {
2457
+ diagnosis: DescribeServiceInstanceDiagnosisResponseBodyDiagnosis,
2458
+ requestId: 'string',
2459
+ };
2460
+ }
2461
+
2462
+ constructor(map?: { [key: string]: any }) {
2463
+ super(map);
2464
+ }
2465
+ }
2466
+
2467
+ export class DescribeServiceInstanceDiagnosisResponse extends $tea.Model {
2468
+ headers: { [key: string]: string };
2469
+ statusCode: number;
2470
+ body: DescribeServiceInstanceDiagnosisResponseBody;
2471
+ static names(): { [key: string]: string } {
2472
+ return {
2473
+ headers: 'headers',
2474
+ statusCode: 'statusCode',
2475
+ body: 'body',
2476
+ };
2477
+ }
2478
+
2479
+ static types(): { [key: string]: any } {
2480
+ return {
2481
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2482
+ statusCode: 'number',
2483
+ body: DescribeServiceInstanceDiagnosisResponseBody,
2484
+ };
2485
+ }
2486
+
2487
+ constructor(map?: { [key: string]: any }) {
2488
+ super(map);
2489
+ }
2490
+ }
2491
+
2295
2492
  export class DescribeServiceLogRequest extends $tea.Model {
2493
+ containerName?: string;
2296
2494
  endTime?: string;
2495
+ instanceName?: string;
2297
2496
  ip?: string;
2298
2497
  keyword?: string;
2299
2498
  pageNum?: number;
2300
2499
  pageSize?: number;
2500
+ previous?: boolean;
2301
2501
  startTime?: string;
2302
2502
  static names(): { [key: string]: string } {
2303
2503
  return {
2504
+ containerName: 'ContainerName',
2304
2505
  endTime: 'EndTime',
2506
+ instanceName: 'InstanceName',
2305
2507
  ip: 'Ip',
2306
2508
  keyword: 'Keyword',
2307
2509
  pageNum: 'PageNum',
2308
2510
  pageSize: 'PageSize',
2511
+ previous: 'Previous',
2309
2512
  startTime: 'StartTime',
2310
2513
  };
2311
2514
  }
2312
2515
 
2313
2516
  static types(): { [key: string]: any } {
2314
2517
  return {
2518
+ containerName: 'string',
2315
2519
  endTime: 'string',
2520
+ instanceName: 'string',
2316
2521
  ip: 'string',
2317
2522
  keyword: 'string',
2318
2523
  pageNum: 'number',
2319
2524
  pageSize: 'number',
2525
+ previous: 'boolean',
2320
2526
  startTime: 'string',
2321
2527
  };
2322
2528
  }
@@ -2746,27 +2952,42 @@ export class ListResourceInstanceWorkerResponse extends $tea.Model {
2746
2952
 
2747
2953
  export class ListResourceInstancesRequest extends $tea.Model {
2748
2954
  chargeType?: string;
2955
+ filter?: string;
2956
+ instanceIP?: string;
2749
2957
  instanceId?: string;
2750
2958
  instanceName?: string;
2959
+ instanceStatus?: string;
2960
+ order?: string;
2751
2961
  pageNumber?: number;
2752
2962
  pageSize?: number;
2963
+ sort?: string;
2753
2964
  static names(): { [key: string]: string } {
2754
2965
  return {
2755
2966
  chargeType: 'ChargeType',
2967
+ filter: 'Filter',
2968
+ instanceIP: 'InstanceIP',
2756
2969
  instanceId: 'InstanceId',
2757
2970
  instanceName: 'InstanceName',
2971
+ instanceStatus: 'InstanceStatus',
2972
+ order: 'Order',
2758
2973
  pageNumber: 'PageNumber',
2759
2974
  pageSize: 'PageSize',
2975
+ sort: 'Sort',
2760
2976
  };
2761
2977
  }
2762
2978
 
2763
2979
  static types(): { [key: string]: any } {
2764
2980
  return {
2765
2981
  chargeType: 'string',
2982
+ filter: 'string',
2983
+ instanceIP: 'string',
2766
2984
  instanceId: 'string',
2767
2985
  instanceName: 'string',
2986
+ instanceStatus: 'string',
2987
+ order: 'string',
2768
2988
  pageNumber: 'number',
2769
2989
  pageSize: 'number',
2990
+ sort: 'string',
2770
2991
  };
2771
2992
  }
2772
2993
 
@@ -2993,20 +3214,103 @@ export class ListResourcesResponse extends $tea.Model {
2993
3214
  }
2994
3215
  }
2995
3216
 
3217
+ export class ListServiceContainersResponseBody extends $tea.Model {
3218
+ containers?: ContainerInfo[];
3219
+ requestId?: string;
3220
+ serviceName?: string;
3221
+ static names(): { [key: string]: string } {
3222
+ return {
3223
+ containers: 'Containers',
3224
+ requestId: 'RequestId',
3225
+ serviceName: 'ServiceName',
3226
+ };
3227
+ }
3228
+
3229
+ static types(): { [key: string]: any } {
3230
+ return {
3231
+ containers: { 'type': 'array', 'itemType': ContainerInfo },
3232
+ requestId: 'string',
3233
+ serviceName: 'string',
3234
+ };
3235
+ }
3236
+
3237
+ constructor(map?: { [key: string]: any }) {
3238
+ super(map);
3239
+ }
3240
+ }
3241
+
3242
+ export class ListServiceContainersResponse extends $tea.Model {
3243
+ headers: { [key: string]: string };
3244
+ statusCode: number;
3245
+ body: ListServiceContainersResponseBody;
3246
+ static names(): { [key: string]: string } {
3247
+ return {
3248
+ headers: 'headers',
3249
+ statusCode: 'statusCode',
3250
+ body: 'body',
3251
+ };
3252
+ }
3253
+
3254
+ static types(): { [key: string]: any } {
3255
+ return {
3256
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3257
+ statusCode: 'number',
3258
+ body: ListServiceContainersResponseBody,
3259
+ };
3260
+ }
3261
+
3262
+ constructor(map?: { [key: string]: any }) {
3263
+ super(map);
3264
+ }
3265
+ }
3266
+
2996
3267
  export class ListServiceInstancesRequest extends $tea.Model {
3268
+ filter?: string;
3269
+ hostIP?: string;
3270
+ instanceIP?: string;
3271
+ instanceName?: string;
3272
+ instanceStatus?: string;
3273
+ instanceType?: string;
3274
+ isSpot?: boolean;
3275
+ order?: string;
2997
3276
  pageNumber?: number;
2998
3277
  pageSize?: number;
3278
+ resourceType?: string;
3279
+ role?: string;
3280
+ sort?: string;
2999
3281
  static names(): { [key: string]: string } {
3000
3282
  return {
3283
+ filter: 'Filter',
3284
+ hostIP: 'HostIP',
3285
+ instanceIP: 'InstanceIP',
3286
+ instanceName: 'InstanceName',
3287
+ instanceStatus: 'InstanceStatus',
3288
+ instanceType: 'InstanceType',
3289
+ isSpot: 'IsSpot',
3290
+ order: 'Order',
3001
3291
  pageNumber: 'PageNumber',
3002
3292
  pageSize: 'PageSize',
3293
+ resourceType: 'ResourceType',
3294
+ role: 'Role',
3295
+ sort: 'Sort',
3003
3296
  };
3004
3297
  }
3005
3298
 
3006
3299
  static types(): { [key: string]: any } {
3007
3300
  return {
3301
+ filter: 'string',
3302
+ hostIP: 'string',
3303
+ instanceIP: 'string',
3304
+ instanceName: 'string',
3305
+ instanceStatus: 'string',
3306
+ instanceType: 'string',
3307
+ isSpot: 'boolean',
3308
+ order: 'string',
3008
3309
  pageNumber: 'number',
3009
3310
  pageSize: 'number',
3311
+ resourceType: 'string',
3312
+ role: 'string',
3313
+ sort: 'string',
3010
3314
  };
3011
3315
  }
3012
3316
 
@@ -3157,7 +3461,11 @@ export class ListServicesRequest extends $tea.Model {
3157
3461
  pageNumber?: number;
3158
3462
  pageSize?: number;
3159
3463
  parentServiceUid?: string;
3464
+ resourceName?: string;
3465
+ serviceName?: string;
3466
+ serviceStatus?: string;
3160
3467
  serviceType?: string;
3468
+ serviceUid?: string;
3161
3469
  sort?: string;
3162
3470
  static names(): { [key: string]: string } {
3163
3471
  return {
@@ -3168,7 +3476,11 @@ export class ListServicesRequest extends $tea.Model {
3168
3476
  pageNumber: 'PageNumber',
3169
3477
  pageSize: 'PageSize',
3170
3478
  parentServiceUid: 'ParentServiceUid',
3479
+ resourceName: 'ResourceName',
3480
+ serviceName: 'ServiceName',
3481
+ serviceStatus: 'ServiceStatus',
3171
3482
  serviceType: 'ServiceType',
3483
+ serviceUid: 'ServiceUid',
3172
3484
  sort: 'Sort',
3173
3485
  };
3174
3486
  }
@@ -3182,7 +3494,11 @@ export class ListServicesRequest extends $tea.Model {
3182
3494
  pageNumber: 'number',
3183
3495
  pageSize: 'number',
3184
3496
  parentServiceUid: 'string',
3497
+ resourceName: 'string',
3498
+ serviceName: 'string',
3499
+ serviceStatus: 'string',
3185
3500
  serviceType: 'string',
3501
+ serviceUid: 'string',
3186
3502
  sort: 'string',
3187
3503
  };
3188
3504
  }
@@ -3200,7 +3516,11 @@ export class ListServicesShrinkRequest extends $tea.Model {
3200
3516
  pageNumber?: number;
3201
3517
  pageSize?: number;
3202
3518
  parentServiceUid?: string;
3519
+ resourceName?: string;
3520
+ serviceName?: string;
3521
+ serviceStatus?: string;
3203
3522
  serviceType?: string;
3523
+ serviceUid?: string;
3204
3524
  sort?: string;
3205
3525
  static names(): { [key: string]: string } {
3206
3526
  return {
@@ -3211,7 +3531,11 @@ export class ListServicesShrinkRequest extends $tea.Model {
3211
3531
  pageNumber: 'PageNumber',
3212
3532
  pageSize: 'PageSize',
3213
3533
  parentServiceUid: 'ParentServiceUid',
3534
+ resourceName: 'ResourceName',
3535
+ serviceName: 'ServiceName',
3536
+ serviceStatus: 'ServiceStatus',
3214
3537
  serviceType: 'ServiceType',
3538
+ serviceUid: 'ServiceUid',
3215
3539
  sort: 'Sort',
3216
3540
  };
3217
3541
  }
@@ -3225,7 +3549,11 @@ export class ListServicesShrinkRequest extends $tea.Model {
3225
3549
  pageNumber: 'number',
3226
3550
  pageSize: 'number',
3227
3551
  parentServiceUid: 'string',
3552
+ resourceName: 'string',
3553
+ serviceName: 'string',
3554
+ serviceStatus: 'string',
3228
3555
  serviceType: 'string',
3556
+ serviceUid: 'string',
3229
3557
  sort: 'string',
3230
3558
  };
3231
3559
  }
@@ -3360,7 +3688,7 @@ export class ReleaseServiceResponse extends $tea.Model {
3360
3688
  }
3361
3689
  }
3362
3690
 
3363
- export class StartBenchmarkTaskResponseBody extends $tea.Model {
3691
+ export class RestartServiceResponseBody extends $tea.Model {
3364
3692
  message?: string;
3365
3693
  requestId?: string;
3366
3694
  static names(): { [key: string]: string } {
@@ -3382,10 +3710,10 @@ export class StartBenchmarkTaskResponseBody extends $tea.Model {
3382
3710
  }
3383
3711
  }
3384
3712
 
3385
- export class StartBenchmarkTaskResponse extends $tea.Model {
3713
+ export class RestartServiceResponse extends $tea.Model {
3386
3714
  headers: { [key: string]: string };
3387
3715
  statusCode: number;
3388
- body: StartBenchmarkTaskResponseBody;
3716
+ body: RestartServiceResponseBody;
3389
3717
  static names(): { [key: string]: string } {
3390
3718
  return {
3391
3719
  headers: 'headers',
@@ -3398,7 +3726,7 @@ export class StartBenchmarkTaskResponse extends $tea.Model {
3398
3726
  return {
3399
3727
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3400
3728
  statusCode: 'number',
3401
- body: StartBenchmarkTaskResponseBody,
3729
+ body: RestartServiceResponseBody,
3402
3730
  };
3403
3731
  }
3404
3732
 
@@ -3407,7 +3735,7 @@ export class StartBenchmarkTaskResponse extends $tea.Model {
3407
3735
  }
3408
3736
  }
3409
3737
 
3410
- export class StartServiceResponseBody extends $tea.Model {
3738
+ export class StartBenchmarkTaskResponseBody extends $tea.Model {
3411
3739
  message?: string;
3412
3740
  requestId?: string;
3413
3741
  static names(): { [key: string]: string } {
@@ -3429,10 +3757,10 @@ export class StartServiceResponseBody extends $tea.Model {
3429
3757
  }
3430
3758
  }
3431
3759
 
3432
- export class StartServiceResponse extends $tea.Model {
3760
+ export class StartBenchmarkTaskResponse extends $tea.Model {
3433
3761
  headers: { [key: string]: string };
3434
3762
  statusCode: number;
3435
- body: StartServiceResponseBody;
3763
+ body: StartBenchmarkTaskResponseBody;
3436
3764
  static names(): { [key: string]: string } {
3437
3765
  return {
3438
3766
  headers: 'headers',
@@ -3445,7 +3773,7 @@ export class StartServiceResponse extends $tea.Model {
3445
3773
  return {
3446
3774
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3447
3775
  statusCode: 'number',
3448
- body: StartServiceResponseBody,
3776
+ body: StartBenchmarkTaskResponseBody,
3449
3777
  };
3450
3778
  }
3451
3779
 
@@ -3454,7 +3782,7 @@ export class StartServiceResponse extends $tea.Model {
3454
3782
  }
3455
3783
  }
3456
3784
 
3457
- export class StopBenchmarkTaskResponseBody extends $tea.Model {
3785
+ export class StartServiceResponseBody extends $tea.Model {
3458
3786
  message?: string;
3459
3787
  requestId?: string;
3460
3788
  static names(): { [key: string]: string } {
@@ -3476,10 +3804,10 @@ export class StopBenchmarkTaskResponseBody extends $tea.Model {
3476
3804
  }
3477
3805
  }
3478
3806
 
3479
- export class StopBenchmarkTaskResponse extends $tea.Model {
3807
+ export class StartServiceResponse extends $tea.Model {
3480
3808
  headers: { [key: string]: string };
3481
3809
  statusCode: number;
3482
- body: StopBenchmarkTaskResponseBody;
3810
+ body: StartServiceResponseBody;
3483
3811
  static names(): { [key: string]: string } {
3484
3812
  return {
3485
3813
  headers: 'headers',
@@ -3492,7 +3820,7 @@ export class StopBenchmarkTaskResponse extends $tea.Model {
3492
3820
  return {
3493
3821
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3494
3822
  statusCode: 'number',
3495
- body: StopBenchmarkTaskResponseBody,
3823
+ body: StartServiceResponseBody,
3496
3824
  };
3497
3825
  }
3498
3826
 
@@ -3501,7 +3829,7 @@ export class StopBenchmarkTaskResponse extends $tea.Model {
3501
3829
  }
3502
3830
  }
3503
3831
 
3504
- export class StopServiceResponseBody extends $tea.Model {
3832
+ export class StopBenchmarkTaskResponseBody extends $tea.Model {
3505
3833
  message?: string;
3506
3834
  requestId?: string;
3507
3835
  static names(): { [key: string]: string } {
@@ -3523,10 +3851,10 @@ export class StopServiceResponseBody extends $tea.Model {
3523
3851
  }
3524
3852
  }
3525
3853
 
3526
- export class StopServiceResponse extends $tea.Model {
3854
+ export class StopBenchmarkTaskResponse extends $tea.Model {
3527
3855
  headers: { [key: string]: string };
3528
3856
  statusCode: number;
3529
- body: StopServiceResponseBody;
3857
+ body: StopBenchmarkTaskResponseBody;
3530
3858
  static names(): { [key: string]: string } {
3531
3859
  return {
3532
3860
  headers: 'headers',
@@ -3539,7 +3867,7 @@ export class StopServiceResponse extends $tea.Model {
3539
3867
  return {
3540
3868
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3541
3869
  statusCode: 'number',
3542
- body: StopServiceResponseBody,
3870
+ body: StopBenchmarkTaskResponseBody,
3543
3871
  };
3544
3872
  }
3545
3873
 
@@ -3548,11 +3876,58 @@ export class StopServiceResponse extends $tea.Model {
3548
3876
  }
3549
3877
  }
3550
3878
 
3551
- export class UpdateBenchmarkTaskRequest extends $tea.Model {
3552
- body?: string;
3879
+ export class StopServiceResponseBody extends $tea.Model {
3880
+ message?: string;
3881
+ requestId?: string;
3553
3882
  static names(): { [key: string]: string } {
3554
3883
  return {
3555
- body: 'body',
3884
+ message: 'Message',
3885
+ requestId: 'RequestId',
3886
+ };
3887
+ }
3888
+
3889
+ static types(): { [key: string]: any } {
3890
+ return {
3891
+ message: 'string',
3892
+ requestId: 'string',
3893
+ };
3894
+ }
3895
+
3896
+ constructor(map?: { [key: string]: any }) {
3897
+ super(map);
3898
+ }
3899
+ }
3900
+
3901
+ export class StopServiceResponse extends $tea.Model {
3902
+ headers: { [key: string]: string };
3903
+ statusCode: number;
3904
+ body: StopServiceResponseBody;
3905
+ static names(): { [key: string]: string } {
3906
+ return {
3907
+ headers: 'headers',
3908
+ statusCode: 'statusCode',
3909
+ body: 'body',
3910
+ };
3911
+ }
3912
+
3913
+ static types(): { [key: string]: any } {
3914
+ return {
3915
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3916
+ statusCode: 'number',
3917
+ body: StopServiceResponseBody,
3918
+ };
3919
+ }
3920
+
3921
+ constructor(map?: { [key: string]: any }) {
3922
+ super(map);
3923
+ }
3924
+ }
3925
+
3926
+ export class UpdateBenchmarkTaskRequest extends $tea.Model {
3927
+ body?: string;
3928
+ static names(): { [key: string]: string } {
3929
+ return {
3930
+ body: 'body',
3556
3931
  };
3557
3932
  }
3558
3933
 
@@ -3894,11 +4269,13 @@ export class UpdateServiceResponse extends $tea.Model {
3894
4269
  }
3895
4270
 
3896
4271
  export class UpdateServiceAutoScalerRequest extends $tea.Model {
4272
+ behavior?: UpdateServiceAutoScalerRequestBehavior;
3897
4273
  max?: number;
3898
4274
  min?: number;
3899
4275
  scaleStrategies?: UpdateServiceAutoScalerRequestScaleStrategies[];
3900
4276
  static names(): { [key: string]: string } {
3901
4277
  return {
4278
+ behavior: 'behavior',
3902
4279
  max: 'max',
3903
4280
  min: 'min',
3904
4281
  scaleStrategies: 'scaleStrategies',
@@ -3907,6 +4284,7 @@ export class UpdateServiceAutoScalerRequest extends $tea.Model {
3907
4284
 
3908
4285
  static types(): { [key: string]: any } {
3909
4286
  return {
4287
+ behavior: UpdateServiceAutoScalerRequestBehavior,
3910
4288
  max: 'number',
3911
4289
  min: 'number',
3912
4290
  scaleStrategies: { 'type': 'array', 'itemType': UpdateServiceAutoScalerRequestScaleStrategies },
@@ -4323,6 +4701,91 @@ export class ServiceLabels extends $tea.Model {
4323
4701
  }
4324
4702
  }
4325
4703
 
4704
+ export class CreateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
4705
+ scaleDownGracePeriodSeconds?: number;
4706
+ scaleUpActivationReplicas?: number;
4707
+ static names(): { [key: string]: string } {
4708
+ return {
4709
+ scaleDownGracePeriodSeconds: 'scaleDownGracePeriodSeconds',
4710
+ scaleUpActivationReplicas: 'scaleUpActivationReplicas',
4711
+ };
4712
+ }
4713
+
4714
+ static types(): { [key: string]: any } {
4715
+ return {
4716
+ scaleDownGracePeriodSeconds: 'number',
4717
+ scaleUpActivationReplicas: 'number',
4718
+ };
4719
+ }
4720
+
4721
+ constructor(map?: { [key: string]: any }) {
4722
+ super(map);
4723
+ }
4724
+ }
4725
+
4726
+ export class CreateServiceAutoScalerRequestBehaviorScaleDown extends $tea.Model {
4727
+ stabilizationWindowSeconds?: number;
4728
+ static names(): { [key: string]: string } {
4729
+ return {
4730
+ stabilizationWindowSeconds: 'stabilizationWindowSeconds',
4731
+ };
4732
+ }
4733
+
4734
+ static types(): { [key: string]: any } {
4735
+ return {
4736
+ stabilizationWindowSeconds: 'number',
4737
+ };
4738
+ }
4739
+
4740
+ constructor(map?: { [key: string]: any }) {
4741
+ super(map);
4742
+ }
4743
+ }
4744
+
4745
+ export class CreateServiceAutoScalerRequestBehaviorScaleUp extends $tea.Model {
4746
+ stabilizationWindowSeconds?: number;
4747
+ static names(): { [key: string]: string } {
4748
+ return {
4749
+ stabilizationWindowSeconds: 'stabilizationWindowSeconds',
4750
+ };
4751
+ }
4752
+
4753
+ static types(): { [key: string]: any } {
4754
+ return {
4755
+ stabilizationWindowSeconds: 'number',
4756
+ };
4757
+ }
4758
+
4759
+ constructor(map?: { [key: string]: any }) {
4760
+ super(map);
4761
+ }
4762
+ }
4763
+
4764
+ export class CreateServiceAutoScalerRequestBehavior extends $tea.Model {
4765
+ onZero?: CreateServiceAutoScalerRequestBehaviorOnZero;
4766
+ scaleDown?: CreateServiceAutoScalerRequestBehaviorScaleDown;
4767
+ scaleUp?: CreateServiceAutoScalerRequestBehaviorScaleUp;
4768
+ static names(): { [key: string]: string } {
4769
+ return {
4770
+ onZero: 'onZero',
4771
+ scaleDown: 'scaleDown',
4772
+ scaleUp: 'scaleUp',
4773
+ };
4774
+ }
4775
+
4776
+ static types(): { [key: string]: any } {
4777
+ return {
4778
+ onZero: CreateServiceAutoScalerRequestBehaviorOnZero,
4779
+ scaleDown: CreateServiceAutoScalerRequestBehaviorScaleDown,
4780
+ scaleUp: CreateServiceAutoScalerRequestBehaviorScaleUp,
4781
+ };
4782
+ }
4783
+
4784
+ constructor(map?: { [key: string]: any }) {
4785
+ super(map);
4786
+ }
4787
+ }
4788
+
4326
4789
  export class CreateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
4327
4790
  metricName?: string;
4328
4791
  service?: string;
@@ -4460,6 +4923,31 @@ export class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
4460
4923
  }
4461
4924
  }
4462
4925
 
4926
+ export class DescribeServiceDiagnosisResponseBodyDiagnosisList extends $tea.Model {
4927
+ advices?: string[];
4928
+ causes?: string[];
4929
+ error?: string;
4930
+ static names(): { [key: string]: string } {
4931
+ return {
4932
+ advices: 'Advices',
4933
+ causes: 'Causes',
4934
+ error: 'Error',
4935
+ };
4936
+ }
4937
+
4938
+ static types(): { [key: string]: any } {
4939
+ return {
4940
+ advices: { 'type': 'array', 'itemType': 'string' },
4941
+ causes: { 'type': 'array', 'itemType': 'string' },
4942
+ error: 'string',
4943
+ };
4944
+ }
4945
+
4946
+ constructor(map?: { [key: string]: any }) {
4947
+ super(map);
4948
+ }
4949
+ }
4950
+
4463
4951
  export class DescribeServiceEventResponseBodyEvents extends $tea.Model {
4464
4952
  message?: string;
4465
4953
  reason?: string;
@@ -4488,6 +4976,31 @@ export class DescribeServiceEventResponseBodyEvents extends $tea.Model {
4488
4976
  }
4489
4977
  }
4490
4978
 
4979
+ export class DescribeServiceInstanceDiagnosisResponseBodyDiagnosis extends $tea.Model {
4980
+ advices?: string[];
4981
+ causes?: string[];
4982
+ error?: string;
4983
+ static names(): { [key: string]: string } {
4984
+ return {
4985
+ advices: 'Advices',
4986
+ causes: 'Causes',
4987
+ error: 'Error',
4988
+ };
4989
+ }
4990
+
4991
+ static types(): { [key: string]: any } {
4992
+ return {
4993
+ advices: { 'type': 'array', 'itemType': 'string' },
4994
+ causes: { 'type': 'array', 'itemType': 'string' },
4995
+ error: 'string',
4996
+ };
4997
+ }
4998
+
4999
+ constructor(map?: { [key: string]: any }) {
5000
+ super(map);
5001
+ }
5002
+ }
5003
+
4491
5004
  export class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
4492
5005
  availableAgent?: number;
4493
5006
  createTime?: string;
@@ -4562,6 +5075,91 @@ export class ListServiceVersionsResponseBodyVersions extends $tea.Model {
4562
5075
  }
4563
5076
  }
4564
5077
 
5078
+ export class UpdateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
5079
+ scaleDownGracePeriodSeconds?: number;
5080
+ scaleUpActivationReplicas?: number;
5081
+ static names(): { [key: string]: string } {
5082
+ return {
5083
+ scaleDownGracePeriodSeconds: 'scaleDownGracePeriodSeconds',
5084
+ scaleUpActivationReplicas: 'scaleUpActivationReplicas',
5085
+ };
5086
+ }
5087
+
5088
+ static types(): { [key: string]: any } {
5089
+ return {
5090
+ scaleDownGracePeriodSeconds: 'number',
5091
+ scaleUpActivationReplicas: 'number',
5092
+ };
5093
+ }
5094
+
5095
+ constructor(map?: { [key: string]: any }) {
5096
+ super(map);
5097
+ }
5098
+ }
5099
+
5100
+ export class UpdateServiceAutoScalerRequestBehaviorScaleDown extends $tea.Model {
5101
+ stabilizationWindowSeconds?: number;
5102
+ static names(): { [key: string]: string } {
5103
+ return {
5104
+ stabilizationWindowSeconds: 'stabilizationWindowSeconds',
5105
+ };
5106
+ }
5107
+
5108
+ static types(): { [key: string]: any } {
5109
+ return {
5110
+ stabilizationWindowSeconds: 'number',
5111
+ };
5112
+ }
5113
+
5114
+ constructor(map?: { [key: string]: any }) {
5115
+ super(map);
5116
+ }
5117
+ }
5118
+
5119
+ export class UpdateServiceAutoScalerRequestBehaviorScaleUp extends $tea.Model {
5120
+ stabilizationWindowSeconds?: number;
5121
+ static names(): { [key: string]: string } {
5122
+ return {
5123
+ stabilizationWindowSeconds: 'stabilizationWindowSeconds',
5124
+ };
5125
+ }
5126
+
5127
+ static types(): { [key: string]: any } {
5128
+ return {
5129
+ stabilizationWindowSeconds: 'number',
5130
+ };
5131
+ }
5132
+
5133
+ constructor(map?: { [key: string]: any }) {
5134
+ super(map);
5135
+ }
5136
+ }
5137
+
5138
+ export class UpdateServiceAutoScalerRequestBehavior extends $tea.Model {
5139
+ onZero?: UpdateServiceAutoScalerRequestBehaviorOnZero;
5140
+ scaleDown?: UpdateServiceAutoScalerRequestBehaviorScaleDown;
5141
+ scaleUp?: UpdateServiceAutoScalerRequestBehaviorScaleUp;
5142
+ static names(): { [key: string]: string } {
5143
+ return {
5144
+ onZero: 'onZero',
5145
+ scaleDown: 'scaleDown',
5146
+ scaleUp: 'scaleUp',
5147
+ };
5148
+ }
5149
+
5150
+ static types(): { [key: string]: any } {
5151
+ return {
5152
+ onZero: UpdateServiceAutoScalerRequestBehaviorOnZero,
5153
+ scaleDown: UpdateServiceAutoScalerRequestBehaviorScaleDown,
5154
+ scaleUp: UpdateServiceAutoScalerRequestBehaviorScaleUp,
5155
+ };
5156
+ }
5157
+
5158
+ constructor(map?: { [key: string]: any }) {
5159
+ super(map);
5160
+ }
5161
+ }
5162
+
4565
5163
  export class UpdateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
4566
5164
  metricName?: string;
4567
5165
  service?: string;
@@ -4721,6 +5319,14 @@ export default class Client extends OpenApi {
4721
5319
  body["EcsInstanceType"] = request.ecsInstanceType;
4722
5320
  }
4723
5321
 
5322
+ if (!Util.isUnset(request.systemDiskSize)) {
5323
+ body["SystemDiskSize"] = request.systemDiskSize;
5324
+ }
5325
+
5326
+ if (!Util.isUnset(request.zone)) {
5327
+ body["Zone"] = request.zone;
5328
+ }
5329
+
4724
5330
  let req = new $OpenApi.OpenApiRequest({
4725
5331
  headers: headers,
4726
5332
  body: OpenApiUtil.parseToMap(body),
@@ -4764,10 +5370,18 @@ export default class Client extends OpenApi {
4764
5370
  body["EcsInstanceType"] = request.ecsInstanceType;
4765
5371
  }
4766
5372
 
5373
+ if (!Util.isUnset(request.systemDiskSize)) {
5374
+ body["SystemDiskSize"] = request.systemDiskSize;
5375
+ }
5376
+
4767
5377
  if (!Util.isUnset(request.userData)) {
4768
5378
  body["UserData"] = request.userData;
4769
5379
  }
4770
5380
 
5381
+ if (!Util.isUnset(request.zone)) {
5382
+ body["Zone"] = request.zone;
5383
+ }
5384
+
4771
5385
  let req = new $OpenApi.OpenApiRequest({
4772
5386
  headers: headers,
4773
5387
  body: OpenApiUtil.parseToMap(body),
@@ -4872,6 +5486,10 @@ export default class Client extends OpenApi {
4872
5486
  async createServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, request: CreateServiceAutoScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateServiceAutoScalerResponse> {
4873
5487
  Util.validateModel(request);
4874
5488
  let body : {[key: string ]: any} = { };
5489
+ if (!Util.isUnset(request.behavior)) {
5490
+ body["behavior"] = request.behavior;
5491
+ }
5492
+
4875
5493
  if (!Util.isUnset(request.max)) {
4876
5494
  body["max"] = request.max;
4877
5495
  }
@@ -5184,10 +5802,18 @@ export default class Client extends OpenApi {
5184
5802
  async deleteServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: DeleteServiceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceInstancesResponse> {
5185
5803
  Util.validateModel(request);
5186
5804
  let query : {[key: string ]: any} = { };
5805
+ if (!Util.isUnset(request.container)) {
5806
+ query["Container"] = request.container;
5807
+ }
5808
+
5187
5809
  if (!Util.isUnset(request.instanceList)) {
5188
5810
  query["InstanceList"] = request.instanceList;
5189
5811
  }
5190
5812
 
5813
+ if (!Util.isUnset(request.softRestart)) {
5814
+ query["SoftRestart"] = request.softRestart;
5815
+ }
5816
+
5191
5817
  let req = new $OpenApi.OpenApiRequest({
5192
5818
  headers: headers,
5193
5819
  query: OpenApiUtil.query(query),
@@ -5496,6 +6122,30 @@ export default class Client extends OpenApi {
5496
6122
  return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
5497
6123
  }
5498
6124
 
6125
+ async describeServiceDiagnosisWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceDiagnosisResponse> {
6126
+ let req = new $OpenApi.OpenApiRequest({
6127
+ headers: headers,
6128
+ });
6129
+ let params = new $OpenApi.Params({
6130
+ action: "DescribeServiceDiagnosis",
6131
+ version: "2021-07-01",
6132
+ protocol: "HTTPS",
6133
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/diagnosis`,
6134
+ method: "GET",
6135
+ authType: "AK",
6136
+ style: "ROA",
6137
+ reqBodyType: "json",
6138
+ bodyType: "json",
6139
+ });
6140
+ return $tea.cast<DescribeServiceDiagnosisResponse>(await this.callApi(params, req, runtime), new DescribeServiceDiagnosisResponse({}));
6141
+ }
6142
+
6143
+ async describeServiceDiagnosis(ClusterId: string, ServiceName: string): Promise<DescribeServiceDiagnosisResponse> {
6144
+ let runtime = new $Util.RuntimeOptions({ });
6145
+ let headers : {[key: string ]: string} = { };
6146
+ return await this.describeServiceDiagnosisWithOptions(ClusterId, ServiceName, headers, runtime);
6147
+ }
6148
+
5499
6149
  async describeServiceEventWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceEventResponse> {
5500
6150
  Util.validateModel(request);
5501
6151
  let query : {[key: string ]: any} = { };
@@ -5503,6 +6153,14 @@ export default class Client extends OpenApi {
5503
6153
  query["EndTime"] = request.endTime;
5504
6154
  }
5505
6155
 
6156
+ if (!Util.isUnset(request.eventType)) {
6157
+ query["EventType"] = request.eventType;
6158
+ }
6159
+
6160
+ if (!Util.isUnset(request.instanceName)) {
6161
+ query["InstanceName"] = request.instanceName;
6162
+ }
6163
+
5506
6164
  if (!Util.isUnset(request.pageNum)) {
5507
6165
  query["PageNum"] = request.pageNum;
5508
6166
  }
@@ -5539,13 +6197,45 @@ export default class Client extends OpenApi {
5539
6197
  return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
5540
6198
  }
5541
6199
 
6200
+ async describeServiceInstanceDiagnosisWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceInstanceDiagnosisResponse> {
6201
+ let req = new $OpenApi.OpenApiRequest({
6202
+ headers: headers,
6203
+ });
6204
+ let params = new $OpenApi.Params({
6205
+ action: "DescribeServiceInstanceDiagnosis",
6206
+ version: "2021-07-01",
6207
+ protocol: "HTTPS",
6208
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/instances/${OpenApiUtil.getEncodeParam(InstanceName)}/diagnosis`,
6209
+ method: "GET",
6210
+ authType: "AK",
6211
+ style: "ROA",
6212
+ reqBodyType: "json",
6213
+ bodyType: "json",
6214
+ });
6215
+ return $tea.cast<DescribeServiceInstanceDiagnosisResponse>(await this.callApi(params, req, runtime), new DescribeServiceInstanceDiagnosisResponse({}));
6216
+ }
6217
+
6218
+ async describeServiceInstanceDiagnosis(ClusterId: string, ServiceName: string, InstanceName: string): Promise<DescribeServiceInstanceDiagnosisResponse> {
6219
+ let runtime = new $Util.RuntimeOptions({ });
6220
+ let headers : {[key: string ]: string} = { };
6221
+ return await this.describeServiceInstanceDiagnosisWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime);
6222
+ }
6223
+
5542
6224
  async describeServiceLogWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceLogResponse> {
5543
6225
  Util.validateModel(request);
5544
6226
  let query : {[key: string ]: any} = { };
6227
+ if (!Util.isUnset(request.containerName)) {
6228
+ query["ContainerName"] = request.containerName;
6229
+ }
6230
+
5545
6231
  if (!Util.isUnset(request.endTime)) {
5546
6232
  query["EndTime"] = request.endTime;
5547
6233
  }
5548
6234
 
6235
+ if (!Util.isUnset(request.instanceName)) {
6236
+ query["InstanceName"] = request.instanceName;
6237
+ }
6238
+
5549
6239
  if (!Util.isUnset(request.ip)) {
5550
6240
  query["Ip"] = request.ip;
5551
6241
  }
@@ -5562,6 +6252,10 @@ export default class Client extends OpenApi {
5562
6252
  query["PageSize"] = request.pageSize;
5563
6253
  }
5564
6254
 
6255
+ if (!Util.isUnset(request.previous)) {
6256
+ query["Previous"] = request.previous;
6257
+ }
6258
+
5565
6259
  if (!Util.isUnset(request.startTime)) {
5566
6260
  query["StartTime"] = request.startTime;
5567
6261
  }
@@ -5769,6 +6463,14 @@ export default class Client extends OpenApi {
5769
6463
  query["ChargeType"] = request.chargeType;
5770
6464
  }
5771
6465
 
6466
+ if (!Util.isUnset(request.filter)) {
6467
+ query["Filter"] = request.filter;
6468
+ }
6469
+
6470
+ if (!Util.isUnset(request.instanceIP)) {
6471
+ query["InstanceIP"] = request.instanceIP;
6472
+ }
6473
+
5772
6474
  if (!Util.isUnset(request.instanceId)) {
5773
6475
  query["InstanceId"] = request.instanceId;
5774
6476
  }
@@ -5777,6 +6479,14 @@ export default class Client extends OpenApi {
5777
6479
  query["InstanceName"] = request.instanceName;
5778
6480
  }
5779
6481
 
6482
+ if (!Util.isUnset(request.instanceStatus)) {
6483
+ query["InstanceStatus"] = request.instanceStatus;
6484
+ }
6485
+
6486
+ if (!Util.isUnset(request.order)) {
6487
+ query["Order"] = request.order;
6488
+ }
6489
+
5780
6490
  if (!Util.isUnset(request.pageNumber)) {
5781
6491
  query["PageNumber"] = request.pageNumber;
5782
6492
  }
@@ -5785,6 +6495,10 @@ export default class Client extends OpenApi {
5785
6495
  query["PageSize"] = request.pageSize;
5786
6496
  }
5787
6497
 
6498
+ if (!Util.isUnset(request.sort)) {
6499
+ query["Sort"] = request.sort;
6500
+ }
6501
+
5788
6502
  let req = new $OpenApi.OpenApiRequest({
5789
6503
  headers: headers,
5790
6504
  query: OpenApiUtil.query(query),
@@ -5887,9 +6601,65 @@ export default class Client extends OpenApi {
5887
6601
  return await this.listResourcesWithOptions(request, headers, runtime);
5888
6602
  }
5889
6603
 
6604
+ async listServiceContainersWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServiceContainersResponse> {
6605
+ let req = new $OpenApi.OpenApiRequest({
6606
+ headers: headers,
6607
+ });
6608
+ let params = new $OpenApi.Params({
6609
+ action: "ListServiceContainers",
6610
+ version: "2021-07-01",
6611
+ protocol: "HTTPS",
6612
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/instances/${OpenApiUtil.getEncodeParam(InstanceName)}/containers`,
6613
+ method: "GET",
6614
+ authType: "AK",
6615
+ style: "ROA",
6616
+ reqBodyType: "json",
6617
+ bodyType: "json",
6618
+ });
6619
+ return $tea.cast<ListServiceContainersResponse>(await this.callApi(params, req, runtime), new ListServiceContainersResponse({}));
6620
+ }
6621
+
6622
+ async listServiceContainers(ClusterId: string, ServiceName: string, InstanceName: string): Promise<ListServiceContainersResponse> {
6623
+ let runtime = new $Util.RuntimeOptions({ });
6624
+ let headers : {[key: string ]: string} = { };
6625
+ return await this.listServiceContainersWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime);
6626
+ }
6627
+
5890
6628
  async listServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServiceInstancesResponse> {
5891
6629
  Util.validateModel(request);
5892
6630
  let query : {[key: string ]: any} = { };
6631
+ if (!Util.isUnset(request.filter)) {
6632
+ query["Filter"] = request.filter;
6633
+ }
6634
+
6635
+ if (!Util.isUnset(request.hostIP)) {
6636
+ query["HostIP"] = request.hostIP;
6637
+ }
6638
+
6639
+ if (!Util.isUnset(request.instanceIP)) {
6640
+ query["InstanceIP"] = request.instanceIP;
6641
+ }
6642
+
6643
+ if (!Util.isUnset(request.instanceName)) {
6644
+ query["InstanceName"] = request.instanceName;
6645
+ }
6646
+
6647
+ if (!Util.isUnset(request.instanceStatus)) {
6648
+ query["InstanceStatus"] = request.instanceStatus;
6649
+ }
6650
+
6651
+ if (!Util.isUnset(request.instanceType)) {
6652
+ query["InstanceType"] = request.instanceType;
6653
+ }
6654
+
6655
+ if (!Util.isUnset(request.isSpot)) {
6656
+ query["IsSpot"] = request.isSpot;
6657
+ }
6658
+
6659
+ if (!Util.isUnset(request.order)) {
6660
+ query["Order"] = request.order;
6661
+ }
6662
+
5893
6663
  if (!Util.isUnset(request.pageNumber)) {
5894
6664
  query["PageNumber"] = request.pageNumber;
5895
6665
  }
@@ -5898,6 +6668,18 @@ export default class Client extends OpenApi {
5898
6668
  query["PageSize"] = request.pageSize;
5899
6669
  }
5900
6670
 
6671
+ if (!Util.isUnset(request.resourceType)) {
6672
+ query["ResourceType"] = request.resourceType;
6673
+ }
6674
+
6675
+ if (!Util.isUnset(request.role)) {
6676
+ query["Role"] = request.role;
6677
+ }
6678
+
6679
+ if (!Util.isUnset(request.sort)) {
6680
+ query["Sort"] = request.sort;
6681
+ }
6682
+
5901
6683
  let req = new $OpenApi.OpenApiRequest({
5902
6684
  headers: headers,
5903
6685
  query: OpenApiUtil.query(query),
@@ -5994,10 +6776,26 @@ export default class Client extends OpenApi {
5994
6776
  query["ParentServiceUid"] = request.parentServiceUid;
5995
6777
  }
5996
6778
 
6779
+ if (!Util.isUnset(request.resourceName)) {
6780
+ query["ResourceName"] = request.resourceName;
6781
+ }
6782
+
6783
+ if (!Util.isUnset(request.serviceName)) {
6784
+ query["ServiceName"] = request.serviceName;
6785
+ }
6786
+
6787
+ if (!Util.isUnset(request.serviceStatus)) {
6788
+ query["ServiceStatus"] = request.serviceStatus;
6789
+ }
6790
+
5997
6791
  if (!Util.isUnset(request.serviceType)) {
5998
6792
  query["ServiceType"] = request.serviceType;
5999
6793
  }
6000
6794
 
6795
+ if (!Util.isUnset(request.serviceUid)) {
6796
+ query["ServiceUid"] = request.serviceUid;
6797
+ }
6798
+
6001
6799
  if (!Util.isUnset(request.sort)) {
6002
6800
  query["Sort"] = request.sort;
6003
6801
  }
@@ -6061,6 +6859,30 @@ export default class Client extends OpenApi {
6061
6859
  return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
6062
6860
  }
6063
6861
 
6862
+ async restartServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RestartServiceResponse> {
6863
+ let req = new $OpenApi.OpenApiRequest({
6864
+ headers: headers,
6865
+ });
6866
+ let params = new $OpenApi.Params({
6867
+ action: "RestartService",
6868
+ version: "2021-07-01",
6869
+ protocol: "HTTPS",
6870
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/restart`,
6871
+ method: "PUT",
6872
+ authType: "AK",
6873
+ style: "ROA",
6874
+ reqBodyType: "json",
6875
+ bodyType: "json",
6876
+ });
6877
+ return $tea.cast<RestartServiceResponse>(await this.callApi(params, req, runtime), new RestartServiceResponse({}));
6878
+ }
6879
+
6880
+ async restartService(ClusterId: string, ServiceName: string): Promise<RestartServiceResponse> {
6881
+ let runtime = new $Util.RuntimeOptions({ });
6882
+ let headers : {[key: string ]: string} = { };
6883
+ return await this.restartServiceWithOptions(ClusterId, ServiceName, headers, runtime);
6884
+ }
6885
+
6064
6886
  async startBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartBenchmarkTaskResponse> {
6065
6887
  let req = new $OpenApi.OpenApiRequest({
6066
6888
  headers: headers,
@@ -6317,6 +7139,10 @@ export default class Client extends OpenApi {
6317
7139
  async updateServiceAutoScalerWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceAutoScalerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateServiceAutoScalerResponse> {
6318
7140
  Util.validateModel(request);
6319
7141
  let body : {[key: string ]: any} = { };
7142
+ if (!Util.isUnset(request.behavior)) {
7143
+ body["behavior"] = request.behavior;
7144
+ }
7145
+
6320
7146
  if (!Util.isUnset(request.max)) {
6321
7147
  body["max"] = request.max;
6322
7148
  }