@alicloud/cs20151215 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/client.ts CHANGED
@@ -402,6 +402,7 @@ export class CreateClusterRequest extends $tea.Model {
402
402
  customSan?: string;
403
403
  deletionProtection?: boolean;
404
404
  disableRollback?: boolean;
405
+ enableRrsa?: boolean;
405
406
  encryptionProviderKey?: string;
406
407
  endpointPublicAccess?: boolean;
407
408
  formatDisk?: boolean;
@@ -486,6 +487,7 @@ export class CreateClusterRequest extends $tea.Model {
486
487
  customSan: 'custom_san',
487
488
  deletionProtection: 'deletion_protection',
488
489
  disableRollback: 'disable_rollback',
490
+ enableRrsa: 'enable_rrsa',
489
491
  encryptionProviderKey: 'encryption_provider_key',
490
492
  endpointPublicAccess: 'endpoint_public_access',
491
493
  formatDisk: 'format_disk',
@@ -573,6 +575,7 @@ export class CreateClusterRequest extends $tea.Model {
573
575
  customSan: 'string',
574
576
  deletionProtection: 'boolean',
575
577
  disableRollback: 'boolean',
578
+ enableRrsa: 'boolean',
576
579
  encryptionProviderKey: 'string',
577
580
  endpointPublicAccess: 'boolean',
578
581
  formatDisk: 'boolean',
@@ -1324,17 +1327,58 @@ export class DeleteKubernetesTriggerResponse extends $tea.Model {
1324
1327
  }
1325
1328
  }
1326
1329
 
1330
+ export class DeletePolicyInstanceRequest extends $tea.Model {
1331
+ instanceName?: string;
1332
+ static names(): { [key: string]: string } {
1333
+ return {
1334
+ instanceName: 'instance_name',
1335
+ };
1336
+ }
1337
+
1338
+ static types(): { [key: string]: any } {
1339
+ return {
1340
+ instanceName: 'string',
1341
+ };
1342
+ }
1343
+
1344
+ constructor(map?: { [key: string]: any }) {
1345
+ super(map);
1346
+ }
1347
+ }
1348
+
1349
+ export class DeletePolicyInstanceResponseBody extends $tea.Model {
1350
+ instances?: string[];
1351
+ static names(): { [key: string]: string } {
1352
+ return {
1353
+ instances: 'instances',
1354
+ };
1355
+ }
1356
+
1357
+ static types(): { [key: string]: any } {
1358
+ return {
1359
+ instances: { 'type': 'array', 'itemType': 'string' },
1360
+ };
1361
+ }
1362
+
1363
+ constructor(map?: { [key: string]: any }) {
1364
+ super(map);
1365
+ }
1366
+ }
1367
+
1327
1368
  export class DeletePolicyInstanceResponse extends $tea.Model {
1328
1369
  headers: { [key: string]: string };
1370
+ body: DeletePolicyInstanceResponseBody;
1329
1371
  static names(): { [key: string]: string } {
1330
1372
  return {
1331
1373
  headers: 'headers',
1374
+ body: 'body',
1332
1375
  };
1333
1376
  }
1334
1377
 
1335
1378
  static types(): { [key: string]: any } {
1336
1379
  return {
1337
1380
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1381
+ body: DeletePolicyInstanceResponseBody,
1338
1382
  };
1339
1383
  }
1340
1384
 
@@ -1406,17 +1450,39 @@ export class DeployPolicyInstanceRequest extends $tea.Model {
1406
1450
  }
1407
1451
  }
1408
1452
 
1453
+ export class DeployPolicyInstanceResponseBody extends $tea.Model {
1454
+ instances?: string[];
1455
+ static names(): { [key: string]: string } {
1456
+ return {
1457
+ instances: 'instances',
1458
+ };
1459
+ }
1460
+
1461
+ static types(): { [key: string]: any } {
1462
+ return {
1463
+ instances: { 'type': 'array', 'itemType': 'string' },
1464
+ };
1465
+ }
1466
+
1467
+ constructor(map?: { [key: string]: any }) {
1468
+ super(map);
1469
+ }
1470
+ }
1471
+
1409
1472
  export class DeployPolicyInstanceResponse extends $tea.Model {
1410
1473
  headers: { [key: string]: string };
1474
+ body: DeployPolicyInstanceResponseBody;
1411
1475
  static names(): { [key: string]: string } {
1412
1476
  return {
1413
1477
  headers: 'headers',
1478
+ body: 'body',
1414
1479
  };
1415
1480
  }
1416
1481
 
1417
1482
  static types(): { [key: string]: any } {
1418
1483
  return {
1419
1484
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1485
+ body: DeployPolicyInstanceResponseBody,
1420
1486
  };
1421
1487
  }
1422
1488
 
@@ -3742,6 +3808,7 @@ export class ModifyClusterRequest extends $tea.Model {
3742
3808
  apiServerEip?: boolean;
3743
3809
  apiServerEipId?: string;
3744
3810
  deletionProtection?: boolean;
3811
+ enableRrsa?: boolean;
3745
3812
  ingressDomainRebinding?: string;
3746
3813
  ingressLoadbalancerId?: string;
3747
3814
  instanceDeletionProtection?: boolean;
@@ -3752,6 +3819,7 @@ export class ModifyClusterRequest extends $tea.Model {
3752
3819
  apiServerEip: 'api_server_eip',
3753
3820
  apiServerEipId: 'api_server_eip_id',
3754
3821
  deletionProtection: 'deletion_protection',
3822
+ enableRrsa: 'enable_rrsa',
3755
3823
  ingressDomainRebinding: 'ingress_domain_rebinding',
3756
3824
  ingressLoadbalancerId: 'ingress_loadbalancer_id',
3757
3825
  instanceDeletionProtection: 'instance_deletion_protection',
@@ -3765,6 +3833,7 @@ export class ModifyClusterRequest extends $tea.Model {
3765
3833
  apiServerEip: 'boolean',
3766
3834
  apiServerEipId: 'string',
3767
3835
  deletionProtection: 'boolean',
3836
+ enableRrsa: 'boolean',
3768
3837
  ingressDomainRebinding: 'string',
3769
3838
  ingressLoadbalancerId: 'string',
3770
3839
  instanceDeletionProtection: 'boolean',
@@ -4048,17 +4117,39 @@ export class ModifyPolicyInstanceRequest extends $tea.Model {
4048
4117
  }
4049
4118
  }
4050
4119
 
4120
+ export class ModifyPolicyInstanceResponseBody extends $tea.Model {
4121
+ instances?: string[];
4122
+ static names(): { [key: string]: string } {
4123
+ return {
4124
+ instances: 'instances',
4125
+ };
4126
+ }
4127
+
4128
+ static types(): { [key: string]: any } {
4129
+ return {
4130
+ instances: { 'type': 'array', 'itemType': 'string' },
4131
+ };
4132
+ }
4133
+
4134
+ constructor(map?: { [key: string]: any }) {
4135
+ super(map);
4136
+ }
4137
+ }
4138
+
4051
4139
  export class ModifyPolicyInstanceResponse extends $tea.Model {
4052
4140
  headers: { [key: string]: string };
4141
+ body: ModifyPolicyInstanceResponseBody;
4053
4142
  static names(): { [key: string]: string } {
4054
4143
  return {
4055
4144
  headers: 'headers',
4145
+ body: 'body',
4056
4146
  };
4057
4147
  }
4058
4148
 
4059
4149
  static types(): { [key: string]: any } {
4060
4150
  return {
4061
4151
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4152
+ body: ModifyPolicyInstanceResponseBody,
4062
4153
  };
4063
4154
  }
4064
4155
 
@@ -8277,7 +8368,18 @@ export default class Client extends OpenApi {
8277
8368
  headers: headers,
8278
8369
  body: OpenApiUtil.parseToMap(body),
8279
8370
  });
8280
- return $tea.cast<AttachInstancesResponse>(await this.doROARequest("AttachInstances", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${ClusterId}/attach`, "json", req, runtime), new AttachInstancesResponse({}));
8371
+ let params = new $OpenApi.Params({
8372
+ action: "AttachInstances",
8373
+ version: "2015-12-15",
8374
+ protocol: "HTTPS",
8375
+ pathname: `/clusters/${ClusterId}/attach`,
8376
+ method: "POST",
8377
+ authType: "AK",
8378
+ style: "ROA",
8379
+ reqBodyType: "json",
8380
+ bodyType: "json",
8381
+ });
8382
+ return $tea.cast<AttachInstancesResponse>(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
8281
8383
  }
8282
8384
 
8283
8385
  async cancelClusterUpgrade(ClusterId: string): Promise<CancelClusterUpgradeResponse> {
@@ -8291,7 +8393,18 @@ export default class Client extends OpenApi {
8291
8393
  let req = new $OpenApi.OpenApiRequest({
8292
8394
  headers: headers,
8293
8395
  });
8294
- return $tea.cast<CancelClusterUpgradeResponse>(await this.doROARequest("CancelClusterUpgrade", "2015-12-15", "HTTPS", "POST", "AK", `/api/v2/clusters/${ClusterId}/upgrade/cancel`, "none", req, runtime), new CancelClusterUpgradeResponse({}));
8396
+ let params = new $OpenApi.Params({
8397
+ action: "CancelClusterUpgrade",
8398
+ version: "2015-12-15",
8399
+ protocol: "HTTPS",
8400
+ pathname: `/api/v2/clusters/${ClusterId}/upgrade/cancel`,
8401
+ method: "POST",
8402
+ authType: "AK",
8403
+ style: "ROA",
8404
+ reqBodyType: "json",
8405
+ bodyType: "none",
8406
+ });
8407
+ return $tea.cast<CancelClusterUpgradeResponse>(await this.callApi(params, req, runtime), new CancelClusterUpgradeResponse({}));
8295
8408
  }
8296
8409
 
8297
8410
  async cancelComponentUpgrade(clusterId: string, componentId: string): Promise<CancelComponentUpgradeResponse> {
@@ -8306,7 +8419,18 @@ export default class Client extends OpenApi {
8306
8419
  let req = new $OpenApi.OpenApiRequest({
8307
8420
  headers: headers,
8308
8421
  });
8309
- return $tea.cast<CancelComponentUpgradeResponse>(await this.doROARequest("CancelComponentUpgrade", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${clusterId}/components/${componentId}/cancel`, "none", req, runtime), new CancelComponentUpgradeResponse({}));
8422
+ let params = new $OpenApi.Params({
8423
+ action: "CancelComponentUpgrade",
8424
+ version: "2015-12-15",
8425
+ protocol: "HTTPS",
8426
+ pathname: `/clusters/${clusterId}/components/{componentId}/cancel`,
8427
+ method: "POST",
8428
+ authType: "AK",
8429
+ style: "ROA",
8430
+ reqBodyType: "json",
8431
+ bodyType: "none",
8432
+ });
8433
+ return $tea.cast<CancelComponentUpgradeResponse>(await this.callApi(params, req, runtime), new CancelComponentUpgradeResponse({}));
8310
8434
  }
8311
8435
 
8312
8436
  async cancelWorkflow(workflowName: string, request: CancelWorkflowRequest): Promise<CancelWorkflowResponse> {
@@ -8327,7 +8451,18 @@ export default class Client extends OpenApi {
8327
8451
  headers: headers,
8328
8452
  body: OpenApiUtil.parseToMap(body),
8329
8453
  });
8330
- return $tea.cast<CancelWorkflowResponse>(await this.doROARequest("CancelWorkflow", "2015-12-15", "HTTPS", "PUT", "AK", `/gs/workflow/${workflowName}`, "none", req, runtime), new CancelWorkflowResponse({}));
8454
+ let params = new $OpenApi.Params({
8455
+ action: "CancelWorkflow",
8456
+ version: "2015-12-15",
8457
+ protocol: "HTTPS",
8458
+ pathname: `/gs/workflow/${workflowName}`,
8459
+ method: "PUT",
8460
+ authType: "AK",
8461
+ style: "ROA",
8462
+ reqBodyType: "json",
8463
+ bodyType: "none",
8464
+ });
8465
+ return $tea.cast<CancelWorkflowResponse>(await this.callApi(params, req, runtime), new CancelWorkflowResponse({}));
8331
8466
  }
8332
8467
 
8333
8468
  async createAutoscalingConfig(ClusterId: string, request: CreateAutoscalingConfigRequest): Promise<CreateAutoscalingConfigResponse> {
@@ -8364,7 +8499,18 @@ export default class Client extends OpenApi {
8364
8499
  headers: headers,
8365
8500
  body: OpenApiUtil.parseToMap(body),
8366
8501
  });
8367
- return $tea.cast<CreateAutoscalingConfigResponse>(await this.doROARequest("CreateAutoscalingConfig", "2015-12-15", "HTTPS", "POST", "AK", `/cluster/${ClusterId}/autoscale/config/`, "none", req, runtime), new CreateAutoscalingConfigResponse({}));
8502
+ let params = new $OpenApi.Params({
8503
+ action: "CreateAutoscalingConfig",
8504
+ version: "2015-12-15",
8505
+ protocol: "HTTPS",
8506
+ pathname: `/cluster/${ClusterId}/autoscale/config/`,
8507
+ method: "POST",
8508
+ authType: "AK",
8509
+ style: "ROA",
8510
+ reqBodyType: "json",
8511
+ bodyType: "none",
8512
+ });
8513
+ return $tea.cast<CreateAutoscalingConfigResponse>(await this.callApi(params, req, runtime), new CreateAutoscalingConfigResponse({}));
8368
8514
  }
8369
8515
 
8370
8516
  async createCluster(request: CreateClusterRequest): Promise<CreateClusterResponse> {
@@ -8436,6 +8582,10 @@ export default class Client extends OpenApi {
8436
8582
  body["disable_rollback"] = request.disableRollback;
8437
8583
  }
8438
8584
 
8585
+ if (!Util.isUnset(request.enableRrsa)) {
8586
+ body["enable_rrsa"] = request.enableRrsa;
8587
+ }
8588
+
8439
8589
  if (!Util.isUnset(request.encryptionProviderKey)) {
8440
8590
  body["encryption_provider_key"] = request.encryptionProviderKey;
8441
8591
  }
@@ -8708,7 +8858,18 @@ export default class Client extends OpenApi {
8708
8858
  headers: headers,
8709
8859
  body: OpenApiUtil.parseToMap(body),
8710
8860
  });
8711
- return $tea.cast<CreateClusterResponse>(await this.doROARequest("CreateCluster", "2015-12-15", "HTTPS", "POST", "AK", `/clusters`, "json", req, runtime), new CreateClusterResponse({}));
8861
+ let params = new $OpenApi.Params({
8862
+ action: "CreateCluster",
8863
+ version: "2015-12-15",
8864
+ protocol: "HTTPS",
8865
+ pathname: `/clusters`,
8866
+ method: "POST",
8867
+ authType: "AK",
8868
+ style: "ROA",
8869
+ reqBodyType: "json",
8870
+ bodyType: "json",
8871
+ });
8872
+ return $tea.cast<CreateClusterResponse>(await this.callApi(params, req, runtime), new CreateClusterResponse({}));
8712
8873
  }
8713
8874
 
8714
8875
  async createClusterNodePool(ClusterId: string, request: CreateClusterNodePoolRequest): Promise<CreateClusterNodePoolResponse> {
@@ -8765,7 +8926,18 @@ export default class Client extends OpenApi {
8765
8926
  headers: headers,
8766
8927
  body: OpenApiUtil.parseToMap(body),
8767
8928
  });
8768
- return $tea.cast<CreateClusterNodePoolResponse>(await this.doROARequest("CreateClusterNodePool", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${ClusterId}/nodepools`, "json", req, runtime), new CreateClusterNodePoolResponse({}));
8929
+ let params = new $OpenApi.Params({
8930
+ action: "CreateClusterNodePool",
8931
+ version: "2015-12-15",
8932
+ protocol: "HTTPS",
8933
+ pathname: `/clusters/${ClusterId}/nodepools`,
8934
+ method: "POST",
8935
+ authType: "AK",
8936
+ style: "ROA",
8937
+ reqBodyType: "json",
8938
+ bodyType: "json",
8939
+ });
8940
+ return $tea.cast<CreateClusterNodePoolResponse>(await this.callApi(params, req, runtime), new CreateClusterNodePoolResponse({}));
8769
8941
  }
8770
8942
 
8771
8943
  async createEdgeMachine(request: CreateEdgeMachineRequest): Promise<CreateEdgeMachineResponse> {
@@ -8793,7 +8965,18 @@ export default class Client extends OpenApi {
8793
8965
  headers: headers,
8794
8966
  body: OpenApiUtil.parseToMap(body),
8795
8967
  });
8796
- return $tea.cast<CreateEdgeMachineResponse>(await this.doROARequest("CreateEdgeMachine", "2015-12-15", "HTTPS", "POST", "AK", `/edge_machines`, "json", req, runtime), new CreateEdgeMachineResponse({}));
8968
+ let params = new $OpenApi.Params({
8969
+ action: "CreateEdgeMachine",
8970
+ version: "2015-12-15",
8971
+ protocol: "HTTPS",
8972
+ pathname: `/edge_machines`,
8973
+ method: "POST",
8974
+ authType: "AK",
8975
+ style: "ROA",
8976
+ reqBodyType: "json",
8977
+ bodyType: "json",
8978
+ });
8979
+ return $tea.cast<CreateEdgeMachineResponse>(await this.callApi(params, req, runtime), new CreateEdgeMachineResponse({}));
8797
8980
  }
8798
8981
 
8799
8982
  async createKubernetesTrigger(request: CreateKubernetesTriggerRequest): Promise<CreateKubernetesTriggerResponse> {
@@ -8825,7 +9008,18 @@ export default class Client extends OpenApi {
8825
9008
  headers: headers,
8826
9009
  body: OpenApiUtil.parseToMap(body),
8827
9010
  });
8828
- return $tea.cast<CreateKubernetesTriggerResponse>(await this.doROARequest("CreateKubernetesTrigger", "2015-12-15", "HTTPS", "POST", "AK", `/triggers`, "json", req, runtime), new CreateKubernetesTriggerResponse({}));
9011
+ let params = new $OpenApi.Params({
9012
+ action: "CreateKubernetesTrigger",
9013
+ version: "2015-12-15",
9014
+ protocol: "HTTPS",
9015
+ pathname: `/triggers`,
9016
+ method: "POST",
9017
+ authType: "AK",
9018
+ style: "ROA",
9019
+ reqBodyType: "json",
9020
+ bodyType: "json",
9021
+ });
9022
+ return $tea.cast<CreateKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new CreateKubernetesTriggerResponse({}));
8829
9023
  }
8830
9024
 
8831
9025
  async createTemplate(request: CreateTemplateRequest): Promise<CreateTemplateResponse> {
@@ -8861,7 +9055,18 @@ export default class Client extends OpenApi {
8861
9055
  headers: headers,
8862
9056
  body: OpenApiUtil.parseToMap(body),
8863
9057
  });
8864
- return $tea.cast<CreateTemplateResponse>(await this.doROARequest("CreateTemplate", "2015-12-15", "HTTPS", "POST", "AK", `/templates`, "json", req, runtime), new CreateTemplateResponse({}));
9058
+ let params = new $OpenApi.Params({
9059
+ action: "CreateTemplate",
9060
+ version: "2015-12-15",
9061
+ protocol: "HTTPS",
9062
+ pathname: `/templates`,
9063
+ method: "POST",
9064
+ authType: "AK",
9065
+ style: "ROA",
9066
+ reqBodyType: "json",
9067
+ bodyType: "json",
9068
+ });
9069
+ return $tea.cast<CreateTemplateResponse>(await this.callApi(params, req, runtime), new CreateTemplateResponse({}));
8865
9070
  }
8866
9071
 
8867
9072
  async createTrigger(clusterId: string, request: CreateTriggerRequest): Promise<CreateTriggerResponse> {
@@ -8894,7 +9099,18 @@ export default class Client extends OpenApi {
8894
9099
  headers: headers,
8895
9100
  body: OpenApiUtil.parseToMap(body),
8896
9101
  });
8897
- return $tea.cast<CreateTriggerResponse>(await this.doROARequest("CreateTrigger", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${clusterId}/triggers`, "json", req, runtime), new CreateTriggerResponse({}));
9102
+ let params = new $OpenApi.Params({
9103
+ action: "CreateTrigger",
9104
+ version: "2015-12-15",
9105
+ protocol: "HTTPS",
9106
+ pathname: `/clusters/${clusterId}/triggers`,
9107
+ method: "POST",
9108
+ authType: "AK",
9109
+ style: "ROA",
9110
+ reqBodyType: "json",
9111
+ bodyType: "json",
9112
+ });
9113
+ return $tea.cast<CreateTriggerResponse>(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
8898
9114
  }
8899
9115
 
8900
9116
  async deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse> {
@@ -8929,7 +9145,18 @@ export default class Client extends OpenApi {
8929
9145
  headers: headers,
8930
9146
  query: OpenApiUtil.query(query),
8931
9147
  });
8932
- return $tea.cast<DeleteClusterResponse>(await this.doROARequest("DeleteCluster", "2015-12-15", "HTTPS", "DELETE", "AK", `/clusters/${ClusterId}`, "none", req, runtime), new DeleteClusterResponse({}));
9148
+ let params = new $OpenApi.Params({
9149
+ action: "DeleteCluster",
9150
+ version: "2015-12-15",
9151
+ protocol: "HTTPS",
9152
+ pathname: `/clusters/${ClusterId}`,
9153
+ method: "DELETE",
9154
+ authType: "AK",
9155
+ style: "ROA",
9156
+ reqBodyType: "json",
9157
+ bodyType: "none",
9158
+ });
9159
+ return $tea.cast<DeleteClusterResponse>(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
8933
9160
  }
8934
9161
 
8935
9162
  async deleteClusterNodepool(ClusterId: string, NodepoolId: string): Promise<DeleteClusterNodepoolResponse> {
@@ -8944,7 +9171,18 @@ export default class Client extends OpenApi {
8944
9171
  let req = new $OpenApi.OpenApiRequest({
8945
9172
  headers: headers,
8946
9173
  });
8947
- return $tea.cast<DeleteClusterNodepoolResponse>(await this.doROARequest("DeleteClusterNodepool", "2015-12-15", "HTTPS", "DELETE", "AK", `/clusters/${ClusterId}/nodepools/${NodepoolId}`, "json", req, runtime), new DeleteClusterNodepoolResponse({}));
9174
+ let params = new $OpenApi.Params({
9175
+ action: "DeleteClusterNodepool",
9176
+ version: "2015-12-15",
9177
+ protocol: "HTTPS",
9178
+ pathname: `/clusters/${ClusterId}/nodepools/{NodepoolId}`,
9179
+ method: "DELETE",
9180
+ authType: "AK",
9181
+ style: "ROA",
9182
+ reqBodyType: "json",
9183
+ bodyType: "json",
9184
+ });
9185
+ return $tea.cast<DeleteClusterNodepoolResponse>(await this.callApi(params, req, runtime), new DeleteClusterNodepoolResponse({}));
8948
9186
  }
8949
9187
 
8950
9188
  async deleteClusterNodes(ClusterId: string, request: DeleteClusterNodesRequest): Promise<DeleteClusterNodesResponse> {
@@ -8973,7 +9211,18 @@ export default class Client extends OpenApi {
8973
9211
  headers: headers,
8974
9212
  body: OpenApiUtil.parseToMap(body),
8975
9213
  });
8976
- return $tea.cast<DeleteClusterNodesResponse>(await this.doROARequest("DeleteClusterNodes", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${ClusterId}/nodes`, "json", req, runtime), new DeleteClusterNodesResponse({}));
9214
+ let params = new $OpenApi.Params({
9215
+ action: "DeleteClusterNodes",
9216
+ version: "2015-12-15",
9217
+ protocol: "HTTPS",
9218
+ pathname: `/clusters/${ClusterId}/nodes`,
9219
+ method: "POST",
9220
+ authType: "AK",
9221
+ style: "ROA",
9222
+ reqBodyType: "json",
9223
+ bodyType: "json",
9224
+ });
9225
+ return $tea.cast<DeleteClusterNodesResponse>(await this.callApi(params, req, runtime), new DeleteClusterNodesResponse({}));
8977
9226
  }
8978
9227
 
8979
9228
  async deleteEdgeMachine(edgeMachineid: string, request: DeleteEdgeMachineRequest): Promise<DeleteEdgeMachineResponse> {
@@ -8994,7 +9243,18 @@ export default class Client extends OpenApi {
8994
9243
  headers: headers,
8995
9244
  query: OpenApiUtil.query(query),
8996
9245
  });
8997
- return $tea.cast<DeleteEdgeMachineResponse>(await this.doROARequest("DeleteEdgeMachine", "2015-12-15", "HTTPS", "DELETE", "AK", `/edge_machines/[edge_machineid]`, "none", req, runtime), new DeleteEdgeMachineResponse({}));
9246
+ let params = new $OpenApi.Params({
9247
+ action: "DeleteEdgeMachine",
9248
+ version: "2015-12-15",
9249
+ protocol: "HTTPS",
9250
+ pathname: `/edge_machines/[edge_machineid]`,
9251
+ method: "DELETE",
9252
+ authType: "AK",
9253
+ style: "ROA",
9254
+ reqBodyType: "json",
9255
+ bodyType: "none",
9256
+ });
9257
+ return $tea.cast<DeleteEdgeMachineResponse>(await this.callApi(params, req, runtime), new DeleteEdgeMachineResponse({}));
8998
9258
  }
8999
9259
 
9000
9260
  async deleteKubernetesTrigger(Id: string): Promise<DeleteKubernetesTriggerResponse> {
@@ -9008,23 +9268,51 @@ export default class Client extends OpenApi {
9008
9268
  let req = new $OpenApi.OpenApiRequest({
9009
9269
  headers: headers,
9010
9270
  });
9011
- return $tea.cast<DeleteKubernetesTriggerResponse>(await this.doROARequest("DeleteKubernetesTrigger", "2015-12-15", "HTTPS", "DELETE", "AK", `/triggers/revoke/${Id}`, "none", req, runtime), new DeleteKubernetesTriggerResponse({}));
9271
+ let params = new $OpenApi.Params({
9272
+ action: "DeleteKubernetesTrigger",
9273
+ version: "2015-12-15",
9274
+ protocol: "HTTPS",
9275
+ pathname: `/triggers/revoke/${Id}`,
9276
+ method: "DELETE",
9277
+ authType: "AK",
9278
+ style: "ROA",
9279
+ reqBodyType: "json",
9280
+ bodyType: "none",
9281
+ });
9282
+ return $tea.cast<DeleteKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new DeleteKubernetesTriggerResponse({}));
9012
9283
  }
9013
9284
 
9014
- async deletePolicyInstance(clusterId: string, policyName: string, instanceId: string): Promise<DeletePolicyInstanceResponse> {
9285
+ async deletePolicyInstance(clusterId: string, policyName: string, request: DeletePolicyInstanceRequest): Promise<DeletePolicyInstanceResponse> {
9015
9286
  let runtime = new $Util.RuntimeOptions({ });
9016
9287
  let headers : {[key: string ]: string} = { };
9017
- return await this.deletePolicyInstanceWithOptions(clusterId, policyName, instanceId, headers, runtime);
9288
+ return await this.deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
9018
9289
  }
9019
9290
 
9020
- async deletePolicyInstanceWithOptions(clusterId: string, policyName: string, instanceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeletePolicyInstanceResponse> {
9291
+ async deletePolicyInstanceWithOptions(clusterId: string, policyName: string, request: DeletePolicyInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeletePolicyInstanceResponse> {
9292
+ Util.validateModel(request);
9021
9293
  clusterId = OpenApiUtil.getEncodeParam(clusterId);
9022
9294
  policyName = OpenApiUtil.getEncodeParam(policyName);
9023
- instanceId = OpenApiUtil.getEncodeParam(instanceId);
9295
+ let query : {[key: string ]: any} = { };
9296
+ if (!Util.isUnset(request.instanceName)) {
9297
+ query["instance_name"] = request.instanceName;
9298
+ }
9299
+
9024
9300
  let req = new $OpenApi.OpenApiRequest({
9025
9301
  headers: headers,
9302
+ query: OpenApiUtil.query(query),
9303
+ });
9304
+ let params = new $OpenApi.Params({
9305
+ action: "DeletePolicyInstance",
9306
+ version: "2015-12-15",
9307
+ protocol: "HTTPS",
9308
+ pathname: `/clusters/${clusterId}/policies/{policyName}`,
9309
+ method: "DELETE",
9310
+ authType: "AK",
9311
+ style: "ROA",
9312
+ reqBodyType: "json",
9313
+ bodyType: "json",
9026
9314
  });
9027
- return $tea.cast<DeletePolicyInstanceResponse>(await this.doROARequest("DeletePolicyInstance", "2015-12-15", "HTTPS", "DELETE", "AK", `/clusters/${clusterId}/policies/${policyName}/instances/${instanceId}`, "none", req, runtime), new DeletePolicyInstanceResponse({}));
9315
+ return $tea.cast<DeletePolicyInstanceResponse>(await this.callApi(params, req, runtime), new DeletePolicyInstanceResponse({}));
9028
9316
  }
9029
9317
 
9030
9318
  async deleteTemplate(TemplateId: string): Promise<DeleteTemplateResponse> {
@@ -9038,7 +9326,18 @@ export default class Client extends OpenApi {
9038
9326
  let req = new $OpenApi.OpenApiRequest({
9039
9327
  headers: headers,
9040
9328
  });
9041
- return $tea.cast<DeleteTemplateResponse>(await this.doROARequest("DeleteTemplate", "2015-12-15", "HTTPS", "DELETE", "AK", `/templates/${TemplateId}`, "none", req, runtime), new DeleteTemplateResponse({}));
9329
+ let params = new $OpenApi.Params({
9330
+ action: "DeleteTemplate",
9331
+ version: "2015-12-15",
9332
+ protocol: "HTTPS",
9333
+ pathname: `/templates/${TemplateId}`,
9334
+ method: "DELETE",
9335
+ authType: "AK",
9336
+ style: "ROA",
9337
+ reqBodyType: "json",
9338
+ bodyType: "none",
9339
+ });
9340
+ return $tea.cast<DeleteTemplateResponse>(await this.callApi(params, req, runtime), new DeleteTemplateResponse({}));
9042
9341
  }
9043
9342
 
9044
9343
  async deleteTrigger(clusterId: string, Id: string): Promise<DeleteTriggerResponse> {
@@ -9053,7 +9352,18 @@ export default class Client extends OpenApi {
9053
9352
  let req = new $OpenApi.OpenApiRequest({
9054
9353
  headers: headers,
9055
9354
  });
9056
- return $tea.cast<DeleteTriggerResponse>(await this.doROARequest("DeleteTrigger", "2015-12-15", "HTTPS", "DELETE", "AK", `/clusters/[cluster_id]/triggers/[Id]`, "none", req, runtime), new DeleteTriggerResponse({}));
9355
+ let params = new $OpenApi.Params({
9356
+ action: "DeleteTrigger",
9357
+ version: "2015-12-15",
9358
+ protocol: "HTTPS",
9359
+ pathname: `/clusters/[cluster_id]/triggers/[Id]`,
9360
+ method: "DELETE",
9361
+ authType: "AK",
9362
+ style: "ROA",
9363
+ reqBodyType: "json",
9364
+ bodyType: "none",
9365
+ });
9366
+ return $tea.cast<DeleteTriggerResponse>(await this.callApi(params, req, runtime), new DeleteTriggerResponse({}));
9057
9367
  }
9058
9368
 
9059
9369
  async deployPolicyInstance(clusterId: string, policyName: string, request: DeployPolicyInstanceRequest): Promise<DeployPolicyInstanceResponse> {
@@ -9083,7 +9393,18 @@ export default class Client extends OpenApi {
9083
9393
  headers: headers,
9084
9394
  body: OpenApiUtil.parseToMap(body),
9085
9395
  });
9086
- return $tea.cast<DeployPolicyInstanceResponse>(await this.doROARequest("DeployPolicyInstance", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${clusterId}/policies/${policyName}`, "none", req, runtime), new DeployPolicyInstanceResponse({}));
9396
+ let params = new $OpenApi.Params({
9397
+ action: "DeployPolicyInstance",
9398
+ version: "2015-12-15",
9399
+ protocol: "HTTPS",
9400
+ pathname: `/clusters/${clusterId}/policies/{policyName}`,
9401
+ method: "POST",
9402
+ authType: "AK",
9403
+ style: "ROA",
9404
+ reqBodyType: "json",
9405
+ bodyType: "json",
9406
+ });
9407
+ return $tea.cast<DeployPolicyInstanceResponse>(await this.callApi(params, req, runtime), new DeployPolicyInstanceResponse({}));
9087
9408
  }
9088
9409
 
9089
9410
  async descirbeWorkflow(workflowName: string): Promise<DescirbeWorkflowResponse> {
@@ -9097,7 +9418,18 @@ export default class Client extends OpenApi {
9097
9418
  let req = new $OpenApi.OpenApiRequest({
9098
9419
  headers: headers,
9099
9420
  });
9100
- return $tea.cast<DescirbeWorkflowResponse>(await this.doROARequest("DescirbeWorkflow", "2015-12-15", "HTTPS", "GET", "AK", `/gs/workflow/${workflowName}`, "json", req, runtime), new DescirbeWorkflowResponse({}));
9421
+ let params = new $OpenApi.Params({
9422
+ action: "DescirbeWorkflow",
9423
+ version: "2015-12-15",
9424
+ protocol: "HTTPS",
9425
+ pathname: `/gs/workflow/${workflowName}`,
9426
+ method: "GET",
9427
+ authType: "AK",
9428
+ style: "ROA",
9429
+ reqBodyType: "json",
9430
+ bodyType: "json",
9431
+ });
9432
+ return $tea.cast<DescirbeWorkflowResponse>(await this.callApi(params, req, runtime), new DescirbeWorkflowResponse({}));
9101
9433
  }
9102
9434
 
9103
9435
  async describeAddons(request: DescribeAddonsRequest): Promise<DescribeAddonsResponse> {
@@ -9121,7 +9453,18 @@ export default class Client extends OpenApi {
9121
9453
  headers: headers,
9122
9454
  query: OpenApiUtil.query(query),
9123
9455
  });
9124
- return $tea.cast<DescribeAddonsResponse>(await this.doROARequest("DescribeAddons", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/components/metadata`, "json", req, runtime), new DescribeAddonsResponse({}));
9456
+ let params = new $OpenApi.Params({
9457
+ action: "DescribeAddons",
9458
+ version: "2015-12-15",
9459
+ protocol: "HTTPS",
9460
+ pathname: `/clusters/components/metadata`,
9461
+ method: "GET",
9462
+ authType: "AK",
9463
+ style: "ROA",
9464
+ reqBodyType: "json",
9465
+ bodyType: "json",
9466
+ });
9467
+ return $tea.cast<DescribeAddonsResponse>(await this.callApi(params, req, runtime), new DescribeAddonsResponse({}));
9125
9468
  }
9126
9469
 
9127
9470
  async describeClusterAddonMetadata(clusterId: string, componentId: string, version: string): Promise<DescribeClusterAddonMetadataResponse> {
@@ -9137,7 +9480,18 @@ export default class Client extends OpenApi {
9137
9480
  let req = new $OpenApi.OpenApiRequest({
9138
9481
  headers: headers,
9139
9482
  });
9140
- return $tea.cast<DescribeClusterAddonMetadataResponse>(await this.doROARequest("DescribeClusterAddonMetadata", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/${clusterId}/components/${componentId}/metadata`, "json", req, runtime), new DescribeClusterAddonMetadataResponse({}));
9483
+ let params = new $OpenApi.Params({
9484
+ action: "DescribeClusterAddonMetadata",
9485
+ version: "2015-12-15",
9486
+ protocol: "HTTPS",
9487
+ pathname: `/clusters/${clusterId}/components/{componentId}/metadata`,
9488
+ method: "GET",
9489
+ authType: "AK",
9490
+ style: "ROA",
9491
+ reqBodyType: "json",
9492
+ bodyType: "json",
9493
+ });
9494
+ return $tea.cast<DescribeClusterAddonMetadataResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonMetadataResponse({}));
9141
9495
  }
