@alicloud/cs20151215 3.0.15 → 3.0.17

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
@@ -141,6 +141,30 @@ class Taint extends $tea.Model {
141
141
  }
142
142
  }
143
143
  exports.Taint = Taint;
144
+ class StandardComponentsValue extends $tea.Model {
145
+ constructor(map) {
146
+ super(map);
147
+ }
148
+ static names() {
149
+ return {
150
+ name: 'name',
151
+ version: 'version',
152
+ description: 'description',
153
+ required: 'required',
154
+ disabled: 'disabled',
155
+ };
156
+ }
157
+ static types() {
158
+ return {
159
+ name: 'string',
160
+ version: 'string',
161
+ description: 'string',
162
+ required: 'string',
163
+ disabled: 'boolean',
164
+ };
165
+ }
166
+ }
167
+ exports.StandardComponentsValue = StandardComponentsValue;
144
168
  class AttachInstancesRequest extends $tea.Model {
145
169
  constructor(map) {
146
170
  super(map);
@@ -2542,11 +2566,13 @@ class DescribeNodePoolVulsResponseBody extends $tea.Model {
2542
2566
  static names() {
2543
2567
  return {
2544
2568
  vulRecords: 'vul_records',
2569
+ vulsFixServicePurchased: 'vuls_fix_service_purchased',
2545
2570
  };
2546
2571
  }
2547
2572
  static types() {
2548
2573
  return {
2549
2574
  vulRecords: { 'type': 'array', 'itemType': DescribeNodePoolVulsResponseBodyVulRecords },
2575
+ vulsFixServicePurchased: 'boolean',
2550
2576
  };
2551
2577
  }
2552
2578
  }
@@ -3971,6 +3997,84 @@ class RemoveClusterNodesResponse extends $tea.Model {
3971
3997
  }
3972
3998
  }
3973
3999
  exports.RemoveClusterNodesResponse = RemoveClusterNodesResponse;
4000
+ class RemoveNodePoolNodesRequest extends $tea.Model {
4001
+ constructor(map) {
4002
+ super(map);
4003
+ }
4004
+ static names() {
4005
+ return {
4006
+ drainNode: 'drain_node',
4007
+ nodes: 'nodes',
4008
+ releaseNode: 'release_node',
4009
+ };
4010
+ }
4011
+ static types() {
4012
+ return {
4013
+ drainNode: 'boolean',
4014
+ nodes: { 'type': 'array', 'itemType': 'string' },
4015
+ releaseNode: 'boolean',
4016
+ };
4017
+ }
4018
+ }
4019
+ exports.RemoveNodePoolNodesRequest = RemoveNodePoolNodesRequest;
4020
+ class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
4021
+ constructor(map) {
4022
+ super(map);
4023
+ }
4024
+ static names() {
4025
+ return {
4026
+ drainNode: 'drain_node',
4027
+ nodesShrink: 'nodes',
4028
+ releaseNode: 'release_node',
4029
+ };
4030
+ }
4031
+ static types() {
4032
+ return {
4033
+ drainNode: 'boolean',
4034
+ nodesShrink: 'string',
4035
+ releaseNode: 'boolean',
4036
+ };
4037
+ }
4038
+ }
4039
+ exports.RemoveNodePoolNodesShrinkRequest = RemoveNodePoolNodesShrinkRequest;
4040
+ class RemoveNodePoolNodesResponseBody extends $tea.Model {
4041
+ constructor(map) {
4042
+ super(map);
4043
+ }
4044
+ static names() {
4045
+ return {
4046
+ requestId: 'request_id',
4047
+ taskId: 'task_id',
4048
+ };
4049
+ }
4050
+ static types() {
4051
+ return {
4052
+ requestId: 'string',
4053
+ taskId: 'string',
4054
+ };
4055
+ }
4056
+ }
4057
+ exports.RemoveNodePoolNodesResponseBody = RemoveNodePoolNodesResponseBody;
4058
+ class RemoveNodePoolNodesResponse extends $tea.Model {
4059
+ constructor(map) {
4060
+ super(map);
4061
+ }
4062
+ static names() {
4063
+ return {
4064
+ headers: 'headers',
4065
+ statusCode: 'statusCode',
4066
+ body: 'body',
4067
+ };
4068
+ }
4069
+ static types() {
4070
+ return {
4071
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4072
+ statusCode: 'number',
4073
+ body: RemoveNodePoolNodesResponseBody,
4074
+ };
4075
+ }
4076
+ }
4077
+ exports.RemoveNodePoolNodesResponse = RemoveNodePoolNodesResponse;
3974
4078
  class RemoveWorkflowResponse extends $tea.Model {
3975
4079
  constructor(map) {
3976
4080
  super(map);
@@ -4745,30 +4849,6 @@ class UpgradeClusterAddonsResponse extends $tea.Model {
4745
4849
  }
4746
4850
  }
4747
4851
  exports.UpgradeClusterAddonsResponse = UpgradeClusterAddonsResponse;
4748
- class StandardComponentsValue extends $tea.Model {
4749
- constructor(map) {
4750
- super(map);
4751
- }
4752
- static names() {
4753
- return {
4754
- name: 'name',
4755
- version: 'version',
4756
- description: 'description',
4757
- required: 'required',
4758
- disabled: 'disabled',
4759
- };
4760
- }
4761
- static types() {
4762
- return {
4763
- name: 'string',
4764
- version: 'string',
4765
- description: 'string',
4766
- required: 'string',
4767
- disabled: 'boolean',
4768
- };
4769
- }
4770
- }
4771
- exports.StandardComponentsValue = StandardComponentsValue;
4772
4852
  class AttachInstancesResponseBodyList extends $tea.Model {
4773
4853
  constructor(map) {
4774
4854
  super(map);
@@ -7526,10 +7606,10 @@ exports.UpgradeClusterAddonsRequestBody = UpgradeClusterAddonsRequestBody;
7526
7606
  class Client extends openapi_client_1.default {
7527
7607
  constructor(config) {
7528
7608
  super(config);
7609
+ this._signatureAlgorithm = "v2";
7529
7610
  this._endpointRule = "regional";
7530
7611
  this._endpointMap = {
7531
7612
  'ap-northeast-2-pop': "cs.aliyuncs.com",
7532
- 'cn-beijing-finance-1': "cs.aliyuncs.com",
7533
7613
  'cn-beijing-finance-pop': "cs.aliyuncs.com",
7534
7614
  'cn-beijing-gov-1': "cs.aliyuncs.com",
7535
7615
  'cn-beijing-nu16-b01': "cs.aliyuncs.com",
@@ -7537,21 +7617,17 @@ class Client extends openapi_client_1.default {
7537
7617
  'cn-fujian': "cs.aliyuncs.com",
7538
7618
  'cn-haidian-cm12-c01': "cs.aliyuncs.com",
7539
7619
  'cn-hangzhou-bj-b01': "cs.aliyuncs.com",
7540
- 'cn-hangzhou-finance': "cs-vpc.cn-hangzhou-finance.aliyuncs.com",
7541
7620
  'cn-hangzhou-internal-prod-1': "cs.aliyuncs.com",
7542
7621
  'cn-hangzhou-internal-test-1': "cs.aliyuncs.com",
7543
7622
  'cn-hangzhou-internal-test-2': "cs.aliyuncs.com",
7544
7623
  'cn-hangzhou-internal-test-3': "cs.aliyuncs.com",
7545
7624
  'cn-hangzhou-test-306': "cs.aliyuncs.com",
7546
7625
  'cn-hongkong-finance-pop': "cs.aliyuncs.com",
7547
- 'cn-huhehaote-nebula-1': "cs.aliyuncs.com",
7548
7626
  'cn-qingdao-nebula': "cs.aliyuncs.com",
7549
7627
  'cn-shanghai-et15-b01': "cs.aliyuncs.com",
7550
7628
  'cn-shanghai-et2-b01': "cs.aliyuncs.com",
7551
- 'cn-shanghai-finance-1': "cs-vpc.cn-shanghai-finance-1.aliyuncs.com",
7552
7629
  'cn-shanghai-inner': "cs.aliyuncs.com",
7553
7630
  'cn-shanghai-internal-test-1': "cs.aliyuncs.com",
7554
- 'cn-shenzhen-finance-1': "cs-vpc.cn-shenzhen-finance-1.aliyuncs.com",
7555
7631
  'cn-shenzhen-inner': "cs.aliyuncs.com",
7556
7632
  'cn-shenzhen-st4-d01': "cs.aliyuncs.com",
7557
7633
  'cn-shenzhen-su18-b01': "cs.aliyuncs.com",
@@ -7583,7 +7659,6 @@ class Client extends openapi_client_1.default {
7583
7659
  }
7584
7660
  async attachInstancesWithOptions(ClusterId, request, headers, runtime) {
7585
7661
  tea_util_1.default.validateModel(request);
7586
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
7587
7662
  let body = {};
7588
7663
  if (!tea_util_1.default.isUnset(request.cpuPolicy)) {
7589
7664
  body["cpu_policy"] = request.cpuPolicy;
@@ -7632,7 +7707,7 @@ class Client extends openapi_client_1.default {
7632
7707
  action: "AttachInstances",
7633
7708
  version: "2015-12-15",
7634
7709
  protocol: "HTTPS",
7635
- pathname: `/clusters/${ClusterId}/attach`,
7710
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/attach`,
7636
7711
  method: "POST",
7637
7712
  authType: "AK",
7638
7713
  style: "ROA",
@@ -7647,7 +7722,6 @@ class Client extends openapi_client_1.default {
7647
7722
  return await this.cancelClusterUpgradeWithOptions(ClusterId, headers, runtime);
7648
7723
  }
7649
7724
  async cancelClusterUpgradeWithOptions(ClusterId, headers, runtime) {
7650
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
7651
7725
  let req = new $OpenApi.OpenApiRequest({
7652
7726
  headers: headers,
7653
7727
  });
@@ -7655,7 +7729,7 @@ class Client extends openapi_client_1.default {
7655
7729
  action: "CancelClusterUpgrade",
7656
7730
  version: "2015-12-15",
7657
7731
  protocol: "HTTPS",
7658
- pathname: `/api/v2/clusters/${ClusterId}/upgrade/cancel`,
7732
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade/cancel`,
7659
7733
  method: "POST",
7660
7734
  authType: "AK",
7661
7735
  style: "ROA",
@@ -7670,8 +7744,6 @@ class Client extends openapi_client_1.default {
7670
7744
  return await this.cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime);
7671
7745
  }
7672
7746
  async cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime) {
7673
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
7674
- componentId = openapi_util_1.default.getEncodeParam(componentId);
7675
7747
  let req = new $OpenApi.OpenApiRequest({
7676
7748
  headers: headers,
7677
7749
  });
@@ -7679,7 +7751,7 @@ class Client extends openapi_client_1.default {
7679
7751
  action: "CancelComponentUpgrade",
7680
7752
  version: "2015-12-15",
7681
7753
  protocol: "HTTPS",
7682
- pathname: `/clusters/${clusterId}/components/${componentId}/cancel`,
7754
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/components/${openapi_util_1.default.getEncodeParam(componentId)}/cancel`,
7683
7755
  method: "POST",
7684
7756
  authType: "AK",
7685
7757
  style: "ROA",
@@ -7694,7 +7766,6 @@ class Client extends openapi_client_1.default {
7694
7766
  return await this.cancelTaskWithOptions(taskId, headers, runtime);
7695
7767
  }
7696
7768
  async cancelTaskWithOptions(taskId, headers, runtime) {
7697
- taskId = openapi_util_1.default.getEncodeParam(taskId);
7698
7769
  let req = new $OpenApi.OpenApiRequest({
7699
7770
  headers: headers,
7700
7771
  });
@@ -7702,7 +7773,7 @@ class Client extends openapi_client_1.default {
7702
7773
  action: "CancelTask",
7703
7774
  version: "2015-12-15",
7704
7775
  protocol: "HTTPS",
7705
- pathname: `/tasks/${taskId}/cancel`,
7776
+ pathname: `/tasks/${openapi_util_1.default.getEncodeParam(taskId)}/cancel`,
7706
7777
  method: "POST",
7707
7778
  authType: "AK",
7708
7779
  style: "ROA",
@@ -7718,7 +7789,6 @@ class Client extends openapi_client_1.default {
7718
7789
  }
7719
7790
  async cancelWorkflowWithOptions(workflowName, request, headers, runtime) {
7720
7791
  tea_util_1.default.validateModel(request);
7721
- workflowName = openapi_util_1.default.getEncodeParam(workflowName);
7722
7792
  let body = {};
7723
7793
  if (!tea_util_1.default.isUnset(request.action)) {
7724
7794
  body["action"] = request.action;
@@ -7731,7 +7801,7 @@ class Client extends openapi_client_1.default {
7731
7801
  action: "CancelWorkflow",
7732
7802
  version: "2015-12-15",
7733
7803
  protocol: "HTTPS",
7734
- pathname: `/gs/workflow/${workflowName}`,
7804
+ pathname: `/gs/workflow/${openapi_util_1.default.getEncodeParam(workflowName)}`,
7735
7805
  method: "PUT",
7736
7806
  authType: "AK",
7737
7807
  style: "ROA",
@@ -7747,7 +7817,6 @@ class Client extends openapi_client_1.default {
7747
7817
  }
7748
7818
  async createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime) {
7749
7819
  tea_util_1.default.validateModel(request);
7750
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
7751
7820
  let body = {};
7752
7821
  if (!tea_util_1.default.isUnset(request.coolDownDuration)) {
7753
7822
  body["cool_down_duration"] = request.coolDownDuration;
@@ -7778,7 +7847,7 @@ class Client extends openapi_client_1.default {
7778
7847
  action: "CreateAutoscalingConfig",
7779
7848
  version: "2015-12-15",
7780
7849
  protocol: "HTTPS",
7781
- pathname: `/cluster/${ClusterId}/autoscale/config/`,
7850
+ pathname: `/cluster/${openapi_util_1.default.getEncodeParam(ClusterId)}/autoscale/config/`,
7782
7851
  method: "POST",
7783
7852
  authType: "AK",
7784
7853
  style: "ROA",
@@ -8080,7 +8149,6 @@ class Client extends openapi_client_1.default {
8080
8149
  }
8081
8150
  async createClusterNodePoolWithOptions(ClusterId, request, headers, runtime) {
8082
8151
  tea_util_1.default.validateModel(request);
8083
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8084
8152
  let body = {};
8085
8153
  if (!tea_util_1.default.isUnset($tea.toMap(request.autoScaling))) {
8086
8154
  body["auto_scaling"] = request.autoScaling;
@@ -8120,7 +8188,7 @@ class Client extends openapi_client_1.default {
8120
8188
  action: "CreateClusterNodePool",
8121
8189
  version: "2015-12-15",
8122
8190
  protocol: "HTTPS",
8123
- pathname: `/clusters/${ClusterId}/nodepools`,
8191
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools`,
8124
8192
  method: "POST",
8125
8193
  authType: "AK",
8126
8194
  style: "ROA",
@@ -8247,7 +8315,6 @@ class Client extends openapi_client_1.default {
8247
8315
  }
8248
8316
  async createTriggerWithOptions(clusterId, request, headers, runtime) {
8249
8317
  tea_util_1.default.validateModel(request);
8250
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
8251
8318
  let body = {};
8252
8319
  if (!tea_util_1.default.isUnset(request.action)) {
8253
8320
  body["action"] = request.action;
@@ -8269,7 +8336,7 @@ class Client extends openapi_client_1.default {
8269
8336
  action: "CreateTrigger",
8270
8337
  version: "2015-12-15",
8271
8338
  protocol: "HTTPS",
8272
- pathname: `/clusters/${clusterId}/triggers`,
8339
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/triggers`,
8273
8340
  method: "POST",
8274
8341
  authType: "AK",
8275
8342
  style: "ROA",
@@ -8329,7 +8396,6 @@ class Client extends openapi_client_1.default {
8329
8396
  }
8330
8397
  async deleteClusterWithOptions(ClusterId, tmpReq, headers, runtime) {
8331
8398
  tea_util_1.default.validateModel(tmpReq);
8332
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8333
8399
  let request = new DeleteClusterShrinkRequest({});
8334
8400
  openapi_util_1.default.convert(tmpReq, request);
8335
8401
  if (!tea_util_1.default.isUnset(tmpReq.retainResources)) {
@@ -8353,7 +8419,7 @@ class Client extends openapi_client_1.default {
8353
8419
  action: "DeleteCluster",
8354
8420
  version: "2015-12-15",
8355
8421
  protocol: "HTTPS",
8356
- pathname: `/clusters/${ClusterId}`,
8422
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
8357
8423
  method: "DELETE",
8358
8424
  authType: "AK",
8359
8425
  style: "ROA",
@@ -8369,8 +8435,6 @@ class Client extends openapi_client_1.default {
8369
8435
  }
8370
8436
  async deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
8371
8437
  tea_util_1.default.validateModel(request);
8372
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8373
- NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
8374
8438
  let query = {};
8375
8439
  if (!tea_util_1.default.isUnset(request.force)) {
8376
8440
  query["force"] = request.force;
@@ -8383,7 +8447,7 @@ class Client extends openapi_client_1.default {
8383
8447
  action: "DeleteClusterNodepool",
8384
8448
  version: "2015-12-15",
8385
8449
  protocol: "HTTPS",
8386
- pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
8450
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}`,
8387
8451
  method: "DELETE",
8388
8452
  authType: "AK",
8389
8453
  style: "ROA",
@@ -8399,7 +8463,6 @@ class Client extends openapi_client_1.default {
8399
8463
  }
8400
8464
  async deleteClusterNodesWithOptions(ClusterId, request, headers, runtime) {
8401
8465
  tea_util_1.default.validateModel(request);
8402
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8403
8466
  let body = {};
8404
8467
  if (!tea_util_1.default.isUnset(request.drainNode)) {
8405
8468
  body["drain_node"] = request.drainNode;
@@ -8418,7 +8481,7 @@ class Client extends openapi_client_1.default {
8418
8481
  action: "DeleteClusterNodes",
8419
8482
  version: "2015-12-15",
8420
8483
  protocol: "HTTPS",
8421
- pathname: `/clusters/${ClusterId}/nodes`,
8484
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodes`,
8422
8485
  method: "POST",
8423
8486
  authType: "AK",
8424
8487
  style: "ROA",
@@ -8434,7 +8497,6 @@ class Client extends openapi_client_1.default {
8434
8497
  }
8435
8498
  async deleteEdgeMachineWithOptions(edgeMachineid, request, headers, runtime) {
8436
8499
  tea_util_1.default.validateModel(request);
8437
- edgeMachineid = openapi_util_1.default.getEncodeParam(edgeMachineid);
8438
8500
  let query = {};
8439
8501
  if (!tea_util_1.default.isUnset(request.force)) {
8440
8502
  query["force"] = request.force;
@@ -8447,7 +8509,7 @@ class Client extends openapi_client_1.default {
8447
8509
  action: "DeleteEdgeMachine",
8448
8510
  version: "2015-12-15",
8449
8511
  protocol: "HTTPS",
8450
- pathname: `/edge_machines/[edge_machineid]`,
8512
+ pathname: `/edge_machines/%5Bedge_machineid%5D`,
8451
8513
  method: "DELETE",
8452
8514
  authType: "AK",
8453
8515
  style: "ROA",
@@ -8462,7 +8524,6 @@ class Client extends openapi_client_1.default {
8462
8524
  return await this.deleteKubernetesTriggerWithOptions(Id, headers, runtime);
8463
8525
  }
8464
8526
  async deleteKubernetesTriggerWithOptions(Id, headers, runtime) {
8465
- Id = openapi_util_1.default.getEncodeParam(Id);
8466
8527
  let req = new $OpenApi.OpenApiRequest({
8467
8528
  headers: headers,
8468
8529
  });
@@ -8470,7 +8531,7 @@ class Client extends openapi_client_1.default {
8470
8531
  action: "DeleteKubernetesTrigger",
8471
8532
  version: "2015-12-15",
8472
8533
  protocol: "HTTPS",
8473
- pathname: `/triggers/revoke/${Id}`,
8534
+ pathname: `/triggers/revoke/${openapi_util_1.default.getEncodeParam(Id)}`,
8474
8535
  method: "DELETE",
8475
8536
  authType: "AK",
8476
8537
  style: "ROA",
@@ -8486,8 +8547,6 @@ class Client extends openapi_client_1.default {
8486
8547
  }
8487
8548
  async deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
8488
8549
  tea_util_1.default.validateModel(request);
8489
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
8490
- policyName = openapi_util_1.default.getEncodeParam(policyName);
8491
8550
  let query = {};
8492
8551
  if (!tea_util_1.default.isUnset(request.instanceName)) {
8493
8552
  query["instance_name"] = request.instanceName;
@@ -8500,7 +8559,7 @@ class Client extends openapi_client_1.default {
8500
8559
  action: "DeletePolicyInstance",
8501
8560
  version: "2015-12-15",
8502
8561
  protocol: "HTTPS",
8503
- pathname: `/clusters/${clusterId}/policies/${policyName}`,
8562
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies/${openapi_util_1.default.getEncodeParam(policyName)}`,
8504
8563
  method: "DELETE",
8505
8564
  authType: "AK",
8506
8565
  style: "ROA",
@@ -8515,7 +8574,6 @@ class Client extends openapi_client_1.default {
8515
8574
  return await this.deleteTemplateWithOptions(TemplateId, headers, runtime);
8516
8575
  }
8517
8576
  async deleteTemplateWithOptions(TemplateId, headers, runtime) {
8518
- TemplateId = openapi_util_1.default.getEncodeParam(TemplateId);
8519
8577
  let req = new $OpenApi.OpenApiRequest({
8520
8578
  headers: headers,
8521
8579
  });
@@ -8523,7 +8581,7 @@ class Client extends openapi_client_1.default {
8523
8581
  action: "DeleteTemplate",
8524
8582
  version: "2015-12-15",
8525
8583
  protocol: "HTTPS",
8526
- pathname: `/templates/${TemplateId}`,
8584
+ pathname: `/templates/${openapi_util_1.default.getEncodeParam(TemplateId)}`,
8527
8585
  method: "DELETE",
8528
8586
  authType: "AK",
8529
8587
  style: "ROA",
@@ -8538,8 +8596,6 @@ class Client extends openapi_client_1.default {
8538
8596
  return await this.deleteTriggerWithOptions(clusterId, Id, headers, runtime);
8539
8597
  }
8540
8598
  async deleteTriggerWithOptions(clusterId, Id, headers, runtime) {
8541
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
8542
- Id = openapi_util_1.default.getEncodeParam(Id);
8543
8599
  let req = new $OpenApi.OpenApiRequest({
8544
8600
  headers: headers,
8545
8601
  });
@@ -8547,7 +8603,7 @@ class Client extends openapi_client_1.default {
8547
8603
  action: "DeleteTrigger",
8548
8604
  version: "2015-12-15",
8549
8605
  protocol: "HTTPS",
8550
- pathname: `/clusters/[cluster_id]/triggers/[Id]`,
8606
+ pathname: `/clusters/%5Bcluster_id%5D/triggers/%5BId%5D`,
8551
8607
  method: "DELETE",
8552
8608
  authType: "AK",
8553
8609
  style: "ROA",
@@ -8563,8 +8619,6 @@ class Client extends openapi_client_1.default {
8563
8619
  }
8564
8620
  async deployPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
8565
8621
  tea_util_1.default.validateModel(request);
8566
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
8567
- policyName = openapi_util_1.default.getEncodeParam(policyName);
8568
8622
  let body = {};
8569
8623
  if (!tea_util_1.default.isUnset(request.action)) {
8570
8624
  body["action"] = request.action;
@@ -8583,7 +8637,7 @@ class Client extends openapi_client_1.default {
8583
8637
  action: "DeployPolicyInstance",
8584
8638
  version: "2015-12-15",
8585
8639
  protocol: "HTTPS",
8586
- pathname: `/clusters/${clusterId}/policies/${policyName}`,
8640
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies/${openapi_util_1.default.getEncodeParam(policyName)}`,
8587
8641
  method: "POST",
8588
8642
  authType: "AK",
8589
8643
  style: "ROA",
@@ -8598,7 +8652,6 @@ class Client extends openapi_client_1.default {
8598
8652
  return await this.descirbeWorkflowWithOptions(workflowName, headers, runtime);
8599
8653
  }
8600
8654
  async descirbeWorkflowWithOptions(workflowName, headers, runtime) {
8601
- workflowName = openapi_util_1.default.getEncodeParam(workflowName);
8602
8655
  let req = new $OpenApi.OpenApiRequest({
8603
8656
  headers: headers,
8604
8657
  });
@@ -8606,7 +8659,7 @@ class Client extends openapi_client_1.default {
8606
8659
  action: "DescirbeWorkflow",
8607
8660
  version: "2015-12-15",
8608
8661
  protocol: "HTTPS",
8609
- pathname: `/gs/workflow/${workflowName}`,
8662
+ pathname: `/gs/workflow/${openapi_util_1.default.getEncodeParam(workflowName)}`,
8610
8663
  method: "GET",
8611
8664
  authType: "AK",
8612
8665
  style: "ROA",
@@ -8652,9 +8705,6 @@ class Client extends openapi_client_1.default {
8652
8705
  return await this.describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime);
8653
8706
  }
8654
8707
  async describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime) {
8655
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
8656
- componentId = openapi_util_1.default.getEncodeParam(componentId);
8657
- version = openapi_util_1.default.getEncodeParam(version);
8658
8708
  let req = new $OpenApi.OpenApiRequest({
8659
8709
  headers: headers,
8660
8710
  });
@@ -8662,7 +8712,7 @@ class Client extends openapi_client_1.default {
8662
8712
  action: "DescribeClusterAddonMetadata",
8663
8713
  version: "2015-12-15",
8664
8714
  protocol: "HTTPS",
8665
- pathname: `/clusters/${clusterId}/components/${componentId}/metadata`,
8715
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/components/${openapi_util_1.default.getEncodeParam(componentId)}/metadata`,
8666
8716
  method: "GET",
8667
8717
  authType: "AK",
8668
8718
  style: "ROA",
@@ -8677,8 +8727,6 @@ class Client extends openapi_client_1.default {
8677
8727
  return await this.describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime);
8678
8728
  }
8679
8729
  async describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime) {
8680
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8681
- ComponentId = openapi_util_1.default.getEncodeParam(ComponentId);
8682
8730
  let req = new $OpenApi.OpenApiRequest({
8683
8731
  headers: headers,
8684
8732
  });
@@ -8686,7 +8734,7 @@ class Client extends openapi_client_1.default {
8686
8734
  action: "DescribeClusterAddonUpgradeStatus",
8687
8735
  version: "2015-12-15",
8688
8736
  protocol: "HTTPS",
8689
- pathname: `/clusters/${ClusterId}/components/${ComponentId}/upgradestatus`,
8737
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/${openapi_util_1.default.getEncodeParam(ComponentId)}/upgradestatus`,
8690
8738
  method: "GET",
8691
8739
  authType: "AK",
8692
8740
  style: "ROA",
@@ -8702,7 +8750,6 @@ class Client extends openapi_client_1.default {
8702
8750
  }
8703
8751
  async describeClusterAddonsUpgradeStatusWithOptions(ClusterId, tmpReq, headers, runtime) {
8704
8752
  tea_util_1.default.validateModel(tmpReq);
8705
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8706
8753
  let request = new DescribeClusterAddonsUpgradeStatusShrinkRequest({});
8707
8754
  openapi_util_1.default.convert(tmpReq, request);
8708
8755
  if (!tea_util_1.default.isUnset(tmpReq.componentIds)) {
@@ -8720,7 +8767,7 @@ class Client extends openapi_client_1.default {
8720
8767
  action: "DescribeClusterAddonsUpgradeStatus",
8721
8768
  version: "2015-12-15",
8722
8769
  protocol: "HTTPS",
8723
- pathname: `/clusters/${ClusterId}/components/upgradestatus`,
8770
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/upgradestatus`,
8724
8771
  method: "GET",
8725
8772
  authType: "AK",
8726
8773
  style: "ROA",
@@ -8735,7 +8782,6 @@ class Client extends openapi_client_1.default {
8735
8782
  return await this.describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime);
8736
8783
  }
8737
8784
  async describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime) {
8738
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8739
8785
  let req = new $OpenApi.OpenApiRequest({
8740
8786
  headers: headers,
8741
8787
  });
@@ -8743,7 +8789,7 @@ class Client extends openapi_client_1.default {
8743
8789
  action: "DescribeClusterAddonsVersion",
8744
8790
  version: "2015-12-15",
8745
8791
  protocol: "HTTPS",
8746
- pathname: `/clusters/${ClusterId}/components/version`,
8792
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/version`,
8747
8793
  method: "GET",
8748
8794
  authType: "AK",
8749
8795
  style: "ROA",
@@ -8759,7 +8805,6 @@ class Client extends openapi_client_1.default {
8759
8805
  }
8760
8806
  async describeClusterAttachScriptsWithOptions(ClusterId, request, headers, runtime) {
8761
8807
  tea_util_1.default.validateModel(request);
8762
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8763
8808
  let body = {};
8764
8809
  if (!tea_util_1.default.isUnset(request.arch)) {
8765
8810
  body["arch"] = request.arch;
@@ -8787,7 +8832,7 @@ class Client extends openapi_client_1.default {
8787
8832
  action: "DescribeClusterAttachScripts",
8788
8833
  version: "2015-12-15",
8789
8834
  protocol: "HTTPS",
8790
- pathname: `/clusters/${ClusterId}/attachscript`,
8835
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/attachscript`,
8791
8836
  method: "POST",
8792
8837
  authType: "AK",
8793
8838
  style: "ROA",
@@ -8802,7 +8847,6 @@ class Client extends openapi_client_1.default {
8802
8847
  return await this.describeClusterDetailWithOptions(ClusterId, headers, runtime);
8803
8848
  }
8804
8849
  async describeClusterDetailWithOptions(ClusterId, headers, runtime) {
8805
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8806
8850
  let req = new $OpenApi.OpenApiRequest({
8807
8851
  headers: headers,
8808
8852
  });
@@ -8810,7 +8854,7 @@ class Client extends openapi_client_1.default {
8810
8854
  action: "DescribeClusterDetail",
8811
8855
  version: "2015-12-15",
8812
8856
  protocol: "HTTPS",
8813
- pathname: `/clusters/${ClusterId}`,
8857
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
8814
8858
  method: "GET",
8815
8859
  authType: "AK",
8816
8860
  style: "ROA",
@@ -8826,7 +8870,6 @@ class Client extends openapi_client_1.default {
8826
8870
  }
8827
8871
  async describeClusterEventsWithOptions(ClusterId, request, headers, runtime) {
8828
8872
  tea_util_1.default.validateModel(request);
8829
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8830
8873
  let query = {};
8831
8874
  if (!tea_util_1.default.isUnset(request.pageNumber)) {
8832
8875
  query["page_number"] = request.pageNumber;
@@ -8845,7 +8888,7 @@ class Client extends openapi_client_1.default {
8845
8888
  action: "DescribeClusterEvents",
8846
8889
  version: "2015-12-15",
8847
8890
  protocol: "HTTPS",
8848
- pathname: `/clusters/${ClusterId}/events`,
8891
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/events`,
8849
8892
  method: "GET",
8850
8893
  authType: "AK",
8851
8894
  style: "ROA",
@@ -8860,7 +8903,6 @@ class Client extends openapi_client_1.default {
8860
8903
  return await this.describeClusterLogsWithOptions(ClusterId, headers, runtime);
8861
8904
  }
8862
8905
  async describeClusterLogsWithOptions(ClusterId, headers, runtime) {
8863
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8864
8906
  let req = new $OpenApi.OpenApiRequest({
8865
8907
  headers: headers,
8866
8908
  });
@@ -8868,7 +8910,7 @@ class Client extends openapi_client_1.default {
8868
8910
  action: "DescribeClusterLogs",
8869
8911
  version: "2015-12-15",
8870
8912
  protocol: "HTTPS",
8871
- pathname: `/clusters/${ClusterId}/logs`,
8913
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/logs`,
8872
8914
  method: "GET",
8873
8915
  authType: "AK",
8874
8916
  style: "ROA",
@@ -8883,8 +8925,6 @@ class Client extends openapi_client_1.default {
8883
8925
  return await this.describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime);
8884
8926
  }
8885
8927
  async describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime) {
8886
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8887
- NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
8888
8928
  let req = new $OpenApi.OpenApiRequest({
8889
8929
  headers: headers,
8890
8930
  });
@@ -8892,7 +8932,7 @@ class Client extends openapi_client_1.default {
8892
8932
  action: "DescribeClusterNodePoolDetail",
8893
8933
  version: "2015-12-15",
8894
8934
  protocol: "HTTPS",
8895
- pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
8935
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}`,
8896
8936
  method: "GET",
8897
8937
  authType: "AK",
8898
8938
  style: "ROA",
@@ -8907,7 +8947,6 @@ class Client extends openapi_client_1.default {
8907
8947
  return await this.describeClusterNodePoolsWithOptions(ClusterId, headers, runtime);
8908
8948
  }
8909
8949
  async describeClusterNodePoolsWithOptions(ClusterId, headers, runtime) {
8910
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8911
8950
  let req = new $OpenApi.OpenApiRequest({
8912
8951
  headers: headers,
8913
8952
  });
@@ -8915,7 +8954,7 @@ class Client extends openapi_client_1.default {
8915
8954
  action: "DescribeClusterNodePools",
8916
8955
  version: "2015-12-15",
8917
8956
  protocol: "HTTPS",
8918
- pathname: `/clusters/${ClusterId}/nodepools`,
8957
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools`,
8919
8958
  method: "GET",
8920
8959
  authType: "AK",
8921
8960
  style: "ROA",
@@ -8931,7 +8970,6 @@ class Client extends openapi_client_1.default {
8931
8970
  }
8932
8971
  async describeClusterNodesWithOptions(ClusterId, request, headers, runtime) {
8933
8972
  tea_util_1.default.validateModel(request);
8934
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8935
8973
  let query = {};
8936
8974
  if (!tea_util_1.default.isUnset(request.instanceIds)) {
8937
8975
  query["instanceIds"] = request.instanceIds;
@@ -8956,7 +8994,7 @@ class Client extends openapi_client_1.default {
8956
8994
  action: "DescribeClusterNodes",
8957
8995
  version: "2015-12-15",
8958
8996
  protocol: "HTTPS",
8959
- pathname: `/clusters/${ClusterId}/nodes`,
8997
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodes`,
8960
8998
  method: "GET",
8961
8999
  authType: "AK",
8962
9000
  style: "ROA",
@@ -8971,7 +9009,6 @@ class Client extends openapi_client_1.default {
8971
9009
  return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
8972
9010
  }
8973
9011
  async describeClusterResourcesWithOptions(ClusterId, headers, runtime) {
8974
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8975
9012
  let req = new $OpenApi.OpenApiRequest({
8976
9013
  headers: headers,
8977
9014
  });
@@ -8979,7 +9016,7 @@ class Client extends openapi_client_1.default {
8979
9016
  action: "DescribeClusterResources",
8980
9017
  version: "2015-12-15",
8981
9018
  protocol: "HTTPS",
8982
- pathname: `/clusters/${ClusterId}/resources`,
9019
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/resources`,
8983
9020
  method: "GET",
8984
9021
  authType: "AK",
8985
9022
  style: "ROA",
@@ -8994,7 +9031,6 @@ class Client extends openapi_client_1.default {
8994
9031
  return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
8995
9032
  }
8996
9033
  async describeClusterTasksWithOptions(clusterId, headers, runtime) {
8997
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
8998
9034
  let req = new $OpenApi.OpenApiRequest({
8999
9035
  headers: headers,
9000
9036
  });
@@ -9002,7 +9038,7 @@ class Client extends openapi_client_1.default {
9002
9038
  action: "DescribeClusterTasks",
9003
9039
  version: "2015-12-15",
9004
9040
  protocol: "HTTPS",
9005
- pathname: `/clusters/${clusterId}/tasks`,
9041
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/tasks`,
9006
9042
  method: "GET",
9007
9043
  authType: "AK",
9008
9044
  style: "ROA",
@@ -9018,7 +9054,6 @@ class Client extends openapi_client_1.default {
9018
9054
  }
9019
9055
  async describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime) {
9020
9056
  tea_util_1.default.validateModel(request);
9021
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9022
9057
  let query = {};
9023
9058
  if (!tea_util_1.default.isUnset(request.privateIpAddress)) {
9024
9059
  query["PrivateIpAddress"] = request.privateIpAddress;
@@ -9034,7 +9069,7 @@ class Client extends openapi_client_1.default {
9034
9069
  action: "DescribeClusterUserKubeconfig",
9035
9070
  version: "2015-12-15",
9036
9071
  protocol: "HTTPS",
9037
- pathname: `/k8s/${ClusterId}/user_config`,
9072
+ pathname: `/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/user_config`,
9038
9073
  method: "GET",
9039
9074
  authType: "AK",
9040
9075
  style: "ROA",
@@ -9050,7 +9085,6 @@ class Client extends openapi_client_1.default {
9050
9085
  }
9051
9086
  async describeClusterV2UserKubeconfigWithOptions(ClusterId, request, headers, runtime) {
9052
9087
  tea_util_1.default.validateModel(request);
9053
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9054
9088
  let query = {};
9055
9089
  if (!tea_util_1.default.isUnset(request.privateIpAddress)) {
9056
9090
  query["PrivateIpAddress"] = request.privateIpAddress;
@@ -9063,7 +9097,7 @@ class Client extends openapi_client_1.default {
9063
9097
  action: "DescribeClusterV2UserKubeconfig",
9064
9098
  version: "2015-12-15",
9065
9099
  protocol: "HTTPS",
9066
- pathname: `/api/v2/k8s/${ClusterId}/user_config`,
9100
+ pathname: `/api/v2/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/user_config`,
9067
9101
  method: "GET",
9068
9102
  authType: "AK",
9069
9103
  style: "ROA",
@@ -9155,7 +9189,6 @@ class Client extends openapi_client_1.default {
9155
9189
  return await this.describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime);
9156
9190
  }
9157
9191
  async describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime) {
9158
- edgeMachineid = openapi_util_1.default.getEncodeParam(edgeMachineid);
9159
9192
  let req = new $OpenApi.OpenApiRequest({
9160
9193
  headers: headers,
9161
9194
  });
@@ -9163,7 +9196,7 @@ class Client extends openapi_client_1.default {
9163
9196
  action: "DescribeEdgeMachineActiveProcess",
9164
9197
  version: "2015-12-15",
9165
9198
  protocol: "HTTPS",
9166
- pathname: `/edge_machines/[edge_machineid]/activeprocess`,
9199
+ pathname: `/edge_machines/%5Bedge_machineid%5D/activeprocess`,
9167
9200
  method: "GET",
9168
9201
  authType: "AK",
9169
9202
  style: "ROA",
@@ -9200,7 +9233,6 @@ class Client extends openapi_client_1.default {
9200
9233
  return await this.describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime);
9201
9234
  }
9202
9235
  async describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime) {
9203
- edgeMachineid = openapi_util_1.default.getEncodeParam(edgeMachineid);
9204
9236
  let req = new $OpenApi.OpenApiRequest({
9205
9237
  headers: headers,
9206
9238
  });
@@ -9208,7 +9240,7 @@ class Client extends openapi_client_1.default {
9208
9240
  action: "DescribeEdgeMachineTunnelConfigDetail",
9209
9241
  version: "2015-12-15",
9210
9242
  protocol: "HTTPS",
9211
- pathname: `/edge_machines/[edge_machineid]/tunnelconfig`,
9243
+ pathname: `/edge_machines/%5Bedge_machineid%5D/tunnelconfig`,
9212
9244
  method: "POST",
9213
9245
  authType: "AK",
9214
9246
  style: "ROA",
@@ -9304,7 +9336,6 @@ class Client extends openapi_client_1.default {
9304
9336
  }
9305
9337
  async describeExternalAgentWithOptions(ClusterId, request, headers, runtime) {
9306
9338
  tea_util_1.default.validateModel(request);
9307
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9308
9339
  let query = {};
9309
9340
  if (!tea_util_1.default.isUnset(request.privateIpAddress)) {
9310
9341
  query["PrivateIpAddress"] = request.privateIpAddress;
@@ -9317,7 +9348,7 @@ class Client extends openapi_client_1.default {
9317
9348
  action: "DescribeExternalAgent",
9318
9349
  version: "2015-12-15",
9319
9350
  protocol: "HTTPS",
9320
- pathname: `/k8s/${ClusterId}/external/agent/deployment`,
9351
+ pathname: `/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/external/agent/deployment`,
9321
9352
  method: "GET",
9322
9353
  authType: "AK",
9323
9354
  style: "ROA",
@@ -9372,8 +9403,6 @@ class Client extends openapi_client_1.default {
9372
9403
  return await this.describeNodePoolVulsWithOptions(clusterId, nodepoolId, headers, runtime);
9373
9404
  }
9374
9405
  async describeNodePoolVulsWithOptions(clusterId, nodepoolId, headers, runtime) {
9375
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9376
- nodepoolId = openapi_util_1.default.getEncodeParam(nodepoolId);
9377
9406
  let req = new $OpenApi.OpenApiRequest({
9378
9407
  headers: headers,
9379
9408
  });
@@ -9381,7 +9410,7 @@ class Client extends openapi_client_1.default {
9381
9410
  action: "DescribeNodePoolVuls",
9382
9411
  version: "2015-12-15",
9383
9412
  protocol: "HTTPS",
9384
- pathname: `/clusters/${clusterId}/nodepools/${nodepoolId}/vuls`,
9413
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(nodepoolId)}/vuls`,
9385
9414
  method: "GET",
9386
9415
  authType: "AK",
9387
9416
  style: "ROA",
@@ -9418,7 +9447,6 @@ class Client extends openapi_client_1.default {
9418
9447
  return await this.describePolicyDetailsWithOptions(policyName, headers, runtime);
9419
9448
  }
9420
9449
  async describePolicyDetailsWithOptions(policyName, headers, runtime) {
9421
- policyName = openapi_util_1.default.getEncodeParam(policyName);
9422
9450
  let req = new $OpenApi.OpenApiRequest({
9423
9451
  headers: headers,
9424
9452
  });
@@ -9426,7 +9454,7 @@ class Client extends openapi_client_1.default {
9426
9454
  action: "DescribePolicyDetails",
9427
9455
  version: "2015-12-15",
9428
9456
  protocol: "HTTPS",
9429
- pathname: `/policies/${policyName}`,
9457
+ pathname: `/policies/${openapi_util_1.default.getEncodeParam(policyName)}`,
9430
9458
  method: "GET",
9431
9459
  authType: "AK",
9432
9460
  style: "ROA",
@@ -9441,7 +9469,6 @@ class Client extends openapi_client_1.default {
9441
9469
  return await this.describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime);
9442
9470
  }
9443
9471
  async describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime) {
9444
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9445
9472
  let req = new $OpenApi.OpenApiRequest({
9446
9473
  headers: headers,
9447
9474
  });
@@ -9449,7 +9476,7 @@ class Client extends openapi_client_1.default {
9449
9476
  action: "DescribePolicyGovernanceInCluster",
9450
9477
  version: "2015-12-15",
9451
9478
  protocol: "HTTPS",
9452
- pathname: `/clusters/${clusterId}/policygovernance`,
9479
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policygovernance`,
9453
9480
  method: "GET",
9454
9481
  authType: "AK",
9455
9482
  style: "ROA",
@@ -9465,7 +9492,6 @@ class Client extends openapi_client_1.default {
9465
9492
  }
9466
9493
  async describePolicyInstancesWithOptions(clusterId, request, headers, runtime) {
9467
9494
  tea_util_1.default.validateModel(request);
9468
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9469
9495
  let query = {};
9470
9496
  if (!tea_util_1.default.isUnset(request.instanceName)) {
9471
9497
  query["instance_name"] = request.instanceName;
@@ -9481,7 +9507,7 @@ class Client extends openapi_client_1.default {
9481
9507
  action: "DescribePolicyInstances",
9482
9508
  version: "2015-12-15",
9483
9509
  protocol: "HTTPS",
9484
- pathname: `/clusters/${clusterId}/policies`,
9510
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies`,
9485
9511
  method: "GET",
9486
9512
  authType: "AK",
9487
9513
  style: "ROA",
@@ -9496,7 +9522,6 @@ class Client extends openapi_client_1.default {
9496
9522
  return await this.describePolicyInstancesStatusWithOptions(clusterId, headers, runtime);
9497
9523
  }
9498
9524
  async describePolicyInstancesStatusWithOptions(clusterId, headers, runtime) {
9499
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9500
9525
  let req = new $OpenApi.OpenApiRequest({
9501
9526
  headers: headers,
9502
9527
  });
@@ -9504,7 +9529,7 @@ class Client extends openapi_client_1.default {
9504
9529
  action: "DescribePolicyInstancesStatus",
9505
9530
  version: "2015-12-15",
9506
9531
  protocol: "HTTPS",
9507
- pathname: `/clusters/${clusterId}/policies/status`,
9532
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies/status`,
9508
9533
  method: "GET",
9509
9534
  authType: "AK",
9510
9535
  style: "ROA",
@@ -9519,7 +9544,6 @@ class Client extends openapi_client_1.default {
9519
9544
  return await this.describeTaskInfoWithOptions(taskId, headers, runtime);
9520
9545
  }
9521
9546
  async describeTaskInfoWithOptions(taskId, headers, runtime) {
9522
- taskId = openapi_util_1.default.getEncodeParam(taskId);
9523
9547
  let req = new $OpenApi.OpenApiRequest({
9524
9548
  headers: headers,
9525
9549
  });
@@ -9527,7 +9551,7 @@ class Client extends openapi_client_1.default {
9527
9551
  action: "DescribeTaskInfo",
9528
9552
  version: "2015-12-15",
9529
9553
  protocol: "HTTPS",
9530
- pathname: `/tasks/${taskId}`,
9554
+ pathname: `/tasks/${openapi_util_1.default.getEncodeParam(taskId)}`,
9531
9555
  method: "GET",
9532
9556
  authType: "AK",
9533
9557
  style: "ROA",
@@ -9543,7 +9567,6 @@ class Client extends openapi_client_1.default {
9543
9567
  }
9544
9568
  async describeTemplateAttributeWithOptions(TemplateId, request, headers, runtime) {
9545
9569
  tea_util_1.default.validateModel(request);
9546
- TemplateId = openapi_util_1.default.getEncodeParam(TemplateId);
9547
9570
  let query = {};
9548
9571
  if (!tea_util_1.default.isUnset(request.templateType)) {
9549
9572
  query["template_type"] = request.templateType;
@@ -9556,7 +9579,7 @@ class Client extends openapi_client_1.default {
9556
9579
  action: "DescribeTemplateAttribute",
9557
9580
  version: "2015-12-15",
9558
9581
  protocol: "HTTPS",
9559
- pathname: `/templates/${TemplateId}`,
9582
+ pathname: `/templates/${openapi_util_1.default.getEncodeParam(TemplateId)}`,
9560
9583
  method: "GET",
9561
9584
  authType: "AK",
9562
9585
  style: "ROA",
@@ -9606,7 +9629,6 @@ class Client extends openapi_client_1.default {
9606
9629
  }
9607
9630
  async describeTriggerWithOptions(clusterId, request, headers, runtime) {
9608
9631
  tea_util_1.default.validateModel(request);
9609
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9610
9632
  let query = {};
9611
9633
  if (!tea_util_1.default.isUnset(request.name)) {
9612
9634
  query["Name"] = request.name;
@@ -9628,7 +9650,7 @@ class Client extends openapi_client_1.default {
9628
9650
  action: "DescribeTrigger",
9629
9651
  version: "2015-12-15",
9630
9652
  protocol: "HTTPS",
9631
- pathname: `/clusters/[cluster_id]/triggers`,
9653
+ pathname: `/clusters/%5Bcluster_id%5D/triggers`,
9632
9654
  method: "GET",
9633
9655
  authType: "AK",
9634
9656
  style: "ROA",
@@ -9643,7 +9665,6 @@ class Client extends openapi_client_1.default {
9643
9665
  return await this.describeUserPermissionWithOptions(uid, headers, runtime);
9644
9666
  }
9645
9667
  async describeUserPermissionWithOptions(uid, headers, runtime) {
9646
- uid = openapi_util_1.default.getEncodeParam(uid);
9647
9668
  let req = new $OpenApi.OpenApiRequest({
9648
9669
  headers: headers,
9649
9670
  });
@@ -9651,7 +9672,7 @@ class Client extends openapi_client_1.default {
9651
9672
  action: "DescribeUserPermission",
9652
9673
  version: "2015-12-15",
9653
9674
  protocol: "HTTPS",
9654
- pathname: `/permissions/users/${uid}`,
9675
+ pathname: `/permissions/users/${openapi_util_1.default.getEncodeParam(uid)}`,
9655
9676
  method: "GET",
9656
9677
  authType: "AK",
9657
9678
  style: "ROA",
@@ -9711,8 +9732,6 @@ class Client extends openapi_client_1.default {
9711
9732
  }
9712
9733
  async edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime) {
9713
9734
  tea_util_1.default.validateModel(request);
9714
- clusterid = openapi_util_1.default.getEncodeParam(clusterid);
9715
- edgeMachineid = openapi_util_1.default.getEncodeParam(edgeMachineid);
9716
9735
  let body = {};
9717
9736
  if (!tea_util_1.default.isUnset(request.expired)) {
9718
9737
  body["expired"] = request.expired;
@@ -9731,7 +9750,7 @@ class Client extends openapi_client_1.default {
9731
9750
  action: "EdgeClusterAddEdgeMachine",
9732
9751
  version: "2015-12-15",
9733
9752
  protocol: "HTTPS",
9734
- pathname: `/clusters/[clusterid]/attachedgemachine/[edge_machineid]`,
9753
+ pathname: `/clusters/%5Bclusterid%5D/attachedgemachine/%5Bedge_machineid%5D`,
9735
9754
  method: "POST",
9736
9755
  authType: "AK",
9737
9756
  style: "ROA",
@@ -9747,8 +9766,6 @@ class Client extends openapi_client_1.default {
9747
9766
  }
9748
9767
  async fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime) {
9749
9768
  tea_util_1.default.validateModel(request);
9750
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9751
- nodepoolId = openapi_util_1.default.getEncodeParam(nodepoolId);
9752
9769
  let body = {};
9753
9770
  if (!tea_util_1.default.isUnset(request.nodes)) {
9754
9771
  body["nodes"] = request.nodes;
@@ -9767,7 +9784,7 @@ class Client extends openapi_client_1.default {
9767
9784
  action: "FixNodePoolVuls",
9768
9785
  version: "2015-12-15",
9769
9786
  protocol: "HTTPS",
9770
- pathname: `/clusters/${clusterId}/nodepools/${nodepoolId}/vuls/fix`,
9787
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(nodepoolId)}/vuls/fix`,
9771
9788
  method: "POST",
9772
9789
  authType: "AK",
9773
9790
  style: "ROA",
@@ -9783,7 +9800,6 @@ class Client extends openapi_client_1.default {
9783
9800
  }
9784
9801
  async getKubernetesTriggerWithOptions(ClusterId, request, headers, runtime) {
9785
9802
  tea_util_1.default.validateModel(request);
9786
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9787
9803
  let query = {};
9788
9804
  if (!tea_util_1.default.isUnset(request.name)) {
9789
9805
  query["Name"] = request.name;
@@ -9805,7 +9821,7 @@ class Client extends openapi_client_1.default {
9805
9821
  action: "GetKubernetesTrigger",
9806
9822
  version: "2015-12-15",
9807
9823
  protocol: "HTTPS",
9808
- pathname: `/triggers/${ClusterId}`,
9824
+ pathname: `/triggers/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
9809
9825
  method: "GET",
9810
9826
  authType: "AK",
9811
9827
  style: "ROA",
@@ -9820,7 +9836,6 @@ class Client extends openapi_client_1.default {
9820
9836
  return await this.getUpgradeStatusWithOptions(ClusterId, headers, runtime);
9821
9837
  }
9822
9838
  async getUpgradeStatusWithOptions(ClusterId, headers, runtime) {
9823
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9824
9839
  let req = new $OpenApi.OpenApiRequest({
9825
9840
  headers: headers,
9826
9841
  });
@@ -9828,7 +9843,7 @@ class Client extends openapi_client_1.default {
9828
9843
  action: "GetUpgradeStatus",
9829
9844
  version: "2015-12-15",
9830
9845
  protocol: "HTTPS",
9831
- pathname: `/api/v2/clusters/${ClusterId}/upgrade/status`,
9846
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade/status`,
9832
9847
  method: "GET",
9833
9848
  authType: "AK",
9834
9849
  style: "ROA",
@@ -9844,7 +9859,6 @@ class Client extends openapi_client_1.default {
9844
9859
  }
9845
9860
  async grantPermissionsWithOptions(uid, request, headers, runtime) {
9846
9861
  tea_util_1.default.validateModel(request);
9847
- uid = openapi_util_1.default.getEncodeParam(uid);
9848
9862
  let req = new $OpenApi.OpenApiRequest({
9849
9863
  headers: headers,
9850
9864
  body: tea_util_1.default.toArray(request.body),
@@ -9853,7 +9867,7 @@ class Client extends openapi_client_1.default {
9853
9867
  action: "GrantPermissions",
9854
9868
  version: "2015-12-15",
9855
9869
  protocol: "HTTPS",
9856
- pathname: `/permissions/users/${uid}`,
9870
+ pathname: `/permissions/users/${openapi_util_1.default.getEncodeParam(uid)}`,
9857
9871
  method: "POST",
9858
9872
  authType: "AK",
9859
9873
  style: "ROA",
@@ -9869,7 +9883,6 @@ class Client extends openapi_client_1.default {
9869
9883
  }
9870
9884
  async installClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
9871
9885
  tea_util_1.default.validateModel(request);
9872
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9873
9886
  let req = new $OpenApi.OpenApiRequest({
9874
9887
  headers: headers,
9875
9888
  body: tea_util_1.default.toArray(request.body),
@@ -9878,7 +9891,7 @@ class Client extends openapi_client_1.default {
9878
9891
  action: "InstallClusterAddons",
9879
9892
  version: "2015-12-15",
9880
9893
  protocol: "HTTPS",
9881
- pathname: `/clusters/${ClusterId}/components/install`,
9894
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/install`,
9882
9895
  method: "POST",
9883
9896
  authType: "AK",
9884
9897
  style: "ROA",
@@ -9942,7 +9955,6 @@ class Client extends openapi_client_1.default {
9942
9955
  }
9943
9956
  async migrateClusterWithOptions(clusterId, request, headers, runtime) {
9944
9957
  tea_util_1.default.validateModel(request);
9945
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9946
9958
  let body = {};
9947
9959
  if (!tea_util_1.default.isUnset(request.ossBucketEndpoint)) {
9948
9960
  body["oss_bucket_endpoint"] = request.ossBucketEndpoint;
@@ -9958,7 +9970,7 @@ class Client extends openapi_client_1.default {
9958
9970
  action: "MigrateCluster",
9959
9971
  version: "2015-12-15",
9960
9972
  protocol: "HTTPS",
9961
- pathname: `/clusters/${clusterId}/migrate`,
9973
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/migrate`,
9962
9974
  method: "POST",
9963
9975
  authType: "AK",
9964
9976
  style: "ROA",
@@ -9974,7 +9986,6 @@ class Client extends openapi_client_1.default {
9974
9986
  }
9975
9987
  async modifyClusterWithOptions(ClusterId, request, headers, runtime) {
9976
9988
  tea_util_1.default.validateModel(request);
9977
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9978
9989
  let body = {};
9979
9990
  if (!tea_util_1.default.isUnset(request.apiServerEip)) {
9980
9991
  body["api_server_eip"] = request.apiServerEip;
@@ -10011,7 +10022,7 @@ class Client extends openapi_client_1.default {
10011
10022
  action: "ModifyCluster",
10012
10023
  version: "2015-12-15",
10013
10024
  protocol: "HTTPS",
10014
- pathname: `/api/v2/clusters/${ClusterId}`,
10025
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
10015
10026
  method: "PUT",
10016
10027
  authType: "AK",
10017
10028
  style: "ROA",
@@ -10027,8 +10038,6 @@ class Client extends openapi_client_1.default {
10027
10038
  }
10028
10039
  async modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime) {
10029
10040
  tea_util_1.default.validateModel(request);
10030
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
10031
- componentId = openapi_util_1.default.getEncodeParam(componentId);
10032
10041
  let body = {};
10033
10042
  if (!tea_util_1.default.isUnset(request.config)) {
10034
10043
  body["config"] = request.config;
@@ -10041,7 +10050,7 @@ class Client extends openapi_client_1.default {
10041
10050
  action: "ModifyClusterAddon",
10042
10051
  version: "2015-12-15",
10043
10052
  protocol: "HTTPS",
10044
- pathname: `/clusters/${clusterId}/components/${componentId}/config`,
10053
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/components/${openapi_util_1.default.getEncodeParam(componentId)}/config`,
10045
10054
  method: "POST",
10046
10055
  authType: "AK",
10047
10056
  style: "ROA",
@@ -10057,7 +10066,6 @@ class Client extends openapi_client_1.default {
10057
10066
  }
10058
10067
  async modifyClusterConfigurationWithOptions(ClusterId, request, headers, runtime) {
10059
10068
  tea_util_1.default.validateModel(request);
10060
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10061
10069
  let body = {};
10062
10070
  if (!tea_util_1.default.isUnset(request.customizeConfig)) {
10063
10071
  body["customize_config"] = request.customizeConfig;
@@ -10070,7 +10078,7 @@ class Client extends openapi_client_1.default {
10070
10078
  action: "ModifyClusterConfiguration",
10071
10079
  version: "2015-12-15",
10072
10080
  protocol: "HTTPS",
10073
- pathname: `/clusters/${ClusterId}/configuration`,
10081
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/configuration`,
10074
10082
  method: "PUT",
10075
10083
  authType: "AK",
10076
10084
  style: "ROA",
@@ -10086,8 +10094,6 @@ class Client extends openapi_client_1.default {
10086
10094
  }
10087
10095
  async modifyClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
10088
10096
  tea_util_1.default.validateModel(request);
10089
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10090
- NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
10091
10097
  let body = {};
10092
10098
  if (!tea_util_1.default.isUnset($tea.toMap(request.autoScaling))) {
10093
10099
  body["auto_scaling"] = request.autoScaling;
@@ -10118,7 +10124,7 @@ class Client extends openapi_client_1.default {
10118
10124
  action: "ModifyClusterNodePool",
10119
10125
  version: "2015-12-15",
10120
10126
  protocol: "HTTPS",
10121
- pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
10127
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}`,
10122
10128
  method: "PUT",
10123
10129
  authType: "AK",
10124
10130
  style: "ROA",
@@ -10134,7 +10140,6 @@ class Client extends openapi_client_1.default {
10134
10140
  }
10135
10141
  async modifyClusterTagsWithOptions(ClusterId, request, headers, runtime) {
10136
10142
  tea_util_1.default.validateModel(request);
10137
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10138
10143
  let req = new $OpenApi.OpenApiRequest({
10139
10144
  headers: headers,
10140
10145
  body: tea_util_1.default.toArray(request.body),
@@ -10143,7 +10148,7 @@ class Client extends openapi_client_1.default {
10143
10148
  action: "ModifyClusterTags",
10144
10149
  version: "2015-12-15",
10145
10150
  protocol: "HTTPS",
10146
- pathname: `/clusters/${ClusterId}/tags`,
10151
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/tags`,
10147
10152
  method: "POST",
10148
10153
  authType: "AK",
10149
10154
  style: "ROA",
@@ -10159,8 +10164,6 @@ class Client extends openapi_client_1.default {
10159
10164
  }
10160
10165
  async modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
10161
10166
  tea_util_1.default.validateModel(request);
10162
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10163
- NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
10164
10167
  let body = {};
10165
10168
  if (!tea_util_1.default.isUnset($tea.toMap(request.kubeletConfig))) {
10166
10169
  body["kubelet_config"] = request.kubeletConfig;
@@ -10176,7 +10179,7 @@ class Client extends openapi_client_1.default {
10176
10179
  action: "ModifyNodePoolNodeConfig",
10177
10180
  version: "2015-12-15",
10178
10181
  protocol: "HTTPS",
10179
- pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}/node_config`,
10182
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}/node_config`,
10180
10183
  method: "PUT",
10181
10184
  authType: "AK",
10182
10185
  style: "ROA",
@@ -10192,8 +10195,6 @@ class Client extends openapi_client_1.default {
10192
10195
  }
10193
10196
  async modifyPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
10194
10197
  tea_util_1.default.validateModel(request);
10195
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
10196
- policyName = openapi_util_1.default.getEncodeParam(policyName);
10197
10198
  let body = {};
10198
10199
  if (!tea_util_1.default.isUnset(request.action)) {
10199
10200
  body["action"] = request.action;
@@ -10215,7 +10216,7 @@ class Client extends openapi_client_1.default {
10215
10216
  action: "ModifyPolicyInstance",
10216
10217
  version: "2015-12-15",
10217
10218
  protocol: "HTTPS",
10218
- pathname: `/clusters/${clusterId}/policies/${policyName}`,
10219
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies/${openapi_util_1.default.getEncodeParam(policyName)}`,
10219
10220
  method: "PUT",
10220
10221
  authType: "AK",
10221
10222
  style: "ROA",
@@ -10258,7 +10259,6 @@ class Client extends openapi_client_1.default {
10258
10259
  return await this.pauseClusterUpgradeWithOptions(ClusterId, headers, runtime);
10259
10260
  }
10260
10261
  async pauseClusterUpgradeWithOptions(ClusterId, headers, runtime) {
10261
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10262
10262
  let req = new $OpenApi.OpenApiRequest({
10263
10263
  headers: headers,
10264
10264
  });
@@ -10266,7 +10266,7 @@ class Client extends openapi_client_1.default {
10266
10266
  action: "PauseClusterUpgrade",
10267
10267
  version: "2015-12-15",
10268
10268
  protocol: "HTTPS",
10269
- pathname: `/api/v2/clusters/${ClusterId}/upgrade/pause`,
10269
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade/pause`,
10270
10270
  method: "POST",
10271
10271
  authType: "AK",
10272
10272
  style: "ROA",
@@ -10281,8 +10281,6 @@ class Client extends openapi_client_1.default {
10281
10281
  return await this.pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
10282
10282
  }
10283
10283
  async pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime) {
10284
- clusterid = openapi_util_1.default.getEncodeParam(clusterid);
10285
- componentid = openapi_util_1.default.getEncodeParam(componentid);
10286
10284
  let req = new $OpenApi.OpenApiRequest({
10287
10285
  headers: headers,
10288
10286
  });
@@ -10290,7 +10288,7 @@ class Client extends openapi_client_1.default {
10290
10288
  action: "PauseComponentUpgrade",
10291
10289
  version: "2015-12-15",
10292
10290
  protocol: "HTTPS",
10293
- pathname: `/clusters/${clusterid}/components/${componentid}/pause`,
10291
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterid)}/components/${openapi_util_1.default.getEncodeParam(componentid)}/pause`,
10294
10292
  method: "POST",
10295
10293
  authType: "AK",
10296
10294
  style: "ROA",
@@ -10305,7 +10303,6 @@ class Client extends openapi_client_1.default {
10305
10303
  return await this.pauseTaskWithOptions(taskId, headers, runtime);
10306
10304
  }
10307
10305
  async pauseTaskWithOptions(taskId, headers, runtime) {
10308
- taskId = openapi_util_1.default.getEncodeParam(taskId);
10309
10306
  let req = new $OpenApi.OpenApiRequest({
10310
10307
  headers: headers,
10311
10308
  });
@@ -10313,7 +10310,7 @@ class Client extends openapi_client_1.default {
10313
10310
  action: "PauseTask",
10314
10311
  version: "2015-12-15",
10315
10312
  protocol: "HTTPS",
10316
- pathname: `/tasks/${taskId}/pause`,
10313
+ pathname: `/tasks/${openapi_util_1.default.getEncodeParam(taskId)}/pause`,
10317
10314
  method: "POST",
10318
10315
  authType: "AK",
10319
10316
  style: "ROA",
@@ -10329,7 +10326,6 @@ class Client extends openapi_client_1.default {
10329
10326
  }
10330
10327
  async removeClusterNodesWithOptions(ClusterId, request, headers, runtime) {
10331
10328
  tea_util_1.default.validateModel(request);
10332
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10333
10329
  let body = {};
10334
10330
  if (!tea_util_1.default.isUnset(request.drainNode)) {
10335
10331
  body["drain_node"] = request.drainNode;
@@ -10348,7 +10344,7 @@ class Client extends openapi_client_1.default {
10348
10344
  action: "RemoveClusterNodes",
10349
10345
  version: "2015-12-15",
10350
10346
  protocol: "HTTPS",
10351
- pathname: `/api/v2/clusters/${ClusterId}/nodes/remove`,
10347
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodes/remove`,
10352
10348
  method: "POST",
10353
10349
  authType: "AK",
10354
10350
  style: "ROA",
@@ -10357,13 +10353,51 @@ class Client extends openapi_client_1.default {
10357
10353
  });
10358
10354
  return $tea.cast(await this.callApi(params, req, runtime), new RemoveClusterNodesResponse({}));
10359
10355
  }
10356
+ async removeNodePoolNodes(ClusterId, NodepoolId, request) {
10357
+ let runtime = new $Util.RuntimeOptions({});
10358
+ let headers = {};
10359
+ return await this.removeNodePoolNodesWithOptions(ClusterId, NodepoolId, request, headers, runtime);
10360
+ }
10361
+ async removeNodePoolNodesWithOptions(ClusterId, NodepoolId, tmpReq, headers, runtime) {
10362
+ tea_util_1.default.validateModel(tmpReq);
10363
+ let request = new RemoveNodePoolNodesShrinkRequest({});
10364
+ openapi_util_1.default.convert(tmpReq, request);
10365
+ if (!tea_util_1.default.isUnset(tmpReq.nodes)) {
10366
+ request.nodesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.nodes, "nodes", "json");
10367
+ }
10368
+ let query = {};
10369
+ if (!tea_util_1.default.isUnset(request.drainNode)) {
10370
+ query["drain_node"] = request.drainNode;
10371
+ }
10372
+ if (!tea_util_1.default.isUnset(request.nodesShrink)) {
10373
+ query["nodes"] = request.nodesShrink;
10374
+ }
10375
+ if (!tea_util_1.default.isUnset(request.releaseNode)) {
10376
+ query["release_node"] = request.releaseNode;
10377
+ }
10378
+ let req = new $OpenApi.OpenApiRequest({
10379
+ headers: headers,
10380
+ query: openapi_util_1.default.query(query),
10381
+ });
10382
+ let params = new $OpenApi.Params({
10383
+ action: "RemoveNodePoolNodes",
10384
+ version: "2015-12-15",
10385
+ protocol: "HTTPS",
10386
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}/nodes`,
10387
+ method: "DELETE",
10388
+ authType: "AK",
10389
+ style: "ROA",
10390
+ reqBodyType: "json",
10391
+ bodyType: "json",
10392
+ });
10393
+ return $tea.cast(await this.callApi(params, req, runtime), new RemoveNodePoolNodesResponse({}));
10394
+ }
10360
10395
  async removeWorkflow(workflowName) {
10361
10396
  let runtime = new $Util.RuntimeOptions({});
10362
10397
  let headers = {};
10363
10398
  return await this.removeWorkflowWithOptions(workflowName, headers, runtime);
10364
10399
  }
10365
10400
  async removeWorkflowWithOptions(workflowName, headers, runtime) {
10366
- workflowName = openapi_util_1.default.getEncodeParam(workflowName);
10367
10401
  let req = new $OpenApi.OpenApiRequest({
10368
10402
  headers: headers,
10369
10403
  });
@@ -10371,7 +10405,7 @@ class Client extends openapi_client_1.default {
10371
10405
  action: "RemoveWorkflow",
10372
10406
  version: "2015-12-15",
10373
10407
  protocol: "HTTPS",
10374
- pathname: `/gs/workflow/${workflowName}`,
10408
+ pathname: `/gs/workflow/${openapi_util_1.default.getEncodeParam(workflowName)}`,
10375
10409
  method: "DELETE",
10376
10410
  authType: "AK",
10377
10411
  style: "ROA",
@@ -10387,8 +10421,6 @@ class Client extends openapi_client_1.default {
10387
10421
  }
10388
10422
  async repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime) {
10389
10423
  tea_util_1.default.validateModel(request);
10390
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
10391
- nodepoolId = openapi_util_1.default.getEncodeParam(nodepoolId);
10392
10424
  let body = {};
10393
10425
  if (!tea_util_1.default.isUnset(request.nodes)) {
10394
10426
  body["nodes"] = request.nodes;
@@ -10401,7 +10433,7 @@ class Client extends openapi_client_1.default {
10401
10433
  action: "RepairClusterNodePool",
10402
10434
  version: "2015-12-15",
10403
10435
  protocol: "HTTPS",
10404
- pathname: `/clusters/${clusterId}/nodepools/${nodepoolId}/repair`,
10436
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(nodepoolId)}/repair`,
10405
10437
  method: "POST",
10406
10438
  authType: "AK",
10407
10439
  style: "ROA",
@@ -10416,8 +10448,6 @@ class Client extends openapi_client_1.default {
10416
10448
  return await this.resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
10417
10449
  }
10418
10450
  async resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime) {
10419
- clusterid = openapi_util_1.default.getEncodeParam(clusterid);
10420
- componentid = openapi_util_1.default.getEncodeParam(componentid);
10421
10451
  let req = new $OpenApi.OpenApiRequest({
10422
10452
  headers: headers,
10423
10453
  });
@@ -10425,7 +10455,7 @@ class Client extends openapi_client_1.default {
10425
10455
  action: "ResumeComponentUpgrade",
10426
10456
  version: "2015-12-15",
10427
10457
  protocol: "HTTPS",
10428
- pathname: `/clusters/${clusterid}/components/${componentid}/resume`,
10458
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterid)}/components/${openapi_util_1.default.getEncodeParam(componentid)}/resume`,
10429
10459
  method: "POST",
10430
10460
  authType: "AK",
10431
10461
  style: "ROA",
@@ -10440,7 +10470,6 @@ class Client extends openapi_client_1.default {
10440
10470
  return await this.resumeTaskWithOptions(taskId, headers, runtime);
10441
10471
  }
10442
10472
  async resumeTaskWithOptions(taskId, headers, runtime) {
10443
- taskId = openapi_util_1.default.getEncodeParam(taskId);
10444
10473
  let req = new $OpenApi.OpenApiRequest({
10445
10474
  headers: headers,
10446
10475
  });
@@ -10448,7 +10477,7 @@ class Client extends openapi_client_1.default {
10448
10477
  action: "ResumeTask",
10449
10478
  version: "2015-12-15",
10450
10479
  protocol: "HTTPS",
10451
- pathname: `/tasks/${taskId}/resume`,
10480
+ pathname: `/tasks/${openapi_util_1.default.getEncodeParam(taskId)}/resume`,
10452
10481
  method: "POST",
10453
10482
  authType: "AK",
10454
10483
  style: "ROA",
@@ -10463,7 +10492,6 @@ class Client extends openapi_client_1.default {
10463
10492
  return await this.resumeUpgradeClusterWithOptions(ClusterId, headers, runtime);
10464
10493
  }
10465
10494
  async resumeUpgradeClusterWithOptions(ClusterId, headers, runtime) {
10466
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10467
10495
  let req = new $OpenApi.OpenApiRequest({
10468
10496
  headers: headers,
10469
10497
  });
@@ -10471,7 +10499,7 @@ class Client extends openapi_client_1.default {
10471
10499
  action: "ResumeUpgradeCluster",
10472
10500
  version: "2015-12-15",
10473
10501
  protocol: "HTTPS",
10474
- pathname: `/api/v2/clusters/${ClusterId}/upgrade/resume`,
10502
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade/resume`,
10475
10503
  method: "POST",
10476
10504
  authType: "AK",
10477
10505
  style: "ROA",
@@ -10487,7 +10515,6 @@ class Client extends openapi_client_1.default {
10487
10515
  }
10488
10516
  async scaleClusterWithOptions(ClusterId, request, headers, runtime) {
10489
10517
  tea_util_1.default.validateModel(request);
10490
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10491
10518
  let body = {};
10492
10519
  if (!tea_util_1.default.isUnset(request.cloudMonitorFlags)) {
10493
10520
  body["cloud_monitor_flags"] = request.cloudMonitorFlags;
@@ -10554,7 +10581,7 @@ class Client extends openapi_client_1.default {
10554
10581
  action: "ScaleCluster",
10555
10582
  version: "2015-12-15",
10556
10583
  protocol: "HTTPS",
10557
- pathname: `/clusters/${ClusterId}`,
10584
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
10558
10585
  method: "PUT",
10559
10586
  authType: "AK",
10560
10587
  style: "ROA",
@@ -10570,8 +10597,6 @@ class Client extends openapi_client_1.default {
10570
10597
  }
10571
10598
  async scaleClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
10572
10599
  tea_util_1.default.validateModel(request);
10573
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10574
- NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
10575
10600
  let body = {};
10576
10601
  if (!tea_util_1.default.isUnset(request.count)) {
10577
10602
  body["count"] = request.count;
@@ -10584,7 +10609,7 @@ class Client extends openapi_client_1.default {
10584
10609
  action: "ScaleClusterNodePool",
10585
10610
  version: "2015-12-15",
10586
10611
  protocol: "HTTPS",
10587
- pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
10612
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}`,
10588
10613
  method: "POST",
10589
10614
  authType: "AK",
10590
10615
  style: "ROA",
@@ -10600,7 +10625,6 @@ class Client extends openapi_client_1.default {
10600
10625
  }
10601
10626
  async scaleOutClusterWithOptions(ClusterId, request, headers, runtime) {
10602
10627
  tea_util_1.default.validateModel(request);
10603
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10604
10628
  let body = {};
10605
10629
  if (!tea_util_1.default.isUnset(request.cloudMonitorFlags)) {
10606
10630
  body["cloud_monitor_flags"] = request.cloudMonitorFlags;
@@ -10673,7 +10697,7 @@ class Client extends openapi_client_1.default {
10673
10697
  action: "ScaleOutCluster",
10674
10698
  version: "2015-12-15",
10675
10699
  protocol: "HTTPS",
10676
- pathname: `/api/v2/clusters/${ClusterId}`,
10700
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
10677
10701
  method: "POST",
10678
10702
  authType: "AK",
10679
10703
  style: "ROA",
@@ -10808,7 +10832,6 @@ class Client extends openapi_client_1.default {
10808
10832
  }
10809
10833
  async unInstallClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
10810
10834
  tea_util_1.default.validateModel(request);
10811
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10812
10835
  let req = new $OpenApi.OpenApiRequest({
10813
10836
  headers: headers,
10814
10837
  body: tea_util_1.default.toArray(request.addons),
@@ -10817,7 +10840,7 @@ class Client extends openapi_client_1.default {
10817
10840
  action: "UnInstallClusterAddons",
10818
10841
  version: "2015-12-15",
10819
10842
  protocol: "HTTPS",
10820
- pathname: `/clusters/${ClusterId}/components/uninstall`,
10843
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/uninstall`,
10821
10844
  method: "POST",
10822
10845
  authType: "AK",
10823
10846
  style: "ROA",
@@ -10872,7 +10895,6 @@ class Client extends openapi_client_1.default {
10872
10895
  return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
10873
10896
  }
10874
10897
  async updateContactGroupForAlertWithOptions(ClusterId, headers, runtime) {
10875
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10876
10898
  let req = new $OpenApi.OpenApiRequest({
10877
10899
  headers: headers,
10878
10900
  });
@@ -10880,7 +10902,7 @@ class Client extends openapi_client_1.default {
10880
10902
  action: "UpdateContactGroupForAlert",
10881
10903
  version: "2015-12-15",
10882
10904
  protocol: "HTTPS",
10883
- pathname: `/alert/${ClusterId}/alert_rule/contact_groups`,
10905
+ pathname: `/alert/${openapi_util_1.default.getEncodeParam(ClusterId)}/alert_rule/contact_groups`,
10884
10906
  method: "POST",
10885
10907
  authType: "AK",
10886
10908
  style: "ROA",
@@ -10896,7 +10918,6 @@ class Client extends openapi_client_1.default {
10896
10918
  }
10897
10919
  async updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime) {
10898
10920
  tea_util_1.default.validateModel(request);
10899
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10900
10921
  let body = {};
10901
10922
  if (!tea_util_1.default.isUnset(request.expireHour)) {
10902
10923
  body["expire_hour"] = request.expireHour;
@@ -10912,7 +10933,7 @@ class Client extends openapi_client_1.default {
10912
10933
  action: "UpdateK8sClusterUserConfigExpire",
10913
10934
  version: "2015-12-15",
10914
10935
  protocol: "HTTPS",
10915
- pathname: `/k8s/${ClusterId}/user_config/expire`,
10936
+ pathname: `/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/user_config/expire`,
10916
10937
  method: "POST",
10917
10938
  authType: "AK",
10918
10939
  style: "ROA",
@@ -10928,7 +10949,6 @@ class Client extends openapi_client_1.default {
10928
10949
  }
10929
10950
  async updateTemplateWithOptions(TemplateId, request, headers, runtime) {
10930
10951
  tea_util_1.default.validateModel(request);
10931
- TemplateId = openapi_util_1.default.getEncodeParam(TemplateId);
10932
10952
  let body = {};
10933
10953
  if (!tea_util_1.default.isUnset(request.description)) {
10934
10954
  body["description"] = request.description;
@@ -10953,7 +10973,7 @@ class Client extends openapi_client_1.default {
10953
10973
  action: "UpdateTemplate",
10954
10974
  version: "2015-12-15",
10955
10975
  protocol: "HTTPS",
10956
- pathname: `/templates/${TemplateId}`,
10976
+ pathname: `/templates/${openapi_util_1.default.getEncodeParam(TemplateId)}`,
10957
10977
  method: "PUT",
10958
10978
  authType: "AK",
10959
10979
  style: "ROA",
@@ -10969,7 +10989,6 @@ class Client extends openapi_client_1.default {
10969
10989
  }
10970
10990
  async upgradeClusterWithOptions(ClusterId, request, headers, runtime) {
10971
10991
  tea_util_1.default.validateModel(request);
10972
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10973
10992
  let body = {};
10974
10993
  if (!tea_util_1.default.isUnset(request.componentName)) {
10975
10994
  body["component_name"] = request.componentName;
@@ -10988,7 +11007,7 @@ class Client extends openapi_client_1.default {
10988
11007
  action: "UpgradeCluster",
10989
11008
  version: "2015-12-15",
10990
11009
  protocol: "HTTPS",
10991
- pathname: `/api/v2/clusters/${ClusterId}/upgrade`,
11010
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade`,
10992
11011
  method: "POST",
10993
11012
  authType: "AK",
10994
11013
  style: "ROA",
@@ -11004,7 +11023,6 @@ class Client extends openapi_client_1.default {
11004
11023
  }
11005
11024
  async upgradeClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
11006
11025
  tea_util_1.default.validateModel(request);
11007
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
11008
11026
  let req = new $OpenApi.OpenApiRequest({
11009
11027
  headers: headers,
11010
11028
  body: tea_util_1.default.toArray(request.body),
@@ -11013,7 +11031,7 @@ class Client extends openapi_client_1.default {
11013
11031
  action: "UpgradeClusterAddons",
11014
11032
  version: "2015-12-15",
11015
11033
  protocol: "HTTPS",
11016
- pathname: `/clusters/${ClusterId}/components/upgrade`,
11034
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/upgrade`,
11017
11035
  method: "POST",
11018
11036
  authType: "AK",
11019
11037
  style: "ROA",