@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/dist/client.js CHANGED
@@ -156,6 +156,7 @@ class Resource extends $tea.Model {
156
156
  prePaidInstanceCount: 'PrePaidInstanceCount',
157
157
  resourceId: 'ResourceId',
158
158
  resourceName: 'ResourceName',
159
+ resourceType: 'ResourceType',
159
160
  status: 'Status',
160
161
  updateTime: 'UpdateTime',
161
162
  };
@@ -173,6 +174,7 @@ class Resource extends $tea.Model {
173
174
  prePaidInstanceCount: 'number',
174
175
  resourceId: 'string',
175
176
  resourceName: 'string',
177
+ resourceType: 'string',
176
178
  status: 'string',
177
179
  updateTime: 'string',
178
180
  };
@@ -309,6 +311,8 @@ class Service extends $tea.Model {
309
311
  roleAttrs: 'RoleAttrs',
310
312
  runningInstance: 'RunningInstance',
311
313
  safetyLock: 'SafetyLock',
314
+ secondaryInternetEndpoint: 'SecondaryInternetEndpoint',
315
+ secondaryIntranetEndpoint: 'SecondaryIntranetEndpoint',
312
316
  serviceConfig: 'ServiceConfig',
313
317
  serviceGroup: 'ServiceGroup',
314
318
  serviceId: 'ServiceId',
@@ -349,6 +353,8 @@ class Service extends $tea.Model {
349
353
  roleAttrs: 'string',
350
354
  runningInstance: 'number',
351
355
  safetyLock: 'string',
356
+ secondaryInternetEndpoint: 'string',
357
+ secondaryIntranetEndpoint: 'string',
352
358
  serviceConfig: 'string',
353
359
  serviceGroup: 'string',
354
360
  serviceId: 'string',
@@ -469,6 +475,11 @@ class CreateResourceRequest extends $tea.Model {
469
475
  chargeType: 'ChargeType',
470
476
  ecsInstanceCount: 'EcsInstanceCount',
471
477
  ecsInstanceType: 'EcsInstanceType',
478
+ externalClusterId: 'ExternalClusterId',
479
+ nodeMatchLabels: 'NodeMatchLabels',
480
+ nodeTolerations: 'NodeTolerations',
481
+ resourceType: 'ResourceType',
482
+ roleName: 'RoleName',
472
483
  systemDiskSize: 'SystemDiskSize',
473
484
  zone: 'Zone',
474
485
  };
@@ -479,6 +490,11 @@ class CreateResourceRequest extends $tea.Model {
479
490
  chargeType: 'string',
480
491
  ecsInstanceCount: 'number',
481
492
  ecsInstanceType: 'string',
493
+ externalClusterId: 'string',
494
+ nodeMatchLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
495
+ nodeTolerations: { 'type': 'array', 'itemType': CreateResourceRequestNodeTolerations },
496
+ resourceType: 'string',
497
+ roleName: 'string',
482
498
  systemDiskSize: 'number',
483
499
  zone: 'string',
484
500
  };
@@ -1243,12 +1259,16 @@ class DeleteServiceInstancesRequest extends $tea.Model {
1243
1259
  }
1244
1260
  static names() {
1245
1261
  return {
1262
+ container: 'Container',
1246
1263
  instanceList: 'InstanceList',
1264
+ softRestart: 'SoftRestart',
1247
1265
  };
1248
1266
  }
1249
1267
  static types() {
1250
1268
  return {
1269
+ container: 'string',
1251
1270
  instanceList: 'string',
1271
+ softRestart: 'boolean',
1252
1272
  };
1253
1273
  }
1254
1274
  }
@@ -1554,6 +1574,7 @@ class DescribeResourceResponseBody extends $tea.Model {
1554
1574
  requestId: 'RequestId',
1555
1575
  resourceId: 'ResourceId',
1556
1576
  resourceName: 'ResourceName',
1577
+ resourceType: 'ResourceType',
1557
1578
  status: 'Status',
1558
1579
  updateTime: 'UpdateTime',
1559
1580
  };
@@ -1573,6 +1594,7 @@ class DescribeResourceResponseBody extends $tea.Model {
1573
1594
  requestId: 'string',
1574
1595
  resourceId: 'string',
1575
1596
  resourceName: 'string',
1597
+ resourceType: 'string',
1576
1598
  status: 'string',
1577
1599
  updateTime: 'string',
1578
1600
  };
@@ -1799,6 +1821,44 @@ class DescribeServiceCronScalerResponse extends $tea.Model {
1799
1821
  }
1800
1822
  }