9142
9496
 
9143
9497
  async describeClusterAddonUpgradeStatus(ClusterId: string, ComponentId: string): Promise<DescribeClusterAddonUpgradeStatusResponse> {
@@ -9152,7 +9506,18 @@ export default class Client extends OpenApi {
9152
9506
  let req = new $OpenApi.OpenApiRequest({
9153
9507
  headers: headers,
9154
9508
  });
9155
- return $tea.cast<DescribeClusterAddonUpgradeStatusResponse>(await this.doROARequest("DescribeClusterAddonUpgradeStatus", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/${ClusterId}/components/${ComponentId}/upgradestatus`, "json", req, runtime), new DescribeClusterAddonUpgradeStatusResponse({}));
9509
+ let params = new $OpenApi.Params({
9510
+ action: "DescribeClusterAddonUpgradeStatus",
9511
+ version: "2015-12-15",
9512
+ protocol: "HTTPS",
9513
+ pathname: `/clusters/${ClusterId}/components/{ComponentId}/upgradestatus`,
9514
+ method: "GET",
9515
+ authType: "AK",
9516
+ style: "ROA",
9517
+ reqBodyType: "json",
9518
+ bodyType: "json",
9519
+ });
9520
+ return $tea.cast<DescribeClusterAddonUpgradeStatusResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonUpgradeStatusResponse({}));
9156
9521
  }
9157
9522
 
9158
9523
  async describeClusterAddonsUpgradeStatus(ClusterId: string, request: DescribeClusterAddonsUpgradeStatusRequest): Promise<DescribeClusterAddonsUpgradeStatusResponse> {
@@ -9179,7 +9544,18 @@ export default class Client extends OpenApi {
9179
9544
  headers: headers,
9180
9545
  query: OpenApiUtil.query(query),
9181
9546
  });
9182
- return $tea.cast<DescribeClusterAddonsUpgradeStatusResponse>(await this.doROARequest("DescribeClusterAddonsUpgradeStatus", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/${ClusterId}/components/upgradestatus`, "json", req, runtime), new DescribeClusterAddonsUpgradeStatusResponse({}));
9547
+ let params = new $OpenApi.Params({
9548
+ action: "DescribeClusterAddonsUpgradeStatus",
9549
+ version: "2015-12-15",
9550
+ protocol: "HTTPS",
9551
+ pathname: `/clusters/${ClusterId}/components/upgradestatus`,
9552
+ method: "GET",
9553
+ authType: "AK",
9554
+ style: "ROA",
9555
+ reqBodyType: "json",
9556
+ bodyType: "json",
9557
+ });
9558
+ return $tea.cast<DescribeClusterAddonsUpgradeStatusResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonsUpgradeStatusResponse({}));
9183
9559
  }
