@alicloud/cs20151215 3.0.16 → 3.0.18

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);
@@ -382,6 +406,7 @@ class CreateClusterRequest extends $tea.Model {
382
406
  imageId: 'image_id',
383
407
  imageType: 'image_type',
384
408
  instances: 'instances',
409
+ ipStack: 'ip_stack',
385
410
  isEnterpriseSecurityGroup: 'is_enterprise_security_group',
386
411
  keepInstanceName: 'keep_instance_name',
387
412
  keyPair: 'key_pair',
@@ -473,6 +498,7 @@ class CreateClusterRequest extends $tea.Model {
473
498
  imageId: 'string',
474
499
  imageType: 'string',
475
500
  instances: { 'type': 'array', 'itemType': 'string' },
501
+ ipStack: 'string',
476
502
  isEnterpriseSecurityGroup: 'boolean',
477
503
  keepInstanceName: 'boolean',
478
504
  keyPair: 'string',
@@ -3973,6 +3999,84 @@ class RemoveClusterNodesResponse extends $tea.Model {
3973
3999
  }
3974
4000
  }
3975
4001
  exports.RemoveClusterNodesResponse = RemoveClusterNodesResponse;
4002
+ class RemoveNodePoolNodesRequest extends $tea.Model {
4003
+ constructor(map) {
4004
+ super(map);
4005
+ }
4006
+ static names() {
4007
+ return {
4008
+ drainNode: 'drain_node',
4009
+ nodes: 'nodes',
4010
+ releaseNode: 'release_node',
4011
+ };
4012
+ }
4013
+ static types() {
4014
+ return {
4015
+ drainNode: 'boolean',
4016
+ nodes: { 'type': 'array', 'itemType': 'string' },
4017
+ releaseNode: 'boolean',
4018
+ };
4019
+ }
4020
+ }
4021
+ exports.RemoveNodePoolNodesRequest = RemoveNodePoolNodesRequest;
4022
+ class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
4023
+ constructor(map) {
4024
+ super(map);
4025
+ }
4026
+ static names() {
4027
+ return {
4028
+ drainNode: 'drain_node',
4029
+ nodesShrink: 'nodes',
4030
+ releaseNode: 'release_node',
4031
+ };
4032
+ }
4033
+ static types() {
4034
+ return {
4035
+ drainNode: 'boolean',
4036
+ nodesShrink: 'string',
4037
+ releaseNode: 'boolean',
4038
+ };
4039
+ }
4040
+ }
4041
+ exports.RemoveNodePoolNodesShrinkRequest = RemoveNodePoolNodesShrinkRequest;
4042
+ class RemoveNodePoolNodesResponseBody extends $tea.Model {
4043
+ constructor(map) {
4044
+ super(map);
4045
+ }
4046
+ static names() {
4047
+ return {
4048
+ requestId: 'request_id',
4049
+ taskId: 'task_id',
4050
+ };
4051
+ }
4052
+ static types() {
4053
+ return {
4054
+ requestId: 'string',
4055
+ taskId: 'string',
4056
+ };
4057
+ }
4058
+ }
4059
+ exports.RemoveNodePoolNodesResponseBody = RemoveNodePoolNodesResponseBody;
4060
+ class RemoveNodePoolNodesResponse extends $tea.Model {
4061
+ constructor(map) {
4062
+ super(map);
4063
+ }
4064
+ static names() {
4065
+ return {
4066
+ headers: 'headers',
4067
+ statusCode: 'statusCode',
4068
+ body: 'body',
4069
+ };
4070
+ }
4071
+ static types() {
4072
+ return {
4073
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4074
+ statusCode: 'number',
4075
+ body: RemoveNodePoolNodesResponseBody,
4076
+ };
4077
+ }
4078
+ }
4079
+ exports.RemoveNodePoolNodesResponse = RemoveNodePoolNodesResponse;
3976
4080
  class RemoveWorkflowResponse extends $tea.Model {
3977
4081
  constructor(map) {
3978
4082
  super(map);
@@ -4747,30 +4851,6 @@ class UpgradeClusterAddonsResponse extends $tea.Model {
4747
4851
  }
4748
4852
  }
4749
4853
  exports.UpgradeClusterAddonsResponse = UpgradeClusterAddonsResponse;
4750
- class StandardComponentsValue extends $tea.Model {
4751
- constructor(map) {
4752
- super(map);
4753
- }
4754
- static names() {
4755
- return {
4756
- name: 'name',
4757
- version: 'version',
4758
- description: 'description',
4759
- required: 'required',
4760
- disabled: 'disabled',
4761
- };
4762
- }
4763
- static types() {
4764
- return {
4765
- name: 'string',
4766
- version: 'string',
4767
- description: 'string',
4768
- required: 'string',
4769
- disabled: 'boolean',
4770
- };
4771
- }
4772
- }
4773
- exports.StandardComponentsValue = StandardComponentsValue;
4774
4854
  class AttachInstancesResponseBodyList extends $tea.Model {
4775
4855
  constructor(map) {
4776
4856
  super(map);
@@ -7581,7 +7661,6 @@ class Client extends openapi_client_1.default {
7581
7661
  }
7582
7662
  async attachInstancesWithOptions(ClusterId, request, headers, runtime) {
7583
7663
  tea_util_1.default.validateModel(request);
7584
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
7585
7664
  let body = {};
7586
7665
  if (!tea_util_1.default.isUnset(request.cpuPolicy)) {
7587
7666
  body["cpu_policy"] = request.cpuPolicy;
@@ -7630,7 +7709,7 @@ class Client extends openapi_client_1.default {
7630
7709
  action: "AttachInstances",
7631
7710
  version: "2015-12-15",
7632
7711
  protocol: "HTTPS",
7633
- pathname: `/clusters/${ClusterId}/attach`,
7712
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/attach`,
7634
7713
  method: "POST",
7635
7714
  authType: "AK",
7636
7715
  style: "ROA",
@@ -7645,7 +7724,6 @@ class Client extends openapi_client_1.default {
7645
7724
  return await this.cancelClusterUpgradeWithOptions(ClusterId, headers, runtime);
7646
7725
  }
7647
7726
  async cancelClusterUpgradeWithOptions(ClusterId, headers, runtime) {
7648
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
7649
7727
  let req = new $OpenApi.OpenApiRequest({
7650
7728
  headers: headers,
7651
7729
  });
@@ -7653,7 +7731,7 @@ class Client extends openapi_client_1.default {
7653
7731
  action: "CancelClusterUpgrade",
7654
7732
  version: "2015-12-15",
7655
7733
  protocol: "HTTPS",
7656
- pathname: `/api/v2/clusters/${ClusterId}/upgrade/cancel`,
7734
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade/cancel`,
7657
7735
  method: "POST",
7658
7736
  authType: "AK",
7659
7737
  style: "ROA",
@@ -7668,8 +7746,6 @@ class Client extends openapi_client_1.default {
7668
7746
  return await this.cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime);
7669
7747
  }
7670
7748
  async cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime) {
7671
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
7672
- componentId = openapi_util_1.default.getEncodeParam(componentId);
7673
7749
  let req = new $OpenApi.OpenApiRequest({
7674
7750
  headers: headers,
7675
7751
  });
@@ -7677,7 +7753,7 @@ class Client extends openapi_client_1.default {
7677
7753
  action: "CancelComponentUpgrade",
7678
7754
  version: "2015-12-15",
7679
7755
  protocol: "HTTPS",
7680
- pathname: `/clusters/${clusterId}/components/${componentId}/cancel`,
7756
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/components/${openapi_util_1.default.getEncodeParam(componentId)}/cancel`,
7681
7757
  method: "POST",
7682
7758
  authType: "AK",
7683
7759
  style: "ROA",
@@ -7692,7 +7768,6 @@ class Client extends openapi_client_1.default {
7692
7768
  return await this.cancelTaskWithOptions(taskId, headers, runtime);
7693
7769
  }
7694
7770
  async cancelTaskWithOptions(taskId, headers, runtime) {
7695
- taskId = openapi_util_1.default.getEncodeParam(taskId);
7696
7771
  let req = new $OpenApi.OpenApiRequest({
7697
7772
  headers: headers,
7698
7773
  });
@@ -7700,7 +7775,7 @@ class Client extends openapi_client_1.default {
7700
7775
  action: "CancelTask",
7701
7776
  version: "2015-12-15",
7702
7777
  protocol: "HTTPS",
7703
- pathname: `/tasks/${taskId}/cancel`,
7778
+ pathname: `/tasks/${openapi_util_1.default.getEncodeParam(taskId)}/cancel`,
7704
7779
  method: "POST",
7705
7780
  authType: "AK",
7706
7781
  style: "ROA",
@@ -7716,7 +7791,6 @@ class Client extends openapi_client_1.default {
7716
7791
  }
7717
7792
  async cancelWorkflowWithOptions(workflowName, request, headers, runtime) {
7718
7793
  tea_util_1.default.validateModel(request);
7719
- workflowName = openapi_util_1.default.getEncodeParam(workflowName);
7720
7794
  let body = {};
7721
7795
  if (!tea_util_1.default.isUnset(request.action)) {
7722
7796
  body["action"] = request.action;
@@ -7729,7 +7803,7 @@ class Client extends openapi_client_1.default {
7729
7803
  action: "CancelWorkflow",
7730
7804
  version: "2015-12-15",
7731
7805
  protocol: "HTTPS",
7732
- pathname: `/gs/workflow/${workflowName}`,
7806
+ pathname: `/gs/workflow/${openapi_util_1.default.getEncodeParam(workflowName)}`,
7733
7807
  method: "PUT",
7734
7808
  authType: "AK",
7735
7809
  style: "ROA",
@@ -7745,7 +7819,6 @@ class Client extends openapi_client_1.default {
7745
7819
  }
7746
7820
  async createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime) {
7747
7821
  tea_util_1.default.validateModel(request);
7748
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
7749
7822
  let body = {};
7750
7823
  if (!tea_util_1.default.isUnset(request.coolDownDuration)) {
7751
7824
  body["cool_down_duration"] = request.coolDownDuration;
@@ -7776,7 +7849,7 @@ class Client extends openapi_client_1.default {
7776
7849
  action: "CreateAutoscalingConfig",
7777
7850
  version: "2015-12-15",
7778
7851
  protocol: "HTTPS",
7779
- pathname: `/cluster/${ClusterId}/autoscale/config/`,
7852
+ pathname: `/cluster/${openapi_util_1.default.getEncodeParam(ClusterId)}/autoscale/config/`,
7780
7853
  method: "POST",
7781
7854
  authType: "AK",
7782
7855
  style: "ROA",
@@ -7862,6 +7935,9 @@ class Client extends openapi_client_1.default {
7862
7935
  if (!tea_util_1.default.isUnset(request.instances)) {
7863
7936
  body["instances"] = request.instances;
7864
7937
  }
7938
+ if (!tea_util_1.default.isUnset(request.ipStack)) {
7939
+ body["ip_stack"] = request.ipStack;
7940
+ }
7865
7941
  if (!tea_util_1.default.isUnset(request.isEnterpriseSecurityGroup)) {
7866
7942
  body["is_enterprise_security_group"] = request.isEnterpriseSecurityGroup;
7867
7943
  }
@@ -8078,7 +8154,6 @@ class Client extends openapi_client_1.default {
8078
8154
  }
8079
8155
  async createClusterNodePoolWithOptions(ClusterId, request, headers, runtime) {
8080
8156
  tea_util_1.default.validateModel(request);
8081
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8082
8157
  let body = {};
8083
8158
  if (!tea_util_1.default.isUnset($tea.toMap(request.autoScaling))) {
8084
8159
  body["auto_scaling"] = request.autoScaling;
@@ -8118,7 +8193,7 @@ class Client extends openapi_client_1.default {
8118
8193
  action: "CreateClusterNodePool",
8119
8194
  version: "2015-12-15",
8120
8195
  protocol: "HTTPS",
8121
- pathname: `/clusters/${ClusterId}/nodepools`,
8196
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools`,
8122
8197
  method: "POST",
8123
8198
  authType: "AK",
8124
8199
  style: "ROA",
@@ -8245,7 +8320,6 @@ class Client extends openapi_client_1.default {
8245
8320
  }
8246
8321
  async createTriggerWithOptions(clusterId, request, headers, runtime) {
8247
8322
  tea_util_1.default.validateModel(request);
8248
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
8249
8323
  let body = {};
8250
8324
  if (!tea_util_1.default.isUnset(request.action)) {
8251
8325
  body["action"] = request.action;
@@ -8267,7 +8341,7 @@ class Client extends openapi_client_1.default {
8267
8341
  action: "CreateTrigger",
8268
8342
  version: "2015-12-15",
8269
8343
  protocol: "HTTPS",
8270
- pathname: `/clusters/${clusterId}/triggers`,
8344
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/triggers`,
8271
8345
  method: "POST",
8272
8346
  authType: "AK",
8273
8347
  style: "ROA",
@@ -8327,7 +8401,6 @@ class Client extends openapi_client_1.default {
8327
8401
  }
8328
8402
  async deleteClusterWithOptions(ClusterId, tmpReq, headers, runtime) {
8329
8403
  tea_util_1.default.validateModel(tmpReq);
8330
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8331
8404
  let request = new DeleteClusterShrinkRequest({});
8332
8405
  openapi_util_1.default.convert(tmpReq, request);
8333
8406
  if (!tea_util_1.default.isUnset(tmpReq.retainResources)) {
@@ -8351,7 +8424,7 @@ class Client extends openapi_client_1.default {
8351
8424
  action: "DeleteCluster",
8352
8425
  version: "2015-12-15",
8353
8426
  protocol: "HTTPS",
8354
- pathname: `/clusters/${ClusterId}`,
8427
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
8355
8428
  method: "DELETE",
8356
8429
  authType: "AK",
8357
8430
  style: "ROA",
@@ -8367,8 +8440,6 @@ class Client extends openapi_client_1.default {
8367
8440
  }
8368
8441
  async deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
8369
8442
  tea_util_1.default.validateModel(request);
8370
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8371
- NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
8372
8443
  let query = {};
8373
8444
  if (!tea_util_1.default.isUnset(request.force)) {
8374
8445
  query["force"] = request.force;
@@ -8381,7 +8452,7 @@ class Client extends openapi_client_1.default {
8381
8452
  action: "DeleteClusterNodepool",
8382
8453
  version: "2015-12-15",
8383
8454
  protocol: "HTTPS",
8384
- pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
8455
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}`,
8385
8456
  method: "DELETE",
8386
8457
  authType: "AK",
8387
8458
  style: "ROA",
@@ -8397,7 +8468,6 @@ class Client extends openapi_client_1.default {
8397
8468
  }
8398
8469
  async deleteClusterNodesWithOptions(ClusterId, request, headers, runtime) {
8399
8470
  tea_util_1.default.validateModel(request);
8400
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8401
8471
  let body = {};
8402
8472
  if (!tea_util_1.default.isUnset(request.drainNode)) {
8403
8473
  body["drain_node"] = request.drainNode;
@@ -8416,7 +8486,7 @@ class Client extends openapi_client_1.default {
8416
8486
  action: "DeleteClusterNodes",
8417
8487
  version: "2015-12-15",
8418
8488
  protocol: "HTTPS",
8419
- pathname: `/clusters/${ClusterId}/nodes`,
8489
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodes`,
8420
8490
  method: "POST",
8421
8491
  authType: "AK",
8422
8492
  style: "ROA",
@@ -8432,7 +8502,6 @@ class Client extends openapi_client_1.default {
8432
8502
  }
8433
8503
  async deleteEdgeMachineWithOptions(edgeMachineid, request, headers, runtime) {
8434
8504
  tea_util_1.default.validateModel(request);
8435
- edgeMachineid = openapi_util_1.default.getEncodeParam(edgeMachineid);
8436
8505
  let query = {};
8437
8506
  if (!tea_util_1.default.isUnset(request.force)) {
8438
8507
  query["force"] = request.force;
@@ -8445,7 +8514,7 @@ class Client extends openapi_client_1.default {
8445
8514
  action: "DeleteEdgeMachine",
8446
8515
  version: "2015-12-15",
8447
8516
  protocol: "HTTPS",
8448
- pathname: `/edge_machines/[edge_machineid]`,
8517
+ pathname: `/edge_machines/%5Bedge_machineid%5D`,
8449
8518
  method: "DELETE",
8450
8519
  authType: "AK",
8451
8520
  style: "ROA",
@@ -8460,7 +8529,6 @@ class Client extends openapi_client_1.default {
8460
8529
  return await this.deleteKubernetesTriggerWithOptions(Id, headers, runtime);
8461
8530
  }
8462
8531
  async deleteKubernetesTriggerWithOptions(Id, headers, runtime) {
8463
- Id = openapi_util_1.default.getEncodeParam(Id);
8464
8532
  let req = new $OpenApi.OpenApiRequest({
8465
8533
  headers: headers,
8466
8534
  });
@@ -8468,7 +8536,7 @@ class Client extends openapi_client_1.default {
8468
8536
  action: "DeleteKubernetesTrigger",
8469
8537
  version: "2015-12-15",
8470
8538
  protocol: "HTTPS",
8471
- pathname: `/triggers/revoke/${Id}`,
8539
+ pathname: `/triggers/revoke/${openapi_util_1.default.getEncodeParam(Id)}`,
8472
8540
  method: "DELETE",
8473
8541
  authType: "AK",
8474
8542
  style: "ROA",
@@ -8484,8 +8552,6 @@ class Client extends openapi_client_1.default {
8484
8552
  }
8485
8553
  async deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
8486
8554
  tea_util_1.default.validateModel(request);
8487
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
8488
- policyName = openapi_util_1.default.getEncodeParam(policyName);
8489
8555
  let query = {};
8490
8556
  if (!tea_util_1.default.isUnset(request.instanceName)) {
8491
8557
  query["instance_name"] = request.instanceName;
@@ -8498,7 +8564,7 @@ class Client extends openapi_client_1.default {
8498
8564
  action: "DeletePolicyInstance",
8499
8565
  version: "2015-12-15",
8500
8566
  protocol: "HTTPS",
8501
- pathname: `/clusters/${clusterId}/policies/${policyName}`,
8567
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies/${openapi_util_1.default.getEncodeParam(policyName)}`,
8502
8568
  method: "DELETE",
8503
8569
  authType: "AK",
8504
8570
  style: "ROA",
@@ -8513,7 +8579,6 @@ class Client extends openapi_client_1.default {
8513
8579
  return await this.deleteTemplateWithOptions(TemplateId, headers, runtime);
8514
8580
  }
8515
8581
  async deleteTemplateWithOptions(TemplateId, headers, runtime) {
8516
- TemplateId = openapi_util_1.default.getEncodeParam(TemplateId);
8517
8582
  let req = new $OpenApi.OpenApiRequest({
8518
8583
  headers: headers,
8519
8584
  });
@@ -8521,7 +8586,7 @@ class Client extends openapi_client_1.default {
8521
8586
  action: "DeleteTemplate",
8522
8587
  version: "2015-12-15",
8523
8588
  protocol: "HTTPS",
8524
- pathname: `/templates/${TemplateId}`,
8589
+ pathname: `/templates/${openapi_util_1.default.getEncodeParam(TemplateId)}`,
8525
8590
  method: "DELETE",
8526
8591
  authType: "AK",
8527
8592
  style: "ROA",
@@ -8536,8 +8601,6 @@ class Client extends openapi_client_1.default {
8536
8601
  return await this.deleteTriggerWithOptions(clusterId, Id, headers, runtime);
8537
8602
  }
8538
8603
  async deleteTriggerWithOptions(clusterId, Id, headers, runtime) {
8539
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
8540
- Id = openapi_util_1.default.getEncodeParam(Id);
8541
8604
  let req = new $OpenApi.OpenApiRequest({
8542
8605
  headers: headers,
8543
8606
  });
@@ -8545,7 +8608,7 @@ class Client extends openapi_client_1.default {
8545
8608
  action: "DeleteTrigger",
8546
8609
  version: "2015-12-15",
8547
8610
  protocol: "HTTPS",
8548
- pathname: `/clusters/[cluster_id]/triggers/[Id]`,
8611
+ pathname: `/clusters/%5Bcluster_id%5D/triggers/%5BId%5D`,
8549
8612
  method: "DELETE",
8550
8613
  authType: "AK",
8551
8614
  style: "ROA",
@@ -8561,8 +8624,6 @@ class Client extends openapi_client_1.default {
8561
8624
  }
8562
8625
  async deployPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
8563
8626
  tea_util_1.default.validateModel(request);
8564
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
8565
- policyName = openapi_util_1.default.getEncodeParam(policyName);
8566
8627
  let body = {};
8567
8628
  if (!tea_util_1.default.isUnset(request.action)) {
8568
8629
  body["action"] = request.action;
@@ -8581,7 +8642,7 @@ class Client extends openapi_client_1.default {
8581
8642
  action: "DeployPolicyInstance",
8582
8643
  version: "2015-12-15",
8583
8644
  protocol: "HTTPS",
8584
- pathname: `/clusters/${clusterId}/policies/${policyName}`,
8645
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies/${openapi_util_1.default.getEncodeParam(policyName)}`,
8585
8646
  method: "POST",
8586
8647
  authType: "AK",
8587
8648
  style: "ROA",
@@ -8596,7 +8657,6 @@ class Client extends openapi_client_1.default {
8596
8657
  return await this.descirbeWorkflowWithOptions(workflowName, headers, runtime);
8597
8658
  }
8598
8659
  async descirbeWorkflowWithOptions(workflowName, headers, runtime) {
8599
- workflowName = openapi_util_1.default.getEncodeParam(workflowName);
8600
8660
  let req = new $OpenApi.OpenApiRequest({
8601
8661
  headers: headers,
8602
8662
  });
@@ -8604,7 +8664,7 @@ class Client extends openapi_client_1.default {
8604
8664
  action: "DescirbeWorkflow",
8605
8665
  version: "2015-12-15",
8606
8666
  protocol: "HTTPS",
8607
- pathname: `/gs/workflow/${workflowName}`,
8667
+ pathname: `/gs/workflow/${openapi_util_1.default.getEncodeParam(workflowName)}`,
8608
8668
  method: "GET",
8609
8669
  authType: "AK",
8610
8670
  style: "ROA",
@@ -8650,9 +8710,6 @@ class Client extends openapi_client_1.default {
8650
8710
  return await this.describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime);
8651
8711
  }
8652
8712
  async describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime) {
8653
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
8654
- componentId = openapi_util_1.default.getEncodeParam(componentId);
8655
- version = openapi_util_1.default.getEncodeParam(version);
8656
8713
  let req = new $OpenApi.OpenApiRequest({
8657
8714
  headers: headers,
8658
8715
  });
@@ -8660,7 +8717,7 @@ class Client extends openapi_client_1.default {
8660
8717
  action: "DescribeClusterAddonMetadata",
8661
8718
  version: "2015-12-15",
8662
8719
  protocol: "HTTPS",
8663
- pathname: `/clusters/${clusterId}/components/${componentId}/metadata`,
8720
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/components/${openapi_util_1.default.getEncodeParam(componentId)}/metadata`,
8664
8721
  method: "GET",
8665
8722
  authType: "AK",
8666
8723
  style: "ROA",
@@ -8675,8 +8732,6 @@ class Client extends openapi_client_1.default {
8675
8732
  return await this.describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime);
8676
8733
  }
8677
8734
  async describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime) {
8678
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8679
- ComponentId = openapi_util_1.default.getEncodeParam(ComponentId);
8680
8735
  let req = new $OpenApi.OpenApiRequest({
8681
8736
  headers: headers,
8682
8737
  });
@@ -8684,7 +8739,7 @@ class Client extends openapi_client_1.default {
8684
8739
  action: "DescribeClusterAddonUpgradeStatus",
8685
8740
  version: "2015-12-15",
8686
8741
  protocol: "HTTPS",
8687
- pathname: `/clusters/${ClusterId}/components/${ComponentId}/upgradestatus`,
8742
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/${openapi_util_1.default.getEncodeParam(ComponentId)}/upgradestatus`,
8688
8743
  method: "GET",
8689
8744
  authType: "AK",
8690
8745
  style: "ROA",
@@ -8700,7 +8755,6 @@ class Client extends openapi_client_1.default {
8700
8755
  }
8701
8756
  async describeClusterAddonsUpgradeStatusWithOptions(ClusterId, tmpReq, headers, runtime) {
8702
8757
  tea_util_1.default.validateModel(tmpReq);
8703
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8704
8758
  let request = new DescribeClusterAddonsUpgradeStatusShrinkRequest({});
8705
8759
  openapi_util_1.default.convert(tmpReq, request);
8706
8760
  if (!tea_util_1.default.isUnset(tmpReq.componentIds)) {
@@ -8718,7 +8772,7 @@ class Client extends openapi_client_1.default {
8718
8772
  action: "DescribeClusterAddonsUpgradeStatus",
8719
8773
  version: "2015-12-15",
8720
8774
  protocol: "HTTPS",
8721
- pathname: `/clusters/${ClusterId}/components/upgradestatus`,
8775
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/upgradestatus`,
8722
8776
  method: "GET",
8723
8777
  authType: "AK",
8724
8778
  style: "ROA",
@@ -8733,7 +8787,6 @@ class Client extends openapi_client_1.default {
8733
8787
  return await this.describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime);
8734
8788
  }
8735
8789
  async describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime) {
8736
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8737
8790
  let req = new $OpenApi.OpenApiRequest({
8738
8791
  headers: headers,
8739
8792
  });
@@ -8741,7 +8794,7 @@ class Client extends openapi_client_1.default {
8741
8794
  action: "DescribeClusterAddonsVersion",
8742
8795
  version: "2015-12-15",
8743
8796
  protocol: "HTTPS",
8744
- pathname: `/clusters/${ClusterId}/components/version`,
8797
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/version`,
8745
8798
  method: "GET",
8746
8799
  authType: "AK",
8747
8800
  style: "ROA",
@@ -8757,7 +8810,6 @@ class Client extends openapi_client_1.default {
8757
8810
  }
8758
8811
  async describeClusterAttachScriptsWithOptions(ClusterId, request, headers, runtime) {
8759
8812
  tea_util_1.default.validateModel(request);
8760
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8761
8813
  let body = {};
8762
8814
  if (!tea_util_1.default.isUnset(request.arch)) {
8763
8815
  body["arch"] = request.arch;
@@ -8785,7 +8837,7 @@ class Client extends openapi_client_1.default {
8785
8837
  action: "DescribeClusterAttachScripts",
8786
8838
  version: "2015-12-15",
8787
8839
  protocol: "HTTPS",
8788
- pathname: `/clusters/${ClusterId}/attachscript`,
8840
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/attachscript`,
8789
8841
  method: "POST",
8790
8842
  authType: "AK",
8791
8843
  style: "ROA",
@@ -8800,7 +8852,6 @@ class Client extends openapi_client_1.default {
8800
8852
  return await this.describeClusterDetailWithOptions(ClusterId, headers, runtime);
8801
8853
  }
8802
8854
  async describeClusterDetailWithOptions(ClusterId, headers, runtime) {
8803
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8804
8855
  let req = new $OpenApi.OpenApiRequest({
8805
8856
  headers: headers,
8806
8857
  });
@@ -8808,7 +8859,7 @@ class Client extends openapi_client_1.default {
8808
8859
  action: "DescribeClusterDetail",
8809
8860
  version: "2015-12-15",
8810
8861
  protocol: "HTTPS",
8811
- pathname: `/clusters/${ClusterId}`,
8862
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
8812
8863
  method: "GET",
8813
8864
  authType: "AK",
8814
8865
  style: "ROA",
@@ -8824,7 +8875,6 @@ class Client extends openapi_client_1.default {
8824
8875
  }
8825
8876
  async describeClusterEventsWithOptions(ClusterId, request, headers, runtime) {
8826
8877
  tea_util_1.default.validateModel(request);
8827
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8828
8878
  let query = {};
8829
8879
  if (!tea_util_1.default.isUnset(request.pageNumber)) {
8830
8880
  query["page_number"] = request.pageNumber;
@@ -8843,7 +8893,7 @@ class Client extends openapi_client_1.default {
8843
8893
  action: "DescribeClusterEvents",
8844
8894
  version: "2015-12-15",
8845
8895
  protocol: "HTTPS",
8846
- pathname: `/clusters/${ClusterId}/events`,
8896
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/events`,
8847
8897
  method: "GET",
8848
8898
  authType: "AK",
8849
8899
  style: "ROA",
@@ -8858,7 +8908,6 @@ class Client extends openapi_client_1.default {
8858
8908
  return await this.describeClusterLogsWithOptions(ClusterId, headers, runtime);
8859
8909
  }
8860
8910
  async describeClusterLogsWithOptions(ClusterId, headers, runtime) {
8861
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8862
8911
  let req = new $OpenApi.OpenApiRequest({
8863
8912
  headers: headers,
8864
8913
  });
@@ -8866,7 +8915,7 @@ class Client extends openapi_client_1.default {
8866
8915
  action: "DescribeClusterLogs",
8867
8916
  version: "2015-12-15",
8868
8917
  protocol: "HTTPS",
8869
- pathname: `/clusters/${ClusterId}/logs`,
8918
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/logs`,
8870
8919
  method: "GET",
8871
8920
  authType: "AK",
8872
8921
  style: "ROA",
@@ -8881,8 +8930,6 @@ class Client extends openapi_client_1.default {
8881
8930
  return await this.describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime);
8882
8931
  }
8883
8932
  async describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime) {
8884
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8885
- NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
8886
8933
  let req = new $OpenApi.OpenApiRequest({
8887
8934
  headers: headers,
8888
8935
  });
@@ -8890,7 +8937,7 @@ class Client extends openapi_client_1.default {
8890
8937
  action: "DescribeClusterNodePoolDetail",
8891
8938
  version: "2015-12-15",
8892
8939
  protocol: "HTTPS",
8893
- pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
8940
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}`,
8894
8941
  method: "GET",
8895
8942
  authType: "AK",
8896
8943
  style: "ROA",
@@ -8905,7 +8952,6 @@ class Client extends openapi_client_1.default {
8905
8952
  return await this.describeClusterNodePoolsWithOptions(ClusterId, headers, runtime);
8906
8953
  }
8907
8954
  async describeClusterNodePoolsWithOptions(ClusterId, headers, runtime) {
8908
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8909
8955
  let req = new $OpenApi.OpenApiRequest({
8910
8956
  headers: headers,
8911
8957
  });
@@ -8913,7 +8959,7 @@ class Client extends openapi_client_1.default {
8913
8959
  action: "DescribeClusterNodePools",
8914
8960
  version: "2015-12-15",
8915
8961
  protocol: "HTTPS",
8916
- pathname: `/clusters/${ClusterId}/nodepools`,
8962
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools`,
8917
8963
  method: "GET",
8918
8964
  authType: "AK",
8919
8965
  style: "ROA",
@@ -8929,7 +8975,6 @@ class Client extends openapi_client_1.default {
8929
8975
  }
8930
8976
  async describeClusterNodesWithOptions(ClusterId, request, headers, runtime) {
8931
8977
  tea_util_1.default.validateModel(request);
8932
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8933
8978
  let query = {};
8934
8979
  if (!tea_util_1.default.isUnset(request.instanceIds)) {
8935
8980
  query["instanceIds"] = request.instanceIds;
@@ -8954,7 +8999,7 @@ class Client extends openapi_client_1.default {
8954
8999
  action: "DescribeClusterNodes",
8955
9000
  version: "2015-12-15",
8956
9001
  protocol: "HTTPS",
8957
- pathname: `/clusters/${ClusterId}/nodes`,
9002
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodes`,
8958
9003
  method: "GET",
8959
9004
  authType: "AK",
8960
9005
  style: "ROA",
@@ -8969,7 +9014,6 @@ class Client extends openapi_client_1.default {
8969
9014
  return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
8970
9015
  }
8971
9016
  async describeClusterResourcesWithOptions(ClusterId, headers, runtime) {
8972
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8973
9017
  let req = new $OpenApi.OpenApiRequest({
8974
9018
  headers: headers,
8975
9019
  });
@@ -8977,7 +9021,7 @@ class Client extends openapi_client_1.default {
8977
9021
  action: "DescribeClusterResources",
8978
9022
  version: "2015-12-15",
8979
9023
  protocol: "HTTPS",
8980
- pathname: `/clusters/${ClusterId}/resources`,
9024
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/resources`,
8981
9025
  method: "GET",
8982
9026
  authType: "AK",
8983
9027
  style: "ROA",
@@ -8992,7 +9036,6 @@ class Client extends openapi_client_1.default {
8992
9036
  return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
8993
9037
  }
8994
9038
  async describeClusterTasksWithOptions(clusterId, headers, runtime) {
8995
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
8996
9039
  let req = new $OpenApi.OpenApiRequest({
8997
9040
  headers: headers,
8998
9041
  });
@@ -9000,7 +9043,7 @@ class Client extends openapi_client_1.default {
9000
9043
  action: "DescribeClusterTasks",
9001
9044
  version: "2015-12-15",
9002
9045
  protocol: "HTTPS",
9003
- pathname: `/clusters/${clusterId}/tasks`,
9046
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/tasks`,
9004
9047
  method: "GET",
9005
9048
  authType: "AK",
9006
9049
  style: "ROA",
@@ -9016,7 +9059,6 @@ class Client extends openapi_client_1.default {
9016
9059
  }
9017
9060
  async describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime) {
9018
9061
  tea_util_1.default.validateModel(request);
9019
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9020
9062
  let query = {};
9021
9063
  if (!tea_util_1.default.isUnset(request.privateIpAddress)) {
9022
9064
  query["PrivateIpAddress"] = request.privateIpAddress;
@@ -9032,7 +9074,7 @@ class Client extends openapi_client_1.default {
9032
9074
  action: "DescribeClusterUserKubeconfig",
9033
9075
  version: "2015-12-15",
9034
9076
  protocol: "HTTPS",
9035
- pathname: `/k8s/${ClusterId}/user_config`,
9077
+ pathname: `/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/user_config`,
9036
9078
  method: "GET",
9037
9079
  authType: "AK",
9038
9080
  style: "ROA",
@@ -9048,7 +9090,6 @@ class Client extends openapi_client_1.default {
9048
9090
  }
9049
9091
  async describeClusterV2UserKubeconfigWithOptions(ClusterId, request, headers, runtime) {
9050
9092
  tea_util_1.default.validateModel(request);
9051
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9052
9093
  let query = {};
9053
9094
  if (!tea_util_1.default.isUnset(request.privateIpAddress)) {
9054
9095
  query["PrivateIpAddress"] = request.privateIpAddress;
@@ -9061,7 +9102,7 @@ class Client extends openapi_client_1.default {
9061
9102
  action: "DescribeClusterV2UserKubeconfig",
9062
9103
  version: "2015-12-15",
9063
9104
  protocol: "HTTPS",
9064
- pathname: `/api/v2/k8s/${ClusterId}/user_config`,
9105
+ pathname: `/api/v2/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/user_config`,
9065
9106
  method: "GET",
9066
9107
  authType: "AK",
9067
9108
  style: "ROA",
@@ -9153,7 +9194,6 @@ class Client extends openapi_client_1.default {
9153
9194
  return await this.describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime);
9154
9195
  }
9155
9196
  async describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime) {
9156
- edgeMachineid = openapi_util_1.default.getEncodeParam(edgeMachineid);
9157
9197
  let req = new $OpenApi.OpenApiRequest({
9158
9198
  headers: headers,
9159
9199
  });
@@ -9161,7 +9201,7 @@ class Client extends openapi_client_1.default {
9161
9201
  action: "DescribeEdgeMachineActiveProcess",
9162
9202
  version: "2015-12-15",
9163
9203
  protocol: "HTTPS",
9164
- pathname: `/edge_machines/[edge_machineid]/activeprocess`,
9204
+ pathname: `/edge_machines/%5Bedge_machineid%5D/activeprocess`,
9165
9205
  method: "GET",
9166
9206
  authType: "AK",
9167
9207
  style: "ROA",
@@ -9198,7 +9238,6 @@ class Client extends openapi_client_1.default {
9198
9238
  return await this.describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime);
9199
9239
  }
9200
9240
  async describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime) {
9201
- edgeMachineid = openapi_util_1.default.getEncodeParam(edgeMachineid);
9202
9241
  let req = new $OpenApi.OpenApiRequest({
9203
9242
  headers: headers,
9204
9243
  });
@@ -9206,7 +9245,7 @@ class Client extends openapi_client_1.default {
9206
9245
  action: "DescribeEdgeMachineTunnelConfigDetail",
9207
9246
  version: "2015-12-15",
9208
9247
  protocol: "HTTPS",
9209
- pathname: `/edge_machines/[edge_machineid]/tunnelconfig`,
9248
+ pathname: `/edge_machines/%5Bedge_machineid%5D/tunnelconfig`,
9210
9249
  method: "POST",
9211
9250
  authType: "AK",
9212
9251
  style: "ROA",
@@ -9302,7 +9341,6 @@ class Client extends openapi_client_1.default {
9302
9341
  }
9303
9342
  async describeExternalAgentWithOptions(ClusterId, request, headers, runtime) {
9304
9343
  tea_util_1.default.validateModel(request);
9305
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9306
9344
  let query = {};
9307
9345
  if (!tea_util_1.default.isUnset(request.privateIpAddress)) {
9308
9346
  query["PrivateIpAddress"] = request.privateIpAddress;
@@ -9315,7 +9353,7 @@ class Client extends openapi_client_1.default {
9315
9353
  action: "DescribeExternalAgent",
9316
9354
  version: "2015-12-15",
9317
9355
  protocol: "HTTPS",
9318
- pathname: `/k8s/${ClusterId}/external/agent/deployment`,
9356
+ pathname: `/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/external/agent/deployment`,
9319
9357
  method: "GET",
9320
9358
  authType: "AK",
9321
9359
  style: "ROA",
@@ -9370,8 +9408,6 @@ class Client extends openapi_client_1.default {
9370
9408
  return await this.describeNodePoolVulsWithOptions(clusterId, nodepoolId, headers, runtime);
9371
9409
  }
9372
9410
  async describeNodePoolVulsWithOptions(clusterId, nodepoolId, headers, runtime) {
9373
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9374
- nodepoolId = openapi_util_1.default.getEncodeParam(nodepoolId);
9375
9411
  let req = new $OpenApi.OpenApiRequest({
9376
9412
  headers: headers,
9377
9413
  });
@@ -9379,7 +9415,7 @@ class Client extends openapi_client_1.default {
9379
9415
  action: "DescribeNodePoolVuls",
9380
9416
  version: "2015-12-15",
9381
9417
  protocol: "HTTPS",
9382
- pathname: `/clusters/${clusterId}/nodepools/${nodepoolId}/vuls`,
9418
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(nodepoolId)}/vuls`,
9383
9419
  method: "GET",
9384
9420
  authType: "AK",
9385
9421
  style: "ROA",
@@ -9416,7 +9452,6 @@ class Client extends openapi_client_1.default {
9416
9452
  return await this.describePolicyDetailsWithOptions(policyName, headers, runtime);
9417
9453
  }
9418
9454
  async describePolicyDetailsWithOptions(policyName, headers, runtime) {
9419
- policyName = openapi_util_1.default.getEncodeParam(policyName);
9420
9455
  let req = new $OpenApi.OpenApiRequest({
9421
9456
  headers: headers,
9422
9457
  });
@@ -9424,7 +9459,7 @@ class Client extends openapi_client_1.default {
9424
9459
  action: "DescribePolicyDetails",
9425
9460
  version: "2015-12-15",
9426
9461
  protocol: "HTTPS",
9427
- pathname: `/policies/${policyName}`,
9462
+ pathname: `/policies/${openapi_util_1.default.getEncodeParam(policyName)}`,
9428
9463
  method: "GET",
9429
9464
  authType: "AK",
9430
9465
  style: "ROA",
@@ -9439,7 +9474,6 @@ class Client extends openapi_client_1.default {
9439
9474
  return await this.describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime);
9440
9475
  }
9441
9476
  async describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime) {
9442
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9443
9477
  let req = new $OpenApi.OpenApiRequest({
9444
9478
  headers: headers,
9445
9479
  });
@@ -9447,7 +9481,7 @@ class Client extends openapi_client_1.default {
9447
9481
  action: "DescribePolicyGovernanceInCluster",
9448
9482
  version: "2015-12-15",
9449
9483
  protocol: "HTTPS",
9450
- pathname: `/clusters/${clusterId}/policygovernance`,
9484
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policygovernance`,
9451
9485
  method: "GET",
9452
9486
  authType: "AK",
9453
9487
  style: "ROA",
@@ -9463,7 +9497,6 @@ class Client extends openapi_client_1.default {
9463
9497
  }
9464
9498
  async describePolicyInstancesWithOptions(clusterId, request, headers, runtime) {
9465
9499
  tea_util_1.default.validateModel(request);
9466
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9467
9500
  let query = {};
9468
9501
  if (!tea_util_1.default.isUnset(request.instanceName)) {
9469
9502
  query["instance_name"] = request.instanceName;
@@ -9479,7 +9512,7 @@ class Client extends openapi_client_1.default {
9479
9512
  action: "DescribePolicyInstances",
9480
9513
  version: "2015-12-15",
9481
9514
  protocol: "HTTPS",
9482
- pathname: `/clusters/${clusterId}/policies`,
9515
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies`,
9483
9516
  method: "GET",
9484
9517
  authType: "AK",
9485
9518
  style: "ROA",
@@ -9494,7 +9527,6 @@ class Client extends openapi_client_1.default {
9494
9527
  return await this.describePolicyInstancesStatusWithOptions(clusterId, headers, runtime);
9495
9528
  }
9496
9529
  async describePolicyInstancesStatusWithOptions(clusterId, headers, runtime) {
9497
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9498
9530
  let req = new $OpenApi.OpenApiRequest({
9499
9531
  headers: headers,
9500
9532
  });
@@ -9502,7 +9534,7 @@ class Client extends openapi_client_1.default {
9502
9534
  action: "DescribePolicyInstancesStatus",
9503
9535
  version: "2015-12-15",
9504
9536
  protocol: "HTTPS",
9505
- pathname: `/clusters/${clusterId}/policies/status`,
9537
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies/status`,
9506
9538
  method: "GET",
9507
9539
  authType: "AK",
9508
9540
  style: "ROA",
@@ -9517,7 +9549,6 @@ class Client extends openapi_client_1.default {
9517
9549
  return await this.describeTaskInfoWithOptions(taskId, headers, runtime);
9518
9550
  }
9519
9551
  async describeTaskInfoWithOptions(taskId, headers, runtime) {
9520
- taskId = openapi_util_1.default.getEncodeParam(taskId);
9521
9552
  let req = new $OpenApi.OpenApiRequest({
9522
9553
  headers: headers,
9523
9554
  });
@@ -9525,7 +9556,7 @@ class Client extends openapi_client_1.default {
9525
9556
  action: "DescribeTaskInfo",
9526
9557
  version: "2015-12-15",
9527
9558
  protocol: "HTTPS",
9528
- pathname: `/tasks/${taskId}`,
9559
+ pathname: `/tasks/${openapi_util_1.default.getEncodeParam(taskId)}`,
9529
9560
  method: "GET",
9530
9561
  authType: "AK",
9531
9562
  style: "ROA",
@@ -9541,7 +9572,6 @@ class Client extends openapi_client_1.default {
9541
9572
  }
9542
9573
  async describeTemplateAttributeWithOptions(TemplateId, request, headers, runtime) {
9543
9574
  tea_util_1.default.validateModel(request);
9544
- TemplateId = openapi_util_1.default.getEncodeParam(TemplateId);
9545
9575
  let query = {};
9546
9576
  if (!tea_util_1.default.isUnset(request.templateType)) {
9547
9577
  query["template_type"] = request.templateType;
@@ -9554,7 +9584,7 @@ class Client extends openapi_client_1.default {
9554
9584
  action: "DescribeTemplateAttribute",
9555
9585
  version: "2015-12-15",
9556
9586
  protocol: "HTTPS",
9557
- pathname: `/templates/${TemplateId}`,
9587
+ pathname: `/templates/${openapi_util_1.default.getEncodeParam(TemplateId)}`,
9558
9588
  method: "GET",
9559
9589
  authType: "AK",
9560
9590
  style: "ROA",
@@ -9604,7 +9634,6 @@ class Client extends openapi_client_1.default {
9604
9634
  }
9605
9635
  async describeTriggerWithOptions(clusterId, request, headers, runtime) {
9606
9636
  tea_util_1.default.validateModel(request);
9607
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9608
9637
  let query = {};
9609
9638
  if (!tea_util_1.default.isUnset(request.name)) {
9610
9639
  query["Name"] = request.name;
@@ -9626,7 +9655,7 @@ class Client extends openapi_client_1.default {
9626
9655
  action: "DescribeTrigger",
9627
9656
  version: "2015-12-15",
9628
9657
  protocol: "HTTPS",
9629
- pathname: `/clusters/[cluster_id]/triggers`,
9658
+ pathname: `/clusters/%5Bcluster_id%5D/triggers`,
9630
9659
  method: "GET",
9631
9660
  authType: "AK",
9632
9661
  style: "ROA",
@@ -9641,7 +9670,6 @@ class Client extends openapi_client_1.default {
9641
9670
  return await this.describeUserPermissionWithOptions(uid, headers, runtime);
9642
9671
  }
9643
9672
  async describeUserPermissionWithOptions(uid, headers, runtime) {
9644
- uid = openapi_util_1.default.getEncodeParam(uid);
9645
9673
  let req = new $OpenApi.OpenApiRequest({
9646
9674
  headers: headers,
9647
9675
  });
@@ -9649,7 +9677,7 @@ class Client extends openapi_client_1.default {
9649
9677
  action: "DescribeUserPermission",
9650
9678
  version: "2015-12-15",
9651
9679
  protocol: "HTTPS",
9652
- pathname: `/permissions/users/${uid}`,
9680
+ pathname: `/permissions/users/${openapi_util_1.default.getEncodeParam(uid)}`,
9653
9681
  method: "GET",
9654
9682
  authType: "AK",
9655
9683
  style: "ROA",
@@ -9709,8 +9737,6 @@ class Client extends openapi_client_1.default {
9709
9737
  }
9710
9738
  async edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime) {
9711
9739
  tea_util_1.default.validateModel(request);
9712
- clusterid = openapi_util_1.default.getEncodeParam(clusterid);
9713
- edgeMachineid = openapi_util_1.default.getEncodeParam(edgeMachineid);
9714
9740
  let body = {};
9715
9741
  if (!tea_util_1.default.isUnset(request.expired)) {
9716
9742
  body["expired"] = request.expired;
@@ -9729,7 +9755,7 @@ class Client extends openapi_client_1.default {
9729
9755
  action: "EdgeClusterAddEdgeMachine",
9730
9756
  version: "2015-12-15",
9731
9757
  protocol: "HTTPS",
9732
- pathname: `/clusters/[clusterid]/attachedgemachine/[edge_machineid]`,
9758
+ pathname: `/clusters/%5Bclusterid%5D/attachedgemachine/%5Bedge_machineid%5D`,
9733
9759
  method: "POST",
9734
9760
  authType: "AK",
9735
9761
  style: "ROA",
@@ -9745,8 +9771,6 @@ class Client extends openapi_client_1.default {
9745
9771
  }
9746
9772
  async fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime) {
9747
9773
  tea_util_1.default.validateModel(request);
9748
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9749
- nodepoolId = openapi_util_1.default.getEncodeParam(nodepoolId);
9750
9774
  let body = {};
9751
9775
  if (!tea_util_1.default.isUnset(request.nodes)) {
9752
9776
  body["nodes"] = request.nodes;
@@ -9765,7 +9789,7 @@ class Client extends openapi_client_1.default {
9765
9789
  action: "FixNodePoolVuls",
9766
9790
  version: "2015-12-15",
9767
9791
  protocol: "HTTPS",
9768
- pathname: `/clusters/${clusterId}/nodepools/${nodepoolId}/vuls/fix`,
9792
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(nodepoolId)}/vuls/fix`,
9769
9793
  method: "POST",
9770
9794
  authType: "AK",
9771
9795
  style: "ROA",
@@ -9781,7 +9805,6 @@ class Client extends openapi_client_1.default {
9781
9805
  }
9782
9806
  async getKubernetesTriggerWithOptions(ClusterId, request, headers, runtime) {
9783
9807
  tea_util_1.default.validateModel(request);
9784
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9785
9808
  let query = {};
9786
9809
  if (!tea_util_1.default.isUnset(request.name)) {
9787
9810
  query["Name"] = request.name;
@@ -9803,7 +9826,7 @@ class Client extends openapi_client_1.default {
9803
9826
  action: "GetKubernetesTrigger",
9804
9827
  version: "2015-12-15",
9805
9828
  protocol: "HTTPS",
9806
- pathname: `/triggers/${ClusterId}`,
9829
+ pathname: `/triggers/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
9807
9830
  method: "GET",
9808
9831
  authType: "AK",
9809
9832
  style: "ROA",
@@ -9818,7 +9841,6 @@ class Client extends openapi_client_1.default {
9818
9841
  return await this.getUpgradeStatusWithOptions(ClusterId, headers, runtime);
9819
9842
  }
9820
9843
  async getUpgradeStatusWithOptions(ClusterId, headers, runtime) {
9821
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9822
9844
  let req = new $OpenApi.OpenApiRequest({
9823
9845
  headers: headers,
9824
9846
  });
@@ -9826,7 +9848,7 @@ class Client extends openapi_client_1.default {
9826
9848
  action: "GetUpgradeStatus",
9827
9849
  version: "2015-12-15",
9828
9850
  protocol: "HTTPS",
9829
- pathname: `/api/v2/clusters/${ClusterId}/upgrade/status`,
9851
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade/status`,
9830
9852
  method: "GET",
9831
9853
  authType: "AK",
9832
9854
  style: "ROA",
@@ -9842,7 +9864,6 @@ class Client extends openapi_client_1.default {
9842
9864
  }
9843
9865
  async grantPermissionsWithOptions(uid, request, headers, runtime) {
9844
9866
  tea_util_1.default.validateModel(request);
9845
- uid = openapi_util_1.default.getEncodeParam(uid);
9846
9867
  let req = new $OpenApi.OpenApiRequest({
9847
9868
  headers: headers,
9848
9869
  body: tea_util_1.default.toArray(request.body),
@@ -9851,7 +9872,7 @@ class Client extends openapi_client_1.default {
9851
9872
  action: "GrantPermissions",
9852
9873
  version: "2015-12-15",
9853
9874
  protocol: "HTTPS",
9854
- pathname: `/permissions/users/${uid}`,
9875
+ pathname: `/permissions/users/${openapi_util_1.default.getEncodeParam(uid)}`,
9855
9876
  method: "POST",
9856
9877
  authType: "AK",
9857
9878
  style: "ROA",
@@ -9867,7 +9888,6 @@ class Client extends openapi_client_1.default {
9867
9888
  }
9868
9889
  async installClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
9869
9890
  tea_util_1.default.validateModel(request);
9870
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9871
9891
  let req = new $OpenApi.OpenApiRequest({
9872
9892
  headers: headers,
9873
9893
  body: tea_util_1.default.toArray(request.body),
@@ -9876,7 +9896,7 @@ class Client extends openapi_client_1.default {
9876
9896
  action: "InstallClusterAddons",
9877
9897
  version: "2015-12-15",
9878
9898
  protocol: "HTTPS",
9879
- pathname: `/clusters/${ClusterId}/components/install`,
9899
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/install`,
9880
9900
  method: "POST",
9881
9901
  authType: "AK",
9882
9902
  style: "ROA",
@@ -9940,7 +9960,6 @@ class Client extends openapi_client_1.default {
9940
9960
  }
9941
9961
  async migrateClusterWithOptions(clusterId, request, headers, runtime) {
9942
9962
  tea_util_1.default.validateModel(request);
9943
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9944
9963
  let body = {};
9945
9964
  if (!tea_util_1.default.isUnset(request.ossBucketEndpoint)) {
9946
9965
  body["oss_bucket_endpoint"] = request.ossBucketEndpoint;
@@ -9956,7 +9975,7 @@ class Client extends openapi_client_1.default {
9956
9975
  action: "MigrateCluster",
9957
9976
  version: "2015-12-15",
9958
9977
  protocol: "HTTPS",
9959
- pathname: `/clusters/${clusterId}/migrate`,
9978
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/migrate`,
9960
9979
  method: "POST",
9961
9980
  authType: "AK",
9962
9981
  style: "ROA",
@@ -9972,7 +9991,6 @@ class Client extends openapi_client_1.default {
9972
9991
  }
9973
9992
  async modifyClusterWithOptions(ClusterId, request, headers, runtime) {
9974
9993
  tea_util_1.default.validateModel(request);
9975
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9976
9994
  let body = {};
9977
9995
  if (!tea_util_1.default.isUnset(request.apiServerEip)) {
9978
9996
  body["api_server_eip"] = request.apiServerEip;
@@ -10009,7 +10027,7 @@ class Client extends openapi_client_1.default {
10009
10027
  action: "ModifyCluster",
10010
10028
  version: "2015-12-15",
10011
10029
  protocol: "HTTPS",
10012
- pathname: `/api/v2/clusters/${ClusterId}`,
10030
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
10013
10031
  method: "PUT",
10014
10032
  authType: "AK",
10015
10033
  style: "ROA",
@@ -10025,8 +10043,6 @@ class Client extends openapi_client_1.default {
10025
10043
  }
10026
10044
  async modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime) {
10027
10045
  tea_util_1.default.validateModel(request);
10028
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
10029
- componentId = openapi_util_1.default.getEncodeParam(componentId);
10030
10046
  let body = {};
10031
10047
  if (!tea_util_1.default.isUnset(request.config)) {
10032
10048
  body["config"] = request.config;
@@ -10039,7 +10055,7 @@ class Client extends openapi_client_1.default {
10039
10055
  action: "ModifyClusterAddon",
10040
10056
  version: "2015-12-15",
10041
10057
  protocol: "HTTPS",
10042
- pathname: `/clusters/${clusterId}/components/${componentId}/config`,
10058
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/components/${openapi_util_1.default.getEncodeParam(componentId)}/config`,
10043
10059
  method: "POST",
10044
10060
  authType: "AK",
10045
10061
  style: "ROA",
@@ -10055,7 +10071,6 @@ class Client extends openapi_client_1.default {
10055
10071
  }
10056
10072
  async modifyClusterConfigurationWithOptions(ClusterId, request, headers, runtime) {
10057
10073
  tea_util_1.default.validateModel(request);
10058
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10059
10074
  let body = {};
10060
10075
  if (!tea_util_1.default.isUnset(request.customizeConfig)) {
10061
10076
  body["customize_config"] = request.customizeConfig;
@@ -10068,7 +10083,7 @@ class Client extends openapi_client_1.default {
10068
10083
  action: "ModifyClusterConfiguration",
10069
10084
  version: "2015-12-15",
10070
10085
  protocol: "HTTPS",
10071
- pathname: `/clusters/${ClusterId}/configuration`,
10086
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/configuration`,
10072
10087
  method: "PUT",
10073
10088
  authType: "AK",
10074
10089
  style: "ROA",
@@ -10084,8 +10099,6 @@ class Client extends openapi_client_1.default {
10084
10099
  }
10085
10100
  async modifyClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
10086
10101
  tea_util_1.default.validateModel(request);
10087
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10088
- NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
10089
10102
  let body = {};
10090
10103
  if (!tea_util_1.default.isUnset($tea.toMap(request.autoScaling))) {
10091
10104
  body["auto_scaling"] = request.autoScaling;
@@ -10116,7 +10129,7 @@ class Client extends openapi_client_1.default {
10116
10129
  action: "ModifyClusterNodePool",
10117
10130
  version: "2015-12-15",
10118
10131
  protocol: "HTTPS",
10119
- pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
10132
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}`,
10120
10133
  method: "PUT",
10121
10134
  authType: "AK",
10122
10135
  style: "ROA",
@@ -10132,7 +10145,6 @@ class Client extends openapi_client_1.default {
10132
10145
  }
10133
10146
  async modifyClusterTagsWithOptions(ClusterId, request, headers, runtime) {
10134
10147
  tea_util_1.default.validateModel(request);
10135
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10136
10148
  let req = new $OpenApi.OpenApiRequest({
10137
10149
  headers: headers,
10138
10150
  body: tea_util_1.default.toArray(request.body),
@@ -10141,7 +10153,7 @@ class Client extends openapi_client_1.default {
10141
10153
  action: "ModifyClusterTags",
10142
10154
  version: "2015-12-15",
10143
10155
  protocol: "HTTPS",
10144
- pathname: `/clusters/${ClusterId}/tags`,
10156
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/tags`,
10145
10157
  method: "POST",
10146
10158
  authType: "AK",
10147
10159
  style: "ROA",
@@ -10157,8 +10169,6 @@ class Client extends openapi_client_1.default {
10157
10169
  }
10158
10170
  async modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
10159
10171
  tea_util_1.default.validateModel(request);
10160
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10161
- NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
10162
10172
  let body = {};
10163
10173
  if (!tea_util_1.default.isUnset($tea.toMap(request.kubeletConfig))) {
10164
10174
  body["kubelet_config"] = request.kubeletConfig;
@@ -10174,7 +10184,7 @@ class Client extends openapi_client_1.default {
10174
10184
  action: "ModifyNodePoolNodeConfig",
10175
10185
  version: "2015-12-15",
10176
10186
  protocol: "HTTPS",
10177
- pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}/node_config`,
10187
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}/node_config`,
10178
10188
  method: "PUT",
10179
10189
  authType: "AK",
10180
10190
  style: "ROA",
@@ -10190,8 +10200,6 @@ class Client extends openapi_client_1.default {
10190
10200
  }
10191
10201
  async modifyPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
10192
10202
  tea_util_1.default.validateModel(request);
10193
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
10194
- policyName = openapi_util_1.default.getEncodeParam(policyName);
10195
10203
  let body = {};
10196
10204
  if (!tea_util_1.default.isUnset(request.action)) {
10197
10205
  body["action"] = request.action;
@@ -10213,7 +10221,7 @@ class Client extends openapi_client_1.default {
10213
10221
  action: "ModifyPolicyInstance",
10214
10222
  version: "2015-12-15",
10215
10223
  protocol: "HTTPS",
10216
- pathname: `/clusters/${clusterId}/policies/${policyName}`,
10224
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies/${openapi_util_1.default.getEncodeParam(policyName)}`,
10217
10225
  method: "PUT",
10218
10226
  authType: "AK",
10219
10227
  style: "ROA",
@@ -10256,7 +10264,6 @@ class Client extends openapi_client_1.default {
10256
10264
  return await this.pauseClusterUpgradeWithOptions(ClusterId, headers, runtime);
10257
10265
  }
10258
10266
  async pauseClusterUpgradeWithOptions(ClusterId, headers, runtime) {
10259
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10260
10267
  let req = new $OpenApi.OpenApiRequest({
10261
10268
  headers: headers,
10262
10269
  });
@@ -10264,7 +10271,7 @@ class Client extends openapi_client_1.default {
10264
10271
  action: "PauseClusterUpgrade",
10265
10272
  version: "2015-12-15",
10266
10273
  protocol: "HTTPS",
10267
- pathname: `/api/v2/clusters/${ClusterId}/upgrade/pause`,
10274
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade/pause`,
10268
10275
  method: "POST",
10269
10276
  authType: "AK",
10270
10277
  style: "ROA",
@@ -10279,8 +10286,6 @@ class Client extends openapi_client_1.default {
10279
10286
  return await this.pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
10280
10287
  }
10281
10288
  async pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime) {
10282
- clusterid = openapi_util_1.default.getEncodeParam(clusterid);
10283
- componentid = openapi_util_1.default.getEncodeParam(componentid);
10284
10289
  let req = new $OpenApi.OpenApiRequest({
10285
10290
  headers: headers,
10286
10291
  });
@@ -10288,7 +10293,7 @@ class Client extends openapi_client_1.default {
10288
10293
  action: "PauseComponentUpgrade",
10289
10294
  version: "2015-12-15",
10290
10295
  protocol: "HTTPS",
10291
- pathname: `/clusters/${clusterid}/components/${componentid}/pause`,
10296
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterid)}/components/${openapi_util_1.default.getEncodeParam(componentid)}/pause`,
10292
10297
  method: "POST",
10293
10298
  authType: "AK",
10294
10299
  style: "ROA",
@@ -10303,7 +10308,6 @@ class Client extends openapi_client_1.default {
10303
10308
  return await this.pauseTaskWithOptions(taskId, headers, runtime);
10304
10309
  }
10305
10310
  async pauseTaskWithOptions(taskId, headers, runtime) {
10306
- taskId = openapi_util_1.default.getEncodeParam(taskId);
10307
10311
  let req = new $OpenApi.OpenApiRequest({
10308
10312
  headers: headers,
10309
10313
  });
@@ -10311,7 +10315,7 @@ class Client extends openapi_client_1.default {
10311
10315
  action: "PauseTask",
10312
10316
  version: "2015-12-15",
10313
10317
  protocol: "HTTPS",
10314
- pathname: `/tasks/${taskId}/pause`,
10318
+ pathname: `/tasks/${openapi_util_1.default.getEncodeParam(taskId)}/pause`,
10315
10319
  method: "POST",
10316
10320
  authType: "AK",
10317
10321
  style: "ROA",
@@ -10327,7 +10331,6 @@ class Client extends openapi_client_1.default {
10327
10331
  }
10328
10332
  async removeClusterNodesWithOptions(ClusterId, request, headers, runtime) {
10329
10333
  tea_util_1.default.validateModel(request);
10330
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10331
10334
  let body = {};
10332
10335
  if (!tea_util_1.default.isUnset(request.drainNode)) {
10333
10336
  body["drain_node"] = request.drainNode;
@@ -10346,7 +10349,7 @@ class Client extends openapi_client_1.default {
10346
10349
  action: "RemoveClusterNodes",
10347
10350
  version: "2015-12-15",
10348
10351
  protocol: "HTTPS",
10349
- pathname: `/api/v2/clusters/${ClusterId}/nodes/remove`,
10352
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodes/remove`,
10350
10353
  method: "POST",
10351
10354
  authType: "AK",
10352
10355
  style: "ROA",
@@ -10355,13 +10358,51 @@ class Client extends openapi_client_1.default {
10355
10358
  });
10356
10359
  return $tea.cast(await this.callApi(params, req, runtime), new RemoveClusterNodesResponse({}));
10357
10360
  }
10361
+ async removeNodePoolNodes(ClusterId, NodepoolId, request) {
10362
+ let runtime = new $Util.RuntimeOptions({});
10363
+ let headers = {};
10364
+ return await this.removeNodePoolNodesWithOptions(ClusterId, NodepoolId, request, headers, runtime);
10365
+ }
10366
+ async removeNodePoolNodesWithOptions(ClusterId, NodepoolId, tmpReq, headers, runtime) {
10367
+ tea_util_1.default.validateModel(tmpReq);
10368
+ let request = new RemoveNodePoolNodesShrinkRequest({});
10369
+ openapi_util_1.default.convert(tmpReq, request);
10370
+ if (!tea_util_1.default.isUnset(tmpReq.nodes)) {
10371
+ request.nodesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.nodes, "nodes", "json");
10372
+ }
10373
+ let query = {};
10374
+ if (!tea_util_1.default.isUnset(request.drainNode)) {
10375
+ query["drain_node"] = request.drainNode;
10376
+ }
10377
+ if (!tea_util_1.default.isUnset(request.nodesShrink)) {
10378
+ query["nodes"] = request.nodesShrink;
10379
+ }
10380
+ if (!tea_util_1.default.isUnset(request.releaseNode)) {
10381
+ query["release_node"] = request.releaseNode;
10382
+ }
10383
+ let req = new $OpenApi.OpenApiRequest({
10384
+ headers: headers,
10385
+ query: openapi_util_1.default.query(query),
10386
+ });
10387
+ let params = new $OpenApi.Params({
10388
+ action: "RemoveNodePoolNodes",
10389
+ version: "2015-12-15",
10390
+ protocol: "HTTPS",
10391
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}/nodes`,
10392
+ method: "DELETE",
10393
+ authType: "AK",
10394
+ style: "ROA",
10395
+ reqBodyType: "json",
10396
+ bodyType: "json",
10397
+ });
10398
+ return $tea.cast(await this.callApi(params, req, runtime), new RemoveNodePoolNodesResponse({}));
10399
+ }
10358
10400
  async removeWorkflow(workflowName) {
10359
10401
  let runtime = new $Util.RuntimeOptions({});
10360
10402
  let headers = {};
10361
10403
  return await this.removeWorkflowWithOptions(workflowName, headers, runtime);
10362
10404
  }
10363
10405
  async removeWorkflowWithOptions(workflowName, headers, runtime) {
10364
- workflowName = openapi_util_1.default.getEncodeParam(workflowName);
10365
10406
  let req = new $OpenApi.OpenApiRequest({
10366
10407
  headers: headers,
10367
10408
  });
@@ -10369,7 +10410,7 @@ class Client extends openapi_client_1.default {
10369
10410
  action: "RemoveWorkflow",
10370
10411
  version: "2015-12-15",
10371
10412
  protocol: "HTTPS",
10372
- pathname: `/gs/workflow/${workflowName}`,
10413
+ pathname: `/gs/workflow/${openapi_util_1.default.getEncodeParam(workflowName)}`,
10373
10414
  method: "DELETE",
10374
10415
  authType: "AK",
10375
10416
  style: "ROA",
@@ -10385,8 +10426,6 @@ class Client extends openapi_client_1.default {
10385
10426
  }
10386
10427
  async repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime) {
10387
10428
  tea_util_1.default.validateModel(request);
10388
- clusterId = openapi_util_1.default.getEncodeParam(clusterId);
10389
- nodepoolId = openapi_util_1.default.getEncodeParam(nodepoolId);
10390
10429
  let body = {};
10391
10430
  if (!tea_util_1.default.isUnset(request.nodes)) {
10392
10431
  body["nodes"] = request.nodes;
@@ -10399,7 +10438,7 @@ class Client extends openapi_client_1.default {
10399
10438
  action: "RepairClusterNodePool",
10400
10439
  version: "2015-12-15",
10401
10440
  protocol: "HTTPS",
10402
- pathname: `/clusters/${clusterId}/nodepools/${nodepoolId}/repair`,
10441
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(nodepoolId)}/repair`,
10403
10442
  method: "POST",
10404
10443
  authType: "AK",
10405
10444
  style: "ROA",
@@ -10414,8 +10453,6 @@ class Client extends openapi_client_1.default {
10414
10453
  return await this.resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
10415
10454
  }
10416
10455
  async resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime) {
10417
- clusterid = openapi_util_1.default.getEncodeParam(clusterid);
10418
- componentid = openapi_util_1.default.getEncodeParam(componentid);
10419
10456
  let req = new $OpenApi.OpenApiRequest({
10420
10457
  headers: headers,
10421
10458
  });
@@ -10423,7 +10460,7 @@ class Client extends openapi_client_1.default {
10423
10460
  action: "ResumeComponentUpgrade",
10424
10461
  version: "2015-12-15",
10425
10462
  protocol: "HTTPS",
10426
- pathname: `/clusters/${clusterid}/components/${componentid}/resume`,
10463
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterid)}/components/${openapi_util_1.default.getEncodeParam(componentid)}/resume`,
10427
10464
  method: "POST",
10428
10465
  authType: "AK",
10429
10466
  style: "ROA",
@@ -10438,7 +10475,6 @@ class Client extends openapi_client_1.default {
10438
10475
  return await this.resumeTaskWithOptions(taskId, headers, runtime);
10439
10476
  }
10440
10477
  async resumeTaskWithOptions(taskId, headers, runtime) {
10441
- taskId = openapi_util_1.default.getEncodeParam(taskId);
10442
10478
  let req = new $OpenApi.OpenApiRequest({
10443
10479
  headers: headers,
10444
10480
  });
@@ -10446,7 +10482,7 @@ class Client extends openapi_client_1.default {
10446
10482
  action: "ResumeTask",
10447
10483
  version: "2015-12-15",
10448
10484
  protocol: "HTTPS",
10449
- pathname: `/tasks/${taskId}/resume`,
10485
+ pathname: `/tasks/${openapi_util_1.default.getEncodeParam(taskId)}/resume`,
10450
10486
  method: "POST",
10451
10487
  authType: "AK",
10452
10488
  style: "ROA",
@@ -10461,7 +10497,6 @@ class Client extends openapi_client_1.default {
10461
10497
  return await this.resumeUpgradeClusterWithOptions(ClusterId, headers, runtime);
10462
10498
  }
10463
10499
  async resumeUpgradeClusterWithOptions(ClusterId, headers, runtime) {
10464
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10465
10500
  let req = new $OpenApi.OpenApiRequest({
10466
10501
  headers: headers,
10467
10502
  });
@@ -10469,7 +10504,7 @@ class Client extends openapi_client_1.default {
10469
10504
  action: "ResumeUpgradeCluster",
10470
10505
  version: "2015-12-15",
10471
10506
  protocol: "HTTPS",
10472
- pathname: `/api/v2/clusters/${ClusterId}/upgrade/resume`,
10507
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade/resume`,
10473
10508
  method: "POST",
10474
10509
  authType: "AK",
10475
10510
  style: "ROA",
@@ -10485,7 +10520,6 @@ class Client extends openapi_client_1.default {
10485
10520
  }
10486
10521
  async scaleClusterWithOptions(ClusterId, request, headers, runtime) {
10487
10522
  tea_util_1.default.validateModel(request);
10488
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10489
10523
  let body = {};
10490
10524
  if (!tea_util_1.default.isUnset(request.cloudMonitorFlags)) {
10491
10525
  body["cloud_monitor_flags"] = request.cloudMonitorFlags;
@@ -10552,7 +10586,7 @@ class Client extends openapi_client_1.default {
10552
10586
  action: "ScaleCluster",
10553
10587
  version: "2015-12-15",
10554
10588
  protocol: "HTTPS",
10555
- pathname: `/clusters/${ClusterId}`,
10589
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
10556
10590
  method: "PUT",
10557
10591
  authType: "AK",
10558
10592
  style: "ROA",
@@ -10568,8 +10602,6 @@ class Client extends openapi_client_1.default {
10568
10602
  }
10569
10603
  async scaleClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
10570
10604
  tea_util_1.default.validateModel(request);
10571
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10572
- NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
10573
10605
  let body = {};
10574
10606
  if (!tea_util_1.default.isUnset(request.count)) {
10575
10607
  body["count"] = request.count;
@@ -10582,7 +10614,7 @@ class Client extends openapi_client_1.default {
10582
10614
  action: "ScaleClusterNodePool",
10583
10615
  version: "2015-12-15",
10584
10616
  protocol: "HTTPS",
10585
- pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
10617
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}`,
10586
10618
  method: "POST",
10587
10619
  authType: "AK",
10588
10620
  style: "ROA",
@@ -10598,7 +10630,6 @@ class Client extends openapi_client_1.default {
10598
10630
  }
10599
10631
  async scaleOutClusterWithOptions(ClusterId, request, headers, runtime) {
10600
10632
  tea_util_1.default.validateModel(request);
10601
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10602
10633
  let body = {};
10603
10634
  if (!tea_util_1.default.isUnset(request.cloudMonitorFlags)) {
10604
10635
  body["cloud_monitor_flags"] = request.cloudMonitorFlags;
@@ -10671,7 +10702,7 @@ class Client extends openapi_client_1.default {
10671
10702
  action: "ScaleOutCluster",
10672
10703
  version: "2015-12-15",
10673
10704
  protocol: "HTTPS",
10674
- pathname: `/api/v2/clusters/${ClusterId}`,
10705
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
10675
10706
  method: "POST",
10676
10707
  authType: "AK",
10677
10708
  style: "ROA",
@@ -10806,7 +10837,6 @@ class Client extends openapi_client_1.default {
10806
10837
  }
10807
10838
  async unInstallClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
10808
10839
  tea_util_1.default.validateModel(request);
10809
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10810
10840
  let req = new $OpenApi.OpenApiRequest({
10811
10841
  headers: headers,
10812
10842
  body: tea_util_1.default.toArray(request.addons),
@@ -10815,7 +10845,7 @@ class Client extends openapi_client_1.default {
10815
10845
  action: "UnInstallClusterAddons",
10816
10846
  version: "2015-12-15",
10817
10847
  protocol: "HTTPS",
10818
- pathname: `/clusters/${ClusterId}/components/uninstall`,
10848
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/uninstall`,
10819
10849
  method: "POST",
10820
10850
  authType: "AK",
10821
10851
  style: "ROA",
@@ -10870,7 +10900,6 @@ class Client extends openapi_client_1.default {
10870
10900
  return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
10871
10901
  }
10872
10902
  async updateContactGroupForAlertWithOptions(ClusterId, headers, runtime) {
10873
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10874
10903
  let req = new $OpenApi.OpenApiRequest({
10875
10904
  headers: headers,
10876
10905
  });
@@ -10878,7 +10907,7 @@ class Client extends openapi_client_1.default {
10878
10907
  action: "UpdateContactGroupForAlert",
10879
10908
  version: "2015-12-15",
10880
10909
  protocol: "HTTPS",
10881
- pathname: `/alert/${ClusterId}/alert_rule/contact_groups`,
10910
+ pathname: `/alert/${openapi_util_1.default.getEncodeParam(ClusterId)}/alert_rule/contact_groups`,
10882
10911
  method: "POST",
10883
10912
  authType: "AK",
10884
10913
  style: "ROA",
@@ -10894,7 +10923,6 @@ class Client extends openapi_client_1.default {
10894
10923
  }
10895
10924
  async updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime) {
10896
10925
  tea_util_1.default.validateModel(request);
10897
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10898
10926
  let body = {};
10899
10927
  if (!tea_util_1.default.isUnset(request.expireHour)) {
10900
10928
  body["expire_hour"] = request.expireHour;
@@ -10910,7 +10938,7 @@ class Client extends openapi_client_1.default {
10910
10938
  action: "UpdateK8sClusterUserConfigExpire",
10911
10939
  version: "2015-12-15",
10912
10940
  protocol: "HTTPS",
10913
- pathname: `/k8s/${ClusterId}/user_config/expire`,
10941
+ pathname: `/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/user_config/expire`,
10914
10942
  method: "POST",
10915
10943
  authType: "AK",
10916
10944
  style: "ROA",
@@ -10926,7 +10954,6 @@ class Client extends openapi_client_1.default {
10926
10954
  }
10927
10955
  async updateTemplateWithOptions(TemplateId, request, headers, runtime) {
10928
10956
  tea_util_1.default.validateModel(request);
10929
- TemplateId = openapi_util_1.default.getEncodeParam(TemplateId);
10930
10957
  let body = {};
10931
10958
  if (!tea_util_1.default.isUnset(request.description)) {
10932
10959
  body["description"] = request.description;
@@ -10951,7 +10978,7 @@ class Client extends openapi_client_1.default {
10951
10978
  action: "UpdateTemplate",
10952
10979
  version: "2015-12-15",
10953
10980
  protocol: "HTTPS",
10954
- pathname: `/templates/${TemplateId}`,
10981
+ pathname: `/templates/${openapi_util_1.default.getEncodeParam(TemplateId)}`,
10955
10982
  method: "PUT",
10956
10983
  authType: "AK",
10957
10984
  style: "ROA",
@@ -10967,7 +10994,6 @@ class Client extends openapi_client_1.default {
10967
10994
  }
10968
10995
  async upgradeClusterWithOptions(ClusterId, request, headers, runtime) {
10969
10996
  tea_util_1.default.validateModel(request);
10970
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10971
10997
  let body = {};
10972
10998
  if (!tea_util_1.default.isUnset(request.componentName)) {
10973
10999
  body["component_name"] = request.componentName;
@@ -10986,7 +11012,7 @@ class Client extends openapi_client_1.default {
10986
11012
  action: "UpgradeCluster",
10987
11013
  version: "2015-12-15",
10988
11014
  protocol: "HTTPS",
10989
- pathname: `/api/v2/clusters/${ClusterId}/upgrade`,
11015
+ pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade`,
10990
11016
  method: "POST",
10991
11017
  authType: "AK",
10992
11018
  style: "ROA",
@@ -11002,7 +11028,6 @@ class Client extends openapi_client_1.default {
11002
11028
  }
11003
11029
  async upgradeClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
11004
11030
  tea_util_1.default.validateModel(request);
11005
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
11006
11031
  let req = new $OpenApi.OpenApiRequest({
11007
11032
  headers: headers,
11008
11033
  body: tea_util_1.default.toArray(request.body),
@@ -11011,7 +11036,7 @@ class Client extends openapi_client_1.default {
11011
11036
  action: "UpgradeClusterAddons",
11012
11037
  version: "2015-12-15",
11013
11038
  protocol: "HTTPS",
11014
- pathname: `/clusters/${ClusterId}/components/upgrade`,
11039
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/upgrade`,
11015
11040
  method: "POST",
11016
11041
  authType: "AK",
11017
11042
  style: "ROA",