1801
1823
  exports.DescribeServiceCronScalerResponse = DescribeServiceCronScalerResponse;
1824
+ class DescribeServiceDiagnosisResponseBody extends $tea.Model {
1825
+ constructor(map) {
1826
+ super(map);
1827
+ }
1828
+ static names() {
1829
+ return {
1830
+ diagnosisList: 'DiagnosisList',
1831
+ requestId: 'RequestId',
1832
+ };
1833
+ }
1834
+ static types() {
1835
+ return {
1836
+ diagnosisList: { 'type': 'array', 'itemType': DescribeServiceDiagnosisResponseBodyDiagnosisList },
1837
+ requestId: 'string',
1838
+ };
1839
+ }
1840
+ }
1841
+ exports.DescribeServiceDiagnosisResponseBody = DescribeServiceDiagnosisResponseBody;
1842
+ class DescribeServiceDiagnosisResponse extends $tea.Model {
1843
+ constructor(map) {
1844
+ super(map);
1845
+ }
1846
+ static names() {
1847
+ return {
1848
+ headers: 'headers',
1849
+ statusCode: 'statusCode',
1850
+ body: 'body',
1851
+ };
1852
+ }
1853
+ static types() {
1854
+ return {
1855
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1856
+ statusCode: 'number',
1857
+ body: DescribeServiceDiagnosisResponseBody,
1858
+ };
1859
+ }
1860
+ }
1861
+ exports.DescribeServiceDiagnosisResponse = DescribeServiceDiagnosisResponse;
1802
1862
  class DescribeServiceEventRequest extends $tea.Model {
1803
1863
  constructor(map) {
1804
1864
  super(map);
@@ -1869,6 +1929,44 @@ class DescribeServiceEventResponse extends $tea.Model {
1869
1929
  }
1870
1930
  }
1871
1931
  exports.DescribeServiceEventResponse = DescribeServiceEventResponse;
1932
+ class DescribeServiceInstanceDiagnosisResponseBody extends $tea.Model {
1933
+ constructor(map) {
1934
+ super(map);
1935
+ }
1936
+ static names() {
1937
+ return {
1938
+ diagnosis: 'Diagnosis',
1939
+ requestId: 'RequestId',
1940
+ };
1941
+ }
1942
+ static types() {
1943
+ return {
1944
+ diagnosis: DescribeServiceInstanceDiagnosisResponseBodyDiagnosis,
1945
+ requestId: 'string',
1946
+ };
1947
+ }
1948
+ }
1949
+ exports.DescribeServiceInstanceDiagnosisResponseBody = DescribeServiceInstanceDiagnosisResponseBody;
1950
+ class DescribeServiceInstanceDiagnosisResponse extends $tea.Model {
1951
+ constructor(map) {
1952
+ super(map);
1953
+ }
1954
+ static names() {
1955
+ return {
1956
+ headers: 'headers',
1957
+ statusCode: 'statusCode',
1958
+ body: 'body',
1959
+ };
1960
+ }
1961
+ static types() {
1962
+ return {
1963
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1964
+ statusCode: 'number',
1965
+ body: DescribeServiceInstanceDiagnosisResponseBody,
1966
+ };
1967
+ }
1968
+ }
1969
+ exports.DescribeServiceInstanceDiagnosisResponse = DescribeServiceInstanceDiagnosisResponse;
1872
1970
  class DescribeServiceLogRequest extends $tea.Model {
1873
1971
  constructor(map) {
1874
1972
  super(map);
@@ -2383,6 +2481,7 @@ class ListResourcesRequest extends $tea.Model {
2383
2481
  pageSize: 'PageSize',
2384
2482
  resourceId: 'ResourceId',
2385
2483
  resourceName: 'ResourceName',
2484
+ resourceType: 'ResourceType',
2386
2485
  };
2387
2486
  }
2388
2487
  static types() {
@@ -2391,6 +2490,7 @@ class ListResourcesRequest extends $tea.Model {
2391
2490
  pageSize: 'number',
2392
2491
  resourceId: 'string',
2393
2492
  resourceName: 'string',
2493
+ resourceType: 'string',
2394
2494
  };
2395
2495
  }
2396
2496
  }
@@ -2439,6 +2539,46 @@ class ListResourcesResponse extends $tea.Model {
2439
2539
  }
2440
2540
  }