9184
9560
 
9185
9561
  async describeClusterAddonsVersion(ClusterId: string): Promise<DescribeClusterAddonsVersionResponse> {
@@ -9193,7 +9569,18 @@ export default class Client extends OpenApi {
9193
9569
  let req = new $OpenApi.OpenApiRequest({
9194
9570
  headers: headers,
9195
9571
  });
9196
- return $tea.cast<DescribeClusterAddonsVersionResponse>(await this.doROARequest("DescribeClusterAddonsVersion", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/${ClusterId}/components/version`, "json", req, runtime), new DescribeClusterAddonsVersionResponse({}));
9572
+ let params = new $OpenApi.Params({
9573
+ action: "DescribeClusterAddonsVersion",
9574
+ version: "2015-12-15",
9575
+ protocol: "HTTPS",
9576
+ pathname: `/clusters/${ClusterId}/components/version`,
9577
+ method: "GET",
9578
+ authType: "AK",
9579
+ style: "ROA",
9580
+ reqBodyType: "json",
9581
+ bodyType: "json",
9582
+ });
9583
+ return $tea.cast<DescribeClusterAddonsVersionResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonsVersionResponse({}));
9197
9584
  }
9198
9585
 
9199
9586
  async describeClusterAttachScripts(ClusterId: string, request: DescribeClusterAttachScriptsRequest): Promise<DescribeClusterAttachScriptsResponse> {
@@ -9234,7 +9621,18 @@ export default class Client extends OpenApi {
9234
9621
  headers: headers,
9235
9622
  body: OpenApiUtil.parseToMap(body),
9236
9623
  });
9237
- return $tea.cast<DescribeClusterAttachScriptsResponse>(await this.doROARequest("DescribeClusterAttachScripts", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${ClusterId}/attachscript`, "string", req, runtime), new DescribeClusterAttachScriptsResponse({}));
9624
+ let params = new $OpenApi.Params({
9625
+ action: "DescribeClusterAttachScripts",
9626
+ version: "2015-12-15",
9627
+ protocol: "HTTPS",
9628
+ pathname: `/clusters/${ClusterId}/attachscript`,
9629
+ method: "POST",
9630
+ authType: "AK",
9631
+ style: "ROA",
9632
+ reqBodyType: "json",
9633
+ bodyType: "string",
9634
+ });
9635
+ return $tea.cast<DescribeClusterAttachScriptsResponse>(await this.callApi(params, req, runtime), new DescribeClusterAttachScriptsResponse({}));
9238
9636
  }
9239
9637
 
9240
9638
  async describeClusterDetail(ClusterId: string): Promise<DescribeClusterDetailResponse> {
@@ -9248,7 +9646,18 @@ export default class Client extends OpenApi {
9248
9646
  let req = new $OpenApi.OpenApiRequest({
9249
9647
  headers: headers,
9250
9648
  });
9251
- return $tea.cast<DescribeClusterDetailResponse>(await this.doROARequest("DescribeClusterDetail", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/${ClusterId}`, "json", req, runtime), new DescribeClusterDetailResponse({}));
9649
+ let params = new $OpenApi.Params({
9650
+ action: "DescribeClusterDetail",
9651
+ version: "2015-12-15",
9652
+ protocol: "HTTPS",
9653
+ pathname: `/clusters/${ClusterId}`,
9654
+ method: "GET",
9655
+ authType: "AK",
9656
+ style: "ROA",
9657
+ reqBodyType: "json",
9658
+ bodyType: "json",
9659
+ });
9660
+ return $tea.cast<DescribeClusterDetailResponse>(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
9252
9661
  }
9253
9662
 
9254
9663
  async describeClusterLogs(ClusterId: string): Promise<DescribeClusterLogsResponse> {
@@ -9262,7 +9671,18 @@ export default class Client extends OpenApi {
9262
9671
  let req = new $OpenApi.OpenApiRequest({
9263
9672
  headers: headers,
9264
9673
  });
9265
- return $tea.cast<DescribeClusterLogsResponse>(await this.doROARequest("DescribeClusterLogs", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/${ClusterId}/logs`, "array", req, runtime), new DescribeClusterLogsResponse({}));
9674
+ let params = new $OpenApi.Params({
9675
+ action: "DescribeClusterLogs",
9676
+ version: "2015-12-15",
9677
+ protocol: "HTTPS",
9678
+ pathname: `/clusters/${ClusterId}/logs`,
9679
+ method: "GET",
9680
+ authType: "AK",
9681
+ style: "ROA",
9682
+ reqBodyType: "json",
9683
+ bodyType: "array",
9684
+ });
9685
+ return $tea.cast<DescribeClusterLogsResponse>(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
9266
9686
  }
9267
9687
 
9268
9688
  async describeClusterNamespaces(ClusterId: string): Promise<DescribeClusterNamespacesResponse> {
@@ -9276,7 +9696,18 @@ export default class Client extends OpenApi {
9276
9696
  let req = new $OpenApi.OpenApiRequest({
9277
9697
  headers: headers,
9278
9698
  });
9279
- return $tea.cast<DescribeClusterNamespacesResponse>(await this.doROARequest("DescribeClusterNamespaces", "2015-12-15", "HTTPS", "GET", "AK", `/k8s/${ClusterId}/namespaces`, "array", req, runtime), new DescribeClusterNamespacesResponse({}));
9699
+ let params = new $OpenApi.Params({
9700
+ action: "DescribeClusterNamespaces",
9701
+ version: "2015-12-15",
9702
+ protocol: "HTTPS",
9703
+ pathname: `/k8s/${ClusterId}/namespaces`,
9704
+ method: "GET",
9705
+ authType: "AK",
9706
+ style: "ROA",
9707
+ reqBodyType: "json",
9708
+ bodyType: "array",
9709
+ });
9710
+ return $tea.cast<DescribeClusterNamespacesResponse>(await this.callApi(params, req, runtime), new DescribeClusterNamespacesResponse({}));
9280
9711
  }
9281
9712
 
9282
9713
  async describeClusterNodePoolDetail(ClusterId: string, NodepoolId: string): Promise<DescribeClusterNodePoolDetailResponse> {
@@ -9291,7 +9722,18 @@ export default class Client extends OpenApi {
9291
9722
  let req = new $OpenApi.OpenApiRequest({
9292
9723
  headers: headers,
9293
9724
  });
9294
- return $tea.cast<DescribeClusterNodePoolDetailResponse>(await this.doROARequest("DescribeClusterNodePoolDetail", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/${ClusterId}/nodepools/${NodepoolId}`, "json", req, runtime), new DescribeClusterNodePoolDetailResponse({}));
9725
+ let params = new $OpenApi.Params({
9726
+ action: "DescribeClusterNodePoolDetail",
9727
+ version: "2015-12-15",
9728
+ protocol: "HTTPS",
9729
+ pathname: `/clusters/${ClusterId}/nodepools/{NodepoolId}`,
9730
+ method: "GET",
9731
+ authType: "AK",
9732
+ style: "ROA",
9733
+ reqBodyType: "json",
9734
+ bodyType: "json",
9735
+ });
9736
+ return $tea.cast<DescribeClusterNodePoolDetailResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodePoolDetailResponse({}));
9295
9737
  }
9296
9738
 
9297
9739
  async describeClusterNodePools(ClusterId: string): Promise<DescribeClusterNodePoolsResponse> {
@@ -9305,7 +9747,18 @@ export default class Client extends OpenApi {
9305
9747
  let req = new $OpenApi.OpenApiRequest({
9306
9748
  headers: headers,
9307
9749
  });
9308
- return $tea.cast<DescribeClusterNodePoolsResponse>(await this.doROARequest("DescribeClusterNodePools", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/${ClusterId}/nodepools`, "json", req, runtime), new DescribeClusterNodePoolsResponse({}));
9750
+ let params = new $OpenApi.Params({
9751
+ action: "DescribeClusterNodePools",
9752
+ version: "2015-12-15",
9753
+ protocol: "HTTPS",
9754
+ pathname: `/clusters/${ClusterId}/nodepools`,
9755
+ method: "GET",
9756
+ authType: "AK",
9757
+ style: "ROA",
9758
+ reqBodyType: "json",
9759
+ bodyType: "json",
9760
+ });
9761
+ return $tea.cast<DescribeClusterNodePoolsResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodePoolsResponse({}));
9309
9762
  }
9310
9763
 
9311
9764
  async describeClusterNodes(ClusterId: string, request: DescribeClusterNodesRequest): Promise<DescribeClusterNodesResponse> {
@@ -9342,7 +9795,18 @@ export default class Client extends OpenApi {
9342
9795
  headers: headers,
9343
9796
  query: OpenApiUtil.query(query),
9344
9797
  });
9345
- return $tea.cast<DescribeClusterNodesResponse>(await this.doROARequest("DescribeClusterNodes", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/${ClusterId}/nodes`, "json", req, runtime), new DescribeClusterNodesResponse({}));
9798
+ let params = new $OpenApi.Params({
9799
+ action: "DescribeClusterNodes",
9800
+ version: "2015-12-15",
9801
+ protocol: "HTTPS",
9802
+ pathname: `/clusters/${ClusterId}/nodes`,
9803
+ method: "GET",
9804
+ authType: "AK",
9805
+ style: "ROA",
9806
+ reqBodyType: "json",
9807
+ bodyType: "json",
9808
+ });
9809
+ return $tea.cast<DescribeClusterNodesResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodesResponse({}));
9346
9810
  }
9347
9811
 
9348
9812
  async describeClusterResources(ClusterId: string): Promise<DescribeClusterResourcesResponse> {
@@ -9356,7 +9820,18 @@ export default class Client extends OpenApi {
9356
9820
  let req = new $OpenApi.OpenApiRequest({
9357
9821
  headers: headers,
9358
9822
  });
9359
- return $tea.cast<DescribeClusterResourcesResponse>(await this.doROARequest("DescribeClusterResources", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/${ClusterId}/resources`, "array", req, runtime), new DescribeClusterResourcesResponse({}));
9823
+ let params = new $OpenApi.Params({
9824
+ action: "DescribeClusterResources",
9825
+ version: "2015-12-15",
9826
+ protocol: "HTTPS",
9827
+ pathname: `/clusters/${ClusterId}/resources`,
9828
+ method: "GET",
9829
+ authType: "AK",
9830
+ style: "ROA",
9831
+ reqBodyType: "json",
9832
+ bodyType: "array",
9833
+ });
9834
+ return $tea.cast<DescribeClusterResourcesResponse>(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
9360
9835
  }
9361
9836
 
9362
9837
  async describeClusterUserKubeconfig(ClusterId: string, request: DescribeClusterUserKubeconfigRequest): Promise<DescribeClusterUserKubeconfigResponse> {
@@ -9381,7 +9856,18 @@ export default class Client extends OpenApi {
9381
9856
  headers: headers,
9382
9857
  query: OpenApiUtil.query(query),
9383
9858
  });
9384
- return $tea.cast<DescribeClusterUserKubeconfigResponse>(await this.doROARequest("DescribeClusterUserKubeconfig", "2015-12-15", "HTTPS", "GET", "AK", `/k8s/${ClusterId}/user_config`, "json", req, runtime), new DescribeClusterUserKubeconfigResponse({}));
9859
+ let params = new $OpenApi.Params({
9860
+ action: "DescribeClusterUserKubeconfig",
9861
+ version: "2015-12-15",
9862
+ protocol: "HTTPS",
9863
+ pathname: `/k8s/${ClusterId}/user_config`,
9864
+ method: "GET",
9865
+ authType: "AK",
9866
+ style: "ROA",
9867
+ reqBodyType: "json",
9868
+ bodyType: "json",
9869
+ });
9870
+ return $tea.cast<DescribeClusterUserKubeconfigResponse>(await this.callApi(params, req, runtime), new DescribeClusterUserKubeconfigResponse({}));
9385
9871
  }
9386
9872
 
9387
9873
  async describeClusterV2UserKubeconfig(ClusterId: string, request: DescribeClusterV2UserKubeconfigRequest): Promise<DescribeClusterV2UserKubeconfigResponse> {
@@ -9402,7 +9888,18 @@ export default class Client extends OpenApi {
9402
9888
  headers: headers,
9403
9889
  query: OpenApiUtil.query(query),
9404
9890
  });
9405
- return $tea.cast<DescribeClusterV2UserKubeconfigResponse>(await this.doROARequest("DescribeClusterV2UserKubeconfig", "2015-12-15", "HTTPS", "GET", "AK", `/api/v2/k8s/${ClusterId}/user_config`, "json", req, runtime), new DescribeClusterV2UserKubeconfigResponse({}));
9891
+ let params = new $OpenApi.Params({
9892
+ action: "DescribeClusterV2UserKubeconfig",
9893
+ version: "2015-12-15",
9894
+ protocol: "HTTPS",
9895
+ pathname: `/api/v2/k8s/${ClusterId}/user_config`,
9896
+ method: "GET",
9897
+ authType: "AK",
9898
+ style: "ROA",
9899
+ reqBodyType: "json",
9900
+ bodyType: "json",
9901
+ });
9902
+ return $tea.cast<DescribeClusterV2UserKubeconfigResponse>(await this.callApi(params, req, runtime), new DescribeClusterV2UserKubeconfigResponse({}));
9406
9903
  }
9407
9904
 
9408
9905
  async describeClusters(request: DescribeClustersRequest): Promise<DescribeClustersResponse> {
@@ -9426,7 +9923,18 @@ export default class Client extends OpenApi {
9426
9923
  headers: headers,
9427
9924
  query: OpenApiUtil.query(query),
9428
9925
  });
9429
- return $tea.cast<DescribeClustersResponse>(await this.doROARequest("DescribeClusters", "2015-12-15", "HTTPS", "GET", "AK", `/clusters`, "array", req, runtime), new DescribeClustersResponse({}));
9926
+ let params = new $OpenApi.Params({
9927
+ action: "DescribeClusters",
9928
+ version: "2015-12-15",
9929
+ protocol: "HTTPS",
9930
+ pathname: `/clusters`,
9931
+ method: "GET",
9932
+ authType: "AK",
9933
+ style: "ROA",
9934
+ reqBodyType: "json",
9935
+ bodyType: "array",
9936
+ });
9937
+ return $tea.cast<DescribeClustersResponse>(await this.callApi(params, req, runtime), new DescribeClustersResponse({}));
9430
9938
  }
9431
9939
 
9432
9940
  async describeClustersV1(request: DescribeClustersV1Request): Promise<DescribeClustersV1Response> {
@@ -9466,7 +9974,18 @@ export default class Client extends OpenApi {
9466
9974
  headers: headers,
9467
9975
  query: OpenApiUtil.query(query),
9468
9976
  });
9469
- return $tea.cast<DescribeClustersV1Response>(await this.doROARequest("DescribeClustersV1", "2015-12-15", "HTTPS", "GET", "AK", `/api/v1/clusters`, "json", req, runtime), new DescribeClustersV1Response({}));
9977
+ let params = new $OpenApi.Params({
9978
+ action: "DescribeClustersV1",
9979
+ version: "2015-12-15",
9980
+ protocol: "HTTPS",
9981
+ pathname: `/api/v1/clusters`,
9982
+ method: "GET",
9983
+ authType: "AK",
9984
+ style: "ROA",
9985
+ reqBodyType: "json",
9986
+ bodyType: "json",
9987
+ });
9988
+ return $tea.cast<DescribeClustersV1Response>(await this.callApi(params, req, runtime), new DescribeClustersV1Response({}));
9470
9989
  }
