@alicloud/cs20151215 3.0.16 → 3.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +77 -16
- package/dist/client.js +218 -198
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +250 -205
package/dist/client.js
CHANGED
|
@@ -141,6 +141,30 @@ class Taint extends $tea.Model {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
exports.Taint = Taint;
|
|
144
|
+
class StandardComponentsValue extends $tea.Model {
|
|
145
|
+
constructor(map) {
|
|
146
|
+
super(map);
|
|
147
|
+
}
|
|
148
|
+
static names() {
|
|
149
|
+
return {
|
|
150
|
+
name: 'name',
|
|
151
|
+
version: 'version',
|
|
152
|
+
description: 'description',
|
|
153
|
+
required: 'required',
|
|
154
|
+
disabled: 'disabled',
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
static types() {
|
|
158
|
+
return {
|
|
159
|
+
name: 'string',
|
|
160
|
+
version: 'string',
|
|
161
|
+
description: 'string',
|
|
162
|
+
required: 'string',
|
|
163
|
+
disabled: 'boolean',
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
exports.StandardComponentsValue = StandardComponentsValue;
|
|
144
168
|
class AttachInstancesRequest extends $tea.Model {
|
|
145
169
|
constructor(map) {
|
|
146
170
|
super(map);
|
|
@@ -3973,6 +3997,84 @@ class RemoveClusterNodesResponse extends $tea.Model {
|
|
|
3973
3997
|
}
|
|
3974
3998
|
}
|
|
3975
3999
|
exports.RemoveClusterNodesResponse = RemoveClusterNodesResponse;
|
|
4000
|
+
class RemoveNodePoolNodesRequest extends $tea.Model {
|
|
4001
|
+
constructor(map) {
|
|
4002
|
+
super(map);
|
|
4003
|
+
}
|
|
4004
|
+
static names() {
|
|
4005
|
+
return {
|
|
4006
|
+
drainNode: 'drain_node',
|
|
4007
|
+
nodes: 'nodes',
|
|
4008
|
+
releaseNode: 'release_node',
|
|
4009
|
+
};
|
|
4010
|
+
}
|
|
4011
|
+
static types() {
|
|
4012
|
+
return {
|
|
4013
|
+
drainNode: 'boolean',
|
|
4014
|
+
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
4015
|
+
releaseNode: 'boolean',
|
|
4016
|
+
};
|
|
4017
|
+
}
|
|
4018
|
+
}
|
|
4019
|
+
exports.RemoveNodePoolNodesRequest = RemoveNodePoolNodesRequest;
|
|
4020
|
+
class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
|
|
4021
|
+
constructor(map) {
|
|
4022
|
+
super(map);
|
|
4023
|
+
}
|
|
4024
|
+
static names() {
|
|
4025
|
+
return {
|
|
4026
|
+
drainNode: 'drain_node',
|
|
4027
|
+
nodesShrink: 'nodes',
|
|
4028
|
+
releaseNode: 'release_node',
|
|
4029
|
+
};
|
|
4030
|
+
}
|
|
4031
|
+
static types() {
|
|
4032
|
+
return {
|
|
4033
|
+
drainNode: 'boolean',
|
|
4034
|
+
nodesShrink: 'string',
|
|
4035
|
+
releaseNode: 'boolean',
|
|
4036
|
+
};
|
|
4037
|
+
}
|
|
4038
|
+
}
|
|
4039
|
+
exports.RemoveNodePoolNodesShrinkRequest = RemoveNodePoolNodesShrinkRequest;
|
|
4040
|
+
class RemoveNodePoolNodesResponseBody extends $tea.Model {
|
|
4041
|
+
constructor(map) {
|
|
4042
|
+
super(map);
|
|
4043
|
+
}
|
|
4044
|
+
static names() {
|
|
4045
|
+
return {
|
|
4046
|
+
requestId: 'request_id',
|
|
4047
|
+
taskId: 'task_id',
|
|
4048
|
+
};
|
|
4049
|
+
}
|
|
4050
|
+
static types() {
|
|
4051
|
+
return {
|
|
4052
|
+
requestId: 'string',
|
|
4053
|
+
taskId: 'string',
|
|
4054
|
+
};
|
|
4055
|
+
}
|
|
4056
|
+
}
|
|
4057
|
+
exports.RemoveNodePoolNodesResponseBody = RemoveNodePoolNodesResponseBody;
|
|
4058
|
+
class RemoveNodePoolNodesResponse extends $tea.Model {
|
|
4059
|
+
constructor(map) {
|
|
4060
|
+
super(map);
|
|
4061
|
+
}
|
|
4062
|
+
static names() {
|
|
4063
|
+
return {
|
|
4064
|
+
headers: 'headers',
|
|
4065
|
+
statusCode: 'statusCode',
|
|
4066
|
+
body: 'body',
|
|
4067
|
+
};
|
|
4068
|
+
}
|
|
4069
|
+
static types() {
|
|
4070
|
+
return {
|
|
4071
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4072
|
+
statusCode: 'number',
|
|
4073
|
+
body: RemoveNodePoolNodesResponseBody,
|
|
4074
|
+
};
|
|
4075
|
+
}
|
|
4076
|
+
}
|
|
4077
|
+
exports.RemoveNodePoolNodesResponse = RemoveNodePoolNodesResponse;
|
|
3976
4078
|
class RemoveWorkflowResponse extends $tea.Model {
|
|
3977
4079
|
constructor(map) {
|
|
3978
4080
|
super(map);
|
|
@@ -4747,30 +4849,6 @@ class UpgradeClusterAddonsResponse extends $tea.Model {
|
|
|
4747
4849
|
}
|
|
4748
4850
|
}
|
|
4749
4851
|
exports.UpgradeClusterAddonsResponse = UpgradeClusterAddonsResponse;
|
|
4750
|
-
class StandardComponentsValue extends $tea.Model {
|
|
4751
|
-
constructor(map) {
|
|
4752
|
-
super(map);
|
|
4753
|
-
}
|
|
4754
|
-
static names() {
|
|
4755
|
-
return {
|
|
4756
|
-
name: 'name',
|
|
4757
|
-
version: 'version',
|
|
4758
|
-
description: 'description',
|
|
4759
|
-
required: 'required',
|
|
4760
|
-
disabled: 'disabled',
|
|
4761
|
-
};
|
|
4762
|
-
}
|
|
4763
|
-
static types() {
|
|
4764
|
-
return {
|
|
4765
|
-
name: 'string',
|
|
4766
|
-
version: 'string',
|
|
4767
|
-
description: 'string',
|
|
4768
|
-
required: 'string',
|
|
4769
|
-
disabled: 'boolean',
|
|
4770
|
-
};
|
|
4771
|
-
}
|
|
4772
|
-
}
|
|
4773
|
-
exports.StandardComponentsValue = StandardComponentsValue;
|
|
4774
4852
|
class AttachInstancesResponseBodyList extends $tea.Model {
|
|
4775
4853
|
constructor(map) {
|
|
4776
4854
|
super(map);
|
|
@@ -7581,7 +7659,6 @@ class Client extends openapi_client_1.default {
|
|
|
7581
7659
|
}
|
|
7582
7660
|
async attachInstancesWithOptions(ClusterId, request, headers, runtime) {
|
|
7583
7661
|
tea_util_1.default.validateModel(request);
|
|
7584
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
7585
7662
|
let body = {};
|
|
7586
7663
|
if (!tea_util_1.default.isUnset(request.cpuPolicy)) {
|
|
7587
7664
|
body["cpu_policy"] = request.cpuPolicy;
|
|
@@ -7630,7 +7707,7 @@ class Client extends openapi_client_1.default {
|
|
|
7630
7707
|
action: "AttachInstances",
|
|
7631
7708
|
version: "2015-12-15",
|
|
7632
7709
|
protocol: "HTTPS",
|
|
7633
|
-
pathname: `/clusters/${ClusterId}/attach`,
|
|
7710
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/attach`,
|
|
7634
7711
|
method: "POST",
|
|
7635
7712
|
authType: "AK",
|
|
7636
7713
|
style: "ROA",
|
|
@@ -7645,7 +7722,6 @@ class Client extends openapi_client_1.default {
|
|
|
7645
7722
|
return await this.cancelClusterUpgradeWithOptions(ClusterId, headers, runtime);
|
|
7646
7723
|
}
|
|
7647
7724
|
async cancelClusterUpgradeWithOptions(ClusterId, headers, runtime) {
|
|
7648
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
7649
7725
|
let req = new $OpenApi.OpenApiRequest({
|
|
7650
7726
|
headers: headers,
|
|
7651
7727
|
});
|
|
@@ -7653,7 +7729,7 @@ class Client extends openapi_client_1.default {
|
|
|
7653
7729
|
action: "CancelClusterUpgrade",
|
|
7654
7730
|
version: "2015-12-15",
|
|
7655
7731
|
protocol: "HTTPS",
|
|
7656
|
-
pathname: `/api/v2/clusters/${ClusterId}/upgrade/cancel`,
|
|
7732
|
+
pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade/cancel`,
|
|
7657
7733
|
method: "POST",
|
|
7658
7734
|
authType: "AK",
|
|
7659
7735
|
style: "ROA",
|
|
@@ -7668,8 +7744,6 @@ class Client extends openapi_client_1.default {
|
|
|
7668
7744
|
return await this.cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime);
|
|
7669
7745
|
}
|
|
7670
7746
|
async cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime) {
|
|
7671
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
7672
|
-
componentId = openapi_util_1.default.getEncodeParam(componentId);
|
|
7673
7747
|
let req = new $OpenApi.OpenApiRequest({
|
|
7674
7748
|
headers: headers,
|
|
7675
7749
|
});
|
|
@@ -7677,7 +7751,7 @@ class Client extends openapi_client_1.default {
|
|
|
7677
7751
|
action: "CancelComponentUpgrade",
|
|
7678
7752
|
version: "2015-12-15",
|
|
7679
7753
|
protocol: "HTTPS",
|
|
7680
|
-
pathname: `/clusters/${clusterId}/components/${componentId}/cancel`,
|
|
7754
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/components/${openapi_util_1.default.getEncodeParam(componentId)}/cancel`,
|
|
7681
7755
|
method: "POST",
|
|
7682
7756
|
authType: "AK",
|
|
7683
7757
|
style: "ROA",
|
|
@@ -7692,7 +7766,6 @@ class Client extends openapi_client_1.default {
|
|
|
7692
7766
|
return await this.cancelTaskWithOptions(taskId, headers, runtime);
|
|
7693
7767
|
}
|
|
7694
7768
|
async cancelTaskWithOptions(taskId, headers, runtime) {
|
|
7695
|
-
taskId = openapi_util_1.default.getEncodeParam(taskId);
|
|
7696
7769
|
let req = new $OpenApi.OpenApiRequest({
|
|
7697
7770
|
headers: headers,
|
|
7698
7771
|
});
|
|
@@ -7700,7 +7773,7 @@ class Client extends openapi_client_1.default {
|
|
|
7700
7773
|
action: "CancelTask",
|
|
7701
7774
|
version: "2015-12-15",
|
|
7702
7775
|
protocol: "HTTPS",
|
|
7703
|
-
pathname: `/tasks/${taskId}/cancel`,
|
|
7776
|
+
pathname: `/tasks/${openapi_util_1.default.getEncodeParam(taskId)}/cancel`,
|
|
7704
7777
|
method: "POST",
|
|
7705
7778
|
authType: "AK",
|
|
7706
7779
|
style: "ROA",
|
|
@@ -7716,7 +7789,6 @@ class Client extends openapi_client_1.default {
|
|
|
7716
7789
|
}
|
|
7717
7790
|
async cancelWorkflowWithOptions(workflowName, request, headers, runtime) {
|
|
7718
7791
|
tea_util_1.default.validateModel(request);
|
|
7719
|
-
workflowName = openapi_util_1.default.getEncodeParam(workflowName);
|
|
7720
7792
|
let body = {};
|
|
7721
7793
|
if (!tea_util_1.default.isUnset(request.action)) {
|
|
7722
7794
|
body["action"] = request.action;
|
|
@@ -7729,7 +7801,7 @@ class Client extends openapi_client_1.default {
|
|
|
7729
7801
|
action: "CancelWorkflow",
|
|
7730
7802
|
version: "2015-12-15",
|
|
7731
7803
|
protocol: "HTTPS",
|
|
7732
|
-
pathname: `/gs/workflow/${workflowName}`,
|
|
7804
|
+
pathname: `/gs/workflow/${openapi_util_1.default.getEncodeParam(workflowName)}`,
|
|
7733
7805
|
method: "PUT",
|
|
7734
7806
|
authType: "AK",
|
|
7735
7807
|
style: "ROA",
|
|
@@ -7745,7 +7817,6 @@ class Client extends openapi_client_1.default {
|
|
|
7745
7817
|
}
|
|
7746
7818
|
async createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime) {
|
|
7747
7819
|
tea_util_1.default.validateModel(request);
|
|
7748
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
7749
7820
|
let body = {};
|
|
7750
7821
|
if (!tea_util_1.default.isUnset(request.coolDownDuration)) {
|
|
7751
7822
|
body["cool_down_duration"] = request.coolDownDuration;
|
|
@@ -7776,7 +7847,7 @@ class Client extends openapi_client_1.default {
|
|
|
7776
7847
|
action: "CreateAutoscalingConfig",
|
|
7777
7848
|
version: "2015-12-15",
|
|
7778
7849
|
protocol: "HTTPS",
|
|
7779
|
-
pathname: `/cluster/${ClusterId}/autoscale/config/`,
|
|
7850
|
+
pathname: `/cluster/${openapi_util_1.default.getEncodeParam(ClusterId)}/autoscale/config/`,
|
|
7780
7851
|
method: "POST",
|
|
7781
7852
|
authType: "AK",
|
|
7782
7853
|
style: "ROA",
|
|
@@ -8078,7 +8149,6 @@ class Client extends openapi_client_1.default {
|
|
|
8078
8149
|
}
|
|
8079
8150
|
async createClusterNodePoolWithOptions(ClusterId, request, headers, runtime) {
|
|
8080
8151
|
tea_util_1.default.validateModel(request);
|
|
8081
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8082
8152
|
let body = {};
|
|
8083
8153
|
if (!tea_util_1.default.isUnset($tea.toMap(request.autoScaling))) {
|
|
8084
8154
|
body["auto_scaling"] = request.autoScaling;
|
|
@@ -8118,7 +8188,7 @@ class Client extends openapi_client_1.default {
|
|
|
8118
8188
|
action: "CreateClusterNodePool",
|
|
8119
8189
|
version: "2015-12-15",
|
|
8120
8190
|
protocol: "HTTPS",
|
|
8121
|
-
pathname: `/clusters/${ClusterId}/nodepools`,
|
|
8191
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools`,
|
|
8122
8192
|
method: "POST",
|
|
8123
8193
|
authType: "AK",
|
|
8124
8194
|
style: "ROA",
|
|
@@ -8245,7 +8315,6 @@ class Client extends openapi_client_1.default {
|
|
|
8245
8315
|
}
|
|
8246
8316
|
async createTriggerWithOptions(clusterId, request, headers, runtime) {
|
|
8247
8317
|
tea_util_1.default.validateModel(request);
|
|
8248
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
8249
8318
|
let body = {};
|
|
8250
8319
|
if (!tea_util_1.default.isUnset(request.action)) {
|
|
8251
8320
|
body["action"] = request.action;
|
|
@@ -8267,7 +8336,7 @@ class Client extends openapi_client_1.default {
|
|
|
8267
8336
|
action: "CreateTrigger",
|
|
8268
8337
|
version: "2015-12-15",
|
|
8269
8338
|
protocol: "HTTPS",
|
|
8270
|
-
pathname: `/clusters/${clusterId}/triggers`,
|
|
8339
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/triggers`,
|
|
8271
8340
|
method: "POST",
|
|
8272
8341
|
authType: "AK",
|
|
8273
8342
|
style: "ROA",
|
|
@@ -8327,7 +8396,6 @@ class Client extends openapi_client_1.default {
|
|
|
8327
8396
|
}
|
|
8328
8397
|
async deleteClusterWithOptions(ClusterId, tmpReq, headers, runtime) {
|
|
8329
8398
|
tea_util_1.default.validateModel(tmpReq);
|
|
8330
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8331
8399
|
let request = new DeleteClusterShrinkRequest({});
|
|
8332
8400
|
openapi_util_1.default.convert(tmpReq, request);
|
|
8333
8401
|
if (!tea_util_1.default.isUnset(tmpReq.retainResources)) {
|
|
@@ -8351,7 +8419,7 @@ class Client extends openapi_client_1.default {
|
|
|
8351
8419
|
action: "DeleteCluster",
|
|
8352
8420
|
version: "2015-12-15",
|
|
8353
8421
|
protocol: "HTTPS",
|
|
8354
|
-
pathname: `/clusters/${ClusterId}`,
|
|
8422
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
|
|
8355
8423
|
method: "DELETE",
|
|
8356
8424
|
authType: "AK",
|
|
8357
8425
|
style: "ROA",
|
|
@@ -8367,8 +8435,6 @@ class Client extends openapi_client_1.default {
|
|
|
8367
8435
|
}
|
|
8368
8436
|
async deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
|
|
8369
8437
|
tea_util_1.default.validateModel(request);
|
|
8370
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8371
|
-
NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
|
|
8372
8438
|
let query = {};
|
|
8373
8439
|
if (!tea_util_1.default.isUnset(request.force)) {
|
|
8374
8440
|
query["force"] = request.force;
|
|
@@ -8381,7 +8447,7 @@ class Client extends openapi_client_1.default {
|
|
|
8381
8447
|
action: "DeleteClusterNodepool",
|
|
8382
8448
|
version: "2015-12-15",
|
|
8383
8449
|
protocol: "HTTPS",
|
|
8384
|
-
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
8450
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}`,
|
|
8385
8451
|
method: "DELETE",
|
|
8386
8452
|
authType: "AK",
|
|
8387
8453
|
style: "ROA",
|
|
@@ -8397,7 +8463,6 @@ class Client extends openapi_client_1.default {
|
|
|
8397
8463
|
}
|
|
8398
8464
|
async deleteClusterNodesWithOptions(ClusterId, request, headers, runtime) {
|
|
8399
8465
|
tea_util_1.default.validateModel(request);
|
|
8400
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8401
8466
|
let body = {};
|
|
8402
8467
|
if (!tea_util_1.default.isUnset(request.drainNode)) {
|
|
8403
8468
|
body["drain_node"] = request.drainNode;
|
|
@@ -8416,7 +8481,7 @@ class Client extends openapi_client_1.default {
|
|
|
8416
8481
|
action: "DeleteClusterNodes",
|
|
8417
8482
|
version: "2015-12-15",
|
|
8418
8483
|
protocol: "HTTPS",
|
|
8419
|
-
pathname: `/clusters/${ClusterId}/nodes`,
|
|
8484
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodes`,
|
|
8420
8485
|
method: "POST",
|
|
8421
8486
|
authType: "AK",
|
|
8422
8487
|
style: "ROA",
|
|
@@ -8432,7 +8497,6 @@ class Client extends openapi_client_1.default {
|
|
|
8432
8497
|
}
|
|
8433
8498
|
async deleteEdgeMachineWithOptions(edgeMachineid, request, headers, runtime) {
|
|
8434
8499
|
tea_util_1.default.validateModel(request);
|
|
8435
|
-
edgeMachineid = openapi_util_1.default.getEncodeParam(edgeMachineid);
|
|
8436
8500
|
let query = {};
|
|
8437
8501
|
if (!tea_util_1.default.isUnset(request.force)) {
|
|
8438
8502
|
query["force"] = request.force;
|
|
@@ -8445,7 +8509,7 @@ class Client extends openapi_client_1.default {
|
|
|
8445
8509
|
action: "DeleteEdgeMachine",
|
|
8446
8510
|
version: "2015-12-15",
|
|
8447
8511
|
protocol: "HTTPS",
|
|
8448
|
-
pathname: `/edge_machines
|
|
8512
|
+
pathname: `/edge_machines/%5Bedge_machineid%5D`,
|
|
8449
8513
|
method: "DELETE",
|
|
8450
8514
|
authType: "AK",
|
|
8451
8515
|
style: "ROA",
|
|
@@ -8460,7 +8524,6 @@ class Client extends openapi_client_1.default {
|
|
|
8460
8524
|
return await this.deleteKubernetesTriggerWithOptions(Id, headers, runtime);
|
|
8461
8525
|
}
|
|
8462
8526
|
async deleteKubernetesTriggerWithOptions(Id, headers, runtime) {
|
|
8463
|
-
Id = openapi_util_1.default.getEncodeParam(Id);
|
|
8464
8527
|
let req = new $OpenApi.OpenApiRequest({
|
|
8465
8528
|
headers: headers,
|
|
8466
8529
|
});
|
|
@@ -8468,7 +8531,7 @@ class Client extends openapi_client_1.default {
|
|
|
8468
8531
|
action: "DeleteKubernetesTrigger",
|
|
8469
8532
|
version: "2015-12-15",
|
|
8470
8533
|
protocol: "HTTPS",
|
|
8471
|
-
pathname: `/triggers/revoke/${Id}`,
|
|
8534
|
+
pathname: `/triggers/revoke/${openapi_util_1.default.getEncodeParam(Id)}`,
|
|
8472
8535
|
method: "DELETE",
|
|
8473
8536
|
authType: "AK",
|
|
8474
8537
|
style: "ROA",
|
|
@@ -8484,8 +8547,6 @@ class Client extends openapi_client_1.default {
|
|
|
8484
8547
|
}
|
|
8485
8548
|
async deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
|
|
8486
8549
|
tea_util_1.default.validateModel(request);
|
|
8487
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
8488
|
-
policyName = openapi_util_1.default.getEncodeParam(policyName);
|
|
8489
8550
|
let query = {};
|
|
8490
8551
|
if (!tea_util_1.default.isUnset(request.instanceName)) {
|
|
8491
8552
|
query["instance_name"] = request.instanceName;
|
|
@@ -8498,7 +8559,7 @@ class Client extends openapi_client_1.default {
|
|
|
8498
8559
|
action: "DeletePolicyInstance",
|
|
8499
8560
|
version: "2015-12-15",
|
|
8500
8561
|
protocol: "HTTPS",
|
|
8501
|
-
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
8562
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies/${openapi_util_1.default.getEncodeParam(policyName)}`,
|
|
8502
8563
|
method: "DELETE",
|
|
8503
8564
|
authType: "AK",
|
|
8504
8565
|
style: "ROA",
|
|
@@ -8513,7 +8574,6 @@ class Client extends openapi_client_1.default {
|
|
|
8513
8574
|
return await this.deleteTemplateWithOptions(TemplateId, headers, runtime);
|
|
8514
8575
|
}
|
|
8515
8576
|
async deleteTemplateWithOptions(TemplateId, headers, runtime) {
|
|
8516
|
-
TemplateId = openapi_util_1.default.getEncodeParam(TemplateId);
|
|
8517
8577
|
let req = new $OpenApi.OpenApiRequest({
|
|
8518
8578
|
headers: headers,
|
|
8519
8579
|
});
|
|
@@ -8521,7 +8581,7 @@ class Client extends openapi_client_1.default {
|
|
|
8521
8581
|
action: "DeleteTemplate",
|
|
8522
8582
|
version: "2015-12-15",
|
|
8523
8583
|
protocol: "HTTPS",
|
|
8524
|
-
pathname: `/templates/${TemplateId}`,
|
|
8584
|
+
pathname: `/templates/${openapi_util_1.default.getEncodeParam(TemplateId)}`,
|
|
8525
8585
|
method: "DELETE",
|
|
8526
8586
|
authType: "AK",
|
|
8527
8587
|
style: "ROA",
|
|
@@ -8536,8 +8596,6 @@ class Client extends openapi_client_1.default {
|
|
|
8536
8596
|
return await this.deleteTriggerWithOptions(clusterId, Id, headers, runtime);
|
|
8537
8597
|
}
|
|
8538
8598
|
async deleteTriggerWithOptions(clusterId, Id, headers, runtime) {
|
|
8539
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
8540
|
-
Id = openapi_util_1.default.getEncodeParam(Id);
|
|
8541
8599
|
let req = new $OpenApi.OpenApiRequest({
|
|
8542
8600
|
headers: headers,
|
|
8543
8601
|
});
|
|
@@ -8545,7 +8603,7 @@ class Client extends openapi_client_1.default {
|
|
|
8545
8603
|
action: "DeleteTrigger",
|
|
8546
8604
|
version: "2015-12-15",
|
|
8547
8605
|
protocol: "HTTPS",
|
|
8548
|
-
pathname: `/clusters/
|
|
8606
|
+
pathname: `/clusters/%5Bcluster_id%5D/triggers/%5BId%5D`,
|
|
8549
8607
|
method: "DELETE",
|
|
8550
8608
|
authType: "AK",
|
|
8551
8609
|
style: "ROA",
|
|
@@ -8561,8 +8619,6 @@ class Client extends openapi_client_1.default {
|
|
|
8561
8619
|
}
|
|
8562
8620
|
async deployPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
|
|
8563
8621
|
tea_util_1.default.validateModel(request);
|
|
8564
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
8565
|
-
policyName = openapi_util_1.default.getEncodeParam(policyName);
|
|
8566
8622
|
let body = {};
|
|
8567
8623
|
if (!tea_util_1.default.isUnset(request.action)) {
|
|
8568
8624
|
body["action"] = request.action;
|
|
@@ -8581,7 +8637,7 @@ class Client extends openapi_client_1.default {
|
|
|
8581
8637
|
action: "DeployPolicyInstance",
|
|
8582
8638
|
version: "2015-12-15",
|
|
8583
8639
|
protocol: "HTTPS",
|
|
8584
|
-
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
8640
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies/${openapi_util_1.default.getEncodeParam(policyName)}`,
|
|
8585
8641
|
method: "POST",
|
|
8586
8642
|
authType: "AK",
|
|
8587
8643
|
style: "ROA",
|
|
@@ -8596,7 +8652,6 @@ class Client extends openapi_client_1.default {
|
|
|
8596
8652
|
return await this.descirbeWorkflowWithOptions(workflowName, headers, runtime);
|
|
8597
8653
|
}
|
|
8598
8654
|
async descirbeWorkflowWithOptions(workflowName, headers, runtime) {
|
|
8599
|
-
workflowName = openapi_util_1.default.getEncodeParam(workflowName);
|
|
8600
8655
|
let req = new $OpenApi.OpenApiRequest({
|
|
8601
8656
|
headers: headers,
|
|
8602
8657
|
});
|
|
@@ -8604,7 +8659,7 @@ class Client extends openapi_client_1.default {
|
|
|
8604
8659
|
action: "DescirbeWorkflow",
|
|
8605
8660
|
version: "2015-12-15",
|
|
8606
8661
|
protocol: "HTTPS",
|
|
8607
|
-
pathname: `/gs/workflow/${workflowName}`,
|
|
8662
|
+
pathname: `/gs/workflow/${openapi_util_1.default.getEncodeParam(workflowName)}`,
|
|
8608
8663
|
method: "GET",
|
|
8609
8664
|
authType: "AK",
|
|
8610
8665
|
style: "ROA",
|
|
@@ -8650,9 +8705,6 @@ class Client extends openapi_client_1.default {
|
|
|
8650
8705
|
return await this.describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime);
|
|
8651
8706
|
}
|
|
8652
8707
|
async describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime) {
|
|
8653
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
8654
|
-
componentId = openapi_util_1.default.getEncodeParam(componentId);
|
|
8655
|
-
version = openapi_util_1.default.getEncodeParam(version);
|
|
8656
8708
|
let req = new $OpenApi.OpenApiRequest({
|
|
8657
8709
|
headers: headers,
|
|
8658
8710
|
});
|
|
@@ -8660,7 +8712,7 @@ class Client extends openapi_client_1.default {
|
|
|
8660
8712
|
action: "DescribeClusterAddonMetadata",
|
|
8661
8713
|
version: "2015-12-15",
|
|
8662
8714
|
protocol: "HTTPS",
|
|
8663
|
-
pathname: `/clusters/${clusterId}/components/${componentId}/metadata`,
|
|
8715
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/components/${openapi_util_1.default.getEncodeParam(componentId)}/metadata`,
|
|
8664
8716
|
method: "GET",
|
|
8665
8717
|
authType: "AK",
|
|
8666
8718
|
style: "ROA",
|
|
@@ -8675,8 +8727,6 @@ class Client extends openapi_client_1.default {
|
|
|
8675
8727
|
return await this.describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime);
|
|
8676
8728
|
}
|
|
8677
8729
|
async describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime) {
|
|
8678
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8679
|
-
ComponentId = openapi_util_1.default.getEncodeParam(ComponentId);
|
|
8680
8730
|
let req = new $OpenApi.OpenApiRequest({
|
|
8681
8731
|
headers: headers,
|
|
8682
8732
|
});
|
|
@@ -8684,7 +8734,7 @@ class Client extends openapi_client_1.default {
|
|
|
8684
8734
|
action: "DescribeClusterAddonUpgradeStatus",
|
|
8685
8735
|
version: "2015-12-15",
|
|
8686
8736
|
protocol: "HTTPS",
|
|
8687
|
-
pathname: `/clusters/${ClusterId}/components/${ComponentId}/upgradestatus`,
|
|
8737
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/${openapi_util_1.default.getEncodeParam(ComponentId)}/upgradestatus`,
|
|
8688
8738
|
method: "GET",
|
|
8689
8739
|
authType: "AK",
|
|
8690
8740
|
style: "ROA",
|
|
@@ -8700,7 +8750,6 @@ class Client extends openapi_client_1.default {
|
|
|
8700
8750
|
}
|
|
8701
8751
|
async describeClusterAddonsUpgradeStatusWithOptions(ClusterId, tmpReq, headers, runtime) {
|
|
8702
8752
|
tea_util_1.default.validateModel(tmpReq);
|
|
8703
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8704
8753
|
let request = new DescribeClusterAddonsUpgradeStatusShrinkRequest({});
|
|
8705
8754
|
openapi_util_1.default.convert(tmpReq, request);
|
|
8706
8755
|
if (!tea_util_1.default.isUnset(tmpReq.componentIds)) {
|
|
@@ -8718,7 +8767,7 @@ class Client extends openapi_client_1.default {
|
|
|
8718
8767
|
action: "DescribeClusterAddonsUpgradeStatus",
|
|
8719
8768
|
version: "2015-12-15",
|
|
8720
8769
|
protocol: "HTTPS",
|
|
8721
|
-
pathname: `/clusters/${ClusterId}/components/upgradestatus`,
|
|
8770
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/upgradestatus`,
|
|
8722
8771
|
method: "GET",
|
|
8723
8772
|
authType: "AK",
|
|
8724
8773
|
style: "ROA",
|
|
@@ -8733,7 +8782,6 @@ class Client extends openapi_client_1.default {
|
|
|
8733
8782
|
return await this.describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime);
|
|
8734
8783
|
}
|
|
8735
8784
|
async describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime) {
|
|
8736
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8737
8785
|
let req = new $OpenApi.OpenApiRequest({
|
|
8738
8786
|
headers: headers,
|
|
8739
8787
|
});
|
|
@@ -8741,7 +8789,7 @@ class Client extends openapi_client_1.default {
|
|
|
8741
8789
|
action: "DescribeClusterAddonsVersion",
|
|
8742
8790
|
version: "2015-12-15",
|
|
8743
8791
|
protocol: "HTTPS",
|
|
8744
|
-
pathname: `/clusters/${ClusterId}/components/version`,
|
|
8792
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/version`,
|
|
8745
8793
|
method: "GET",
|
|
8746
8794
|
authType: "AK",
|
|
8747
8795
|
style: "ROA",
|
|
@@ -8757,7 +8805,6 @@ class Client extends openapi_client_1.default {
|
|
|
8757
8805
|
}
|
|
8758
8806
|
async describeClusterAttachScriptsWithOptions(ClusterId, request, headers, runtime) {
|
|
8759
8807
|
tea_util_1.default.validateModel(request);
|
|
8760
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8761
8808
|
let body = {};
|
|
8762
8809
|
if (!tea_util_1.default.isUnset(request.arch)) {
|
|
8763
8810
|
body["arch"] = request.arch;
|
|
@@ -8785,7 +8832,7 @@ class Client extends openapi_client_1.default {
|
|
|
8785
8832
|
action: "DescribeClusterAttachScripts",
|
|
8786
8833
|
version: "2015-12-15",
|
|
8787
8834
|
protocol: "HTTPS",
|
|
8788
|
-
pathname: `/clusters/${ClusterId}/attachscript`,
|
|
8835
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/attachscript`,
|
|
8789
8836
|
method: "POST",
|
|
8790
8837
|
authType: "AK",
|
|
8791
8838
|
style: "ROA",
|
|
@@ -8800,7 +8847,6 @@ class Client extends openapi_client_1.default {
|
|
|
8800
8847
|
return await this.describeClusterDetailWithOptions(ClusterId, headers, runtime);
|
|
8801
8848
|
}
|
|
8802
8849
|
async describeClusterDetailWithOptions(ClusterId, headers, runtime) {
|
|
8803
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8804
8850
|
let req = new $OpenApi.OpenApiRequest({
|
|
8805
8851
|
headers: headers,
|
|
8806
8852
|
});
|
|
@@ -8808,7 +8854,7 @@ class Client extends openapi_client_1.default {
|
|
|
8808
8854
|
action: "DescribeClusterDetail",
|
|
8809
8855
|
version: "2015-12-15",
|
|
8810
8856
|
protocol: "HTTPS",
|
|
8811
|
-
pathname: `/clusters/${ClusterId}`,
|
|
8857
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
|
|
8812
8858
|
method: "GET",
|
|
8813
8859
|
authType: "AK",
|
|
8814
8860
|
style: "ROA",
|
|
@@ -8824,7 +8870,6 @@ class Client extends openapi_client_1.default {
|
|
|
8824
8870
|
}
|
|
8825
8871
|
async describeClusterEventsWithOptions(ClusterId, request, headers, runtime) {
|
|
8826
8872
|
tea_util_1.default.validateModel(request);
|
|
8827
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8828
8873
|
let query = {};
|
|
8829
8874
|
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
8830
8875
|
query["page_number"] = request.pageNumber;
|
|
@@ -8843,7 +8888,7 @@ class Client extends openapi_client_1.default {
|
|
|
8843
8888
|
action: "DescribeClusterEvents",
|
|
8844
8889
|
version: "2015-12-15",
|
|
8845
8890
|
protocol: "HTTPS",
|
|
8846
|
-
pathname: `/clusters/${ClusterId}/events`,
|
|
8891
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/events`,
|
|
8847
8892
|
method: "GET",
|
|
8848
8893
|
authType: "AK",
|
|
8849
8894
|
style: "ROA",
|
|
@@ -8858,7 +8903,6 @@ class Client extends openapi_client_1.default {
|
|
|
8858
8903
|
return await this.describeClusterLogsWithOptions(ClusterId, headers, runtime);
|
|
8859
8904
|
}
|
|
8860
8905
|
async describeClusterLogsWithOptions(ClusterId, headers, runtime) {
|
|
8861
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8862
8906
|
let req = new $OpenApi.OpenApiRequest({
|
|
8863
8907
|
headers: headers,
|
|
8864
8908
|
});
|
|
@@ -8866,7 +8910,7 @@ class Client extends openapi_client_1.default {
|
|
|
8866
8910
|
action: "DescribeClusterLogs",
|
|
8867
8911
|
version: "2015-12-15",
|
|
8868
8912
|
protocol: "HTTPS",
|
|
8869
|
-
pathname: `/clusters/${ClusterId}/logs`,
|
|
8913
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/logs`,
|
|
8870
8914
|
method: "GET",
|
|
8871
8915
|
authType: "AK",
|
|
8872
8916
|
style: "ROA",
|
|
@@ -8881,8 +8925,6 @@ class Client extends openapi_client_1.default {
|
|
|
8881
8925
|
return await this.describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime);
|
|
8882
8926
|
}
|
|
8883
8927
|
async describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime) {
|
|
8884
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8885
|
-
NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
|
|
8886
8928
|
let req = new $OpenApi.OpenApiRequest({
|
|
8887
8929
|
headers: headers,
|
|
8888
8930
|
});
|
|
@@ -8890,7 +8932,7 @@ class Client extends openapi_client_1.default {
|
|
|
8890
8932
|
action: "DescribeClusterNodePoolDetail",
|
|
8891
8933
|
version: "2015-12-15",
|
|
8892
8934
|
protocol: "HTTPS",
|
|
8893
|
-
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
8935
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}`,
|
|
8894
8936
|
method: "GET",
|
|
8895
8937
|
authType: "AK",
|
|
8896
8938
|
style: "ROA",
|
|
@@ -8905,7 +8947,6 @@ class Client extends openapi_client_1.default {
|
|
|
8905
8947
|
return await this.describeClusterNodePoolsWithOptions(ClusterId, headers, runtime);
|
|
8906
8948
|
}
|
|
8907
8949
|
async describeClusterNodePoolsWithOptions(ClusterId, headers, runtime) {
|
|
8908
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8909
8950
|
let req = new $OpenApi.OpenApiRequest({
|
|
8910
8951
|
headers: headers,
|
|
8911
8952
|
});
|
|
@@ -8913,7 +8954,7 @@ class Client extends openapi_client_1.default {
|
|
|
8913
8954
|
action: "DescribeClusterNodePools",
|
|
8914
8955
|
version: "2015-12-15",
|
|
8915
8956
|
protocol: "HTTPS",
|
|
8916
|
-
pathname: `/clusters/${ClusterId}/nodepools`,
|
|
8957
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools`,
|
|
8917
8958
|
method: "GET",
|
|
8918
8959
|
authType: "AK",
|
|
8919
8960
|
style: "ROA",
|
|
@@ -8929,7 +8970,6 @@ class Client extends openapi_client_1.default {
|
|
|
8929
8970
|
}
|
|
8930
8971
|
async describeClusterNodesWithOptions(ClusterId, request, headers, runtime) {
|
|
8931
8972
|
tea_util_1.default.validateModel(request);
|
|
8932
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8933
8973
|
let query = {};
|
|
8934
8974
|
if (!tea_util_1.default.isUnset(request.instanceIds)) {
|
|
8935
8975
|
query["instanceIds"] = request.instanceIds;
|
|
@@ -8954,7 +8994,7 @@ class Client extends openapi_client_1.default {
|
|
|
8954
8994
|
action: "DescribeClusterNodes",
|
|
8955
8995
|
version: "2015-12-15",
|
|
8956
8996
|
protocol: "HTTPS",
|
|
8957
|
-
pathname: `/clusters/${ClusterId}/nodes`,
|
|
8997
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodes`,
|
|
8958
8998
|
method: "GET",
|
|
8959
8999
|
authType: "AK",
|
|
8960
9000
|
style: "ROA",
|
|
@@ -8969,7 +9009,6 @@ class Client extends openapi_client_1.default {
|
|
|
8969
9009
|
return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
|
|
8970
9010
|
}
|
|
8971
9011
|
async describeClusterResourcesWithOptions(ClusterId, headers, runtime) {
|
|
8972
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8973
9012
|
let req = new $OpenApi.OpenApiRequest({
|
|
8974
9013
|
headers: headers,
|
|
8975
9014
|
});
|
|
@@ -8977,7 +9016,7 @@ class Client extends openapi_client_1.default {
|
|
|
8977
9016
|
action: "DescribeClusterResources",
|
|
8978
9017
|
version: "2015-12-15",
|
|
8979
9018
|
protocol: "HTTPS",
|
|
8980
|
-
pathname: `/clusters/${ClusterId}/resources`,
|
|
9019
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/resources`,
|
|
8981
9020
|
method: "GET",
|
|
8982
9021
|
authType: "AK",
|
|
8983
9022
|
style: "ROA",
|
|
@@ -8992,7 +9031,6 @@ class Client extends openapi_client_1.default {
|
|
|
8992
9031
|
return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
|
|
8993
9032
|
}
|
|
8994
9033
|
async describeClusterTasksWithOptions(clusterId, headers, runtime) {
|
|
8995
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
8996
9034
|
let req = new $OpenApi.OpenApiRequest({
|
|
8997
9035
|
headers: headers,
|
|
8998
9036
|
});
|
|
@@ -9000,7 +9038,7 @@ class Client extends openapi_client_1.default {
|
|
|
9000
9038
|
action: "DescribeClusterTasks",
|
|
9001
9039
|
version: "2015-12-15",
|
|
9002
9040
|
protocol: "HTTPS",
|
|
9003
|
-
pathname: `/clusters/${clusterId}/tasks`,
|
|
9041
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/tasks`,
|
|
9004
9042
|
method: "GET",
|
|
9005
9043
|
authType: "AK",
|
|
9006
9044
|
style: "ROA",
|
|
@@ -9016,7 +9054,6 @@ class Client extends openapi_client_1.default {
|
|
|
9016
9054
|
}
|
|
9017
9055
|
async describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime) {
|
|
9018
9056
|
tea_util_1.default.validateModel(request);
|
|
9019
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
9020
9057
|
let query = {};
|
|
9021
9058
|
if (!tea_util_1.default.isUnset(request.privateIpAddress)) {
|
|
9022
9059
|
query["PrivateIpAddress"] = request.privateIpAddress;
|
|
@@ -9032,7 +9069,7 @@ class Client extends openapi_client_1.default {
|
|
|
9032
9069
|
action: "DescribeClusterUserKubeconfig",
|
|
9033
9070
|
version: "2015-12-15",
|
|
9034
9071
|
protocol: "HTTPS",
|
|
9035
|
-
pathname: `/k8s/${ClusterId}/user_config`,
|
|
9072
|
+
pathname: `/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/user_config`,
|
|
9036
9073
|
method: "GET",
|
|
9037
9074
|
authType: "AK",
|
|
9038
9075
|
style: "ROA",
|
|
@@ -9048,7 +9085,6 @@ class Client extends openapi_client_1.default {
|
|
|
9048
9085
|
}
|
|
9049
9086
|
async describeClusterV2UserKubeconfigWithOptions(ClusterId, request, headers, runtime) {
|
|
9050
9087
|
tea_util_1.default.validateModel(request);
|
|
9051
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
9052
9088
|
let query = {};
|
|
9053
9089
|
if (!tea_util_1.default.isUnset(request.privateIpAddress)) {
|
|
9054
9090
|
query["PrivateIpAddress"] = request.privateIpAddress;
|
|
@@ -9061,7 +9097,7 @@ class Client extends openapi_client_1.default {
|
|
|
9061
9097
|
action: "DescribeClusterV2UserKubeconfig",
|
|
9062
9098
|
version: "2015-12-15",
|
|
9063
9099
|
protocol: "HTTPS",
|
|
9064
|
-
pathname: `/api/v2/k8s/${ClusterId}/user_config`,
|
|
9100
|
+
pathname: `/api/v2/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/user_config`,
|
|
9065
9101
|
method: "GET",
|
|
9066
9102
|
authType: "AK",
|
|
9067
9103
|
style: "ROA",
|
|
@@ -9153,7 +9189,6 @@ class Client extends openapi_client_1.default {
|
|
|
9153
9189
|
return await this.describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime);
|
|
9154
9190
|
}
|
|
9155
9191
|
async describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime) {
|
|
9156
|
-
edgeMachineid = openapi_util_1.default.getEncodeParam(edgeMachineid);
|
|
9157
9192
|
let req = new $OpenApi.OpenApiRequest({
|
|
9158
9193
|
headers: headers,
|
|
9159
9194
|
});
|
|
@@ -9161,7 +9196,7 @@ class Client extends openapi_client_1.default {
|
|
|
9161
9196
|
action: "DescribeEdgeMachineActiveProcess",
|
|
9162
9197
|
version: "2015-12-15",
|
|
9163
9198
|
protocol: "HTTPS",
|
|
9164
|
-
pathname: `/edge_machines/
|
|
9199
|
+
pathname: `/edge_machines/%5Bedge_machineid%5D/activeprocess`,
|
|
9165
9200
|
method: "GET",
|
|
9166
9201
|
authType: "AK",
|
|
9167
9202
|
style: "ROA",
|
|
@@ -9198,7 +9233,6 @@ class Client extends openapi_client_1.default {
|
|
|
9198
9233
|
return await this.describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime);
|
|
9199
9234
|
}
|
|
9200
9235
|
async describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime) {
|
|
9201
|
-
edgeMachineid = openapi_util_1.default.getEncodeParam(edgeMachineid);
|
|
9202
9236
|
let req = new $OpenApi.OpenApiRequest({
|
|
9203
9237
|
headers: headers,
|
|
9204
9238
|
});
|
|
@@ -9206,7 +9240,7 @@ class Client extends openapi_client_1.default {
|
|
|
9206
9240
|
action: "DescribeEdgeMachineTunnelConfigDetail",
|
|
9207
9241
|
version: "2015-12-15",
|
|
9208
9242
|
protocol: "HTTPS",
|
|
9209
|
-
pathname: `/edge_machines/
|
|
9243
|
+
pathname: `/edge_machines/%5Bedge_machineid%5D/tunnelconfig`,
|
|
9210
9244
|
method: "POST",
|
|
9211
9245
|
authType: "AK",
|
|
9212
9246
|
style: "ROA",
|
|
@@ -9302,7 +9336,6 @@ class Client extends openapi_client_1.default {
|
|
|
9302
9336
|
}
|
|
9303
9337
|
async describeExternalAgentWithOptions(ClusterId, request, headers, runtime) {
|
|
9304
9338
|
tea_util_1.default.validateModel(request);
|
|
9305
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
9306
9339
|
let query = {};
|
|
9307
9340
|
if (!tea_util_1.default.isUnset(request.privateIpAddress)) {
|
|
9308
9341
|
query["PrivateIpAddress"] = request.privateIpAddress;
|
|
@@ -9315,7 +9348,7 @@ class Client extends openapi_client_1.default {
|
|
|
9315
9348
|
action: "DescribeExternalAgent",
|
|
9316
9349
|
version: "2015-12-15",
|
|
9317
9350
|
protocol: "HTTPS",
|
|
9318
|
-
pathname: `/k8s/${ClusterId}/external/agent/deployment`,
|
|
9351
|
+
pathname: `/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/external/agent/deployment`,
|
|
9319
9352
|
method: "GET",
|
|
9320
9353
|
authType: "AK",
|
|
9321
9354
|
style: "ROA",
|
|
@@ -9370,8 +9403,6 @@ class Client extends openapi_client_1.default {
|
|
|
9370
9403
|
return await this.describeNodePoolVulsWithOptions(clusterId, nodepoolId, headers, runtime);
|
|
9371
9404
|
}
|
|
9372
9405
|
async describeNodePoolVulsWithOptions(clusterId, nodepoolId, headers, runtime) {
|
|
9373
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
9374
|
-
nodepoolId = openapi_util_1.default.getEncodeParam(nodepoolId);
|
|
9375
9406
|
let req = new $OpenApi.OpenApiRequest({
|
|
9376
9407
|
headers: headers,
|
|
9377
9408
|
});
|
|
@@ -9379,7 +9410,7 @@ class Client extends openapi_client_1.default {
|
|
|
9379
9410
|
action: "DescribeNodePoolVuls",
|
|
9380
9411
|
version: "2015-12-15",
|
|
9381
9412
|
protocol: "HTTPS",
|
|
9382
|
-
pathname: `/clusters/${clusterId}/nodepools/${nodepoolId}/vuls`,
|
|
9413
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(nodepoolId)}/vuls`,
|
|
9383
9414
|
method: "GET",
|
|
9384
9415
|
authType: "AK",
|
|
9385
9416
|
style: "ROA",
|
|
@@ -9416,7 +9447,6 @@ class Client extends openapi_client_1.default {
|
|
|
9416
9447
|
return await this.describePolicyDetailsWithOptions(policyName, headers, runtime);
|
|
9417
9448
|
}
|
|
9418
9449
|
async describePolicyDetailsWithOptions(policyName, headers, runtime) {
|
|
9419
|
-
policyName = openapi_util_1.default.getEncodeParam(policyName);
|
|
9420
9450
|
let req = new $OpenApi.OpenApiRequest({
|
|
9421
9451
|
headers: headers,
|
|
9422
9452
|
});
|
|
@@ -9424,7 +9454,7 @@ class Client extends openapi_client_1.default {
|
|
|
9424
9454
|
action: "DescribePolicyDetails",
|
|
9425
9455
|
version: "2015-12-15",
|
|
9426
9456
|
protocol: "HTTPS",
|
|
9427
|
-
pathname: `/policies/${policyName}`,
|
|
9457
|
+
pathname: `/policies/${openapi_util_1.default.getEncodeParam(policyName)}`,
|
|
9428
9458
|
method: "GET",
|
|
9429
9459
|
authType: "AK",
|
|
9430
9460
|
style: "ROA",
|
|
@@ -9439,7 +9469,6 @@ class Client extends openapi_client_1.default {
|
|
|
9439
9469
|
return await this.describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime);
|
|
9440
9470
|
}
|
|
9441
9471
|
async describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime) {
|
|
9442
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
9443
9472
|
let req = new $OpenApi.OpenApiRequest({
|
|
9444
9473
|
headers: headers,
|
|
9445
9474
|
});
|
|
@@ -9447,7 +9476,7 @@ class Client extends openapi_client_1.default {
|
|
|
9447
9476
|
action: "DescribePolicyGovernanceInCluster",
|
|
9448
9477
|
version: "2015-12-15",
|
|
9449
9478
|
protocol: "HTTPS",
|
|
9450
|
-
pathname: `/clusters/${clusterId}/policygovernance`,
|
|
9479
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policygovernance`,
|
|
9451
9480
|
method: "GET",
|
|
9452
9481
|
authType: "AK",
|
|
9453
9482
|
style: "ROA",
|
|
@@ -9463,7 +9492,6 @@ class Client extends openapi_client_1.default {
|
|
|
9463
9492
|
}
|
|
9464
9493
|
async describePolicyInstancesWithOptions(clusterId, request, headers, runtime) {
|
|
9465
9494
|
tea_util_1.default.validateModel(request);
|
|
9466
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
9467
9495
|
let query = {};
|
|
9468
9496
|
if (!tea_util_1.default.isUnset(request.instanceName)) {
|
|
9469
9497
|
query["instance_name"] = request.instanceName;
|
|
@@ -9479,7 +9507,7 @@ class Client extends openapi_client_1.default {
|
|
|
9479
9507
|
action: "DescribePolicyInstances",
|
|
9480
9508
|
version: "2015-12-15",
|
|
9481
9509
|
protocol: "HTTPS",
|
|
9482
|
-
pathname: `/clusters/${clusterId}/policies`,
|
|
9510
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies`,
|
|
9483
9511
|
method: "GET",
|
|
9484
9512
|
authType: "AK",
|
|
9485
9513
|
style: "ROA",
|
|
@@ -9494,7 +9522,6 @@ class Client extends openapi_client_1.default {
|
|
|
9494
9522
|
return await this.describePolicyInstancesStatusWithOptions(clusterId, headers, runtime);
|
|
9495
9523
|
}
|
|
9496
9524
|
async describePolicyInstancesStatusWithOptions(clusterId, headers, runtime) {
|
|
9497
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
9498
9525
|
let req = new $OpenApi.OpenApiRequest({
|
|
9499
9526
|
headers: headers,
|
|
9500
9527
|
});
|
|
@@ -9502,7 +9529,7 @@ class Client extends openapi_client_1.default {
|
|
|
9502
9529
|
action: "DescribePolicyInstancesStatus",
|
|
9503
9530
|
version: "2015-12-15",
|
|
9504
9531
|
protocol: "HTTPS",
|
|
9505
|
-
pathname: `/clusters/${clusterId}/policies/status`,
|
|
9532
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies/status`,
|
|
9506
9533
|
method: "GET",
|
|
9507
9534
|
authType: "AK",
|
|
9508
9535
|
style: "ROA",
|
|
@@ -9517,7 +9544,6 @@ class Client extends openapi_client_1.default {
|
|
|
9517
9544
|
return await this.describeTaskInfoWithOptions(taskId, headers, runtime);
|
|
9518
9545
|
}
|
|
9519
9546
|
async describeTaskInfoWithOptions(taskId, headers, runtime) {
|
|
9520
|
-
taskId = openapi_util_1.default.getEncodeParam(taskId);
|
|
9521
9547
|
let req = new $OpenApi.OpenApiRequest({
|
|
9522
9548
|
headers: headers,
|
|
9523
9549
|
});
|
|
@@ -9525,7 +9551,7 @@ class Client extends openapi_client_1.default {
|
|
|
9525
9551
|
action: "DescribeTaskInfo",
|
|
9526
9552
|
version: "2015-12-15",
|
|
9527
9553
|
protocol: "HTTPS",
|
|
9528
|
-
pathname: `/tasks/${taskId}`,
|
|
9554
|
+
pathname: `/tasks/${openapi_util_1.default.getEncodeParam(taskId)}`,
|
|
9529
9555
|
method: "GET",
|
|
9530
9556
|
authType: "AK",
|
|
9531
9557
|
style: "ROA",
|
|
@@ -9541,7 +9567,6 @@ class Client extends openapi_client_1.default {
|
|
|
9541
9567
|
}
|
|
9542
9568
|
async describeTemplateAttributeWithOptions(TemplateId, request, headers, runtime) {
|
|
9543
9569
|
tea_util_1.default.validateModel(request);
|
|
9544
|
-
TemplateId = openapi_util_1.default.getEncodeParam(TemplateId);
|
|
9545
9570
|
let query = {};
|
|
9546
9571
|
if (!tea_util_1.default.isUnset(request.templateType)) {
|
|
9547
9572
|
query["template_type"] = request.templateType;
|
|
@@ -9554,7 +9579,7 @@ class Client extends openapi_client_1.default {
|
|
|
9554
9579
|
action: "DescribeTemplateAttribute",
|
|
9555
9580
|
version: "2015-12-15",
|
|
9556
9581
|
protocol: "HTTPS",
|
|
9557
|
-
pathname: `/templates/${TemplateId}`,
|
|
9582
|
+
pathname: `/templates/${openapi_util_1.default.getEncodeParam(TemplateId)}`,
|
|
9558
9583
|
method: "GET",
|
|
9559
9584
|
authType: "AK",
|
|
9560
9585
|
style: "ROA",
|
|
@@ -9604,7 +9629,6 @@ class Client extends openapi_client_1.default {
|
|
|
9604
9629
|
}
|
|
9605
9630
|
async describeTriggerWithOptions(clusterId, request, headers, runtime) {
|
|
9606
9631
|
tea_util_1.default.validateModel(request);
|
|
9607
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
9608
9632
|
let query = {};
|
|
9609
9633
|
if (!tea_util_1.default.isUnset(request.name)) {
|
|
9610
9634
|
query["Name"] = request.name;
|
|
@@ -9626,7 +9650,7 @@ class Client extends openapi_client_1.default {
|
|
|
9626
9650
|
action: "DescribeTrigger",
|
|
9627
9651
|
version: "2015-12-15",
|
|
9628
9652
|
protocol: "HTTPS",
|
|
9629
|
-
pathname: `/clusters/
|
|
9653
|
+
pathname: `/clusters/%5Bcluster_id%5D/triggers`,
|
|
9630
9654
|
method: "GET",
|
|
9631
9655
|
authType: "AK",
|
|
9632
9656
|
style: "ROA",
|
|
@@ -9641,7 +9665,6 @@ class Client extends openapi_client_1.default {
|
|
|
9641
9665
|
return await this.describeUserPermissionWithOptions(uid, headers, runtime);
|
|
9642
9666
|
}
|
|
9643
9667
|
async describeUserPermissionWithOptions(uid, headers, runtime) {
|
|
9644
|
-
uid = openapi_util_1.default.getEncodeParam(uid);
|
|
9645
9668
|
let req = new $OpenApi.OpenApiRequest({
|
|
9646
9669
|
headers: headers,
|
|
9647
9670
|
});
|
|
@@ -9649,7 +9672,7 @@ class Client extends openapi_client_1.default {
|
|
|
9649
9672
|
action: "DescribeUserPermission",
|
|
9650
9673
|
version: "2015-12-15",
|
|
9651
9674
|
protocol: "HTTPS",
|
|
9652
|
-
pathname: `/permissions/users/${uid}`,
|
|
9675
|
+
pathname: `/permissions/users/${openapi_util_1.default.getEncodeParam(uid)}`,
|
|
9653
9676
|
method: "GET",
|
|
9654
9677
|
authType: "AK",
|
|
9655
9678
|
style: "ROA",
|
|
@@ -9709,8 +9732,6 @@ class Client extends openapi_client_1.default {
|
|
|
9709
9732
|
}
|
|
9710
9733
|
async edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime) {
|
|
9711
9734
|
tea_util_1.default.validateModel(request);
|
|
9712
|
-
clusterid = openapi_util_1.default.getEncodeParam(clusterid);
|
|
9713
|
-
edgeMachineid = openapi_util_1.default.getEncodeParam(edgeMachineid);
|
|
9714
9735
|
let body = {};
|
|
9715
9736
|
if (!tea_util_1.default.isUnset(request.expired)) {
|
|
9716
9737
|
body["expired"] = request.expired;
|
|
@@ -9729,7 +9750,7 @@ class Client extends openapi_client_1.default {
|
|
|
9729
9750
|
action: "EdgeClusterAddEdgeMachine",
|
|
9730
9751
|
version: "2015-12-15",
|
|
9731
9752
|
protocol: "HTTPS",
|
|
9732
|
-
pathname: `/clusters/
|
|
9753
|
+
pathname: `/clusters/%5Bclusterid%5D/attachedgemachine/%5Bedge_machineid%5D`,
|
|
9733
9754
|
method: "POST",
|
|
9734
9755
|
authType: "AK",
|
|
9735
9756
|
style: "ROA",
|
|
@@ -9745,8 +9766,6 @@ class Client extends openapi_client_1.default {
|
|
|
9745
9766
|
}
|
|
9746
9767
|
async fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime) {
|
|
9747
9768
|
tea_util_1.default.validateModel(request);
|
|
9748
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
9749
|
-
nodepoolId = openapi_util_1.default.getEncodeParam(nodepoolId);
|
|
9750
9769
|
let body = {};
|
|
9751
9770
|
if (!tea_util_1.default.isUnset(request.nodes)) {
|
|
9752
9771
|
body["nodes"] = request.nodes;
|
|
@@ -9765,7 +9784,7 @@ class Client extends openapi_client_1.default {
|
|
|
9765
9784
|
action: "FixNodePoolVuls",
|
|
9766
9785
|
version: "2015-12-15",
|
|
9767
9786
|
protocol: "HTTPS",
|
|
9768
|
-
pathname: `/clusters/${clusterId}/nodepools/${nodepoolId}/vuls/fix`,
|
|
9787
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(nodepoolId)}/vuls/fix`,
|
|
9769
9788
|
method: "POST",
|
|
9770
9789
|
authType: "AK",
|
|
9771
9790
|
style: "ROA",
|
|
@@ -9781,7 +9800,6 @@ class Client extends openapi_client_1.default {
|
|
|
9781
9800
|
}
|
|
9782
9801
|
async getKubernetesTriggerWithOptions(ClusterId, request, headers, runtime) {
|
|
9783
9802
|
tea_util_1.default.validateModel(request);
|
|
9784
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
9785
9803
|
let query = {};
|
|
9786
9804
|
if (!tea_util_1.default.isUnset(request.name)) {
|
|
9787
9805
|
query["Name"] = request.name;
|
|
@@ -9803,7 +9821,7 @@ class Client extends openapi_client_1.default {
|
|
|
9803
9821
|
action: "GetKubernetesTrigger",
|
|
9804
9822
|
version: "2015-12-15",
|
|
9805
9823
|
protocol: "HTTPS",
|
|
9806
|
-
pathname: `/triggers/${ClusterId}`,
|
|
9824
|
+
pathname: `/triggers/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
|
|
9807
9825
|
method: "GET",
|
|
9808
9826
|
authType: "AK",
|
|
9809
9827
|
style: "ROA",
|
|
@@ -9818,7 +9836,6 @@ class Client extends openapi_client_1.default {
|
|
|
9818
9836
|
return await this.getUpgradeStatusWithOptions(ClusterId, headers, runtime);
|
|
9819
9837
|
}
|
|
9820
9838
|
async getUpgradeStatusWithOptions(ClusterId, headers, runtime) {
|
|
9821
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
9822
9839
|
let req = new $OpenApi.OpenApiRequest({
|
|
9823
9840
|
headers: headers,
|
|
9824
9841
|
});
|
|
@@ -9826,7 +9843,7 @@ class Client extends openapi_client_1.default {
|
|
|
9826
9843
|
action: "GetUpgradeStatus",
|
|
9827
9844
|
version: "2015-12-15",
|
|
9828
9845
|
protocol: "HTTPS",
|
|
9829
|
-
pathname: `/api/v2/clusters/${ClusterId}/upgrade/status`,
|
|
9846
|
+
pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade/status`,
|
|
9830
9847
|
method: "GET",
|
|
9831
9848
|
authType: "AK",
|
|
9832
9849
|
style: "ROA",
|
|
@@ -9842,7 +9859,6 @@ class Client extends openapi_client_1.default {
|
|
|
9842
9859
|
}
|
|
9843
9860
|
async grantPermissionsWithOptions(uid, request, headers, runtime) {
|
|
9844
9861
|
tea_util_1.default.validateModel(request);
|
|
9845
|
-
uid = openapi_util_1.default.getEncodeParam(uid);
|
|
9846
9862
|
let req = new $OpenApi.OpenApiRequest({
|
|
9847
9863
|
headers: headers,
|
|
9848
9864
|
body: tea_util_1.default.toArray(request.body),
|
|
@@ -9851,7 +9867,7 @@ class Client extends openapi_client_1.default {
|
|
|
9851
9867
|
action: "GrantPermissions",
|
|
9852
9868
|
version: "2015-12-15",
|
|
9853
9869
|
protocol: "HTTPS",
|
|
9854
|
-
pathname: `/permissions/users/${uid}`,
|
|
9870
|
+
pathname: `/permissions/users/${openapi_util_1.default.getEncodeParam(uid)}`,
|
|
9855
9871
|
method: "POST",
|
|
9856
9872
|
authType: "AK",
|
|
9857
9873
|
style: "ROA",
|
|
@@ -9867,7 +9883,6 @@ class Client extends openapi_client_1.default {
|
|
|
9867
9883
|
}
|
|
9868
9884
|
async installClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
|
|
9869
9885
|
tea_util_1.default.validateModel(request);
|
|
9870
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
9871
9886
|
let req = new $OpenApi.OpenApiRequest({
|
|
9872
9887
|
headers: headers,
|
|
9873
9888
|
body: tea_util_1.default.toArray(request.body),
|
|
@@ -9876,7 +9891,7 @@ class Client extends openapi_client_1.default {
|
|
|
9876
9891
|
action: "InstallClusterAddons",
|
|
9877
9892
|
version: "2015-12-15",
|
|
9878
9893
|
protocol: "HTTPS",
|
|
9879
|
-
pathname: `/clusters/${ClusterId}/components/install`,
|
|
9894
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/install`,
|
|
9880
9895
|
method: "POST",
|
|
9881
9896
|
authType: "AK",
|
|
9882
9897
|
style: "ROA",
|
|
@@ -9940,7 +9955,6 @@ class Client extends openapi_client_1.default {
|
|
|
9940
9955
|
}
|
|
9941
9956
|
async migrateClusterWithOptions(clusterId, request, headers, runtime) {
|
|
9942
9957
|
tea_util_1.default.validateModel(request);
|
|
9943
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
9944
9958
|
let body = {};
|
|
9945
9959
|
if (!tea_util_1.default.isUnset(request.ossBucketEndpoint)) {
|
|
9946
9960
|
body["oss_bucket_endpoint"] = request.ossBucketEndpoint;
|
|
@@ -9956,7 +9970,7 @@ class Client extends openapi_client_1.default {
|
|
|
9956
9970
|
action: "MigrateCluster",
|
|
9957
9971
|
version: "2015-12-15",
|
|
9958
9972
|
protocol: "HTTPS",
|
|
9959
|
-
pathname: `/clusters/${clusterId}/migrate`,
|
|
9973
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/migrate`,
|
|
9960
9974
|
method: "POST",
|
|
9961
9975
|
authType: "AK",
|
|
9962
9976
|
style: "ROA",
|
|
@@ -9972,7 +9986,6 @@ class Client extends openapi_client_1.default {
|
|
|
9972
9986
|
}
|
|
9973
9987
|
async modifyClusterWithOptions(ClusterId, request, headers, runtime) {
|
|
9974
9988
|
tea_util_1.default.validateModel(request);
|
|
9975
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
9976
9989
|
let body = {};
|
|
9977
9990
|
if (!tea_util_1.default.isUnset(request.apiServerEip)) {
|
|
9978
9991
|
body["api_server_eip"] = request.apiServerEip;
|
|
@@ -10009,7 +10022,7 @@ class Client extends openapi_client_1.default {
|
|
|
10009
10022
|
action: "ModifyCluster",
|
|
10010
10023
|
version: "2015-12-15",
|
|
10011
10024
|
protocol: "HTTPS",
|
|
10012
|
-
pathname: `/api/v2/clusters/${ClusterId}`,
|
|
10025
|
+
pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
|
|
10013
10026
|
method: "PUT",
|
|
10014
10027
|
authType: "AK",
|
|
10015
10028
|
style: "ROA",
|
|
@@ -10025,8 +10038,6 @@ class Client extends openapi_client_1.default {
|
|
|
10025
10038
|
}
|
|
10026
10039
|
async modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime) {
|
|
10027
10040
|
tea_util_1.default.validateModel(request);
|
|
10028
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
10029
|
-
componentId = openapi_util_1.default.getEncodeParam(componentId);
|
|
10030
10041
|
let body = {};
|
|
10031
10042
|
if (!tea_util_1.default.isUnset(request.config)) {
|
|
10032
10043
|
body["config"] = request.config;
|
|
@@ -10039,7 +10050,7 @@ class Client extends openapi_client_1.default {
|
|
|
10039
10050
|
action: "ModifyClusterAddon",
|
|
10040
10051
|
version: "2015-12-15",
|
|
10041
10052
|
protocol: "HTTPS",
|
|
10042
|
-
pathname: `/clusters/${clusterId}/components/${componentId}/config`,
|
|
10053
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/components/${openapi_util_1.default.getEncodeParam(componentId)}/config`,
|
|
10043
10054
|
method: "POST",
|
|
10044
10055
|
authType: "AK",
|
|
10045
10056
|
style: "ROA",
|
|
@@ -10055,7 +10066,6 @@ class Client extends openapi_client_1.default {
|
|
|
10055
10066
|
}
|
|
10056
10067
|
async modifyClusterConfigurationWithOptions(ClusterId, request, headers, runtime) {
|
|
10057
10068
|
tea_util_1.default.validateModel(request);
|
|
10058
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
10059
10069
|
let body = {};
|
|
10060
10070
|
if (!tea_util_1.default.isUnset(request.customizeConfig)) {
|
|
10061
10071
|
body["customize_config"] = request.customizeConfig;
|
|
@@ -10068,7 +10078,7 @@ class Client extends openapi_client_1.default {
|
|
|
10068
10078
|
action: "ModifyClusterConfiguration",
|
|
10069
10079
|
version: "2015-12-15",
|
|
10070
10080
|
protocol: "HTTPS",
|
|
10071
|
-
pathname: `/clusters/${ClusterId}/configuration`,
|
|
10081
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/configuration`,
|
|
10072
10082
|
method: "PUT",
|
|
10073
10083
|
authType: "AK",
|
|
10074
10084
|
style: "ROA",
|
|
@@ -10084,8 +10094,6 @@ class Client extends openapi_client_1.default {
|
|
|
10084
10094
|
}
|
|
10085
10095
|
async modifyClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
|
|
10086
10096
|
tea_util_1.default.validateModel(request);
|
|
10087
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
10088
|
-
NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
|
|
10089
10097
|
let body = {};
|
|
10090
10098
|
if (!tea_util_1.default.isUnset($tea.toMap(request.autoScaling))) {
|
|
10091
10099
|
body["auto_scaling"] = request.autoScaling;
|
|
@@ -10116,7 +10124,7 @@ class Client extends openapi_client_1.default {
|
|
|
10116
10124
|
action: "ModifyClusterNodePool",
|
|
10117
10125
|
version: "2015-12-15",
|
|
10118
10126
|
protocol: "HTTPS",
|
|
10119
|
-
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
10127
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}`,
|
|
10120
10128
|
method: "PUT",
|
|
10121
10129
|
authType: "AK",
|
|
10122
10130
|
style: "ROA",
|
|
@@ -10132,7 +10140,6 @@ class Client extends openapi_client_1.default {
|
|
|
10132
10140
|
}
|
|
10133
10141
|
async modifyClusterTagsWithOptions(ClusterId, request, headers, runtime) {
|
|
10134
10142
|
tea_util_1.default.validateModel(request);
|
|
10135
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
10136
10143
|
let req = new $OpenApi.OpenApiRequest({
|
|
10137
10144
|
headers: headers,
|
|
10138
10145
|
body: tea_util_1.default.toArray(request.body),
|
|
@@ -10141,7 +10148,7 @@ class Client extends openapi_client_1.default {
|
|
|
10141
10148
|
action: "ModifyClusterTags",
|
|
10142
10149
|
version: "2015-12-15",
|
|
10143
10150
|
protocol: "HTTPS",
|
|
10144
|
-
pathname: `/clusters/${ClusterId}/tags`,
|
|
10151
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/tags`,
|
|
10145
10152
|
method: "POST",
|
|
10146
10153
|
authType: "AK",
|
|
10147
10154
|
style: "ROA",
|
|
@@ -10157,8 +10164,6 @@ class Client extends openapi_client_1.default {
|
|
|
10157
10164
|
}
|
|
10158
10165
|
async modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
|
|
10159
10166
|
tea_util_1.default.validateModel(request);
|
|
10160
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
10161
|
-
NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
|
|
10162
10167
|
let body = {};
|
|
10163
10168
|
if (!tea_util_1.default.isUnset($tea.toMap(request.kubeletConfig))) {
|
|
10164
10169
|
body["kubelet_config"] = request.kubeletConfig;
|
|
@@ -10174,7 +10179,7 @@ class Client extends openapi_client_1.default {
|
|
|
10174
10179
|
action: "ModifyNodePoolNodeConfig",
|
|
10175
10180
|
version: "2015-12-15",
|
|
10176
10181
|
protocol: "HTTPS",
|
|
10177
|
-
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}/node_config`,
|
|
10182
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}/node_config`,
|
|
10178
10183
|
method: "PUT",
|
|
10179
10184
|
authType: "AK",
|
|
10180
10185
|
style: "ROA",
|
|
@@ -10190,8 +10195,6 @@ class Client extends openapi_client_1.default {
|
|
|
10190
10195
|
}
|
|
10191
10196
|
async modifyPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
|
|
10192
10197
|
tea_util_1.default.validateModel(request);
|
|
10193
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
10194
|
-
policyName = openapi_util_1.default.getEncodeParam(policyName);
|
|
10195
10198
|
let body = {};
|
|
10196
10199
|
if (!tea_util_1.default.isUnset(request.action)) {
|
|
10197
10200
|
body["action"] = request.action;
|
|
@@ -10213,7 +10216,7 @@ class Client extends openapi_client_1.default {
|
|
|
10213
10216
|
action: "ModifyPolicyInstance",
|
|
10214
10217
|
version: "2015-12-15",
|
|
10215
10218
|
protocol: "HTTPS",
|
|
10216
|
-
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
10219
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/policies/${openapi_util_1.default.getEncodeParam(policyName)}`,
|
|
10217
10220
|
method: "PUT",
|
|
10218
10221
|
authType: "AK",
|
|
10219
10222
|
style: "ROA",
|
|
@@ -10256,7 +10259,6 @@ class Client extends openapi_client_1.default {
|
|
|
10256
10259
|
return await this.pauseClusterUpgradeWithOptions(ClusterId, headers, runtime);
|
|
10257
10260
|
}
|
|
10258
10261
|
async pauseClusterUpgradeWithOptions(ClusterId, headers, runtime) {
|
|
10259
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
10260
10262
|
let req = new $OpenApi.OpenApiRequest({
|
|
10261
10263
|
headers: headers,
|
|
10262
10264
|
});
|
|
@@ -10264,7 +10266,7 @@ class Client extends openapi_client_1.default {
|
|
|
10264
10266
|
action: "PauseClusterUpgrade",
|
|
10265
10267
|
version: "2015-12-15",
|
|
10266
10268
|
protocol: "HTTPS",
|
|
10267
|
-
pathname: `/api/v2/clusters/${ClusterId}/upgrade/pause`,
|
|
10269
|
+
pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade/pause`,
|
|
10268
10270
|
method: "POST",
|
|
10269
10271
|
authType: "AK",
|
|
10270
10272
|
style: "ROA",
|
|
@@ -10279,8 +10281,6 @@ class Client extends openapi_client_1.default {
|
|
|
10279
10281
|
return await this.pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
|
|
10280
10282
|
}
|
|
10281
10283
|
async pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime) {
|
|
10282
|
-
clusterid = openapi_util_1.default.getEncodeParam(clusterid);
|
|
10283
|
-
componentid = openapi_util_1.default.getEncodeParam(componentid);
|
|
10284
10284
|
let req = new $OpenApi.OpenApiRequest({
|
|
10285
10285
|
headers: headers,
|
|
10286
10286
|
});
|
|
@@ -10288,7 +10288,7 @@ class Client extends openapi_client_1.default {
|
|
|
10288
10288
|
action: "PauseComponentUpgrade",
|
|
10289
10289
|
version: "2015-12-15",
|
|
10290
10290
|
protocol: "HTTPS",
|
|
10291
|
-
pathname: `/clusters/${clusterid}/components/${componentid}/pause`,
|
|
10291
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterid)}/components/${openapi_util_1.default.getEncodeParam(componentid)}/pause`,
|
|
10292
10292
|
method: "POST",
|
|
10293
10293
|
authType: "AK",
|
|
10294
10294
|
style: "ROA",
|
|
@@ -10303,7 +10303,6 @@ class Client extends openapi_client_1.default {
|
|
|
10303
10303
|
return await this.pauseTaskWithOptions(taskId, headers, runtime);
|
|
10304
10304
|
}
|
|
10305
10305
|
async pauseTaskWithOptions(taskId, headers, runtime) {
|
|
10306
|
-
taskId = openapi_util_1.default.getEncodeParam(taskId);
|
|
10307
10306
|
let req = new $OpenApi.OpenApiRequest({
|
|
10308
10307
|
headers: headers,
|
|
10309
10308
|
});
|
|
@@ -10311,7 +10310,7 @@ class Client extends openapi_client_1.default {
|
|
|
10311
10310
|
action: "PauseTask",
|
|
10312
10311
|
version: "2015-12-15",
|
|
10313
10312
|
protocol: "HTTPS",
|
|
10314
|
-
pathname: `/tasks/${taskId}/pause`,
|
|
10313
|
+
pathname: `/tasks/${openapi_util_1.default.getEncodeParam(taskId)}/pause`,
|
|
10315
10314
|
method: "POST",
|
|
10316
10315
|
authType: "AK",
|
|
10317
10316
|
style: "ROA",
|
|
@@ -10327,7 +10326,6 @@ class Client extends openapi_client_1.default {
|
|
|
10327
10326
|
}
|
|
10328
10327
|
async removeClusterNodesWithOptions(ClusterId, request, headers, runtime) {
|
|
10329
10328
|
tea_util_1.default.validateModel(request);
|
|
10330
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
10331
10329
|
let body = {};
|
|
10332
10330
|
if (!tea_util_1.default.isUnset(request.drainNode)) {
|
|
10333
10331
|
body["drain_node"] = request.drainNode;
|
|
@@ -10346,7 +10344,7 @@ class Client extends openapi_client_1.default {
|
|
|
10346
10344
|
action: "RemoveClusterNodes",
|
|
10347
10345
|
version: "2015-12-15",
|
|
10348
10346
|
protocol: "HTTPS",
|
|
10349
|
-
pathname: `/api/v2/clusters/${ClusterId}/nodes/remove`,
|
|
10347
|
+
pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodes/remove`,
|
|
10350
10348
|
method: "POST",
|
|
10351
10349
|
authType: "AK",
|
|
10352
10350
|
style: "ROA",
|
|
@@ -10355,13 +10353,51 @@ class Client extends openapi_client_1.default {
|
|
|
10355
10353
|
});
|
|
10356
10354
|
return $tea.cast(await this.callApi(params, req, runtime), new RemoveClusterNodesResponse({}));
|
|
10357
10355
|
}
|
|
10356
|
+
async removeNodePoolNodes(ClusterId, NodepoolId, request) {
|
|
10357
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
10358
|
+
let headers = {};
|
|
10359
|
+
return await this.removeNodePoolNodesWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
10360
|
+
}
|
|
10361
|
+
async removeNodePoolNodesWithOptions(ClusterId, NodepoolId, tmpReq, headers, runtime) {
|
|
10362
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
10363
|
+
let request = new RemoveNodePoolNodesShrinkRequest({});
|
|
10364
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
10365
|
+
if (!tea_util_1.default.isUnset(tmpReq.nodes)) {
|
|
10366
|
+
request.nodesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.nodes, "nodes", "json");
|
|
10367
|
+
}
|
|
10368
|
+
let query = {};
|
|
10369
|
+
if (!tea_util_1.default.isUnset(request.drainNode)) {
|
|
10370
|
+
query["drain_node"] = request.drainNode;
|
|
10371
|
+
}
|
|
10372
|
+
if (!tea_util_1.default.isUnset(request.nodesShrink)) {
|
|
10373
|
+
query["nodes"] = request.nodesShrink;
|
|
10374
|
+
}
|
|
10375
|
+
if (!tea_util_1.default.isUnset(request.releaseNode)) {
|
|
10376
|
+
query["release_node"] = request.releaseNode;
|
|
10377
|
+
}
|
|
10378
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
10379
|
+
headers: headers,
|
|
10380
|
+
query: openapi_util_1.default.query(query),
|
|
10381
|
+
});
|
|
10382
|
+
let params = new $OpenApi.Params({
|
|
10383
|
+
action: "RemoveNodePoolNodes",
|
|
10384
|
+
version: "2015-12-15",
|
|
10385
|
+
protocol: "HTTPS",
|
|
10386
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}/nodes`,
|
|
10387
|
+
method: "DELETE",
|
|
10388
|
+
authType: "AK",
|
|
10389
|
+
style: "ROA",
|
|
10390
|
+
reqBodyType: "json",
|
|
10391
|
+
bodyType: "json",
|
|
10392
|
+
});
|
|
10393
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RemoveNodePoolNodesResponse({}));
|
|
10394
|
+
}
|
|
10358
10395
|
async removeWorkflow(workflowName) {
|
|
10359
10396
|
let runtime = new $Util.RuntimeOptions({});
|
|
10360
10397
|
let headers = {};
|
|
10361
10398
|
return await this.removeWorkflowWithOptions(workflowName, headers, runtime);
|
|
10362
10399
|
}
|
|
10363
10400
|
async removeWorkflowWithOptions(workflowName, headers, runtime) {
|
|
10364
|
-
workflowName = openapi_util_1.default.getEncodeParam(workflowName);
|
|
10365
10401
|
let req = new $OpenApi.OpenApiRequest({
|
|
10366
10402
|
headers: headers,
|
|
10367
10403
|
});
|
|
@@ -10369,7 +10405,7 @@ class Client extends openapi_client_1.default {
|
|
|
10369
10405
|
action: "RemoveWorkflow",
|
|
10370
10406
|
version: "2015-12-15",
|
|
10371
10407
|
protocol: "HTTPS",
|
|
10372
|
-
pathname: `/gs/workflow/${workflowName}`,
|
|
10408
|
+
pathname: `/gs/workflow/${openapi_util_1.default.getEncodeParam(workflowName)}`,
|
|
10373
10409
|
method: "DELETE",
|
|
10374
10410
|
authType: "AK",
|
|
10375
10411
|
style: "ROA",
|
|
@@ -10385,8 +10421,6 @@ class Client extends openapi_client_1.default {
|
|
|
10385
10421
|
}
|
|
10386
10422
|
async repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime) {
|
|
10387
10423
|
tea_util_1.default.validateModel(request);
|
|
10388
|
-
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
10389
|
-
nodepoolId = openapi_util_1.default.getEncodeParam(nodepoolId);
|
|
10390
10424
|
let body = {};
|
|
10391
10425
|
if (!tea_util_1.default.isUnset(request.nodes)) {
|
|
10392
10426
|
body["nodes"] = request.nodes;
|
|
@@ -10399,7 +10433,7 @@ class Client extends openapi_client_1.default {
|
|
|
10399
10433
|
action: "RepairClusterNodePool",
|
|
10400
10434
|
version: "2015-12-15",
|
|
10401
10435
|
protocol: "HTTPS",
|
|
10402
|
-
pathname: `/clusters/${clusterId}/nodepools/${nodepoolId}/repair`,
|
|
10436
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(nodepoolId)}/repair`,
|
|
10403
10437
|
method: "POST",
|
|
10404
10438
|
authType: "AK",
|
|
10405
10439
|
style: "ROA",
|
|
@@ -10414,8 +10448,6 @@ class Client extends openapi_client_1.default {
|
|
|
10414
10448
|
return await this.resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
|
|
10415
10449
|
}
|
|
10416
10450
|
async resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime) {
|
|
10417
|
-
clusterid = openapi_util_1.default.getEncodeParam(clusterid);
|
|
10418
|
-
componentid = openapi_util_1.default.getEncodeParam(componentid);
|
|
10419
10451
|
let req = new $OpenApi.OpenApiRequest({
|
|
10420
10452
|
headers: headers,
|
|
10421
10453
|
});
|
|
@@ -10423,7 +10455,7 @@ class Client extends openapi_client_1.default {
|
|
|
10423
10455
|
action: "ResumeComponentUpgrade",
|
|
10424
10456
|
version: "2015-12-15",
|
|
10425
10457
|
protocol: "HTTPS",
|
|
10426
|
-
pathname: `/clusters/${clusterid}/components/${componentid}/resume`,
|
|
10458
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterid)}/components/${openapi_util_1.default.getEncodeParam(componentid)}/resume`,
|
|
10427
10459
|
method: "POST",
|
|
10428
10460
|
authType: "AK",
|
|
10429
10461
|
style: "ROA",
|
|
@@ -10438,7 +10470,6 @@ class Client extends openapi_client_1.default {
|
|
|
10438
10470
|
return await this.resumeTaskWithOptions(taskId, headers, runtime);
|
|
10439
10471
|
}
|
|
10440
10472
|
async resumeTaskWithOptions(taskId, headers, runtime) {
|
|
10441
|
-
taskId = openapi_util_1.default.getEncodeParam(taskId);
|
|
10442
10473
|
let req = new $OpenApi.OpenApiRequest({
|
|
10443
10474
|
headers: headers,
|
|
10444
10475
|
});
|
|
@@ -10446,7 +10477,7 @@ class Client extends openapi_client_1.default {
|
|
|
10446
10477
|
action: "ResumeTask",
|
|
10447
10478
|
version: "2015-12-15",
|
|
10448
10479
|
protocol: "HTTPS",
|
|
10449
|
-
pathname: `/tasks/${taskId}/resume`,
|
|
10480
|
+
pathname: `/tasks/${openapi_util_1.default.getEncodeParam(taskId)}/resume`,
|
|
10450
10481
|
method: "POST",
|
|
10451
10482
|
authType: "AK",
|
|
10452
10483
|
style: "ROA",
|
|
@@ -10461,7 +10492,6 @@ class Client extends openapi_client_1.default {
|
|
|
10461
10492
|
return await this.resumeUpgradeClusterWithOptions(ClusterId, headers, runtime);
|
|
10462
10493
|
}
|
|
10463
10494
|
async resumeUpgradeClusterWithOptions(ClusterId, headers, runtime) {
|
|
10464
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
10465
10495
|
let req = new $OpenApi.OpenApiRequest({
|
|
10466
10496
|
headers: headers,
|
|
10467
10497
|
});
|
|
@@ -10469,7 +10499,7 @@ class Client extends openapi_client_1.default {
|
|
|
10469
10499
|
action: "ResumeUpgradeCluster",
|
|
10470
10500
|
version: "2015-12-15",
|
|
10471
10501
|
protocol: "HTTPS",
|
|
10472
|
-
pathname: `/api/v2/clusters/${ClusterId}/upgrade/resume`,
|
|
10502
|
+
pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade/resume`,
|
|
10473
10503
|
method: "POST",
|
|
10474
10504
|
authType: "AK",
|
|
10475
10505
|
style: "ROA",
|
|
@@ -10485,7 +10515,6 @@ class Client extends openapi_client_1.default {
|
|
|
10485
10515
|
}
|
|
10486
10516
|
async scaleClusterWithOptions(ClusterId, request, headers, runtime) {
|
|
10487
10517
|
tea_util_1.default.validateModel(request);
|
|
10488
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
10489
10518
|
let body = {};
|
|
10490
10519
|
if (!tea_util_1.default.isUnset(request.cloudMonitorFlags)) {
|
|
10491
10520
|
body["cloud_monitor_flags"] = request.cloudMonitorFlags;
|
|
@@ -10552,7 +10581,7 @@ class Client extends openapi_client_1.default {
|
|
|
10552
10581
|
action: "ScaleCluster",
|
|
10553
10582
|
version: "2015-12-15",
|
|
10554
10583
|
protocol: "HTTPS",
|
|
10555
|
-
pathname: `/clusters/${ClusterId}`,
|
|
10584
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
|
|
10556
10585
|
method: "PUT",
|
|
10557
10586
|
authType: "AK",
|
|
10558
10587
|
style: "ROA",
|
|
@@ -10568,8 +10597,6 @@ class Client extends openapi_client_1.default {
|
|
|
10568
10597
|
}
|
|
10569
10598
|
async scaleClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
|
|
10570
10599
|
tea_util_1.default.validateModel(request);
|
|
10571
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
10572
|
-
NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
|
|
10573
10600
|
let body = {};
|
|
10574
10601
|
if (!tea_util_1.default.isUnset(request.count)) {
|
|
10575
10602
|
body["count"] = request.count;
|
|
@@ -10582,7 +10609,7 @@ class Client extends openapi_client_1.default {
|
|
|
10582
10609
|
action: "ScaleClusterNodePool",
|
|
10583
10610
|
version: "2015-12-15",
|
|
10584
10611
|
protocol: "HTTPS",
|
|
10585
|
-
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
10612
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}`,
|
|
10586
10613
|
method: "POST",
|
|
10587
10614
|
authType: "AK",
|
|
10588
10615
|
style: "ROA",
|
|
@@ -10598,7 +10625,6 @@ class Client extends openapi_client_1.default {
|
|
|
10598
10625
|
}
|
|
10599
10626
|
async scaleOutClusterWithOptions(ClusterId, request, headers, runtime) {
|
|
10600
10627
|
tea_util_1.default.validateModel(request);
|
|
10601
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
10602
10628
|
let body = {};
|
|
10603
10629
|
if (!tea_util_1.default.isUnset(request.cloudMonitorFlags)) {
|
|
10604
10630
|
body["cloud_monitor_flags"] = request.cloudMonitorFlags;
|
|
@@ -10671,7 +10697,7 @@ class Client extends openapi_client_1.default {
|
|
|
10671
10697
|
action: "ScaleOutCluster",
|
|
10672
10698
|
version: "2015-12-15",
|
|
10673
10699
|
protocol: "HTTPS",
|
|
10674
|
-
pathname: `/api/v2/clusters/${ClusterId}`,
|
|
10700
|
+
pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}`,
|
|
10675
10701
|
method: "POST",
|
|
10676
10702
|
authType: "AK",
|
|
10677
10703
|
style: "ROA",
|
|
@@ -10806,7 +10832,6 @@ class Client extends openapi_client_1.default {
|
|
|
10806
10832
|
}
|
|
10807
10833
|
async unInstallClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
|
|
10808
10834
|
tea_util_1.default.validateModel(request);
|
|
10809
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
10810
10835
|
let req = new $OpenApi.OpenApiRequest({
|
|
10811
10836
|
headers: headers,
|
|
10812
10837
|
body: tea_util_1.default.toArray(request.addons),
|
|
@@ -10815,7 +10840,7 @@ class Client extends openapi_client_1.default {
|
|
|
10815
10840
|
action: "UnInstallClusterAddons",
|
|
10816
10841
|
version: "2015-12-15",
|
|
10817
10842
|
protocol: "HTTPS",
|
|
10818
|
-
pathname: `/clusters/${ClusterId}/components/uninstall`,
|
|
10843
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/uninstall`,
|
|
10819
10844
|
method: "POST",
|
|
10820
10845
|
authType: "AK",
|
|
10821
10846
|
style: "ROA",
|
|
@@ -10870,7 +10895,6 @@ class Client extends openapi_client_1.default {
|
|
|
10870
10895
|
return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
|
|
10871
10896
|
}
|
|
10872
10897
|
async updateContactGroupForAlertWithOptions(ClusterId, headers, runtime) {
|
|
10873
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
10874
10898
|
let req = new $OpenApi.OpenApiRequest({
|
|
10875
10899
|
headers: headers,
|
|
10876
10900
|
});
|
|
@@ -10878,7 +10902,7 @@ class Client extends openapi_client_1.default {
|
|
|
10878
10902
|
action: "UpdateContactGroupForAlert",
|
|
10879
10903
|
version: "2015-12-15",
|
|
10880
10904
|
protocol: "HTTPS",
|
|
10881
|
-
pathname: `/alert/${ClusterId}/alert_rule/contact_groups`,
|
|
10905
|
+
pathname: `/alert/${openapi_util_1.default.getEncodeParam(ClusterId)}/alert_rule/contact_groups`,
|
|
10882
10906
|
method: "POST",
|
|
10883
10907
|
authType: "AK",
|
|
10884
10908
|
style: "ROA",
|
|
@@ -10894,7 +10918,6 @@ class Client extends openapi_client_1.default {
|
|
|
10894
10918
|
}
|
|
10895
10919
|
async updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime) {
|
|
10896
10920
|
tea_util_1.default.validateModel(request);
|
|
10897
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
10898
10921
|
let body = {};
|
|
10899
10922
|
if (!tea_util_1.default.isUnset(request.expireHour)) {
|
|
10900
10923
|
body["expire_hour"] = request.expireHour;
|
|
@@ -10910,7 +10933,7 @@ class Client extends openapi_client_1.default {
|
|
|
10910
10933
|
action: "UpdateK8sClusterUserConfigExpire",
|
|
10911
10934
|
version: "2015-12-15",
|
|
10912
10935
|
protocol: "HTTPS",
|
|
10913
|
-
pathname: `/k8s/${ClusterId}/user_config/expire`,
|
|
10936
|
+
pathname: `/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/user_config/expire`,
|
|
10914
10937
|
method: "POST",
|
|
10915
10938
|
authType: "AK",
|
|
10916
10939
|
style: "ROA",
|
|
@@ -10926,7 +10949,6 @@ class Client extends openapi_client_1.default {
|
|
|
10926
10949
|
}
|
|
10927
10950
|
async updateTemplateWithOptions(TemplateId, request, headers, runtime) {
|
|
10928
10951
|
tea_util_1.default.validateModel(request);
|
|
10929
|
-
TemplateId = openapi_util_1.default.getEncodeParam(TemplateId);
|
|
10930
10952
|
let body = {};
|
|
10931
10953
|
if (!tea_util_1.default.isUnset(request.description)) {
|
|
10932
10954
|
body["description"] = request.description;
|
|
@@ -10951,7 +10973,7 @@ class Client extends openapi_client_1.default {
|
|
|
10951
10973
|
action: "UpdateTemplate",
|
|
10952
10974
|
version: "2015-12-15",
|
|
10953
10975
|
protocol: "HTTPS",
|
|
10954
|
-
pathname: `/templates/${TemplateId}`,
|
|
10976
|
+
pathname: `/templates/${openapi_util_1.default.getEncodeParam(TemplateId)}`,
|
|
10955
10977
|
method: "PUT",
|
|
10956
10978
|
authType: "AK",
|
|
10957
10979
|
style: "ROA",
|
|
@@ -10967,7 +10989,6 @@ class Client extends openapi_client_1.default {
|
|
|
10967
10989
|
}
|
|
10968
10990
|
async upgradeClusterWithOptions(ClusterId, request, headers, runtime) {
|
|
10969
10991
|
tea_util_1.default.validateModel(request);
|
|
10970
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
10971
10992
|
let body = {};
|
|
10972
10993
|
if (!tea_util_1.default.isUnset(request.componentName)) {
|
|
10973
10994
|
body["component_name"] = request.componentName;
|
|
@@ -10986,7 +11007,7 @@ class Client extends openapi_client_1.default {
|
|
|
10986
11007
|
action: "UpgradeCluster",
|
|
10987
11008
|
version: "2015-12-15",
|
|
10988
11009
|
protocol: "HTTPS",
|
|
10989
|
-
pathname: `/api/v2/clusters/${ClusterId}/upgrade`,
|
|
11010
|
+
pathname: `/api/v2/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/upgrade`,
|
|
10990
11011
|
method: "POST",
|
|
10991
11012
|
authType: "AK",
|
|
10992
11013
|
style: "ROA",
|
|
@@ -11002,7 +11023,6 @@ class Client extends openapi_client_1.default {
|
|
|
11002
11023
|
}
|
|
11003
11024
|
async upgradeClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
|
|
11004
11025
|
tea_util_1.default.validateModel(request);
|
|
11005
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
11006
11026
|
let req = new $OpenApi.OpenApiRequest({
|
|
11007
11027
|
headers: headers,
|
|
11008
11028
|
body: tea_util_1.default.toArray(request.body),
|
|
@@ -11011,7 +11031,7 @@ class Client extends openapi_client_1.default {
|
|
|
11011
11031
|
action: "UpgradeClusterAddons",
|
|
11012
11032
|
version: "2015-12-15",
|
|
11013
11033
|
protocol: "HTTPS",
|
|
11014
|
-
pathname: `/clusters/${ClusterId}/components/upgrade`,
|
|
11034
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/components/upgrade`,
|
|
11015
11035
|
method: "POST",
|
|
11016
11036
|
authType: "AK",
|
|
11017
11037
|
style: "ROA",
|