2441
2541
  exports.ListResourcesResponse = ListResourcesResponse;
2542
+ class ListServiceContainersResponseBody extends $tea.Model {
2543
+ constructor(map) {
2544
+ super(map);
2545
+ }
2546
+ static names() {
2547
+ return {
2548
+ containers: 'Containers',
2549
+ requestId: 'RequestId',
2550
+ serviceName: 'ServiceName',
2551
+ };
2552
+ }
2553
+ static types() {
2554
+ return {
2555
+ containers: { 'type': 'array', 'itemType': ContainerInfo },
2556
+ requestId: 'string',
2557
+ serviceName: 'string',
2558
+ };
2559
+ }
2560
+ }
2561
+ exports.ListServiceContainersResponseBody = ListServiceContainersResponseBody;
2562
+ class ListServiceContainersResponse extends $tea.Model {
2563
+ constructor(map) {
2564
+ super(map);
2565
+ }
2566
+ static names() {
2567
+ return {
2568
+ headers: 'headers',
2569
+ statusCode: 'statusCode',
2570
+ body: 'body',
2571
+ };
2572
+ }
2573
+ static types() {
2574
+ return {
2575
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2576
+ statusCode: 'number',
2577
+ body: ListServiceContainersResponseBody,
2578
+ };
2579
+ }
2580
+ }
2581
+ exports.ListServiceContainersResponse = ListServiceContainersResponse;
2442
2582
  class ListServiceInstancesRequest extends $tea.Model {
2443
2583
  constructor(map) {
2444
2584
  super(map);
@@ -2765,6 +2905,44 @@ class ReleaseServiceResponse extends $tea.Model {
2765
2905
  }
2766
2906
  }
2767
2907
  exports.ReleaseServiceResponse = ReleaseServiceResponse;
2908
+ class RestartServiceResponseBody extends $tea.Model {
2909
+ constructor(map) {
2910
+ super(map);
2911
+ }
2912
+ static names() {
2913
+ return {
2914
+ message: 'Message',
2915
+ requestId: 'RequestId',
2916
+ };
2917
+ }
2918
+ static types() {
2919
+ return {
2920
+ message: 'string',
2921
+ requestId: 'string',
2922
+ };
2923
+ }
2924
+ }
2925
+ exports.RestartServiceResponseBody = RestartServiceResponseBody;
2926
+ class RestartServiceResponse extends $tea.Model {
2927
+ constructor(map) {
2928
+ super(map);
2929
+ }
2930
+ static names() {
2931
+ return {
2932
+ headers: 'headers',
2933
+ statusCode: 'statusCode',
2934
+ body: 'body',
2935
+ };
2936
+ }
2937
+ static types() {
2938
+ return {
2939
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2940
+ statusCode: 'number',
2941
+ body: RestartServiceResponseBody,
2942
+ };
2943
+ }
2944
+ }
2945
+ exports.RestartServiceResponse = RestartServiceResponse;
2768
2946
  class StartBenchmarkTaskResponseBody extends $tea.Model {
2769
2947
  constructor(map) {
2770
2948
  super(map);
@@ -2977,11 +3155,15 @@ class UpdateResourceRequest extends $tea.Model {
2977
3155
  }
2978
3156
  static names() {
2979
3157
  return {
3158
+ nodeMatchLabels: 'NodeMatchLabels',
3159
+ nodeTolerations: 'NodeTolerations',
2980
3160
  resourceName: 'ResourceName',
2981
3161
  };
2982
3162
  }
2983
3163
  static types() {
2984
3164
  return {
3165
+ nodeMatchLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3166
+ nodeTolerations: { 'type': 'array', 'itemType': UpdateResourceRequestNodeTolerations },
2985
3167
  resourceName: 'string',
2986
3168
  };
2987
3169
  }
@@ -3549,6 +3731,28 @@ class ServiceLabels extends $tea.Model {
3549
3731
  }
3550
3732
  }
3551
3733
  exports.ServiceLabels = ServiceLabels;
3734
+ class CreateResourceRequestNodeTolerations extends $tea.Model {
3735
+ constructor(map) {
3736
+ super(map);
3737
+ }
3738
+ static names() {
3739
+ return {
3740
+ effect: 'effect',
3741
+ key: 'key',
3742
+ operator: 'operator',
3743
+ value: 'value',
3744
+ };
3745
+ }
3746
+ static types() {
3747
+ return {
3748
+ effect: 'string',
3749
+ key: 'string',
3750
+ operator: 'string',
3751
+ value: 'string',
3752
+ };
3753
+ }
3754
+ }
3755
+ exports.CreateResourceRequestNodeTolerations = CreateResourceRequestNodeTolerations;
3552
3756
  class CreateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
3553
3757
  constructor(map) {
3554
3758
  super(map);
@@ -3727,6 +3931,26 @@ class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
3727
3931
  }
3728
3932
  }
3729
3933
  exports.DescribeServiceCronScalerResponseBodyScaleJobs = DescribeServiceCronScalerResponseBodyScaleJobs;
3934
+ class DescribeServiceDiagnosisResponseBodyDiagnosisList extends $tea.Model {
3935
+ constructor(map) {
3936
+ super(map);
3937
+ }
3938
+ static names() {
3939
+ return {
3940
+ advices: 'Advices',
3941
+ causes: 'Causes',
3942
+ error: 'Error',
3943
+ };
3944
+ }
3945
+ static types() {
3946
+ return {
3947
+ advices: { 'type': 'array', 'itemType': 'string' },
3948
+ causes: { 'type': 'array', 'itemType': 'string' },
3949
+ error: 'string',
3950
+ };
3951
+ }
3952
+ }
3953
+ exports.DescribeServiceDiagnosisResponseBodyDiagnosisList = DescribeServiceDiagnosisResponseBodyDiagnosisList;
3730
3954
  class DescribeServiceEventResponseBodyEvents extends $tea.Model {
3731
3955
  constructor(map) {
3732
3956
  super(map);
@@ -3749,6 +3973,26 @@ class DescribeServiceEventResponseBodyEvents extends $tea.Model {
3749
3973
  }
3750
3974
  }
3751
3975
  exports.DescribeServiceEventResponseBodyEvents = DescribeServiceEventResponseBodyEvents;
3976
+ class DescribeServiceInstanceDiagnosisResponseBodyDiagnosis extends $tea.Model {
3977
+ constructor(map) {
3978
+ super(map);
3979
+ }
3980
+ static names() {
3981
+ return {
3982
+ advices: 'Advices',
3983
+ causes: 'Causes',
3984
+ error: 'Error',
3985
+ };
3986
+ }
3987
+ static types() {
3988
+ return {
3989
+ advices: { 'type': 'array', 'itemType': 'string' },
3990
+ causes: { 'type': 'array', 'itemType': 'string' },
3991
+ error: 'string',
3992
+ };
3993
+ }
3994
+ }
3995
+ exports.DescribeServiceInstanceDiagnosisResponseBodyDiagnosis = DescribeServiceInstanceDiagnosisResponseBodyDiagnosis;
3752
3996
  class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
3753
3997
  constructor(map) {
3754
3998
  super(map);
@@ -3805,6 +4049,28 @@ class ListServiceVersionsResponseBodyVersions extends $tea.Model {
3805
4049
  }
3806
4050
  }
3807
4051
  exports.ListServiceVersionsResponseBodyVersions = ListServiceVersionsResponseBodyVersions;
4052
+ class UpdateResourceRequestNodeTolerations extends $tea.Model {
4053
+ constructor(map) {
4054
+ super(map);
4055
+ }
4056
+ static names() {
4057
+ return {
4058
+ effect: 'effect',
4059
+ key: 'key',
4060
+ operator: 'operator',
4061
+ value: 'value',
4062
+ };
4063
+ }
4064
+ static types() {
4065
+ return {
4066
+ effect: 'string',
4067
+ key: 'string',
4068
+ operator: 'string',
4069
+ value: 'string',
4070
+ };
4071
+ }
4072
+ }
4073
+ exports.UpdateResourceRequestNodeTolerations = UpdateResourceRequestNodeTolerations;
3808
4074
  class UpdateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
3809
4075
  constructor(map) {
3810
4076
  super(map);
@@ -4009,6 +4275,21 @@ class Client extends openapi_client_1.default {
4009
4275
  if (!tea_util_1.default.isUnset(request.ecsInstanceType)) {
4010
4276
  body["EcsInstanceType"] = request.ecsInstanceType;
4011
4277
  }
4278
+ if (!tea_util_1.default.isUnset(request.externalClusterId)) {
4279
+ body["ExternalClusterId"] = request.externalClusterId;
4280
+ }
4281
+ if (!tea_util_1.default.isUnset(request.nodeMatchLabels)) {
4282
+ body["NodeMatchLabels"] = request.nodeMatchLabels;
4283
+ }
4284
+ if (!tea_util_1.default.isUnset(request.nodeTolerations)) {
4285
+ body["NodeTolerations"] = request.nodeTolerations;
4286
+ }
4287
+ if (!tea_util_1.default.isUnset(request.resourceType)) {
4288
+ body["ResourceType"] = request.resourceType;
4289
+ }
4290
+ if (!tea_util_1.default.isUnset(request.roleName)) {
4291
+ body["RoleName"] = request.roleName;
4292
+ }
4012
4293
  if (!tea_util_1.default.isUnset(request.systemDiskSize)) {
4013
4294
  body["SystemDiskSize"] = request.systemDiskSize;
4014
4295
  }
@@ -4438,9 +4719,15 @@ class Client extends openapi_client_1.default {
4438
4719
  async deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4439
4720
  tea_util_1.default.validateModel(request);
4440
4721
  let query = {};
4722
+ if (!tea_util_1.default.isUnset(request.container)) {
4723
+ query["Container"] = request.container;
4724
+ }
4441
4725
  if (!tea_util_1.default.isUnset(request.instanceList)) {
4442
4726
  query["InstanceList"] = request.instanceList;
4443
4727
  }
4728
+ if (!tea_util_1.default.isUnset(request.softRestart)) {
4729
+ query["SoftRestart"] = request.softRestart;
4730
+ }
4444
4731
  let req = new $OpenApi.OpenApiRequest({
4445
4732
  headers: headers,
4446
4733
  query: openapi_util_1.default.query(query),
@@ -4722,6 +5009,28 @@ class Client extends openapi_client_1.default {
4722
5009
  let headers = {};
4723
5010
  return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4724
5011
  }
5012
+ async describeServiceDiagnosisWithOptions(ClusterId, ServiceName, headers, runtime) {
5013
+ let req = new $OpenApi.OpenApiRequest({
5014
+ headers: headers,
5015
+ });
5016
+ let params = new $OpenApi.Params({
5017
+ action: "DescribeServiceDiagnosis",
5018
+ version: "2021-07-01",
5019
+ protocol: "HTTPS",
5020
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/diagnosis`,
5021
+ method: "GET",
5022
+ authType: "AK",
5023
+ style: "ROA",
5024
+ reqBodyType: "json",
5025
+ bodyType: "json",
5026
+ });
5027
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceDiagnosisResponse({}));
5028
+ }
5029
+ async describeServiceDiagnosis(ClusterId, ServiceName) {
5030
+ let runtime = new $Util.RuntimeOptions({});
5031
+ let headers = {};
5032
+ return await this.describeServiceDiagnosisWithOptions(ClusterId, ServiceName, headers, runtime);
5033
+ }
4725
5034
  async describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4726
5035
  tea_util_1.default.validateModel(request);
4727
5036
  let query = {};
@@ -4765,6 +5074,28 @@ class Client extends openapi_client_1.default {
4765
5074
  let headers = {};
4766
5075
  return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
4767
5076
  }
5077
+ async describeServiceInstanceDiagnosisWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime) {
5078
+ let req = new $OpenApi.OpenApiRequest({
5079
+ headers: headers,
5080
+ });
5081
+ let params = new $OpenApi.Params({
5082
+ action: "DescribeServiceInstanceDiagnosis",
5083
+ version: "2021-07-01",
5084
+ protocol: "HTTPS",
5085
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/instances/${openapi_util_1.default.getEncodeParam(InstanceName)}/diagnosis`,
5086
+ method: "GET",
5087
+ authType: "AK",
5088
+ style: "ROA",
5089
+ reqBodyType: "json",
5090
+ bodyType: "json",
5091
+ });
5092
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceInstanceDiagnosisResponse({}));
5093
+ }
5094
+ async describeServiceInstanceDiagnosis(ClusterId, ServiceName, InstanceName) {
5095
+ let runtime = new $Util.RuntimeOptions({});
5096
+ let headers = {};
5097
+ return await this.describeServiceInstanceDiagnosisWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime);
5098
+ }
4768
5099
  async describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4769
5100
  tea_util_1.default.validateModel(request);
4770
5101
  let query = {};
@@ -5070,6 +5401,9 @@ class Client extends openapi_client_1.default {
5070
5401
  if (!tea_util_1.default.isUnset(request.resourceName)) {
5071
5402
  query["ResourceName"] = request.resourceName;
5072
5403
  }
5404
+ if (!tea_util_1.default.isUnset(request.resourceType)) {
5405
+ query["ResourceType"] = request.resourceType;
5406
+ }
5073
5407
  let req = new $OpenApi.OpenApiRequest({
5074
5408
  headers: headers,
5075
5409
  query: openapi_util_1.default.query(query),
@@ -5092,6 +5426,28 @@ class Client extends openapi_client_1.default {
5092
5426
  let headers = {};
5093
5427
  return await this.listResourcesWithOptions(request, headers, runtime);
5094
5428
  }
5429
+ async listServiceContainersWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime) {
5430
+ let req = new $OpenApi.OpenApiRequest({
5431
+ headers: headers,
5432
+ });
5433
+ let params = new $OpenApi.Params({
5434
+ action: "ListServiceContainers",
5435
+ version: "2021-07-01",
5436
+ protocol: "HTTPS",
5437
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/instances/${openapi_util_1.default.getEncodeParam(InstanceName)}/containers`,
5438
+ method: "GET",
5439
+ authType: "AK",
5440
+ style: "ROA",
5441
+ reqBodyType: "json",
5442
+ bodyType: "json",
5443
+ });
5444
+ return $tea.cast(await this.callApi(params, req, runtime), new ListServiceContainersResponse({}));
5445
+ }
5446
+ async listServiceContainers(ClusterId, ServiceName, InstanceName) {
5447
+ let runtime = new $Util.RuntimeOptions({});
5448
+ let headers = {};
5449
+ return await this.listServiceContainersWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime);
5450
+ }
5095
5451
  async listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
5096
5452
  tea_util_1.default.validateModel(request);
5097
5453
  let query = {};
@@ -5287,6 +5643,28 @@ class Client extends openapi_client_1.default {
5287
5643
  let headers = {};
5288
5644
  return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
5289
5645
  }
5646
+ async restartServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
5647
+ let req = new $OpenApi.OpenApiRequest({
5648
+ headers: headers,
5649
+ });
5650
+ let params = new $OpenApi.Params({
5651
+ action: "RestartService",
5652
+ version: "2021-07-01",
5653
+ protocol: "HTTPS",
5654
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/restart`,
5655
+ method: "PUT",
5656
+ authType: "AK",
5657
+ style: "ROA",
5658
+ reqBodyType: "json",
5659
+ bodyType: "json",
5660
+ });
5661
+ return $tea.cast(await this.callApi(params, req, runtime), new RestartServiceResponse({}));
5662
+ }
5663
+ async restartService(ClusterId, ServiceName) {
5664
+ let runtime = new $Util.RuntimeOptions({});
5665
+ let headers = {};
5666
+ return await this.restartServiceWithOptions(ClusterId, ServiceName, headers, runtime);
5667
+ }
5290
5668
  async startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
5291
5669
  let req = new $OpenApi.OpenApiRequest({
5292
5670
  headers: headers,
@@ -5402,6 +5780,12 @@ class Client extends openapi_client_1.default {
5402
5780
  async updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime) {
5403
5781
  tea_util_1.default.validateModel(request);
5404
5782
  let body = {};
5783
+ if (!tea_util_1.default.isUnset(request.nodeMatchLabels)) {
5784
+ body["NodeMatchLabels"] = request.nodeMatchLabels;
5785
+ }
5786
+ if (!tea_util_1.default.isUnset(request.nodeTolerations)) {
5787
+ body["NodeTolerations"] = request.nodeTolerations;
5788
+ }
5405
5789
  if (!tea_util_1.default.isUnset(request.resourceName)) {
5406
5790
  body["ResourceName"] = request.resourceName;
5407
5791
  }