9471
9990
 
9472
9991
  async describeEdgeMachineActiveProcess(edgeMachineid: string): Promise<DescribeEdgeMachineActiveProcessResponse> {
@@ -9480,7 +9999,18 @@ export default class Client extends OpenApi {
9480
9999
  let req = new $OpenApi.OpenApiRequest({
9481
10000
  headers: headers,
9482
10001
  });
9483
- return $tea.cast<DescribeEdgeMachineActiveProcessResponse>(await this.doROARequest("DescribeEdgeMachineActiveProcess", "2015-12-15", "HTTPS", "GET", "AK", `/edge_machines/[edge_machineid]/activeprocess`, "json", req, runtime), new DescribeEdgeMachineActiveProcessResponse({}));
10002
+ let params = new $OpenApi.Params({
10003
+ action: "DescribeEdgeMachineActiveProcess",
10004
+ version: "2015-12-15",
10005
+ protocol: "HTTPS",
10006
+ pathname: `/edge_machines/[edge_machineid]/activeprocess`,
10007
+ method: "GET",
10008
+ authType: "AK",
10009
+ style: "ROA",
10010
+ reqBodyType: "json",
10011
+ bodyType: "json",
10012
+ });
10013
+ return $tea.cast<DescribeEdgeMachineActiveProcessResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineActiveProcessResponse({}));
9484
10014
  }
9485
10015
 
9486
10016
  async describeEdgeMachineModels(): Promise<DescribeEdgeMachineModelsResponse> {
@@ -9493,7 +10023,18 @@ export default class Client extends OpenApi {
9493
10023
  let req = new $OpenApi.OpenApiRequest({
9494
10024
  headers: headers,
9495
10025
  });
9496
- return $tea.cast<DescribeEdgeMachineModelsResponse>(await this.doROARequest("DescribeEdgeMachineModels", "2015-12-15", "HTTPS", "GET", "AK", `/edge_machines/models`, "json", req, runtime), new DescribeEdgeMachineModelsResponse({}));
10026
+ let params = new $OpenApi.Params({
10027
+ action: "DescribeEdgeMachineModels",
10028
+ version: "2015-12-15",
10029
+ protocol: "HTTPS",
10030
+ pathname: `/edge_machines/models`,
10031
+ method: "GET",
10032
+ authType: "AK",
10033
+ style: "ROA",
10034
+ reqBodyType: "json",
10035
+ bodyType: "json",
10036
+ });
10037
+ return $tea.cast<DescribeEdgeMachineModelsResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineModelsResponse({}));
9497
10038
  }
9498
10039
 
