@alicloud/eas20210701 2.0.4 → 2.1.1

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
@@ -185,6 +185,7 @@ export class Resource extends $tea.Model {
185
185
  prePaidInstanceCount?: number;
186
186
  resourceId?: string;
187
187
  resourceName?: string;
188
+ resourceType?: string;
188
189
  status?: string;
189
190
  updateTime?: string;
190
191
  static names(): { [key: string]: string } {
@@ -200,6 +201,7 @@ export class Resource extends $tea.Model {
200
201
  prePaidInstanceCount: 'PrePaidInstanceCount',
201
202
  resourceId: 'ResourceId',
202
203
  resourceName: 'ResourceName',
204
+ resourceType: 'ResourceType',
203
205
  status: 'Status',
204
206
  updateTime: 'UpdateTime',
205
207
  };
@@ -218,6 +220,7 @@ export class Resource extends $tea.Model {
218
220
  prePaidInstanceCount: 'number',
219
221
  resourceId: 'string',
220
222
  resourceName: 'string',
223
+ resourceType: 'string',
221
224
  status: 'string',
222
225
  updateTime: 'string',
223
226
  };
@@ -392,6 +395,8 @@ export class Service extends $tea.Model {
392
395
  roleAttrs?: string;
393
396
  runningInstance?: number;
394
397
  safetyLock?: string;
398
+ secondaryInternetEndpoint?: string;
399
+ secondaryIntranetEndpoint?: string;
395
400
  serviceConfig?: string;
396
401
  serviceGroup?: string;
397
402
  serviceId?: string;
@@ -430,6 +435,8 @@ export class Service extends $tea.Model {
430
435
  roleAttrs: 'RoleAttrs',
431
436
  runningInstance: 'RunningInstance',
432
437
  safetyLock: 'SafetyLock',
438
+ secondaryInternetEndpoint: 'SecondaryInternetEndpoint',
439
+ secondaryIntranetEndpoint: 'SecondaryIntranetEndpoint',
433
440
  serviceConfig: 'ServiceConfig',
434
441
  serviceGroup: 'ServiceGroup',
435
442
  serviceId: 'ServiceId',
@@ -471,6 +478,8 @@ export class Service extends $tea.Model {
471
478
  roleAttrs: 'string',
472
479
  runningInstance: 'number',
473
480
  safetyLock: 'string',
481
+ secondaryInternetEndpoint: 'string',
482
+ secondaryIntranetEndpoint: 'string',
474
483
  serviceConfig: 'string',
475
484
  serviceGroup: 'string',
476
485
  serviceId: 'string',
@@ -613,6 +622,11 @@ export class CreateResourceRequest extends $tea.Model {
613
622
  chargeType?: string;
614
623
  ecsInstanceCount?: number;
615
624
  ecsInstanceType?: string;
625
+ externalClusterId?: string;
626
+ nodeMatchLabels?: { [key: string]: string };
627
+ nodeTolerations?: CreateResourceRequestNodeTolerations[];
628
+ resourceType?: string;
629
+ roleName?: string;
616
630
  systemDiskSize?: number;
617
631
  zone?: string;
618
632
  static names(): { [key: string]: string } {
@@ -621,6 +635,11 @@ export class CreateResourceRequest extends $tea.Model {
621
635
  chargeType: 'ChargeType',
622
636
  ecsInstanceCount: 'EcsInstanceCount',
623
637
  ecsInstanceType: 'EcsInstanceType',
638
+ externalClusterId: 'ExternalClusterId',
639
+ nodeMatchLabels: 'NodeMatchLabels',
640
+ nodeTolerations: 'NodeTolerations',
641
+ resourceType: 'ResourceType',
642
+ roleName: 'RoleName',
624
643
  systemDiskSize: 'SystemDiskSize',
625
644
  zone: 'Zone',
626
645
  };
@@ -632,6 +651,11 @@ export class CreateResourceRequest extends $tea.Model {
632
651
  chargeType: 'string',
633
652
  ecsInstanceCount: 'number',
634
653
  ecsInstanceType: 'string',
654
+ externalClusterId: 'string',
655
+ nodeMatchLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
656
+ nodeTolerations: { 'type': 'array', 'itemType': CreateResourceRequestNodeTolerations },
657
+ resourceType: 'string',
658
+ roleName: 'string',
635
659
  systemDiskSize: 'number',
636
660
  zone: 'string',
637
661
  };
@@ -1581,16 +1605,22 @@ export class DeleteServiceCronScalerResponse extends $tea.Model {
1581
1605
  }
1582
1606
 
1583
1607
  export class DeleteServiceInstancesRequest extends $tea.Model {
1608
+ container?: string;
1584
1609
  instanceList?: string;
1610
+ softRestart?: boolean;
1585
1611
  static names(): { [key: string]: string } {
1586
1612
  return {
1613
+ container: 'Container',
1587
1614
  instanceList: 'InstanceList',
1615
+ softRestart: 'SoftRestart',
1588
1616
  };
1589
1617
  }
1590
1618
 
1591
1619
  static types(): { [key: string]: any } {
1592
1620
  return {
1621
+ container: 'string',
1593
1622
  instanceList: 'string',
1623
+ softRestart: 'boolean',
1594
1624
  };
1595
1625
  }
1596
1626
 
@@ -1966,6 +1996,7 @@ export class DescribeResourceResponseBody extends $tea.Model {
1966
1996
  requestId?: string;
1967
1997
  resourceId?: string;
1968
1998
  resourceName?: string;
1999
+ resourceType?: string;
1969
2000
  status?: string;
1970
2001
  updateTime?: string;
1971
2002
  static names(): { [key: string]: string } {
@@ -1983,6 +2014,7 @@ export class DescribeResourceResponseBody extends $tea.Model {
1983
2014
  requestId: 'RequestId',
1984
2015
  resourceId: 'ResourceId',
1985
2016
  resourceName: 'ResourceName',
2017
+ resourceType: 'ResourceType',
1986
2018
  status: 'Status',
1987
2019
  updateTime: 'UpdateTime',
1988
2020
  };
@@ -2003,6 +2035,7 @@ export class DescribeResourceResponseBody extends $tea.Model {
2003
2035
  requestId: 'string',
2004
2036
  resourceId: 'string',
2005
2037
  resourceName: 'string',
2038
+ resourceType: 'string',
2006
2039
  status: 'string',
2007
2040
  updateTime: 'string',
2008
2041
  };
@@ -2293,6 +2326,53 @@ export class DescribeServiceCronScalerResponse extends $tea.Model {
2293
2326
  }
2294
2327
  }
2295
2328
 
2329
+ export class DescribeServiceDiagnosisResponseBody extends $tea.Model {
2330
+ diagnosisList?: DescribeServiceDiagnosisResponseBodyDiagnosisList[];
2331
+ requestId?: string;
2332
+ static names(): { [key: string]: string } {
2333
+ return {
2334
+ diagnosisList: 'DiagnosisList',
2335
+ requestId: 'RequestId',
2336
+ };
2337
+ }
2338
+
2339
+ static types(): { [key: string]: any } {
2340
+ return {
2341
+ diagnosisList: { 'type': 'array', 'itemType': DescribeServiceDiagnosisResponseBodyDiagnosisList },
2342
+ requestId: 'string',
2343
+ };
2344
+ }
2345
+
2346
+ constructor(map?: { [key: string]: any }) {
2347
+ super(map);
2348
+ }
2349
+ }
2350
+
2351
+ export class DescribeServiceDiagnosisResponse extends $tea.Model {
2352
+ headers: { [key: string]: string };
2353
+ statusCode: number;
2354
+ body: DescribeServiceDiagnosisResponseBody;
2355
+ static names(): { [key: string]: string } {
2356
+ return {
2357
+ headers: 'headers',
2358
+ statusCode: 'statusCode',
2359
+ body: 'body',
2360
+ };
2361
+ }
2362
+
2363
+ static types(): { [key: string]: any } {
2364
+ return {
2365
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2366
+ statusCode: 'number',
2367
+ body: DescribeServiceDiagnosisResponseBody,
2368
+ };
2369
+ }
2370
+
2371
+ constructor(map?: { [key: string]: any }) {
2372
+ super(map);
2373
+ }
2374
+ }
2375
+
2296
2376
  export class DescribeServiceEventRequest extends $tea.Model {
2297
2377
  endTime?: string;
2298
2378
  eventType?: string;
@@ -2383,6 +2463,53 @@ export class DescribeServiceEventResponse extends $tea.Model {
2383
2463
  }
2384
2464
  }
2385
2465
 
2466
+ export class DescribeServiceInstanceDiagnosisResponseBody extends $tea.Model {
2467
+ diagnosis?: DescribeServiceInstanceDiagnosisResponseBodyDiagnosis;
2468
+ requestId?: string;
2469
+ static names(): { [key: string]: string } {
2470
+ return {
2471
+ diagnosis: 'Diagnosis',
2472
+ requestId: 'RequestId',
2473
+ };
2474
+ }
2475
+
2476
+ static types(): { [key: string]: any } {
2477
+ return {
2478
+ diagnosis: DescribeServiceInstanceDiagnosisResponseBodyDiagnosis,
2479
+ requestId: 'string',
2480
+ };
2481
+ }
2482
+
2483
+ constructor(map?: { [key: string]: any }) {
2484
+ super(map);
2485
+ }
2486
+ }
2487
+
2488
+ export class DescribeServiceInstanceDiagnosisResponse extends $tea.Model {
2489
+ headers: { [key: string]: string };
2490
+ statusCode: number;
2491
+ body: DescribeServiceInstanceDiagnosisResponseBody;
2492
+ static names(): { [key: string]: string } {
2493
+ return {
2494
+ headers: 'headers',
2495
+ statusCode: 'statusCode',
2496
+ body: 'body',
2497
+ };
2498
+ }
2499
+
2500
+ static types(): { [key: string]: any } {
2501
+ return {
2502
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2503
+ statusCode: 'number',
2504
+ body: DescribeServiceInstanceDiagnosisResponseBody,
2505
+ };
2506
+ }
2507
+
2508
+ constructor(map?: { [key: string]: any }) {
2509
+ super(map);
2510
+ }
2511
+ }
2512
+
2386
2513
  export class DescribeServiceLogRequest extends $tea.Model {
2387
2514
  containerName?: string;
2388
2515
  endTime?: string;
@@ -3029,12 +3156,14 @@ export class ListResourcesRequest extends $tea.Model {
3029
3156
  pageSize?: number;
3030
3157
  resourceId?: string;
3031
3158
  resourceName?: string;
3159
+ resourceType?: string;
3032
3160
  static names(): { [key: string]: string } {
3033
3161
  return {
3034
3162
  pageNumber: 'PageNumber',
3035
3163
  pageSize: 'PageSize',
3036
3164
  resourceId: 'ResourceId',
3037
3165
  resourceName: 'ResourceName',
3166
+ resourceType: 'ResourceType',
3038
3167
  };
3039
3168
  }
3040
3169
 
@@ -3044,6 +3173,7 @@ export class ListResourcesRequest extends $tea.Model {
3044
3173
  pageSize: 'number',
3045
3174
  resourceId: 'string',
3046
3175
  resourceName: 'string',
3176
+ resourceType: 'string',
3047
3177
  };
3048
3178
  }
3049
3179
 
@@ -3108,6 +3238,56 @@ export class ListResourcesResponse extends $tea.Model {
3108
3238
  }
3109
3239
  }
3110
3240
 
3241
+ export class ListServiceContainersResponseBody extends $tea.Model {
3242
+ containers?: ContainerInfo[];
3243
+ requestId?: string;
3244
+ serviceName?: string;
3245
+ static names(): { [key: string]: string } {
3246
+ return {
3247
+ containers: 'Containers',
3248
+ requestId: 'RequestId',
3249
+ serviceName: 'ServiceName',
3250
+ };
3251
+ }
3252
+
3253
+ static types(): { [key: string]: any } {
3254
+ return {
3255
+ containers: { 'type': 'array', 'itemType': ContainerInfo },
3256
+ requestId: 'string',
3257
+ serviceName: 'string',
3258
+ };
3259
+ }
3260
+
3261
+ constructor(map?: { [key: string]: any }) {
3262
+ super(map);
3263
+ }
3264
+ }
3265
+
3266
+ export class ListServiceContainersResponse extends $tea.Model {
3267
+ headers: { [key: string]: string };
3268
+ statusCode: number;
3269
+ body: ListServiceContainersResponseBody;
3270
+ static names(): { [key: string]: string } {
3271
+ return {
3272
+ headers: 'headers',
3273
+ statusCode: 'statusCode',
3274
+ body: 'body',
3275
+ };
3276
+ }
3277
+
3278
+ static types(): { [key: string]: any } {
3279
+ return {
3280
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3281
+ statusCode: 'number',
3282
+ body: ListServiceContainersResponseBody,
3283
+ };
3284
+ }
3285
+
3286
+ constructor(map?: { [key: string]: any }) {
3287
+ super(map);
3288
+ }
3289
+ }
3290
+
3111
3291
  export class ListServiceInstancesRequest extends $tea.Model {
3112
3292
  filter?: string;
3113
3293
  hostIP?: string;
@@ -3532,6 +3712,53 @@ export class ReleaseServiceResponse extends $tea.Model {
3532
3712
  }
3533
3713
  }
3534
3714
 
3715
+ export class RestartServiceResponseBody extends $tea.Model {
3716
+ message?: string;
3717
+ requestId?: string;
3718
+ static names(): { [key: string]: string } {
3719
+ return {
3720
+ message: 'Message',
3721
+ requestId: 'RequestId',
3722
+ };
3723
+ }
3724
+
3725
+ static types(): { [key: string]: any } {
3726
+ return {
3727
+ message: 'string',
3728
+ requestId: 'string',
3729
+ };
3730
+ }
3731
+
3732
+ constructor(map?: { [key: string]: any }) {
3733
+ super(map);
3734
+ }
3735
+ }
3736
+
3737
+ export class RestartServiceResponse extends $tea.Model {
3738
+ headers: { [key: string]: string };
3739
+ statusCode: number;
3740
+ body: RestartServiceResponseBody;
3741
+ static names(): { [key: string]: string } {
3742
+ return {
3743
+ headers: 'headers',
3744
+ statusCode: 'statusCode',
3745
+ body: 'body',
3746
+ };
3747
+ }
3748
+
3749
+ static types(): { [key: string]: any } {
3750
+ return {
3751
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3752
+ statusCode: 'number',
3753
+ body: RestartServiceResponseBody,
3754
+ };
3755
+ }
3756
+
3757
+ constructor(map?: { [key: string]: any }) {
3758
+ super(map);
3759
+ }
3760
+ }
3761
+
3535
3762
  export class StartBenchmarkTaskResponseBody extends $tea.Model {
3536
3763
  message?: string;
3537
3764
  requestId?: string;
@@ -3787,15 +4014,21 @@ export class UpdateBenchmarkTaskResponse extends $tea.Model {
3787
4014
  }
3788
4015
 
3789
4016
  export class UpdateResourceRequest extends $tea.Model {
4017
+ nodeMatchLabels?: { [key: string]: string };
4018
+ nodeTolerations?: UpdateResourceRequestNodeTolerations[];
3790
4019
  resourceName?: string;
3791
4020
  static names(): { [key: string]: string } {
3792
4021
  return {
4022
+ nodeMatchLabels: 'NodeMatchLabels',
4023
+ nodeTolerations: 'NodeTolerations',
3793
4024
  resourceName: 'ResourceName',
3794
4025
  };
3795
4026
  }
3796
4027
 
3797
4028
  static types(): { [key: string]: any } {
3798
4029
  return {
4030
+ nodeMatchLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4031
+ nodeTolerations: { 'type': 'array', 'itemType': UpdateResourceRequestNodeTolerations },
3799
4032
  resourceName: 'string',
3800
4033
  };
3801
4034
  }
@@ -4498,6 +4731,34 @@ export class ServiceLabels extends $tea.Model {
4498
4731
  }
4499
4732
  }
4500
4733
 
4734
+ export class CreateResourceRequestNodeTolerations extends $tea.Model {
4735
+ effect?: string;
4736
+ key?: string;
4737
+ operator?: string;
4738
+ value?: string;
4739
+ static names(): { [key: string]: string } {
4740
+ return {
4741
+ effect: 'effect',
4742
+ key: 'key',
4743
+ operator: 'operator',
4744
+ value: 'value',
4745
+ };
4746
+ }
4747
+
4748
+ static types(): { [key: string]: any } {
4749
+ return {
4750
+ effect: 'string',
4751
+ key: 'string',
4752
+ operator: 'string',
4753
+ value: 'string',
4754
+ };
4755
+ }
4756
+
4757
+ constructor(map?: { [key: string]: any }) {
4758
+ super(map);
4759
+ }
4760
+ }
4761
+
4501
4762
  export class CreateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
4502
4763
  scaleDownGracePeriodSeconds?: number;
4503
4764
  scaleUpActivationReplicas?: number;
@@ -4720,6 +4981,31 @@ export class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
4720
4981
  }
4721
4982
  }
4722
4983
 
4984
+ export class DescribeServiceDiagnosisResponseBodyDiagnosisList extends $tea.Model {
4985
+ advices?: string[];
4986
+ causes?: string[];
4987
+ error?: string;
4988
+ static names(): { [key: string]: string } {
4989
+ return {
4990
+ advices: 'Advices',
4991
+ causes: 'Causes',
4992
+ error: 'Error',
4993
+ };
4994
+ }
4995
+
4996
+ static types(): { [key: string]: any } {
4997
+ return {
4998
+ advices: { 'type': 'array', 'itemType': 'string' },
4999
+ causes: { 'type': 'array', 'itemType': 'string' },
5000
+ error: 'string',
5001
+ };
5002
+ }
5003
+
5004
+ constructor(map?: { [key: string]: any }) {
5005
+ super(map);
5006
+ }
5007
+ }
5008
+
4723
5009
  export class DescribeServiceEventResponseBodyEvents extends $tea.Model {
4724
5010
  message?: string;
4725
5011
  reason?: string;
@@ -4748,6 +5034,31 @@ export class DescribeServiceEventResponseBodyEvents extends $tea.Model {
4748
5034
  }
4749
5035
  }
4750
5036
 
5037
+ export class DescribeServiceInstanceDiagnosisResponseBodyDiagnosis extends $tea.Model {
5038
+ advices?: string[];
5039
+ causes?: string[];
5040
+ error?: string;
5041
+ static names(): { [key: string]: string } {
5042
+ return {
5043
+ advices: 'Advices',
5044
+ causes: 'Causes',
5045
+ error: 'Error',
5046
+ };
5047
+ }
5048
+
5049
+ static types(): { [key: string]: any } {
5050
+ return {
5051
+ advices: { 'type': 'array', 'itemType': 'string' },
5052
+ causes: { 'type': 'array', 'itemType': 'string' },
5053
+ error: 'string',
5054
+ };
5055
+ }
5056
+
5057
+ constructor(map?: { [key: string]: any }) {
5058
+ super(map);
5059
+ }
5060
+ }
5061
+
4751
5062
  export class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
4752
5063
  availableAgent?: number;
4753
5064
  createTime?: string;
@@ -4822,6 +5133,34 @@ export class ListServiceVersionsResponseBodyVersions extends $tea.Model {
4822
5133
  }
4823
5134
  }
4824
5135
 
5136
+ export class UpdateResourceRequestNodeTolerations extends $tea.Model {
5137
+ effect?: string;
5138
+ key?: string;
5139
+ operator?: string;
5140
+ value?: string;
5141
+ static names(): { [key: string]: string } {
5142
+ return {
5143
+ effect: 'effect',
5144
+ key: 'key',
5145
+ operator: 'operator',
5146
+ value: 'value',
5147
+ };
5148
+ }
5149
+
5150
+ static types(): { [key: string]: any } {
5151
+ return {
5152
+ effect: 'string',
5153
+ key: 'string',
5154
+ operator: 'string',
5155
+ value: 'string',
5156
+ };
5157
+ }
5158
+
5159
+ constructor(map?: { [key: string]: any }) {
5160
+ super(map);
5161
+ }
5162
+ }
5163
+
4825
5164
  export class UpdateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
4826
5165
  scaleDownGracePeriodSeconds?: number;
4827
5166
  scaleUpActivationReplicas?: number;
@@ -5066,6 +5405,26 @@ export default class Client extends OpenApi {
5066
5405
  body["EcsInstanceType"] = request.ecsInstanceType;
5067
5406
  }
5068
5407
 
5408
+ if (!Util.isUnset(request.externalClusterId)) {
5409
+ body["ExternalClusterId"] = request.externalClusterId;
5410
+ }
5411
+
5412
+ if (!Util.isUnset(request.nodeMatchLabels)) {
5413
+ body["NodeMatchLabels"] = request.nodeMatchLabels;
5414
+ }
5415
+
5416
+ if (!Util.isUnset(request.nodeTolerations)) {
5417
+ body["NodeTolerations"] = request.nodeTolerations;
5418
+ }
5419
+
5420
+ if (!Util.isUnset(request.resourceType)) {
5421
+ body["ResourceType"] = request.resourceType;
5422
+ }
5423
+
5424
+ if (!Util.isUnset(request.roleName)) {
5425
+ body["RoleName"] = request.roleName;
5426
+ }
5427
+
5069
5428
  if (!Util.isUnset(request.systemDiskSize)) {
5070
5429
  body["SystemDiskSize"] = request.systemDiskSize;
5071
5430
  }
@@ -5549,10 +5908,18 @@ export default class Client extends OpenApi {
5549
5908
  async deleteServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: DeleteServiceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceInstancesResponse> {
5550
5909
  Util.validateModel(request);
5551
5910
  let query : {[key: string ]: any} = { };
5911
+ if (!Util.isUnset(request.container)) {
5912
+ query["Container"] = request.container;
5913
+ }
5914
+
5552
5915
  if (!Util.isUnset(request.instanceList)) {
5553
5916
  query["InstanceList"] = request.instanceList;
5554
5917
  }
5555
5918
 
5919
+ if (!Util.isUnset(request.softRestart)) {
5920
+ query["SoftRestart"] = request.softRestart;
5921
+ }
5922
+
5556
5923
  let req = new $OpenApi.OpenApiRequest({
5557
5924
  headers: headers,
5558
5925
  query: OpenApiUtil.query(query),
@@ -5861,6 +6228,30 @@ export default class Client extends OpenApi {
5861
6228
  return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
5862
6229
  }
5863
6230
 
6231
+ async describeServiceDiagnosisWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceDiagnosisResponse> {
6232
+ let req = new $OpenApi.OpenApiRequest({
6233
+ headers: headers,
6234
+ });
6235
+ let params = new $OpenApi.Params({
6236
+ action: "DescribeServiceDiagnosis",
6237
+ version: "2021-07-01",
6238
+ protocol: "HTTPS",
6239
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/diagnosis`,
6240
+ method: "GET",
6241
+ authType: "AK",
6242
+ style: "ROA",
6243
+ reqBodyType: "json",
6244
+ bodyType: "json",
6245
+ });
6246
+ return $tea.cast<DescribeServiceDiagnosisResponse>(await this.callApi(params, req, runtime), new DescribeServiceDiagnosisResponse({}));
6247
+ }
6248
+
6249
+ async describeServiceDiagnosis(ClusterId: string, ServiceName: string): Promise<DescribeServiceDiagnosisResponse> {
6250
+ let runtime = new $Util.RuntimeOptions({ });
6251
+ let headers : {[key: string ]: string} = { };
6252
+ return await this.describeServiceDiagnosisWithOptions(ClusterId, ServiceName, headers, runtime);
6253
+ }
6254
+
5864
6255
  async describeServiceEventWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceEventResponse> {
5865
6256
  Util.validateModel(request);
5866
6257
  let query : {[key: string ]: any} = { };
@@ -5912,6 +6303,30 @@ export default class Client extends OpenApi {
5912
6303
  return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
5913
6304
  }
5914
6305
 
6306
+ async describeServiceInstanceDiagnosisWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceInstanceDiagnosisResponse> {
6307
+ let req = new $OpenApi.OpenApiRequest({
6308
+ headers: headers,
6309
+ });
6310
+ let params = new $OpenApi.Params({
6311
+ action: "DescribeServiceInstanceDiagnosis",
6312
+ version: "2021-07-01",
6313
+ protocol: "HTTPS",
6314
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/instances/${OpenApiUtil.getEncodeParam(InstanceName)}/diagnosis`,
6315
+ method: "GET",
6316
+ authType: "AK",
6317
+ style: "ROA",
6318
+ reqBodyType: "json",
6319
+ bodyType: "json",
6320
+ });
6321
+ return $tea.cast<DescribeServiceInstanceDiagnosisResponse>(await this.callApi(params, req, runtime), new DescribeServiceInstanceDiagnosisResponse({}));
6322
+ }
6323
+
6324
+ async describeServiceInstanceDiagnosis(ClusterId: string, ServiceName: string, InstanceName: string): Promise<DescribeServiceInstanceDiagnosisResponse> {
6325
+ let runtime = new $Util.RuntimeOptions({ });
6326
+ let headers : {[key: string ]: string} = { };
6327
+ return await this.describeServiceInstanceDiagnosisWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime);
6328
+ }
6329
+
5915
6330
  async describeServiceLogWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceLogResponse> {
5916
6331
  Util.validateModel(request);
5917
6332
  let query : {[key: string ]: any} = { };
@@ -6268,6 +6683,10 @@ export default class Client extends OpenApi {
6268
6683
  query["ResourceName"] = request.resourceName;
6269
6684
  }
6270
6685
 
6686
+ if (!Util.isUnset(request.resourceType)) {
6687
+ query["ResourceType"] = request.resourceType;
6688
+ }
6689
+
6271
6690
  let req = new $OpenApi.OpenApiRequest({
6272
6691
  headers: headers,
6273
6692
  query: OpenApiUtil.query(query),
@@ -6292,6 +6711,30 @@ export default class Client extends OpenApi {
6292
6711
  return await this.listResourcesWithOptions(request, headers, runtime);
6293
6712
  }
6294
6713
 
6714
+ async listServiceContainersWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServiceContainersResponse> {
6715
+ let req = new $OpenApi.OpenApiRequest({
6716
+ headers: headers,
6717
+ });
6718
+ let params = new $OpenApi.Params({
6719
+ action: "ListServiceContainers",
6720
+ version: "2021-07-01",
6721
+ protocol: "HTTPS",
6722
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/instances/${OpenApiUtil.getEncodeParam(InstanceName)}/containers`,
6723
+ method: "GET",
6724
+ authType: "AK",
6725
+ style: "ROA",
6726
+ reqBodyType: "json",
6727
+ bodyType: "json",
6728
+ });
6729
+ return $tea.cast<ListServiceContainersResponse>(await this.callApi(params, req, runtime), new ListServiceContainersResponse({}));
6730
+ }
6731
+
6732
+ async listServiceContainers(ClusterId: string, ServiceName: string, InstanceName: string): Promise<ListServiceContainersResponse> {
6733
+ let runtime = new $Util.RuntimeOptions({ });
6734
+ let headers : {[key: string ]: string} = { };
6735
+ return await this.listServiceContainersWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime);
6736
+ }
6737
+
6295
6738
  async listServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServiceInstancesResponse> {
6296
6739
  Util.validateModel(request);
6297
6740
  let query : {[key: string ]: any} = { };
@@ -6526,6 +6969,30 @@ export default class Client extends OpenApi {
6526
6969
  return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
6527
6970
  }
6528
6971
 
6972
+ async restartServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RestartServiceResponse> {
6973
+ let req = new $OpenApi.OpenApiRequest({
6974
+ headers: headers,
6975
+ });
6976
+ let params = new $OpenApi.Params({
6977
+ action: "RestartService",
6978
+ version: "2021-07-01",
6979
+ protocol: "HTTPS",
6980
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/restart`,
6981
+ method: "PUT",
6982
+ authType: "AK",
6983
+ style: "ROA",
6984
+ reqBodyType: "json",
6985
+ bodyType: "json",
6986
+ });
6987
+ return $tea.cast<RestartServiceResponse>(await this.callApi(params, req, runtime), new RestartServiceResponse({}));
6988
+ }
6989
+
6990
+ async restartService(ClusterId: string, ServiceName: string): Promise<RestartServiceResponse> {
6991
+ let runtime = new $Util.RuntimeOptions({ });
6992
+ let headers : {[key: string ]: string} = { };
6993
+ return await this.restartServiceWithOptions(ClusterId, ServiceName, headers, runtime);
6994
+ }
6995
+
6529
6996
  async startBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartBenchmarkTaskResponse> {
6530
6997
  let req = new $OpenApi.OpenApiRequest({
6531
6998
  headers: headers,
@@ -6651,6 +7118,14 @@ export default class Client extends OpenApi {
6651
7118
  async updateResourceWithOptions(ClusterId: string, ResourceId: string, request: UpdateResourceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateResourceResponse> {
6652
7119
  Util.validateModel(request);
6653
7120
  let body : {[key: string ]: any} = { };
7121
+ if (!Util.isUnset(request.nodeMatchLabels)) {
7122
+ body["NodeMatchLabels"] = request.nodeMatchLabels;
7123
+ }
7124
+
7125
+ if (!Util.isUnset(request.nodeTolerations)) {
7126
+ body["NodeTolerations"] = request.nodeTolerations;
7127
+ }
7128
+
6654
7129
  if (!Util.isUnset(request.resourceName)) {
6655
7130
  body["ResourceName"] = request.resourceName;
6656
7131
  }