9499
10040
  async describeEdgeMachineTunnelConfigDetail(edgeMachineid: string): Promise<DescribeEdgeMachineTunnelConfigDetailResponse> {
@@ -9507,7 +10048,18 @@ export default class Client extends OpenApi {
9507
10048
  let req = new $OpenApi.OpenApiRequest({
9508
10049
  headers: headers,
9509
10050
  });
9510
- return $tea.cast<DescribeEdgeMachineTunnelConfigDetailResponse>(await this.doROARequest("DescribeEdgeMachineTunnelConfigDetail", "2015-12-15", "HTTPS", "POST", "AK", `/edge_machines/[edge_machineid]/tunnelconfig`, "json", req, runtime), new DescribeEdgeMachineTunnelConfigDetailResponse({}));
10051
+ let params = new $OpenApi.Params({
10052
+ action: "DescribeEdgeMachineTunnelConfigDetail",
10053
+ version: "2015-12-15",
10054
+ protocol: "HTTPS",
10055
+ pathname: `/edge_machines/[edge_machineid]/tunnelconfig`,
10056
+ method: "POST",
10057
+ authType: "AK",
10058
+ style: "ROA",
10059
+ reqBodyType: "json",
10060
+ bodyType: "json",
10061
+ });
10062
+ return $tea.cast<DescribeEdgeMachineTunnelConfigDetailResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineTunnelConfigDetailResponse({}));
9511
10063
  }
9512
10064
 
9513
10065
  async describeEdgeMachines(request: DescribeEdgeMachinesRequest): Promise<DescribeEdgeMachinesResponse> {
@@ -9547,7 +10099,18 @@ export default class Client extends OpenApi {
9547
10099
  headers: headers,
9548
10100
  query: OpenApiUtil.query(query),
9549
10101
  });
9550
- return $tea.cast<DescribeEdgeMachinesResponse>(await this.doROARequest("DescribeEdgeMachines", "2015-12-15", "HTTPS", "GET", "AK", `/edge_machines`, "json", req, runtime), new DescribeEdgeMachinesResponse({}));
10102
+ let params = new $OpenApi.Params({
10103
+ action: "DescribeEdgeMachines",
10104
+ version: "2015-12-15",
10105
+ protocol: "HTTPS",
10106
+ pathname: `/edge_machines`,
10107
+ method: "GET",
10108
+ authType: "AK",
10109
+ style: "ROA",
10110
+ reqBodyType: "json",
10111
+ bodyType: "json",
10112
+ });
10113
+ return $tea.cast<DescribeEdgeMachinesResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachinesResponse({}));
9551
10114
  }
9552
10115
 
9553
10116
  async describeEvents(request: DescribeEventsRequest): Promise<DescribeEventsResponse> {
@@ -9579,7 +10142,18 @@ export default class Client extends OpenApi {
9579
10142
  headers: headers,
9580
10143
  query: OpenApiUtil.query(query),
9581
10144
  });
9582
- return $tea.cast<DescribeEventsResponse>(await this.doROARequest("DescribeEvents", "2015-12-15", "HTTPS", "GET", "AK", `/events`, "json", req, runtime), new DescribeEventsResponse({}));
10145
+ let params = new $OpenApi.Params({
10146
+ action: "DescribeEvents",
10147
+ version: "2015-12-15",
10148
+ protocol: "HTTPS",
10149
+ pathname: `/events`,
10150
+ method: "GET",
10151
+ authType: "AK",
10152
+ style: "ROA",
10153
+ reqBodyType: "json",
10154
+ bodyType: "json",
10155
+ });
10156
+ return $tea.cast<DescribeEventsResponse>(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
9583
10157
  }
9584
10158
 
9585
10159
  async describeExternalAgent(ClusterId: string, request: DescribeExternalAgentRequest): Promise<DescribeExternalAgentResponse> {
@@ -9600,7 +10174,18 @@ export default class Client extends OpenApi {
9600
10174
  headers: headers,
9601
10175
  query: OpenApiUtil.query(query),
9602
10176
  });
9603
- return $tea.cast<DescribeExternalAgentResponse>(await this.doROARequest("DescribeExternalAgent", "2015-12-15", "HTTPS", "GET", "AK", `/k8s/${ClusterId}/external/agent/deployment`, "json", req, runtime), new DescribeExternalAgentResponse({}));
10177
+ let params = new $OpenApi.Params({
10178
+ action: "DescribeExternalAgent",
10179
+ version: "2015-12-15",
10180
+ protocol: "HTTPS",
10181
+ pathname: `/k8s/${ClusterId}/external/agent/deployment`,
10182
+ method: "GET",
10183
+ authType: "AK",
10184
+ style: "ROA",
10185
+ reqBodyType: "json",
10186
+ bodyType: "json",
10187
+ });
10188
+ return $tea.cast<DescribeExternalAgentResponse>(await this.callApi(params, req, runtime), new DescribeExternalAgentResponse({}));
9604
10189
  }
9605
10190
 
9606
10191
  async describeKubernetesVersionMetadata(request: DescribeKubernetesVersionMetadataRequest): Promise<DescribeKubernetesVersionMetadataResponse> {
@@ -9632,7 +10217,18 @@ export default class Client extends OpenApi {
9632
10217
  headers: headers,
9633
10218
  query: OpenApiUtil.query(query),
9634
10219
  });
9635
- return $tea.cast<DescribeKubernetesVersionMetadataResponse>(await this.doROARequest("DescribeKubernetesVersionMetadata", "2015-12-15", "HTTPS", "GET", "AK", `/api/v1/metadata/versions`, "array", req, runtime), new DescribeKubernetesVersionMetadataResponse({}));
10220
+ let params = new $OpenApi.Params({
10221
+ action: "DescribeKubernetesVersionMetadata",
10222
+ version: "2015-12-15",
10223
+ protocol: "HTTPS",
10224
+ pathname: `/api/v1/metadata/versions`,
10225
+ method: "GET",
10226
+ authType: "AK",
10227
+ style: "ROA",
10228
+ reqBodyType: "json",
10229
+ bodyType: "array",
10230
+ });
10231
+ return $tea.cast<DescribeKubernetesVersionMetadataResponse>(await this.callApi(params, req, runtime), new DescribeKubernetesVersionMetadataResponse({}));
9636
10232
  }
9637
10233
 
9638
10234
  async describePolicies(): Promise<DescribePoliciesResponse> {
@@ -9645,7 +10241,18 @@ export default class Client extends OpenApi {
9645
10241
  let req = new $OpenApi.OpenApiRequest({
9646
10242
  headers: headers,
9647
10243
  });
9648
- return $tea.cast<DescribePoliciesResponse>(await this.doROARequest("DescribePolicies", "2015-12-15", "HTTPS", "GET", "AK", `/policies`, "json", req, runtime), new DescribePoliciesResponse({}));
10244
+ let params = new $OpenApi.Params({
10245
+ action: "DescribePolicies",
10246
+ version: "2015-12-15",
10247
+ protocol: "HTTPS",
10248
+ pathname: `/policies`,
10249
+ method: "GET",
10250
+ authType: "AK",
10251
+ style: "ROA",
10252
+ reqBodyType: "json",
10253
+ bodyType: "json",
10254
+ });
10255
+ return $tea.cast<DescribePoliciesResponse>(await this.callApi(params, req, runtime), new DescribePoliciesResponse({}));
9649
10256
  }
9650
10257
 
9651
10258
  async describePolicyDetails(policyName: string): Promise<DescribePolicyDetailsResponse> {
@@ -9659,7 +10266,18 @@ export default class Client extends OpenApi {
9659
10266
  let req = new $OpenApi.OpenApiRequest({
9660
10267
  headers: headers,
9661
10268
  });
9662
- return $tea.cast<DescribePolicyDetailsResponse>(await this.doROARequest("DescribePolicyDetails", "2015-12-15", "HTTPS", "GET", "AK", `/policies/${policyName}`, "json", req, runtime), new DescribePolicyDetailsResponse({}));
10269
+ let params = new $OpenApi.Params({
10270
+ action: "DescribePolicyDetails",
10271
+ version: "2015-12-15",
10272
+ protocol: "HTTPS",
10273
+ pathname: `/policies/${policyName}`,
10274
+ method: "GET",
10275
+ authType: "AK",
10276
+ style: "ROA",
10277
+ reqBodyType: "json",
10278
+ bodyType: "json",
10279
+ });
10280
+ return $tea.cast<DescribePolicyDetailsResponse>(await this.callApi(params, req, runtime), new DescribePolicyDetailsResponse({}));
9663
10281
  }
9664
10282
 
9665
10283
  async describePolicyGovernanceInCluster(clusterId: string): Promise<DescribePolicyGovernanceInClusterResponse> {
@@ -9673,7 +10291,18 @@ export default class Client extends OpenApi {
9673
10291
  let req = new $OpenApi.OpenApiRequest({
9674
10292
  headers: headers,
9675
10293
  });
9676
- return $tea.cast<DescribePolicyGovernanceInClusterResponse>(await this.doROARequest("DescribePolicyGovernanceInCluster", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/${clusterId}/policygovernance`, "json", req, runtime), new DescribePolicyGovernanceInClusterResponse({}));
10294
+ let params = new $OpenApi.Params({
10295
+ action: "DescribePolicyGovernanceInCluster",
10296
+ version: "2015-12-15",
10297
+ protocol: "HTTPS",
10298
+ pathname: `/clusters/${clusterId}/policygovernance`,
10299
+ method: "GET",
10300
+ authType: "AK",
10301
+ style: "ROA",
10302
+ reqBodyType: "json",
10303
+ bodyType: "json",
10304
+ });
10305
+ return $tea.cast<DescribePolicyGovernanceInClusterResponse>(await this.callApi(params, req, runtime), new DescribePolicyGovernanceInClusterResponse({}));
9677
10306
  }
9678
10307
 
9679
10308
  async describePolicyInstances(clusterId: string, request: DescribePolicyInstancesRequest): Promise<DescribePolicyInstancesResponse> {
@@ -9698,7 +10327,18 @@ export default class Client extends OpenApi {
9698
10327
  headers: headers,
9699
10328
  query: OpenApiUtil.query(query),
9700
10329
  });
9701
- return $tea.cast<DescribePolicyInstancesResponse>(await this.doROARequest("DescribePolicyInstances", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/${clusterId}/policies`, "array", req, runtime), new DescribePolicyInstancesResponse({}));
10330
+ let params = new $OpenApi.Params({
10331
+ action: "DescribePolicyInstances",
10332
+ version: "2015-12-15",
10333
+ protocol: "HTTPS",
10334
+ pathname: `/clusters/${clusterId}/policies`,
10335
+ method: "GET",
10336
+ authType: "AK",
10337
+ style: "ROA",
10338
+ reqBodyType: "json",
10339
+ bodyType: "array",
10340
+ });
10341
+ return $tea.cast<DescribePolicyInstancesResponse>(await this.callApi(params, req, runtime), new DescribePolicyInstancesResponse({}));
9702
10342
  }
9703
10343
 
9704
10344
  async describePolicyInstancesStatus(clusterId: string): Promise<DescribePolicyInstancesStatusResponse> {
@@ -9712,7 +10352,18 @@ export default class Client extends OpenApi {
9712
10352
  let req = new $OpenApi.OpenApiRequest({
9713
10353
  headers: headers,
9714
10354
  });
9715
- return $tea.cast<DescribePolicyInstancesStatusResponse>(await this.doROARequest("DescribePolicyInstancesStatus", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/${clusterId}/policies/status`, "json", req, runtime), new DescribePolicyInstancesStatusResponse({}));
10355
+ let params = new $OpenApi.Params({
10356
+ action: "DescribePolicyInstancesStatus",
10357
+ version: "2015-12-15",
10358
+ protocol: "HTTPS",
10359
+ pathname: `/clusters/${clusterId}/policies/status`,
10360
+ method: "GET",
10361
+ authType: "AK",
10362
+ style: "ROA",
10363
+ reqBodyType: "json",
10364
+ bodyType: "json",
10365
+ });
10366
+ return $tea.cast<DescribePolicyInstancesStatusResponse>(await this.callApi(params, req, runtime), new DescribePolicyInstancesStatusResponse({}));
9716
10367
  }
9717
10368
 
9718
10369
  async describeTaskInfo(taskId: string): Promise<DescribeTaskInfoResponse> {
@@ -9726,7 +10377,18 @@ export default class Client extends OpenApi {
9726
10377
  let req = new $OpenApi.OpenApiRequest({
9727
10378
  headers: headers,
9728
10379
  });
9729
- return $tea.cast<DescribeTaskInfoResponse>(await this.doROARequest("DescribeTaskInfo", "2015-12-15", "HTTPS", "GET", "AK", `/tasks/${taskId}`, "json", req, runtime), new DescribeTaskInfoResponse({}));
10380
+ let params = new $OpenApi.Params({
10381
+ action: "DescribeTaskInfo",
10382
+ version: "2015-12-15",
10383
+ protocol: "HTTPS",
10384
+ pathname: `/tasks/${taskId}`,
10385
+ method: "GET",
10386
+ authType: "AK",
10387
+ style: "ROA",
10388
+ reqBodyType: "json",
10389
+ bodyType: "json",
10390
+ });
10391
+ return $tea.cast<DescribeTaskInfoResponse>(await this.callApi(params, req, runtime), new DescribeTaskInfoResponse({}));
9730
10392
  }
9731
10393
 
9732
10394
  async describeTemplateAttribute(TemplateId: string, request: DescribeTemplateAttributeRequest): Promise<DescribeTemplateAttributeResponse> {
@@ -9747,7 +10409,18 @@ export default class Client extends OpenApi {
9747
10409
  headers: headers,
9748
10410
  query: OpenApiUtil.query(query),
9749
10411
  });
9750
- return $tea.cast<DescribeTemplateAttributeResponse>(await this.doROARequest("DescribeTemplateAttribute", "2015-12-15", "HTTPS", "GET", "AK", `/templates/${TemplateId}`, "array", req, runtime), new DescribeTemplateAttributeResponse({}));
10412
+ let params = new $OpenApi.Params({
10413
+ action: "DescribeTemplateAttribute",
10414
+ version: "2015-12-15",
10415
+ protocol: "HTTPS",
10416
+ pathname: `/templates/${TemplateId}`,
10417
+ method: "GET",
10418
+ authType: "AK",
10419
+ style: "ROA",
10420
+ reqBodyType: "json",
10421
+ bodyType: "array",
10422
+ });
10423
+ return $tea.cast<DescribeTemplateAttributeResponse>(await this.callApi(params, req, runtime), new DescribeTemplateAttributeResponse({}));
9751
10424
  }
9752
10425
 
9753
10426
  async describeTemplates(request: DescribeTemplatesRequest): Promise<DescribeTemplatesResponse> {
@@ -9775,7 +10448,18 @@ export default class Client extends OpenApi {
9775
10448
  headers: headers,
9776
10449
  query: OpenApiUtil.query(query),
9777
10450
  });
9778
- return $tea.cast<DescribeTemplatesResponse>(await this.doROARequest("DescribeTemplates", "2015-12-15", "HTTPS", "GET", "AK", `/templates`, "json", req, runtime), new DescribeTemplatesResponse({}));
10451
+ let params = new $OpenApi.Params({
10452
+ action: "DescribeTemplates",
10453
+ version: "2015-12-15",
10454
+ protocol: "HTTPS",
10455
+ pathname: `/templates`,
10456
+ method: "GET",
10457
+ authType: "AK",
10458
+ style: "ROA",
10459
+ reqBodyType: "json",
10460
+ bodyType: "json",
10461
+ });
10462
+ return $tea.cast<DescribeTemplatesResponse>(await this.callApi(params, req, runtime), new DescribeTemplatesResponse({}));
9779
10463
  }
9780
10464
 
9781
10465
  async describeTrigger(clusterId: string, request: DescribeTriggerRequest): Promise<DescribeTriggerResponse> {
@@ -9808,7 +10492,18 @@ export default class Client extends OpenApi {
9808
10492
  headers: headers,
9809
10493
  query: OpenApiUtil.query(query),
9810
10494
  });
9811
- return $tea.cast<DescribeTriggerResponse>(await this.doROARequest("DescribeTrigger", "2015-12-15", "HTTPS", "GET", "AK", `/clusters/[cluster_id]/triggers`, "array", req, runtime), new DescribeTriggerResponse({}));
10495
+ let params = new $OpenApi.Params({
10496
+ action: "DescribeTrigger",
10497
+ version: "2015-12-15",
10498
+ protocol: "HTTPS",
10499
+ pathname: `/clusters/[cluster_id]/triggers`,
10500
+ method: "GET",
10501
+ authType: "AK",
10502
+ style: "ROA",
10503
+ reqBodyType: "json",
10504
+ bodyType: "array",
10505
+ });
10506
+ return $tea.cast<DescribeTriggerResponse>(await this.callApi(params, req, runtime), new DescribeTriggerResponse({}));
9812
10507
  }
9813
10508
 
9814
10509
  async describeUserPermission(uid: string): Promise<DescribeUserPermissionResponse> {
@@ -9822,7 +10517,18 @@ export default class Client extends OpenApi {
9822
10517
  let req = new $OpenApi.OpenApiRequest({
9823
10518
  headers: headers,
9824
10519
  });
9825
- return $tea.cast<DescribeUserPermissionResponse>(await this.doROARequest("DescribeUserPermission", "2015-12-15", "HTTPS", "GET", "AK", `/permissions/users/${uid}`, "array", req, runtime), new DescribeUserPermissionResponse({}));
10520
+ let params = new $OpenApi.Params({
10521
+ action: "DescribeUserPermission",
10522
+ version: "2015-12-15",
10523
+ protocol: "HTTPS",
10524
+ pathname: `/permissions/users/${uid}`,
10525
+ method: "GET",
10526
+ authType: "AK",
10527
+ style: "ROA",
10528
+ reqBodyType: "json",
10529
+ bodyType: "array",
10530
+ });
10531
+ return $tea.cast<DescribeUserPermissionResponse>(await this.callApi(params, req, runtime), new DescribeUserPermissionResponse({}));
9826
10532
  }
9827
10533
 
9828
10534
  async describeUserQuota(): Promise<DescribeUserQuotaResponse> {
@@ -9835,7 +10541,18 @@ export default class Client extends OpenApi {
9835
10541
  let req = new $OpenApi.OpenApiRequest({
9836
10542
  headers: headers,
9837
10543
  });
9838
- return $tea.cast<DescribeUserQuotaResponse>(await this.doROARequest("DescribeUserQuota", "2015-12-15", "HTTPS", "GET", "AK", `/quota`, "json", req, runtime), new DescribeUserQuotaResponse({}));
10544
+ let params = new $OpenApi.Params({
10545
+ action: "DescribeUserQuota",
10546
+ version: "2015-12-15",
10547
+ protocol: "HTTPS",
10548
+ pathname: `/quota`,
10549
+ method: "GET",
10550
+ authType: "AK",
10551
+ style: "ROA",
10552
+ reqBodyType: "json",
10553
+ bodyType: "json",
10554
+ });
10555
+ return $tea.cast<DescribeUserQuotaResponse>(await this.callApi(params, req, runtime), new DescribeUserQuotaResponse({}));
9839
10556
  }
9840
10557
 
9841
10558
  async describeWorkflows(): Promise<DescribeWorkflowsResponse> {
@@ -9848,7 +10565,18 @@ export default class Client extends OpenApi {
9848
10565
  let req = new $OpenApi.OpenApiRequest({
9849
10566
  headers: headers,
9850
10567
  });
9851
- return $tea.cast<DescribeWorkflowsResponse>(await this.doROARequest("DescribeWorkflows", "2015-12-15", "HTTPS", "GET", "AK", `/gs/workflows`, "json", req, runtime), new DescribeWorkflowsResponse({}));
10568
+ let params = new $OpenApi.Params({
10569
+ action: "DescribeWorkflows",
10570
+ version: "2015-12-15",
10571
+ protocol: "HTTPS",
10572
+ pathname: `/gs/workflows`,
10573
+ method: "GET",
10574
+ authType: "AK",
10575
+ style: "ROA",
10576
+ reqBodyType: "json",
10577
+ bodyType: "json",
10578
+ });
10579
+ return $tea.cast<DescribeWorkflowsResponse>(await this.callApi(params, req, runtime), new DescribeWorkflowsResponse({}));
9852
10580
  }
9853
10581
 
9854
10582
  async edgeClusterAddEdgeMachine(clusterid: string, edgeMachineid: string, request: EdgeClusterAddEdgeMachineRequest): Promise<EdgeClusterAddEdgeMachineResponse> {
@@ -9878,7 +10606,18 @@ export default class Client extends OpenApi {
9878
10606
  headers: headers,
9879
10607
  body: OpenApiUtil.parseToMap(body),
9880
10608
  });
9881
- return $tea.cast<EdgeClusterAddEdgeMachineResponse>(await this.doROARequest("EdgeClusterAddEdgeMachine", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/[clusterid]/attachedgemachine/[edge_machineid]`, "json", req, runtime), new EdgeClusterAddEdgeMachineResponse({}));
10609
+ let params = new $OpenApi.Params({
10610
+ action: "EdgeClusterAddEdgeMachine",
10611
+ version: "2015-12-15",
10612
+ protocol: "HTTPS",
10613
+ pathname: `/clusters/[clusterid]/attachedgemachine/[edge_machineid]`,
10614
+ method: "POST",
10615
+ authType: "AK",
10616
+ style: "ROA",
10617
+ reqBodyType: "json",
10618
+ bodyType: "json",
10619
+ });
10620
+ return $tea.cast<EdgeClusterAddEdgeMachineResponse>(await this.callApi(params, req, runtime), new EdgeClusterAddEdgeMachineResponse({}));
9882
10621
  }
9883
10622
 
9884
10623
  async getKubernetesTrigger(ClusterId: string, request: GetKubernetesTriggerRequest): Promise<GetKubernetesTriggerResponse> {
@@ -9911,7 +10650,18 @@ export default class Client extends OpenApi {
9911
10650
  headers: headers,
9912
10651
  query: OpenApiUtil.query(query),
9913
10652
  });
9914
- return $tea.cast<GetKubernetesTriggerResponse>(await this.doROARequest("GetKubernetesTrigger", "2015-12-15", "HTTPS", "GET", "AK", `/triggers/${ClusterId}`, "array", req, runtime), new GetKubernetesTriggerResponse({}));
10653
+ let params = new $OpenApi.Params({
10654
+ action: "GetKubernetesTrigger",
10655
+ version: "2015-12-15",
10656
+ protocol: "HTTPS",
10657
+ pathname: `/triggers/${ClusterId}`,
10658
+ method: "GET",
10659
+ authType: "AK",
10660
+ style: "ROA",
10661
+ reqBodyType: "json",
10662
+ bodyType: "array",
10663
+ });
10664
+ return $tea.cast<GetKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new GetKubernetesTriggerResponse({}));
9915
10665
  }
9916
10666
 
9917
10667
  async getUpgradeStatus(ClusterId: string): Promise<GetUpgradeStatusResponse> {
@@ -9925,7 +10675,18 @@ export default class Client extends OpenApi {
9925
10675
  let req = new $OpenApi.OpenApiRequest({
9926
10676
  headers: headers,
9927
10677
  });
9928
- return $tea.cast<GetUpgradeStatusResponse>(await this.doROARequest("GetUpgradeStatus", "2015-12-15", "HTTPS", "GET", "AK", `/api/v2/clusters/${ClusterId}/upgrade/status`, "json", req, runtime), new GetUpgradeStatusResponse({}));
10678
+ let params = new $OpenApi.Params({
10679
+ action: "GetUpgradeStatus",
10680
+ version: "2015-12-15",
10681
+ protocol: "HTTPS",
10682
+ pathname: `/api/v2/clusters/${ClusterId}/upgrade/status`,
10683
+ method: "GET",
10684
+ authType: "AK",
10685
+ style: "ROA",
10686
+ reqBodyType: "json",
10687
+ bodyType: "json",
10688
+ });
10689
+ return $tea.cast<GetUpgradeStatusResponse>(await this.callApi(params, req, runtime), new GetUpgradeStatusResponse({}));
9929
10690
  }
9930
10691
 
9931
10692
  async grantPermissions(uid: string, request: GrantPermissionsRequest): Promise<GrantPermissionsResponse> {
@@ -9941,7 +10702,18 @@ export default class Client extends OpenApi {
9941
10702
  headers: headers,
9942
10703
  body: Util.toArray(request.body),
9943
10704
  });
9944
- return $tea.cast<GrantPermissionsResponse>(await this.doROARequest("GrantPermissions", "2015-12-15", "HTTPS", "POST", "AK", `/permissions/users/${uid}`, "none", req, runtime), new GrantPermissionsResponse({}));
10705
+ let params = new $OpenApi.Params({
10706
+ action: "GrantPermissions",
10707
+ version: "2015-12-15",
10708
+ protocol: "HTTPS",
10709
+ pathname: `/permissions/users/${uid}`,
10710
+ method: "POST",
10711
+ authType: "AK",
10712
+ style: "ROA",
10713
+ reqBodyType: "json",
10714
+ bodyType: "none",
10715
+ });
10716
+ return $tea.cast<GrantPermissionsResponse>(await this.callApi(params, req, runtime), new GrantPermissionsResponse({}));
9945
10717
  }
9946
10718
 
9947
10719
  async installClusterAddons(ClusterId: string, request: InstallClusterAddonsRequest): Promise<InstallClusterAddonsResponse> {
@@ -9957,7 +10729,18 @@ export default class Client extends OpenApi {
9957
10729
  headers: headers,
9958
10730
  body: Util.toArray(request.body),
9959
10731
  });
9960
- return $tea.cast<InstallClusterAddonsResponse>(await this.doROARequest("InstallClusterAddons", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${ClusterId}/components/install`, "none", req, runtime), new InstallClusterAddonsResponse({}));
10732
+ let params = new $OpenApi.Params({
10733
+ action: "InstallClusterAddons",
10734
+ version: "2015-12-15",
10735
+ protocol: "HTTPS",
10736
+ pathname: `/clusters/${ClusterId}/components/install`,
10737
+ method: "POST",
10738
+ authType: "AK",
10739
+ style: "ROA",
10740
+ reqBodyType: "json",
10741
+ bodyType: "none",
10742
+ });
10743
+ return $tea.cast<InstallClusterAddonsResponse>(await this.callApi(params, req, runtime), new InstallClusterAddonsResponse({}));
9961
10744
  }
9962
10745
 
9963
10746
  async listTagResources(request: ListTagResourcesRequest): Promise<ListTagResourcesResponse> {
@@ -10003,7 +10786,18 @@ export default class Client extends OpenApi {
10003
10786
  headers: headers,
10004
10787
  query: OpenApiUtil.query(query),
10005
10788
  });
10006
- return $tea.cast<ListTagResourcesResponse>(await this.doROARequest("ListTagResources", "2015-12-15", "HTTPS", "GET", "AK", `/tags`, "json", req, runtime), new ListTagResourcesResponse({}));
10789
+ let params = new $OpenApi.Params({
10790
+ action: "ListTagResources",
10791
+ version: "2015-12-15",
10792
+ protocol: "HTTPS",
10793
+ pathname: `/tags`,
10794
+ method: "GET",
10795
+ authType: "AK",
10796
+ style: "ROA",
10797
+ reqBodyType: "json",
10798
+ bodyType: "json",
10799
+ });
10800
+ return $tea.cast<ListTagResourcesResponse>(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
10007
10801
  }
10008
10802
 
10009
10803
  async migrateCluster(clusterId: string): Promise<MigrateClusterResponse> {
@@ -10017,7 +10811,18 @@ export default class Client extends OpenApi {
10017
10811
  let req = new $OpenApi.OpenApiRequest({
10018
10812
  headers: headers,
10019
10813
  });
10020
- return $tea.cast<MigrateClusterResponse>(await this.doROARequest("MigrateCluster", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${clusterId}/migrate`, "none", req, runtime), new MigrateClusterResponse({}));
10814
+ let params = new $OpenApi.Params({
10815
+ action: "MigrateCluster",
10816
+ version: "2015-12-15",
10817
+ protocol: "HTTPS",
10818
+ pathname: `/clusters/${clusterId}/migrate`,
10819
+ method: "POST",
10820
+ authType: "AK",
10821
+ style: "ROA",
10822
+ reqBodyType: "json",
10823
+ bodyType: "none",
10824
+ });
10825
+ return $tea.cast<MigrateClusterResponse>(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
10021
10826
  }
10022
10827
 
10023
10828
  async modifyCluster(ClusterId: string, request: ModifyClusterRequest): Promise<ModifyClusterResponse> {
@@ -10042,6 +10847,10 @@ export default class Client extends OpenApi {
10042
10847
  body["deletion_protection"] = request.deletionProtection;
10043
10848
  }
10044
10849
 
10850
+ if (!Util.isUnset(request.enableRrsa)) {
10851
+ body["enable_rrsa"] = request.enableRrsa;
10852
+ }
10853
+
10045
10854
  if (!Util.isUnset(request.ingressDomainRebinding)) {
10046
10855
  body["ingress_domain_rebinding"] = request.ingressDomainRebinding;
10047
10856
  }
@@ -10066,7 +10875,18 @@ export default class Client extends OpenApi {
10066
10875
  headers: headers,
10067
10876
  body: OpenApiUtil.parseToMap(body),
10068
10877
  });
10069
- return $tea.cast<ModifyClusterResponse>(await this.doROARequest("ModifyCluster", "2015-12-15", "HTTPS", "PUT", "AK", `/api/v2/clusters/${ClusterId}`, "json", req, runtime), new ModifyClusterResponse({}));
10878
+ let params = new $OpenApi.Params({
10879
+ action: "ModifyCluster",
10880
+ version: "2015-12-15",
10881
+ protocol: "HTTPS",
10882
+ pathname: `/api/v2/clusters/${ClusterId}`,
10883
+ method: "PUT",
10884
+ authType: "AK",
10885
+ style: "ROA",
10886
+ reqBodyType: "json",
10887
+ bodyType: "json",
10888
+ });
10889
+ return $tea.cast<ModifyClusterResponse>(await this.callApi(params, req, runtime), new ModifyClusterResponse({}));
10070
10890
  }
10071
10891
 
10072
10892
  async modifyClusterAddon(clusterId: string, componentId: string, request: ModifyClusterAddonRequest): Promise<ModifyClusterAddonResponse> {
@@ -10088,7 +10908,18 @@ export default class Client extends OpenApi {
10088
10908
  headers: headers,
10089
10909
  body: OpenApiUtil.parseToMap(body),
10090
10910
  });
10091
- return $tea.cast<ModifyClusterAddonResponse>(await this.doROARequest("ModifyClusterAddon", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${clusterId}/components/${componentId}/config`, "none", req, runtime), new ModifyClusterAddonResponse({}));
10911
+ let params = new $OpenApi.Params({
10912
+ action: "ModifyClusterAddon",
10913
+ version: "2015-12-15",
10914
+ protocol: "HTTPS",
10915
+ pathname: `/clusters/${clusterId}/components/{componentId}/config`,
10916
+ method: "POST",
10917
+ authType: "AK",
10918
+ style: "ROA",
10919
+ reqBodyType: "json",
10920
+ bodyType: "none",
10921
+ });
10922
+ return $tea.cast<ModifyClusterAddonResponse>(await this.callApi(params, req, runtime), new ModifyClusterAddonResponse({}));
10092
10923
  }
10093
10924
 
10094
10925
  async modifyClusterConfiguration(ClusterId: string, request: ModifyClusterConfigurationRequest): Promise<ModifyClusterConfigurationResponse> {
@@ -10109,7 +10940,18 @@ export default class Client extends OpenApi {
10109
10940
  headers: headers,
10110
10941
  body: OpenApiUtil.parseToMap(body),
10111
10942
  });
10112
- return $tea.cast<ModifyClusterConfigurationResponse>(await this.doROARequest("ModifyClusterConfiguration", "2015-12-15", "HTTPS", "PUT", "AK", `/clusters/${ClusterId}/configuration`, "none", req, runtime), new ModifyClusterConfigurationResponse({}));
10943
+ let params = new $OpenApi.Params({
10944
+ action: "ModifyClusterConfiguration",
10945
+ version: "2015-12-15",
10946
+ protocol: "HTTPS",
10947
+ pathname: `/clusters/${ClusterId}/configuration`,
10948
+ method: "PUT",
10949
+ authType: "AK",
10950
+ style: "ROA",
10951
+ reqBodyType: "json",
10952
+ bodyType: "none",
10953
+ });
10954
+ return $tea.cast<ModifyClusterConfigurationResponse>(await this.callApi(params, req, runtime), new ModifyClusterConfigurationResponse({}));
10113
10955
  }
10114
10956
 
10115
10957
  async modifyClusterNodePool(ClusterId: string, NodepoolId: string, request: ModifyClusterNodePoolRequest): Promise<ModifyClusterNodePoolResponse> {
@@ -10155,7 +10997,18 @@ export default class Client extends OpenApi {
10155
10997
  headers: headers,
10156
10998
  body: OpenApiUtil.parseToMap(body),
10157
10999
  });
10158
- return $tea.cast<ModifyClusterNodePoolResponse>(await this.doROARequest("ModifyClusterNodePool", "2015-12-15", "HTTPS", "PUT", "AK", `/clusters/${ClusterId}/nodepools/${NodepoolId}`, "json", req, runtime), new ModifyClusterNodePoolResponse({}));
11000
+ let params = new $OpenApi.Params({
11001
+ action: "ModifyClusterNodePool",
11002
+ version: "2015-12-15",
11003
+ protocol: "HTTPS",
11004
+ pathname: `/clusters/${ClusterId}/nodepools/{NodepoolId}`,
11005
+ method: "PUT",
11006
+ authType: "AK",
11007
+ style: "ROA",
11008
+ reqBodyType: "json",
11009
+ bodyType: "json",
11010
+ });
11011
+ return $tea.cast<ModifyClusterNodePoolResponse>(await this.callApi(params, req, runtime), new ModifyClusterNodePoolResponse({}));
10159
11012
  }
10160
11013
 
10161
11014
  async modifyClusterTags(ClusterId: string, request: ModifyClusterTagsRequest): Promise<ModifyClusterTagsResponse> {
@@ -10171,7 +11024,18 @@ export default class Client extends OpenApi {
10171
11024
  headers: headers,
10172
11025
  body: Util.toArray(request.body),
10173
11026
  });
10174
- return $tea.cast<ModifyClusterTagsResponse>(await this.doROARequest("ModifyClusterTags", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${ClusterId}/tags`, "none", req, runtime), new ModifyClusterTagsResponse({}));
11027
+ let params = new $OpenApi.Params({
11028
+ action: "ModifyClusterTags",
11029
+ version: "2015-12-15",
11030
+ protocol: "HTTPS",
11031
+ pathname: `/clusters/${ClusterId}/tags`,
11032
+ method: "POST",
11033
+ authType: "AK",
11034
+ style: "ROA",
11035
+ reqBodyType: "json",
11036
+ bodyType: "none",
11037
+ });
11038
+ return $tea.cast<ModifyClusterTagsResponse>(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
10175
11039
  }
10176
11040
 
10177
11041
  async modifyPolicyInstance(clusterId: string, policyName: string, request: ModifyPolicyInstanceRequest): Promise<ModifyPolicyInstanceResponse> {
@@ -10205,7 +11069,18 @@ export default class Client extends OpenApi {
10205
11069
  headers: headers,
10206
11070
  body: OpenApiUtil.parseToMap(body),
10207
11071
  });
10208
- return $tea.cast<ModifyPolicyInstanceResponse>(await this.doROARequest("ModifyPolicyInstance", "2015-12-15", "HTTPS", "PUT", "AK", `/clusters/${clusterId}/policies/${policyName}`, "none", req, runtime), new ModifyPolicyInstanceResponse({}));
11072
+ let params = new $OpenApi.Params({
11073
+ action: "ModifyPolicyInstance",
11074
+ version: "2015-12-15",
11075
+ protocol: "HTTPS",
11076
+ pathname: `/clusters/${clusterId}/policies/{policyName}`,
11077
+ method: "PUT",
11078
+ authType: "AK",
11079
+ style: "ROA",
11080
+ reqBodyType: "json",
11081
+ bodyType: "json",
11082
+ });
11083
+ return $tea.cast<ModifyPolicyInstanceResponse>(await this.callApi(params, req, runtime), new ModifyPolicyInstanceResponse({}));
10209
11084
  }
10210
11085
 
10211
11086
  async openAckService(request: OpenAckServiceRequest): Promise<OpenAckServiceResponse> {
@@ -10225,7 +11100,18 @@ export default class Client extends OpenApi {
10225
11100
  headers: headers,
10226
11101
  query: OpenApiUtil.query(query),
10227
11102
  });
10228
- return $tea.cast<OpenAckServiceResponse>(await this.doROARequest("OpenAckService", "2015-12-15", "HTTPS", "POST", "AK", `/service/open`, "json", req, runtime), new OpenAckServiceResponse({}));
11103
+ let params = new $OpenApi.Params({
11104
+ action: "OpenAckService",
11105
+ version: "2015-12-15",
11106
+ protocol: "HTTPS",
11107
+ pathname: `/service/open`,
11108
+ method: "POST",
11109
+ authType: "AK",
11110
+ style: "ROA",
11111
+ reqBodyType: "json",
11112
+ bodyType: "json",
11113
+ });
11114
+ return $tea.cast<OpenAckServiceResponse>(await this.callApi(params, req, runtime), new OpenAckServiceResponse({}));
10229
11115
  }
10230
11116
 
10231
11117
  async pauseClusterUpgrade(ClusterId: string): Promise<PauseClusterUpgradeResponse> {
@@ -10239,7 +11125,18 @@ export default class Client extends OpenApi {
10239
11125
  let req = new $OpenApi.OpenApiRequest({
10240
11126
  headers: headers,
10241
11127
  });
10242
- return $tea.cast<PauseClusterUpgradeResponse>(await this.doROARequest("PauseClusterUpgrade", "2015-12-15", "HTTPS", "POST", "AK", `/api/v2/clusters/${ClusterId}/upgrade/pause`, "none", req, runtime), new PauseClusterUpgradeResponse({}));
11128
+ let params = new $OpenApi.Params({
11129
+ action: "PauseClusterUpgrade",
11130
+ version: "2015-12-15",
11131
+ protocol: "HTTPS",
11132
+ pathname: `/api/v2/clusters/${ClusterId}/upgrade/pause`,
11133
+ method: "POST",
11134
+ authType: "AK",
11135
+ style: "ROA",
11136
+ reqBodyType: "json",
11137
+ bodyType: "none",
11138
+ });
11139
+ return $tea.cast<PauseClusterUpgradeResponse>(await this.callApi(params, req, runtime), new PauseClusterUpgradeResponse({}));
10243
11140
  }
10244
11141
 
10245
11142
  async pauseComponentUpgrade(clusterid: string, componentid: string): Promise<PauseComponentUpgradeResponse> {
@@ -10254,7 +11151,18 @@ export default class Client extends OpenApi {
10254
11151
  let req = new $OpenApi.OpenApiRequest({
10255
11152
  headers: headers,
10256
11153
  });
10257
- return $tea.cast<PauseComponentUpgradeResponse>(await this.doROARequest("PauseComponentUpgrade", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${clusterid}/components/${componentid}/pause`, "none", req, runtime), new PauseComponentUpgradeResponse({}));
11154
+ let params = new $OpenApi.Params({
11155
+ action: "PauseComponentUpgrade",
11156
+ version: "2015-12-15",
11157
+ protocol: "HTTPS",
11158
+ pathname: `/clusters/${clusterid}/components/{componentid}/pause`,
11159
+ method: "POST",
11160
+ authType: "AK",
11161
+ style: "ROA",
11162
+ reqBodyType: "json",
11163
+ bodyType: "none",
11164
+ });
11165
+ return $tea.cast<PauseComponentUpgradeResponse>(await this.callApi(params, req, runtime), new PauseComponentUpgradeResponse({}));
10258
11166
  }
10259
11167
 
10260
11168
  async removeClusterNodes(ClusterId: string, request: RemoveClusterNodesRequest): Promise<RemoveClusterNodesResponse> {
@@ -10283,7 +11191,18 @@ export default class Client extends OpenApi {
10283
11191
  headers: headers,
10284
11192
  body: OpenApiUtil.parseToMap(body),
10285
11193
  });
10286
- return $tea.cast<RemoveClusterNodesResponse>(await this.doROARequest("RemoveClusterNodes", "2015-12-15", "HTTPS", "POST", "AK", `/api/v2/clusters/${ClusterId}/nodes/remove`, "none", req, runtime), new RemoveClusterNodesResponse({}));
11194
+ let params = new $OpenApi.Params({
11195
+ action: "RemoveClusterNodes",
11196
+ version: "2015-12-15",
11197
+ protocol: "HTTPS",
11198
+ pathname: `/api/v2/clusters/${ClusterId}/nodes/remove`,
11199
+ method: "POST",
11200
+ authType: "AK",
11201
+ style: "ROA",
11202
+ reqBodyType: "json",
11203
+ bodyType: "none",
11204
+ });
11205
+ return $tea.cast<RemoveClusterNodesResponse>(await this.callApi(params, req, runtime), new RemoveClusterNodesResponse({}));
10287
11206
  }
10288
11207
 
10289
11208
  async removeWorkflow(workflowName: string): Promise<RemoveWorkflowResponse> {
@@ -10297,7 +11216,18 @@ export default class Client extends OpenApi {
10297
11216
  let req = new $OpenApi.OpenApiRequest({
10298
11217
  headers: headers,
10299
11218
  });
10300
- return $tea.cast<RemoveWorkflowResponse>(await this.doROARequest("RemoveWorkflow", "2015-12-15", "HTTPS", "DELETE", "AK", `/gs/workflow/${workflowName}`, "none", req, runtime), new RemoveWorkflowResponse({}));
11219
+ let params = new $OpenApi.Params({
11220
+ action: "RemoveWorkflow",
11221
+ version: "2015-12-15",
11222
+ protocol: "HTTPS",
11223
+ pathname: `/gs/workflow/${workflowName}`,
11224
+ method: "DELETE",
11225
+ authType: "AK",
11226
+ style: "ROA",
11227
+ reqBodyType: "json",
11228
+ bodyType: "none",
11229
+ });
11230
+ return $tea.cast<RemoveWorkflowResponse>(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
10301
11231
  }
10302
11232
 
10303
11233
  async resumeComponentUpgrade(clusterid: string, componentid: string): Promise<ResumeComponentUpgradeResponse> {
@@ -10312,7 +11242,18 @@ export default class Client extends OpenApi {
10312
11242
  let req = new $OpenApi.OpenApiRequest({
10313
11243
  headers: headers,
10314
11244
  });
10315
- return $tea.cast<ResumeComponentUpgradeResponse>(await this.doROARequest("ResumeComponentUpgrade", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${clusterid}/components/${componentid}/resume`, "none", req, runtime), new ResumeComponentUpgradeResponse({}));
11245
+ let params = new $OpenApi.Params({
11246
+ action: "ResumeComponentUpgrade",
11247
+ version: "2015-12-15",
11248
+ protocol: "HTTPS",
11249
+ pathname: `/clusters/${clusterid}/components/{componentid}/resume`,
11250
+ method: "POST",
11251
+ authType: "AK",
11252
+ style: "ROA",
11253
+ reqBodyType: "json",
11254
+ bodyType: "none",
11255
+ });
11256
+ return $tea.cast<ResumeComponentUpgradeResponse>(await this.callApi(params, req, runtime), new ResumeComponentUpgradeResponse({}));
10316
11257
  }
10317
11258
 
10318
11259
  async resumeUpgradeCluster(ClusterId: string): Promise<ResumeUpgradeClusterResponse> {
@@ -10326,7 +11267,18 @@ export default class Client extends OpenApi {
10326
11267
  let req = new $OpenApi.OpenApiRequest({
10327
11268
  headers: headers,
10328
11269
  });
10329
- return $tea.cast<ResumeUpgradeClusterResponse>(await this.doROARequest("ResumeUpgradeCluster", "2015-12-15", "HTTPS", "POST", "AK", `/api/v2/clusters/${ClusterId}/upgrade/resume`, "none", req, runtime), new ResumeUpgradeClusterResponse({}));
11270
+ let params = new $OpenApi.Params({
11271
+ action: "ResumeUpgradeCluster",
11272
+ version: "2015-12-15",
11273
+ protocol: "HTTPS",
11274
+ pathname: `/api/v2/clusters/${ClusterId}/upgrade/resume`,
11275
+ method: "POST",
11276
+ authType: "AK",
11277
+ style: "ROA",
11278
+ reqBodyType: "json",
11279
+ bodyType: "none",
11280
+ });
11281
+ return $tea.cast<ResumeUpgradeClusterResponse>(await this.callApi(params, req, runtime), new ResumeUpgradeClusterResponse({}));
10330
11282
  }
10331
11283
 
10332
11284
  async scaleCluster(ClusterId: string, request: ScaleClusterRequest): Promise<ScaleClusterResponse> {
@@ -10419,7 +11371,18 @@ export default class Client extends OpenApi {
10419
11371
  headers: headers,
10420
11372
  body: OpenApiUtil.parseToMap(body),
10421
11373
  });
10422
- return $tea.cast<ScaleClusterResponse>(await this.doROARequest("ScaleCluster", "2015-12-15", "HTTPS", "PUT", "AK", `/clusters/${ClusterId}`, "json", req, runtime), new ScaleClusterResponse({}));
11374
+ let params = new $OpenApi.Params({
11375
+ action: "ScaleCluster",
11376
+ version: "2015-12-15",
11377
+ protocol: "HTTPS",
11378
+ pathname: `/clusters/${ClusterId}`,
11379
+ method: "PUT",
11380
+ authType: "AK",
11381
+ style: "ROA",
11382
+ reqBodyType: "json",
11383
+ bodyType: "json",
11384
+ });
11385
+ return $tea.cast<ScaleClusterResponse>(await this.callApi(params, req, runtime), new ScaleClusterResponse({}));
10423
11386
  }
10424
11387
 
10425
11388
  async scaleClusterNodePool(ClusterId: string, NodepoolId: string, request: ScaleClusterNodePoolRequest): Promise<ScaleClusterNodePoolResponse> {
@@ -10441,7 +11404,18 @@ export default class Client extends OpenApi {
10441
11404
  headers: headers,
10442
11405
  body: OpenApiUtil.parseToMap(body),
10443
11406
  });
10444
- return $tea.cast<ScaleClusterNodePoolResponse>(await this.doROARequest("ScaleClusterNodePool", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${ClusterId}/nodepools/${NodepoolId}`, "json", req, runtime), new ScaleClusterNodePoolResponse({}));
11407
+ let params = new $OpenApi.Params({
11408
+ action: "ScaleClusterNodePool",
11409
+ version: "2015-12-15",
11410
+ protocol: "HTTPS",
11411
+ pathname: `/clusters/${ClusterId}/nodepools/{NodepoolId}`,
11412
+ method: "POST",
11413
+ authType: "AK",
11414
+ style: "ROA",
11415
+ reqBodyType: "json",
11416
+ bodyType: "json",
11417
+ });
11418
+ return $tea.cast<ScaleClusterNodePoolResponse>(await this.callApi(params, req, runtime), new ScaleClusterNodePoolResponse({}));
10445
11419
  }
10446
11420
 
10447
11421
  async scaleOutCluster(ClusterId: string, request: ScaleOutClusterRequest): Promise<ScaleOutClusterResponse> {
@@ -10542,7 +11516,18 @@ export default class Client extends OpenApi {
10542
11516
  headers: headers,
10543
11517
  body: OpenApiUtil.parseToMap(body),
10544
11518
  });
10545
- return $tea.cast<ScaleOutClusterResponse>(await this.doROARequest("ScaleOutCluster", "2015-12-15", "HTTPS", "POST", "AK", `/api/v2/clusters/${ClusterId}`, "json", req, runtime), new ScaleOutClusterResponse({}));
11519
+ let params = new $OpenApi.Params({
11520
+ action: "ScaleOutCluster",
11521
+ version: "2015-12-15",
11522
+ protocol: "HTTPS",
11523
+ pathname: `/api/v2/clusters/${ClusterId}`,
11524
+ method: "POST",
11525
+ authType: "AK",
11526
+ style: "ROA",
11527
+ reqBodyType: "json",
11528
+ bodyType: "json",
11529
+ });
11530
+ return $tea.cast<ScaleOutClusterResponse>(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
10546
11531
  }
10547
11532
 
10548
11533
  async startWorkflow(request: StartWorkflowRequest): Promise<StartWorkflowResponse> {
@@ -10634,7 +11619,18 @@ export default class Client extends OpenApi {
10634
11619
  headers: headers,
10635
11620
  body: OpenApiUtil.parseToMap(body),
10636
11621
  });
10637
- return $tea.cast<StartWorkflowResponse>(await this.doROARequest("StartWorkflow", "2015-12-15", "HTTPS", "POST", "AK", `/gs/workflow`, "json", req, runtime), new StartWorkflowResponse({}));
11622
+ let params = new $OpenApi.Params({
11623
+ action: "StartWorkflow",
11624
+ version: "2015-12-15",
11625
+ protocol: "HTTPS",
11626
+ pathname: `/gs/workflow`,
11627
+ method: "POST",
11628
+ authType: "AK",
11629
+ style: "ROA",
11630
+ reqBodyType: "json",
11631
+ bodyType: "json",
11632
+ });
11633
+ return $tea.cast<StartWorkflowResponse>(await this.callApi(params, req, runtime), new StartWorkflowResponse({}));
10638
11634
  }
10639
11635
 
10640
11636
  async tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse> {
@@ -10666,7 +11662,18 @@ export default class Client extends OpenApi {
10666
11662
  headers: headers,
10667
11663
  body: OpenApiUtil.parseToMap(body),
10668
11664
  });
10669
- return $tea.cast<TagResourcesResponse>(await this.doROARequest("TagResources", "2015-12-15", "HTTPS", "PUT", "AK", `/tags`, "none", req, runtime), new TagResourcesResponse({}));
11665
+ let params = new $OpenApi.Params({
11666
+ action: "TagResources",
11667
+ version: "2015-12-15",
11668
+ protocol: "HTTPS",
11669
+ pathname: `/tags`,
11670
+ method: "PUT",
11671
+ authType: "AK",
11672
+ style: "ROA",
11673
+ reqBodyType: "json",
11674
+ bodyType: "none",
11675
+ });
11676
+ return $tea.cast<TagResourcesResponse>(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
10670
11677
  }
10671
11678
 
10672
11679
  async unInstallClusterAddons(ClusterId: string, request: UnInstallClusterAddonsRequest): Promise<UnInstallClusterAddonsResponse> {
@@ -10682,7 +11689,18 @@ export default class Client extends OpenApi {
10682
11689
  headers: headers,
10683
11690
  body: Util.toArray(request.addons),
10684
11691
  });
10685
- return $tea.cast<UnInstallClusterAddonsResponse>(await this.doROARequest("UnInstallClusterAddons", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${ClusterId}/components/uninstall`, "none", req, runtime), new UnInstallClusterAddonsResponse({}));
11692
+ let params = new $OpenApi.Params({
11693
+ action: "UnInstallClusterAddons",
11694
+ version: "2015-12-15",
11695
+ protocol: "HTTPS",
11696
+ pathname: `/clusters/${ClusterId}/components/uninstall`,
11697
+ method: "POST",
11698
+ authType: "AK",
11699
+ style: "ROA",
11700
+ reqBodyType: "json",
11701
+ bodyType: "none",
11702
+ });
11703
+ return $tea.cast<UnInstallClusterAddonsResponse>(await this.callApi(params, req, runtime), new UnInstallClusterAddonsResponse({}));
10686
11704
  }
10687
11705
 
10688
11706
  async untagResources(request: UntagResourcesRequest): Promise<UntagResourcesResponse> {
@@ -10714,7 +11732,18 @@ export default class Client extends OpenApi {
10714
11732
  headers: headers,
10715
11733
  query: OpenApiUtil.query(query),
10716
11734
  });
10717
- return $tea.cast<UntagResourcesResponse>(await this.doROARequest("UntagResources", "2015-12-15", "HTTPS", "DELETE", "AK", `/tags`, "none", req, runtime), new UntagResourcesResponse({}));
11735
+ let params = new $OpenApi.Params({
11736
+ action: "UntagResources",
11737
+ version: "2015-12-15",
11738
+ protocol: "HTTPS",
11739
+ pathname: `/tags`,
11740
+ method: "DELETE",
11741
+ authType: "AK",
11742
+ style: "ROA",
11743
+ reqBodyType: "json",
11744
+ bodyType: "none",
11745
+ });
11746
+ return $tea.cast<UntagResourcesResponse>(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
10718
11747
  }
10719
11748
 
10720
11749
  async updateK8sClusterUserConfigExpire(ClusterId: string): Promise<UpdateK8sClusterUserConfigExpireResponse> {
@@ -10728,7 +11757,18 @@ export default class Client extends OpenApi {
10728
11757
  let req = new $OpenApi.OpenApiRequest({
10729
11758
  headers: headers,
10730
11759
  });
10731
- return $tea.cast<UpdateK8sClusterUserConfigExpireResponse>(await this.doROARequest("UpdateK8sClusterUserConfigExpire", "2015-12-15", "HTTPS", "POST", "AK", `/k8s/${ClusterId}/user_config/expire`, "none", req, runtime), new UpdateK8sClusterUserConfigExpireResponse({}));
11760
+ let params = new $OpenApi.Params({
11761
+ action: "UpdateK8sClusterUserConfigExpire",
11762
+ version: "2015-12-15",
11763
+ protocol: "HTTPS",
11764
+ pathname: `/k8s/${ClusterId}/user_config/expire`,
11765
+ method: "POST",
11766
+ authType: "AK",
11767
+ style: "ROA",
11768
+ reqBodyType: "json",
11769
+ bodyType: "none",
11770
+ });
11771
+ return $tea.cast<UpdateK8sClusterUserConfigExpireResponse>(await this.callApi(params, req, runtime), new UpdateK8sClusterUserConfigExpireResponse({}));
10732
11772
  }
10733
11773
 
10734
11774
  async updateTemplate(TemplateId: string, request: UpdateTemplateRequest): Promise<UpdateTemplateResponse> {
@@ -10765,7 +11805,18 @@ export default class Client extends OpenApi {
10765
11805
  headers: headers,
10766
11806
  body: OpenApiUtil.parseToMap(body),
10767
11807
  });
10768
- return $tea.cast<UpdateTemplateResponse>(await this.doROARequest("UpdateTemplate", "2015-12-15", "HTTPS", "PUT", "AK", `/templates/${TemplateId}`, "none", req, runtime), new UpdateTemplateResponse({}));
11808
+ let params = new $OpenApi.Params({
11809
+ action: "UpdateTemplate",
11810
+ version: "2015-12-15",
11811
+ protocol: "HTTPS",
11812
+ pathname: `/templates/${TemplateId}`,
11813
+ method: "PUT",
11814
+ authType: "AK",
11815
+ style: "ROA",
11816
+ reqBodyType: "json",
11817
+ bodyType: "none",
11818
+ });
11819
+ return $tea.cast<UpdateTemplateResponse>(await this.callApi(params, req, runtime), new UpdateTemplateResponse({}));
10769
11820
  }
10770
11821
 
10771
11822
  async upgradeCluster(ClusterId: string, request: UpgradeClusterRequest): Promise<UpgradeClusterResponse> {
@@ -10794,7 +11845,18 @@ export default class Client extends OpenApi {
10794
11845
  headers: headers,
10795
11846
  body: OpenApiUtil.parseToMap(body),
10796
11847
  });
10797
- return $tea.cast<UpgradeClusterResponse>(await this.doROARequest("UpgradeCluster", "2015-12-15", "HTTPS", "POST", "AK", `/api/v2/clusters/${ClusterId}/upgrade`, "none", req, runtime), new UpgradeClusterResponse({}));
11848
+ let params = new $OpenApi.Params({
11849
+ action: "UpgradeCluster",
11850
+ version: "2015-12-15",
11851
+ protocol: "HTTPS",
11852
+ pathname: `/api/v2/clusters/${ClusterId}/upgrade`,
11853
+ method: "POST",
11854
+ authType: "AK",
11855
+ style: "ROA",
11856
+ reqBodyType: "json",
11857
+ bodyType: "none",
11858
+ });
11859
+ return $tea.cast<UpgradeClusterResponse>(await this.callApi(params, req, runtime), new UpgradeClusterResponse({}));
10798
11860
  }
10799
11861
 
10800
11862
  async upgradeClusterAddons(ClusterId: string, request: UpgradeClusterAddonsRequest): Promise<UpgradeClusterAddonsResponse> {
@@ -10810,7 +11872,18 @@ export default class Client extends OpenApi {
10810
11872
  headers: headers,
10811
11873
  body: Util.toArray(request.body),
10812
11874
  });
10813
- return $tea.cast<UpgradeClusterAddonsResponse>(await this.doROARequest("UpgradeClusterAddons", "2015-12-15", "HTTPS", "POST", "AK", `/clusters/${ClusterId}/components/upgrade`, "none", req, runtime), new UpgradeClusterAddonsResponse({}));
11875
+ let params = new $OpenApi.Params({
11876
+ action: "UpgradeClusterAddons",
11877
+ version: "2015-12-15",
11878
+ protocol: "HTTPS",
11879
+ pathname: `/clusters/${ClusterId}/components/upgrade`,
11880
+ method: "POST",
11881
+ authType: "AK",
11882
+ style: "ROA",
11883
+ reqBodyType: "json",
11884
+ bodyType: "none",
11885
+ });
11886
+ return $tea.cast<UpgradeClusterAddonsResponse>(await this.callApi(params, req, runtime), new UpgradeClusterAddonsResponse({}));
10814
11887
  }
10815
11888
 
10816
11889
  }