@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/dist/client.d.ts +55 -2
- package/dist/client.js +1145 -92
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1165 -92
package/dist/client.js
CHANGED
|
@@ -342,6 +342,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
342
342
|
customSan: 'custom_san',
|
|
343
343
|
deletionProtection: 'deletion_protection',
|
|
344
344
|
disableRollback: 'disable_rollback',
|
|
345
|
+
enableRrsa: 'enable_rrsa',
|
|
345
346
|
encryptionProviderKey: 'encryption_provider_key',
|
|
346
347
|
endpointPublicAccess: 'endpoint_public_access',
|
|
347
348
|
formatDisk: 'format_disk',
|
|
@@ -428,6 +429,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
428
429
|
customSan: 'string',
|
|
429
430
|
deletionProtection: 'boolean',
|
|
430
431
|
disableRollback: 'boolean',
|
|
432
|
+
enableRrsa: 'boolean',
|
|
431
433
|
encryptionProviderKey: 'string',
|
|
432
434
|
endpointPublicAccess: 'boolean',
|
|
433
435
|
formatDisk: 'boolean',
|
|
@@ -1043,6 +1045,38 @@ class DeleteKubernetesTriggerResponse extends $tea.Model {
|
|
|
1043
1045
|
}
|
|
1044
1046
|
}
|
|
1045
1047
|
exports.DeleteKubernetesTriggerResponse = DeleteKubernetesTriggerResponse;
|
|
1048
|
+
class DeletePolicyInstanceRequest extends $tea.Model {
|
|
1049
|
+
constructor(map) {
|
|
1050
|
+
super(map);
|
|
1051
|
+
}
|
|
1052
|
+
static names() {
|
|
1053
|
+
return {
|
|
1054
|
+
instanceName: 'instance_name',
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
static types() {
|
|
1058
|
+
return {
|
|
1059
|
+
instanceName: 'string',
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
exports.DeletePolicyInstanceRequest = DeletePolicyInstanceRequest;
|
|
1064
|
+
class DeletePolicyInstanceResponseBody extends $tea.Model {
|
|
1065
|
+
constructor(map) {
|
|
1066
|
+
super(map);
|
|
1067
|
+
}
|
|
1068
|
+
static names() {
|
|
1069
|
+
return {
|
|
1070
|
+
instances: 'instances',
|
|
1071
|
+
};
|
|
1072
|
+
}
|
|
1073
|
+
static types() {
|
|
1074
|
+
return {
|
|
1075
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
exports.DeletePolicyInstanceResponseBody = DeletePolicyInstanceResponseBody;
|
|
1046
1080
|
class DeletePolicyInstanceResponse extends $tea.Model {
|
|
1047
1081
|
constructor(map) {
|
|
1048
1082
|
super(map);
|
|
@@ -1050,11 +1084,13 @@ class DeletePolicyInstanceResponse extends $tea.Model {
|
|
|
1050
1084
|
static names() {
|
|
1051
1085
|
return {
|
|
1052
1086
|
headers: 'headers',
|
|
1087
|
+
body: 'body',
|
|
1053
1088
|
};
|
|
1054
1089
|
}
|
|
1055
1090
|
static types() {
|
|
1056
1091
|
return {
|
|
1057
1092
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1093
|
+
body: DeletePolicyInstanceResponseBody,
|
|
1058
1094
|
};
|
|
1059
1095
|
}
|
|
1060
1096
|
}
|
|
@@ -1111,6 +1147,22 @@ class DeployPolicyInstanceRequest extends $tea.Model {
|
|
|
1111
1147
|
}
|
|
1112
1148
|
}
|
|
1113
1149
|
exports.DeployPolicyInstanceRequest = DeployPolicyInstanceRequest;
|
|
1150
|
+
class DeployPolicyInstanceResponseBody extends $tea.Model {
|
|
1151
|
+
constructor(map) {
|
|
1152
|
+
super(map);
|
|
1153
|
+
}
|
|
1154
|
+
static names() {
|
|
1155
|
+
return {
|
|
1156
|
+
instances: 'instances',
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
static types() {
|
|
1160
|
+
return {
|
|
1161
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
exports.DeployPolicyInstanceResponseBody = DeployPolicyInstanceResponseBody;
|
|
1114
1166
|
class DeployPolicyInstanceResponse extends $tea.Model {
|
|
1115
1167
|
constructor(map) {
|
|
1116
1168
|
super(map);
|
|
@@ -1118,11 +1170,13 @@ class DeployPolicyInstanceResponse extends $tea.Model {
|
|
|
1118
1170
|
static names() {
|
|
1119
1171
|
return {
|
|
1120
1172
|
headers: 'headers',
|
|
1173
|
+
body: 'body',
|
|
1121
1174
|
};
|
|
1122
1175
|
}
|
|
1123
1176
|
static types() {
|
|
1124
1177
|
return {
|
|
1125
1178
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1179
|
+
body: DeployPolicyInstanceResponseBody,
|
|
1126
1180
|
};
|
|
1127
1181
|
}
|
|
1128
1182
|
}
|
|
@@ -2988,6 +3042,7 @@ class ModifyClusterRequest extends $tea.Model {
|
|
|
2988
3042
|
apiServerEip: 'api_server_eip',
|
|
2989
3043
|
apiServerEipId: 'api_server_eip_id',
|
|
2990
3044
|
deletionProtection: 'deletion_protection',
|
|
3045
|
+
enableRrsa: 'enable_rrsa',
|
|
2991
3046
|
ingressDomainRebinding: 'ingress_domain_rebinding',
|
|
2992
3047
|
ingressLoadbalancerId: 'ingress_loadbalancer_id',
|
|
2993
3048
|
instanceDeletionProtection: 'instance_deletion_protection',
|
|
@@ -3000,6 +3055,7 @@ class ModifyClusterRequest extends $tea.Model {
|
|
|
3000
3055
|
apiServerEip: 'boolean',
|
|
3001
3056
|
apiServerEipId: 'string',
|
|
3002
3057
|
deletionProtection: 'boolean',
|
|
3058
|
+
enableRrsa: 'boolean',
|
|
3003
3059
|
ingressDomainRebinding: 'string',
|
|
3004
3060
|
ingressLoadbalancerId: 'string',
|
|
3005
3061
|
instanceDeletionProtection: 'boolean',
|
|
@@ -3229,6 +3285,22 @@ class ModifyPolicyInstanceRequest extends $tea.Model {
|
|
|
3229
3285
|
}
|
|
3230
3286
|
}
|
|
3231
3287
|
exports.ModifyPolicyInstanceRequest = ModifyPolicyInstanceRequest;
|
|
3288
|
+
class ModifyPolicyInstanceResponseBody extends $tea.Model {
|
|
3289
|
+
constructor(map) {
|
|
3290
|
+
super(map);
|
|
3291
|
+
}
|
|
3292
|
+
static names() {
|
|
3293
|
+
return {
|
|
3294
|
+
instances: 'instances',
|
|
3295
|
+
};
|
|
3296
|
+
}
|
|
3297
|
+
static types() {
|
|
3298
|
+
return {
|
|
3299
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
3300
|
+
};
|
|
3301
|
+
}
|
|
3302
|
+
}
|
|
3303
|
+
exports.ModifyPolicyInstanceResponseBody = ModifyPolicyInstanceResponseBody;
|
|
3232
3304
|
class ModifyPolicyInstanceResponse extends $tea.Model {
|
|
3233
3305
|
constructor(map) {
|
|
3234
3306
|
super(map);
|
|
@@ -3236,11 +3308,13 @@ class ModifyPolicyInstanceResponse extends $tea.Model {
|
|
|
3236
3308
|
static names() {
|
|
3237
3309
|
return {
|
|
3238
3310
|
headers: 'headers',
|
|
3311
|
+
body: 'body',
|
|
3239
3312
|
};
|
|
3240
3313
|
}
|
|
3241
3314
|
static types() {
|
|
3242
3315
|
return {
|
|
3243
3316
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3317
|
+
body: ModifyPolicyInstanceResponseBody,
|
|
3244
3318
|
};
|
|
3245
3319
|
}
|
|
3246
3320
|
}
|
|
@@ -6496,7 +6570,18 @@ class Client extends openapi_client_1.default {
|
|
|
6496
6570
|
headers: headers,
|
|
6497
6571
|
body: openapi_util_1.default.parseToMap(body),
|
|
6498
6572
|
});
|
|
6499
|
-
|
|
6573
|
+
let params = new $OpenApi.Params({
|
|
6574
|
+
action: "AttachInstances",
|
|
6575
|
+
version: "2015-12-15",
|
|
6576
|
+
protocol: "HTTPS",
|
|
6577
|
+
pathname: `/clusters/${ClusterId}/attach`,
|
|
6578
|
+
method: "POST",
|
|
6579
|
+
authType: "AK",
|
|
6580
|
+
style: "ROA",
|
|
6581
|
+
reqBodyType: "json",
|
|
6582
|
+
bodyType: "json",
|
|
6583
|
+
});
|
|
6584
|
+
return $tea.cast(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
|
|
6500
6585
|
}
|
|
6501
6586
|
async cancelClusterUpgrade(ClusterId) {
|
|
6502
6587
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6508,7 +6593,18 @@ class Client extends openapi_client_1.default {
|
|
|
6508
6593
|
let req = new $OpenApi.OpenApiRequest({
|
|
6509
6594
|
headers: headers,
|
|
6510
6595
|
});
|
|
6511
|
-
|
|
6596
|
+
let params = new $OpenApi.Params({
|
|
6597
|
+
action: "CancelClusterUpgrade",
|
|
6598
|
+
version: "2015-12-15",
|
|
6599
|
+
protocol: "HTTPS",
|
|
6600
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/cancel`,
|
|
6601
|
+
method: "POST",
|
|
6602
|
+
authType: "AK",
|
|
6603
|
+
style: "ROA",
|
|
6604
|
+
reqBodyType: "json",
|
|
6605
|
+
bodyType: "none",
|
|
6606
|
+
});
|
|
6607
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CancelClusterUpgradeResponse({}));
|
|
6512
6608
|
}
|
|
6513
6609
|
async cancelComponentUpgrade(clusterId, componentId) {
|
|
6514
6610
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6521,7 +6617,18 @@ class Client extends openapi_client_1.default {
|
|
|
6521
6617
|
let req = new $OpenApi.OpenApiRequest({
|
|
6522
6618
|
headers: headers,
|
|
6523
6619
|
});
|
|
6524
|
-
|
|
6620
|
+
let params = new $OpenApi.Params({
|
|
6621
|
+
action: "CancelComponentUpgrade",
|
|
6622
|
+
version: "2015-12-15",
|
|
6623
|
+
protocol: "HTTPS",
|
|
6624
|
+
pathname: `/clusters/${clusterId}/components/{componentId}/cancel`,
|
|
6625
|
+
method: "POST",
|
|
6626
|
+
authType: "AK",
|
|
6627
|
+
style: "ROA",
|
|
6628
|
+
reqBodyType: "json",
|
|
6629
|
+
bodyType: "none",
|
|
6630
|
+
});
|
|
6631
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CancelComponentUpgradeResponse({}));
|
|
6525
6632
|
}
|
|
6526
6633
|
async cancelWorkflow(workflowName, request) {
|
|
6527
6634
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6539,7 +6646,18 @@ class Client extends openapi_client_1.default {
|
|
|
6539
6646
|
headers: headers,
|
|
6540
6647
|
body: openapi_util_1.default.parseToMap(body),
|
|
6541
6648
|
});
|
|
6542
|
-
|
|
6649
|
+
let params = new $OpenApi.Params({
|
|
6650
|
+
action: "CancelWorkflow",
|
|
6651
|
+
version: "2015-12-15",
|
|
6652
|
+
protocol: "HTTPS",
|
|
6653
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
6654
|
+
method: "PUT",
|
|
6655
|
+
authType: "AK",
|
|
6656
|
+
style: "ROA",
|
|
6657
|
+
reqBodyType: "json",
|
|
6658
|
+
bodyType: "none",
|
|
6659
|
+
});
|
|
6660
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CancelWorkflowResponse({}));
|
|
6543
6661
|
}
|
|
6544
6662
|
async createAutoscalingConfig(ClusterId, request) {
|
|
6545
6663
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6569,7 +6687,18 @@ class Client extends openapi_client_1.default {
|
|
|
6569
6687
|
headers: headers,
|
|
6570
6688
|
body: openapi_util_1.default.parseToMap(body),
|
|
6571
6689
|
});
|
|
6572
|
-
|
|
6690
|
+
let params = new $OpenApi.Params({
|
|
6691
|
+
action: "CreateAutoscalingConfig",
|
|
6692
|
+
version: "2015-12-15",
|
|
6693
|
+
protocol: "HTTPS",
|
|
6694
|
+
pathname: `/cluster/${ClusterId}/autoscale/config/`,
|
|
6695
|
+
method: "POST",
|
|
6696
|
+
authType: "AK",
|
|
6697
|
+
style: "ROA",
|
|
6698
|
+
reqBodyType: "json",
|
|
6699
|
+
bodyType: "none",
|
|
6700
|
+
});
|
|
6701
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateAutoscalingConfigResponse({}));
|
|
6573
6702
|
}
|
|
6574
6703
|
async createCluster(request) {
|
|
6575
6704
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6624,6 +6753,9 @@ class Client extends openapi_client_1.default {
|
|
|
6624
6753
|
if (!tea_util_1.default.isUnset(request.disableRollback)) {
|
|
6625
6754
|
body["disable_rollback"] = request.disableRollback;
|
|
6626
6755
|
}
|
|
6756
|
+
if (!tea_util_1.default.isUnset(request.enableRrsa)) {
|
|
6757
|
+
body["enable_rrsa"] = request.enableRrsa;
|
|
6758
|
+
}
|
|
6627
6759
|
if (!tea_util_1.default.isUnset(request.encryptionProviderKey)) {
|
|
6628
6760
|
body["encryption_provider_key"] = request.encryptionProviderKey;
|
|
6629
6761
|
}
|
|
@@ -6829,7 +6961,18 @@ class Client extends openapi_client_1.default {
|
|
|
6829
6961
|
headers: headers,
|
|
6830
6962
|
body: openapi_util_1.default.parseToMap(body),
|
|
6831
6963
|
});
|
|
6832
|
-
|
|
6964
|
+
let params = new $OpenApi.Params({
|
|
6965
|
+
action: "CreateCluster",
|
|
6966
|
+
version: "2015-12-15",
|
|
6967
|
+
protocol: "HTTPS",
|
|
6968
|
+
pathname: `/clusters`,
|
|
6969
|
+
method: "POST",
|
|
6970
|
+
authType: "AK",
|
|
6971
|
+
style: "ROA",
|
|
6972
|
+
reqBodyType: "json",
|
|
6973
|
+
bodyType: "json",
|
|
6974
|
+
});
|
|
6975
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterResponse({}));
|
|
6833
6976
|
}
|
|
6834
6977
|
async createClusterNodePool(ClusterId, request) {
|
|
6835
6978
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6874,7 +7017,18 @@ class Client extends openapi_client_1.default {
|
|
|
6874
7017
|
headers: headers,
|
|
6875
7018
|
body: openapi_util_1.default.parseToMap(body),
|
|
6876
7019
|
});
|
|
6877
|
-
|
|
7020
|
+
let params = new $OpenApi.Params({
|
|
7021
|
+
action: "CreateClusterNodePool",
|
|
7022
|
+
version: "2015-12-15",
|
|
7023
|
+
protocol: "HTTPS",
|
|
7024
|
+
pathname: `/clusters/${ClusterId}/nodepools`,
|
|
7025
|
+
method: "POST",
|
|
7026
|
+
authType: "AK",
|
|
7027
|
+
style: "ROA",
|
|
7028
|
+
reqBodyType: "json",
|
|
7029
|
+
bodyType: "json",
|
|
7030
|
+
});
|
|
7031
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterNodePoolResponse({}));
|
|
6878
7032
|
}
|
|
6879
7033
|
async createEdgeMachine(request) {
|
|
6880
7034
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6897,7 +7051,18 @@ class Client extends openapi_client_1.default {
|
|
|
6897
7051
|
headers: headers,
|
|
6898
7052
|
body: openapi_util_1.default.parseToMap(body),
|
|
6899
7053
|
});
|
|
6900
|
-
|
|
7054
|
+
let params = new $OpenApi.Params({
|
|
7055
|
+
action: "CreateEdgeMachine",
|
|
7056
|
+
version: "2015-12-15",
|
|
7057
|
+
protocol: "HTTPS",
|
|
7058
|
+
pathname: `/edge_machines`,
|
|
7059
|
+
method: "POST",
|
|
7060
|
+
authType: "AK",
|
|
7061
|
+
style: "ROA",
|
|
7062
|
+
reqBodyType: "json",
|
|
7063
|
+
bodyType: "json",
|
|
7064
|
+
});
|
|
7065
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateEdgeMachineResponse({}));
|
|
6901
7066
|
}
|
|
6902
7067
|
async createKubernetesTrigger(request) {
|
|
6903
7068
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6923,7 +7088,18 @@ class Client extends openapi_client_1.default {
|
|
|
6923
7088
|
headers: headers,
|
|
6924
7089
|
body: openapi_util_1.default.parseToMap(body),
|
|
6925
7090
|
});
|
|
6926
|
-
|
|
7091
|
+
let params = new $OpenApi.Params({
|
|
7092
|
+
action: "CreateKubernetesTrigger",
|
|
7093
|
+
version: "2015-12-15",
|
|
7094
|
+
protocol: "HTTPS",
|
|
7095
|
+
pathname: `/triggers`,
|
|
7096
|
+
method: "POST",
|
|
7097
|
+
authType: "AK",
|
|
7098
|
+
style: "ROA",
|
|
7099
|
+
reqBodyType: "json",
|
|
7100
|
+
bodyType: "json",
|
|
7101
|
+
});
|
|
7102
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateKubernetesTriggerResponse({}));
|
|
6927
7103
|
}
|
|
6928
7104
|
async createTemplate(request) {
|
|
6929
7105
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6952,7 +7128,18 @@ class Client extends openapi_client_1.default {
|
|
|
6952
7128
|
headers: headers,
|
|
6953
7129
|
body: openapi_util_1.default.parseToMap(body),
|
|
6954
7130
|
});
|
|
6955
|
-
|
|
7131
|
+
let params = new $OpenApi.Params({
|
|
7132
|
+
action: "CreateTemplate",
|
|
7133
|
+
version: "2015-12-15",
|
|
7134
|
+
protocol: "HTTPS",
|
|
7135
|
+
pathname: `/templates`,
|
|
7136
|
+
method: "POST",
|
|
7137
|
+
authType: "AK",
|
|
7138
|
+
style: "ROA",
|
|
7139
|
+
reqBodyType: "json",
|
|
7140
|
+
bodyType: "json",
|
|
7141
|
+
});
|
|
7142
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateTemplateResponse({}));
|
|
6956
7143
|
}
|
|
6957
7144
|
async createTrigger(clusterId, request) {
|
|
6958
7145
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6979,7 +7166,18 @@ class Client extends openapi_client_1.default {
|
|
|
6979
7166
|
headers: headers,
|
|
6980
7167
|
body: openapi_util_1.default.parseToMap(body),
|
|
6981
7168
|
});
|
|
6982
|
-
|
|
7169
|
+
let params = new $OpenApi.Params({
|
|
7170
|
+
action: "CreateTrigger",
|
|
7171
|
+
version: "2015-12-15",
|
|
7172
|
+
protocol: "HTTPS",
|
|
7173
|
+
pathname: `/clusters/${clusterId}/triggers`,
|
|
7174
|
+
method: "POST",
|
|
7175
|
+
authType: "AK",
|
|
7176
|
+
style: "ROA",
|
|
7177
|
+
reqBodyType: "json",
|
|
7178
|
+
bodyType: "json",
|
|
7179
|
+
});
|
|
7180
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
6983
7181
|
}
|
|
6984
7182
|
async deleteCluster(ClusterId, request) {
|
|
6985
7183
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7008,7 +7206,18 @@ class Client extends openapi_client_1.default {
|
|
|
7008
7206
|
headers: headers,
|
|
7009
7207
|
query: openapi_util_1.default.query(query),
|
|
7010
7208
|
});
|
|
7011
|
-
|
|
7209
|
+
let params = new $OpenApi.Params({
|
|
7210
|
+
action: "DeleteCluster",
|
|
7211
|
+
version: "2015-12-15",
|
|
7212
|
+
protocol: "HTTPS",
|
|
7213
|
+
pathname: `/clusters/${ClusterId}`,
|
|
7214
|
+
method: "DELETE",
|
|
7215
|
+
authType: "AK",
|
|
7216
|
+
style: "ROA",
|
|
7217
|
+
reqBodyType: "json",
|
|
7218
|
+
bodyType: "none",
|
|
7219
|
+
});
|
|
7220
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
|
|
7012
7221
|
}
|
|
7013
7222
|
async deleteClusterNodepool(ClusterId, NodepoolId) {
|
|
7014
7223
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7021,7 +7230,18 @@ class Client extends openapi_client_1.default {
|
|
|
7021
7230
|
let req = new $OpenApi.OpenApiRequest({
|
|
7022
7231
|
headers: headers,
|
|
7023
7232
|
});
|
|
7024
|
-
|
|
7233
|
+
let params = new $OpenApi.Params({
|
|
7234
|
+
action: "DeleteClusterNodepool",
|
|
7235
|
+
version: "2015-12-15",
|
|
7236
|
+
protocol: "HTTPS",
|
|
7237
|
+
pathname: `/clusters/${ClusterId}/nodepools/{NodepoolId}`,
|
|
7238
|
+
method: "DELETE",
|
|
7239
|
+
authType: "AK",
|
|
7240
|
+
style: "ROA",
|
|
7241
|
+
reqBodyType: "json",
|
|
7242
|
+
bodyType: "json",
|
|
7243
|
+
});
|
|
7244
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterNodepoolResponse({}));
|
|
7025
7245
|
}
|
|
7026
7246
|
async deleteClusterNodes(ClusterId, request) {
|
|
7027
7247
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7045,7 +7265,18 @@ class Client extends openapi_client_1.default {
|
|
|
7045
7265
|
headers: headers,
|
|
7046
7266
|
body: openapi_util_1.default.parseToMap(body),
|
|
7047
7267
|
});
|
|
7048
|
-
|
|
7268
|
+
let params = new $OpenApi.Params({
|
|
7269
|
+
action: "DeleteClusterNodes",
|
|
7270
|
+
version: "2015-12-15",
|
|
7271
|
+
protocol: "HTTPS",
|
|
7272
|
+
pathname: `/clusters/${ClusterId}/nodes`,
|
|
7273
|
+
method: "POST",
|
|
7274
|
+
authType: "AK",
|
|
7275
|
+
style: "ROA",
|
|
7276
|
+
reqBodyType: "json",
|
|
7277
|
+
bodyType: "json",
|
|
7278
|
+
});
|
|
7279
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterNodesResponse({}));
|
|
7049
7280
|
}
|
|
7050
7281
|
async deleteEdgeMachine(edgeMachineid, request) {
|
|
7051
7282
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7063,7 +7294,18 @@ class Client extends openapi_client_1.default {
|
|
|
7063
7294
|
headers: headers,
|
|
7064
7295
|
query: openapi_util_1.default.query(query),
|
|
7065
7296
|
});
|
|
7066
|
-
|
|
7297
|
+
let params = new $OpenApi.Params({
|
|
7298
|
+
action: "DeleteEdgeMachine",
|
|
7299
|
+
version: "2015-12-15",
|
|
7300
|
+
protocol: "HTTPS",
|
|
7301
|
+
pathname: `/edge_machines/[edge_machineid]`,
|
|
7302
|
+
method: "DELETE",
|
|
7303
|
+
authType: "AK",
|
|
7304
|
+
style: "ROA",
|
|
7305
|
+
reqBodyType: "json",
|
|
7306
|
+
bodyType: "none",
|
|
7307
|
+
});
|
|
7308
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteEdgeMachineResponse({}));
|
|
7067
7309
|
}
|
|
7068
7310
|
async deleteKubernetesTrigger(Id) {
|
|
7069
7311
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7075,21 +7317,48 @@ class Client extends openapi_client_1.default {
|
|
|
7075
7317
|
let req = new $OpenApi.OpenApiRequest({
|
|
7076
7318
|
headers: headers,
|
|
7077
7319
|
});
|
|
7078
|
-
|
|
7320
|
+
let params = new $OpenApi.Params({
|
|
7321
|
+
action: "DeleteKubernetesTrigger",
|
|
7322
|
+
version: "2015-12-15",
|
|
7323
|
+
protocol: "HTTPS",
|
|
7324
|
+
pathname: `/triggers/revoke/${Id}`,
|
|
7325
|
+
method: "DELETE",
|
|
7326
|
+
authType: "AK",
|
|
7327
|
+
style: "ROA",
|
|
7328
|
+
reqBodyType: "json",
|
|
7329
|
+
bodyType: "none",
|
|
7330
|
+
});
|
|
7331
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteKubernetesTriggerResponse({}));
|
|
7079
7332
|
}
|
|
7080
|
-
async deletePolicyInstance(clusterId, policyName,
|
|
7333
|
+
async deletePolicyInstance(clusterId, policyName, request) {
|
|
7081
7334
|
let runtime = new $Util.RuntimeOptions({});
|
|
7082
7335
|
let headers = {};
|
|
7083
|
-
return await this.deletePolicyInstanceWithOptions(clusterId, policyName,
|
|
7336
|
+
return await this.deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
7084
7337
|
}
|
|
7085
|
-
async deletePolicyInstanceWithOptions(clusterId, policyName,
|
|
7338
|
+
async deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
|
|
7339
|
+
tea_util_1.default.validateModel(request);
|
|
7086
7340
|
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
7087
7341
|
policyName = openapi_util_1.default.getEncodeParam(policyName);
|
|
7088
|
-
|
|
7342
|
+
let query = {};
|
|
7343
|
+
if (!tea_util_1.default.isUnset(request.instanceName)) {
|
|
7344
|
+
query["instance_name"] = request.instanceName;
|
|
7345
|
+
}
|
|
7089
7346
|
let req = new $OpenApi.OpenApiRequest({
|
|
7090
7347
|
headers: headers,
|
|
7348
|
+
query: openapi_util_1.default.query(query),
|
|
7349
|
+
});
|
|
7350
|
+
let params = new $OpenApi.Params({
|
|
7351
|
+
action: "DeletePolicyInstance",
|
|
7352
|
+
version: "2015-12-15",
|
|
7353
|
+
protocol: "HTTPS",
|
|
7354
|
+
pathname: `/clusters/${clusterId}/policies/{policyName}`,
|
|
7355
|
+
method: "DELETE",
|
|
7356
|
+
authType: "AK",
|
|
7357
|
+
style: "ROA",
|
|
7358
|
+
reqBodyType: "json",
|
|
7359
|
+
bodyType: "json",
|
|
7091
7360
|
});
|
|
7092
|
-
return $tea.cast(await this.
|
|
7361
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeletePolicyInstanceResponse({}));
|
|
7093
7362
|
}
|
|
7094
7363
|
async deleteTemplate(TemplateId) {
|
|
7095
7364
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7101,7 +7370,18 @@ class Client extends openapi_client_1.default {
|
|
|
7101
7370
|
let req = new $OpenApi.OpenApiRequest({
|
|
7102
7371
|
headers: headers,
|
|
7103
7372
|
});
|
|
7104
|
-
|
|
7373
|
+
let params = new $OpenApi.Params({
|
|
7374
|
+
action: "DeleteTemplate",
|
|
7375
|
+
version: "2015-12-15",
|
|
7376
|
+
protocol: "HTTPS",
|
|
7377
|
+
pathname: `/templates/${TemplateId}`,
|
|
7378
|
+
method: "DELETE",
|
|
7379
|
+
authType: "AK",
|
|
7380
|
+
style: "ROA",
|
|
7381
|
+
reqBodyType: "json",
|
|
7382
|
+
bodyType: "none",
|
|
7383
|
+
});
|
|
7384
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteTemplateResponse({}));
|
|
7105
7385
|
}
|
|
7106
7386
|
async deleteTrigger(clusterId, Id) {
|
|
7107
7387
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7114,7 +7394,18 @@ class Client extends openapi_client_1.default {
|
|
|
7114
7394
|
let req = new $OpenApi.OpenApiRequest({
|
|
7115
7395
|
headers: headers,
|
|
7116
7396
|
});
|
|
7117
|
-
|
|
7397
|
+
let params = new $OpenApi.Params({
|
|
7398
|
+
action: "DeleteTrigger",
|
|
7399
|
+
version: "2015-12-15",
|
|
7400
|
+
protocol: "HTTPS",
|
|
7401
|
+
pathname: `/clusters/[cluster_id]/triggers/[Id]`,
|
|
7402
|
+
method: "DELETE",
|
|
7403
|
+
authType: "AK",
|
|
7404
|
+
style: "ROA",
|
|
7405
|
+
reqBodyType: "json",
|
|
7406
|
+
bodyType: "none",
|
|
7407
|
+
});
|
|
7408
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteTriggerResponse({}));
|
|
7118
7409
|
}
|
|
7119
7410
|
async deployPolicyInstance(clusterId, policyName, request) {
|
|
7120
7411
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7139,7 +7430,18 @@ class Client extends openapi_client_1.default {
|
|
|
7139
7430
|
headers: headers,
|
|
7140
7431
|
body: openapi_util_1.default.parseToMap(body),
|
|
7141
7432
|
});
|
|
7142
|
-
|
|
7433
|
+
let params = new $OpenApi.Params({
|
|
7434
|
+
action: "DeployPolicyInstance",
|
|
7435
|
+
version: "2015-12-15",
|
|
7436
|
+
protocol: "HTTPS",
|
|
7437
|
+
pathname: `/clusters/${clusterId}/policies/{policyName}`,
|
|
7438
|
+
method: "POST",
|
|
7439
|
+
authType: "AK",
|
|
7440
|
+
style: "ROA",
|
|
7441
|
+
reqBodyType: "json",
|
|
7442
|
+
bodyType: "json",
|
|
7443
|
+
});
|
|
7444
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeployPolicyInstanceResponse({}));
|
|
7143
7445
|
}
|
|
7144
7446
|
async descirbeWorkflow(workflowName) {
|
|
7145
7447
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7151,7 +7453,18 @@ class Client extends openapi_client_1.default {
|
|
|
7151
7453
|
let req = new $OpenApi.OpenApiRequest({
|
|
7152
7454
|
headers: headers,
|
|
7153
7455
|
});
|
|
7154
|
-
|
|
7456
|
+
let params = new $OpenApi.Params({
|
|
7457
|
+
action: "DescirbeWorkflow",
|
|
7458
|
+
version: "2015-12-15",
|
|
7459
|
+
protocol: "HTTPS",
|
|
7460
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
7461
|
+
method: "GET",
|
|
7462
|
+
authType: "AK",
|
|
7463
|
+
style: "ROA",
|
|
7464
|
+
reqBodyType: "json",
|
|
7465
|
+
bodyType: "json",
|
|
7466
|
+
});
|
|
7467
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescirbeWorkflowResponse({}));
|
|
7155
7468
|
}
|
|
7156
7469
|
async describeAddons(request) {
|
|
7157
7470
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7171,7 +7484,18 @@ class Client extends openapi_client_1.default {
|
|
|
7171
7484
|
headers: headers,
|
|
7172
7485
|
query: openapi_util_1.default.query(query),
|
|
7173
7486
|
});
|
|
7174
|
-
|
|
7487
|
+
let params = new $OpenApi.Params({
|
|
7488
|
+
action: "DescribeAddons",
|
|
7489
|
+
version: "2015-12-15",
|
|
7490
|
+
protocol: "HTTPS",
|
|
7491
|
+
pathname: `/clusters/components/metadata`,
|
|
7492
|
+
method: "GET",
|
|
7493
|
+
authType: "AK",
|
|
7494
|
+
style: "ROA",
|
|
7495
|
+
reqBodyType: "json",
|
|
7496
|
+
bodyType: "json",
|
|
7497
|
+
});
|
|
7498
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeAddonsResponse({}));
|
|
7175
7499
|
}
|
|
7176
7500
|
async describeClusterAddonMetadata(clusterId, componentId, version) {
|
|
7177
7501
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7185,7 +7509,18 @@ class Client extends openapi_client_1.default {
|
|
|
7185
7509
|
let req = new $OpenApi.OpenApiRequest({
|
|
7186
7510
|
headers: headers,
|
|
7187
7511
|
});
|
|
7188
|
-
|
|
7512
|
+
let params = new $OpenApi.Params({
|
|
7513
|
+
action: "DescribeClusterAddonMetadata",
|
|
7514
|
+
version: "2015-12-15",
|
|
7515
|
+
protocol: "HTTPS",
|
|
7516
|
+
pathname: `/clusters/${clusterId}/components/{componentId}/metadata`,
|
|
7517
|
+
method: "GET",
|
|
7518
|
+
authType: "AK",
|
|
7519
|
+
style: "ROA",
|
|
7520
|
+
reqBodyType: "json",
|
|
7521
|
+
bodyType: "json",
|
|
7522
|
+
});
|
|
7523
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonMetadataResponse({}));
|
|
7189
7524
|
}
|
|
7190
7525
|
async describeClusterAddonUpgradeStatus(ClusterId, ComponentId) {
|
|
7191
7526
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7198,7 +7533,18 @@ class Client extends openapi_client_1.default {
|
|
|
7198
7533
|
let req = new $OpenApi.OpenApiRequest({
|
|
7199
7534
|
headers: headers,
|
|
7200
7535
|
});
|
|
7201
|
-
|
|
7536
|
+
let params = new $OpenApi.Params({
|
|
7537
|
+
action: "DescribeClusterAddonUpgradeStatus",
|
|
7538
|
+
version: "2015-12-15",
|
|
7539
|
+
protocol: "HTTPS",
|
|
7540
|
+
pathname: `/clusters/${ClusterId}/components/{ComponentId}/upgradestatus`,
|
|
7541
|
+
method: "GET",
|
|
7542
|
+
authType: "AK",
|
|
7543
|
+
style: "ROA",
|
|
7544
|
+
reqBodyType: "json",
|
|
7545
|
+
bodyType: "json",
|
|
7546
|
+
});
|
|
7547
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonUpgradeStatusResponse({}));
|
|
7202
7548
|
}
|
|
7203
7549
|
async describeClusterAddonsUpgradeStatus(ClusterId, request) {
|
|
7204
7550
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7221,7 +7567,18 @@ class Client extends openapi_client_1.default {
|
|
|
7221
7567
|
headers: headers,
|
|
7222
7568
|
query: openapi_util_1.default.query(query),
|
|
7223
7569
|
});
|
|
7224
|
-
|
|
7570
|
+
let params = new $OpenApi.Params({
|
|
7571
|
+
action: "DescribeClusterAddonsUpgradeStatus",
|
|
7572
|
+
version: "2015-12-15",
|
|
7573
|
+
protocol: "HTTPS",
|
|
7574
|
+
pathname: `/clusters/${ClusterId}/components/upgradestatus`,
|
|
7575
|
+
method: "GET",
|
|
7576
|
+
authType: "AK",
|
|
7577
|
+
style: "ROA",
|
|
7578
|
+
reqBodyType: "json",
|
|
7579
|
+
bodyType: "json",
|
|
7580
|
+
});
|
|
7581
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonsUpgradeStatusResponse({}));
|
|
7225
7582
|
}
|
|
7226
7583
|
async describeClusterAddonsVersion(ClusterId) {
|
|
7227
7584
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7233,7 +7590,18 @@ class Client extends openapi_client_1.default {
|
|
|
7233
7590
|
let req = new $OpenApi.OpenApiRequest({
|
|
7234
7591
|
headers: headers,
|
|
7235
7592
|
});
|
|
7236
|
-
|
|
7593
|
+
let params = new $OpenApi.Params({
|
|
7594
|
+
action: "DescribeClusterAddonsVersion",
|
|
7595
|
+
version: "2015-12-15",
|
|
7596
|
+
protocol: "HTTPS",
|
|
7597
|
+
pathname: `/clusters/${ClusterId}/components/version`,
|
|
7598
|
+
method: "GET",
|
|
7599
|
+
authType: "AK",
|
|
7600
|
+
style: "ROA",
|
|
7601
|
+
reqBodyType: "json",
|
|
7602
|
+
bodyType: "json",
|
|
7603
|
+
});
|
|
7604
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonsVersionResponse({}));
|
|
7237
7605
|
}
|
|
7238
7606
|
async describeClusterAttachScripts(ClusterId, request) {
|
|
7239
7607
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7266,7 +7634,18 @@ class Client extends openapi_client_1.default {
|
|
|
7266
7634
|
headers: headers,
|
|
7267
7635
|
body: openapi_util_1.default.parseToMap(body),
|
|
7268
7636
|
});
|
|
7269
|
-
|
|
7637
|
+
let params = new $OpenApi.Params({
|
|
7638
|
+
action: "DescribeClusterAttachScripts",
|
|
7639
|
+
version: "2015-12-15",
|
|
7640
|
+
protocol: "HTTPS",
|
|
7641
|
+
pathname: `/clusters/${ClusterId}/attachscript`,
|
|
7642
|
+
method: "POST",
|
|
7643
|
+
authType: "AK",
|
|
7644
|
+
style: "ROA",
|
|
7645
|
+
reqBodyType: "json",
|
|
7646
|
+
bodyType: "string",
|
|
7647
|
+
});
|
|
7648
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAttachScriptsResponse({}));
|
|
7270
7649
|
}
|
|
7271
7650
|
async describeClusterDetail(ClusterId) {
|
|
7272
7651
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7278,7 +7657,18 @@ class Client extends openapi_client_1.default {
|
|
|
7278
7657
|
let req = new $OpenApi.OpenApiRequest({
|
|
7279
7658
|
headers: headers,
|
|
7280
7659
|
});
|
|
7281
|
-
|
|
7660
|
+
let params = new $OpenApi.Params({
|
|
7661
|
+
action: "DescribeClusterDetail",
|
|
7662
|
+
version: "2015-12-15",
|
|
7663
|
+
protocol: "HTTPS",
|
|
7664
|
+
pathname: `/clusters/${ClusterId}`,
|
|
7665
|
+
method: "GET",
|
|
7666
|
+
authType: "AK",
|
|
7667
|
+
style: "ROA",
|
|
7668
|
+
reqBodyType: "json",
|
|
7669
|
+
bodyType: "json",
|
|
7670
|
+
});
|
|
7671
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
|
|
7282
7672
|
}
|
|
7283
7673
|
async describeClusterLogs(ClusterId) {
|
|
7284
7674
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7290,7 +7680,18 @@ class Client extends openapi_client_1.default {
|
|
|
7290
7680
|
let req = new $OpenApi.OpenApiRequest({
|
|
7291
7681
|
headers: headers,
|
|
7292
7682
|
});
|
|
7293
|
-
|
|
7683
|
+
let params = new $OpenApi.Params({
|
|
7684
|
+
action: "DescribeClusterLogs",
|
|
7685
|
+
version: "2015-12-15",
|
|
7686
|
+
protocol: "HTTPS",
|
|
7687
|
+
pathname: `/clusters/${ClusterId}/logs`,
|
|
7688
|
+
method: "GET",
|
|
7689
|
+
authType: "AK",
|
|
7690
|
+
style: "ROA",
|
|
7691
|
+
reqBodyType: "json",
|
|
7692
|
+
bodyType: "array",
|
|
7693
|
+
});
|
|
7694
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
|
|
7294
7695
|
}
|
|
7295
7696
|
async describeClusterNamespaces(ClusterId) {
|
|
7296
7697
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7302,7 +7703,18 @@ class Client extends openapi_client_1.default {
|
|
|
7302
7703
|
let req = new $OpenApi.OpenApiRequest({
|
|
7303
7704
|
headers: headers,
|
|
7304
7705
|
});
|
|
7305
|
-
|
|
7706
|
+
let params = new $OpenApi.Params({
|
|
7707
|
+
action: "DescribeClusterNamespaces",
|
|
7708
|
+
version: "2015-12-15",
|
|
7709
|
+
protocol: "HTTPS",
|
|
7710
|
+
pathname: `/k8s/${ClusterId}/namespaces`,
|
|
7711
|
+
method: "GET",
|
|
7712
|
+
authType: "AK",
|
|
7713
|
+
style: "ROA",
|
|
7714
|
+
reqBodyType: "json",
|
|
7715
|
+
bodyType: "array",
|
|
7716
|
+
});
|
|
7717
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNamespacesResponse({}));
|
|
7306
7718
|
}
|
|
7307
7719
|
async describeClusterNodePoolDetail(ClusterId, NodepoolId) {
|
|
7308
7720
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7315,7 +7727,18 @@ class Client extends openapi_client_1.default {
|
|
|
7315
7727
|
let req = new $OpenApi.OpenApiRequest({
|
|
7316
7728
|
headers: headers,
|
|
7317
7729
|
});
|
|
7318
|
-
|
|
7730
|
+
let params = new $OpenApi.Params({
|
|
7731
|
+
action: "DescribeClusterNodePoolDetail",
|
|
7732
|
+
version: "2015-12-15",
|
|
7733
|
+
protocol: "HTTPS",
|
|
7734
|
+
pathname: `/clusters/${ClusterId}/nodepools/{NodepoolId}`,
|
|
7735
|
+
method: "GET",
|
|
7736
|
+
authType: "AK",
|
|
7737
|
+
style: "ROA",
|
|
7738
|
+
reqBodyType: "json",
|
|
7739
|
+
bodyType: "json",
|
|
7740
|
+
});
|
|
7741
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodePoolDetailResponse({}));
|
|
7319
7742
|
}
|
|
7320
7743
|
async describeClusterNodePools(ClusterId) {
|
|
7321
7744
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7327,7 +7750,18 @@ class Client extends openapi_client_1.default {
|
|
|
7327
7750
|
let req = new $OpenApi.OpenApiRequest({
|
|
7328
7751
|
headers: headers,
|
|
7329
7752
|
});
|
|
7330
|
-
|
|
7753
|
+
let params = new $OpenApi.Params({
|
|
7754
|
+
action: "DescribeClusterNodePools",
|
|
7755
|
+
version: "2015-12-15",
|
|
7756
|
+
protocol: "HTTPS",
|
|
7757
|
+
pathname: `/clusters/${ClusterId}/nodepools`,
|
|
7758
|
+
method: "GET",
|
|
7759
|
+
authType: "AK",
|
|
7760
|
+
style: "ROA",
|
|
7761
|
+
reqBodyType: "json",
|
|
7762
|
+
bodyType: "json",
|
|
7763
|
+
});
|
|
7764
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodePoolsResponse({}));
|
|
7331
7765
|
}
|
|
7332
7766
|
async describeClusterNodes(ClusterId, request) {
|
|
7333
7767
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7357,7 +7791,18 @@ class Client extends openapi_client_1.default {
|
|
|
7357
7791
|
headers: headers,
|
|
7358
7792
|
query: openapi_util_1.default.query(query),
|
|
7359
7793
|
});
|
|
7360
|
-
|
|
7794
|
+
let params = new $OpenApi.Params({
|
|
7795
|
+
action: "DescribeClusterNodes",
|
|
7796
|
+
version: "2015-12-15",
|
|
7797
|
+
protocol: "HTTPS",
|
|
7798
|
+
pathname: `/clusters/${ClusterId}/nodes`,
|
|
7799
|
+
method: "GET",
|
|
7800
|
+
authType: "AK",
|
|
7801
|
+
style: "ROA",
|
|
7802
|
+
reqBodyType: "json",
|
|
7803
|
+
bodyType: "json",
|
|
7804
|
+
});
|
|
7805
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodesResponse({}));
|
|
7361
7806
|
}
|
|
7362
7807
|
async describeClusterResources(ClusterId) {
|
|
7363
7808
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7369,7 +7814,18 @@ class Client extends openapi_client_1.default {
|
|
|
7369
7814
|
let req = new $OpenApi.OpenApiRequest({
|
|
7370
7815
|
headers: headers,
|
|
7371
7816
|
});
|
|
7372
|
-
|
|
7817
|
+
let params = new $OpenApi.Params({
|
|
7818
|
+
action: "DescribeClusterResources",
|
|
7819
|
+
version: "2015-12-15",
|
|
7820
|
+
protocol: "HTTPS",
|
|
7821
|
+
pathname: `/clusters/${ClusterId}/resources`,
|
|
7822
|
+
method: "GET",
|
|
7823
|
+
authType: "AK",
|
|
7824
|
+
style: "ROA",
|
|
7825
|
+
reqBodyType: "json",
|
|
7826
|
+
bodyType: "array",
|
|
7827
|
+
});
|
|
7828
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
|
|
7373
7829
|
}
|
|
7374
7830
|
async describeClusterUserKubeconfig(ClusterId, request) {
|
|
7375
7831
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7390,7 +7846,18 @@ class Client extends openapi_client_1.default {
|
|
|
7390
7846
|
headers: headers,
|
|
7391
7847
|
query: openapi_util_1.default.query(query),
|
|
7392
7848
|
});
|
|
7393
|
-
|
|
7849
|
+
let params = new $OpenApi.Params({
|
|
7850
|
+
action: "DescribeClusterUserKubeconfig",
|
|
7851
|
+
version: "2015-12-15",
|
|
7852
|
+
protocol: "HTTPS",
|
|
7853
|
+
pathname: `/k8s/${ClusterId}/user_config`,
|
|
7854
|
+
method: "GET",
|
|
7855
|
+
authType: "AK",
|
|
7856
|
+
style: "ROA",
|
|
7857
|
+
reqBodyType: "json",
|
|
7858
|
+
bodyType: "json",
|
|
7859
|
+
});
|
|
7860
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterUserKubeconfigResponse({}));
|
|
7394
7861
|
}
|
|
7395
7862
|
async describeClusterV2UserKubeconfig(ClusterId, request) {
|
|
7396
7863
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7408,7 +7875,18 @@ class Client extends openapi_client_1.default {
|
|
|
7408
7875
|
headers: headers,
|
|
7409
7876
|
query: openapi_util_1.default.query(query),
|
|
7410
7877
|
});
|
|
7411
|
-
|
|
7878
|
+
let params = new $OpenApi.Params({
|
|
7879
|
+
action: "DescribeClusterV2UserKubeconfig",
|
|
7880
|
+
version: "2015-12-15",
|
|
7881
|
+
protocol: "HTTPS",
|
|
7882
|
+
pathname: `/api/v2/k8s/${ClusterId}/user_config`,
|
|
7883
|
+
method: "GET",
|
|
7884
|
+
authType: "AK",
|
|
7885
|
+
style: "ROA",
|
|
7886
|
+
reqBodyType: "json",
|
|
7887
|
+
bodyType: "json",
|
|
7888
|
+
});
|
|
7889
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterV2UserKubeconfigResponse({}));
|
|
7412
7890
|
}
|
|
7413
7891
|
async describeClusters(request) {
|
|
7414
7892
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7428,7 +7906,18 @@ class Client extends openapi_client_1.default {
|
|
|
7428
7906
|
headers: headers,
|
|
7429
7907
|
query: openapi_util_1.default.query(query),
|
|
7430
7908
|
});
|
|
7431
|
-
|
|
7909
|
+
let params = new $OpenApi.Params({
|
|
7910
|
+
action: "DescribeClusters",
|
|
7911
|
+
version: "2015-12-15",
|
|
7912
|
+
protocol: "HTTPS",
|
|
7913
|
+
pathname: `/clusters`,
|
|
7914
|
+
method: "GET",
|
|
7915
|
+
authType: "AK",
|
|
7916
|
+
style: "ROA",
|
|
7917
|
+
reqBodyType: "json",
|
|
7918
|
+
bodyType: "array",
|
|
7919
|
+
});
|
|
7920
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClustersResponse({}));
|
|
7432
7921
|
}
|
|
7433
7922
|
async describeClustersV1(request) {
|
|
7434
7923
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7460,7 +7949,18 @@ class Client extends openapi_client_1.default {
|
|
|
7460
7949
|
headers: headers,
|
|
7461
7950
|
query: openapi_util_1.default.query(query),
|
|
7462
7951
|
});
|
|
7463
|
-
|
|
7952
|
+
let params = new $OpenApi.Params({
|
|
7953
|
+
action: "DescribeClustersV1",
|
|
7954
|
+
version: "2015-12-15",
|
|
7955
|
+
protocol: "HTTPS",
|
|
7956
|
+
pathname: `/api/v1/clusters`,
|
|
7957
|
+
method: "GET",
|
|
7958
|
+
authType: "AK",
|
|
7959
|
+
style: "ROA",
|
|
7960
|
+
reqBodyType: "json",
|
|
7961
|
+
bodyType: "json",
|
|
7962
|
+
});
|
|
7963
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClustersV1Response({}));
|
|
7464
7964
|
}
|
|
7465
7965
|
async describeEdgeMachineActiveProcess(edgeMachineid) {
|
|
7466
7966
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7472,7 +7972,18 @@ class Client extends openapi_client_1.default {
|
|
|
7472
7972
|
let req = new $OpenApi.OpenApiRequest({
|
|
7473
7973
|
headers: headers,
|
|
7474
7974
|
});
|
|
7475
|
-
|
|
7975
|
+
let params = new $OpenApi.Params({
|
|
7976
|
+
action: "DescribeEdgeMachineActiveProcess",
|
|
7977
|
+
version: "2015-12-15",
|
|
7978
|
+
protocol: "HTTPS",
|
|
7979
|
+
pathname: `/edge_machines/[edge_machineid]/activeprocess`,
|
|
7980
|
+
method: "GET",
|
|
7981
|
+
authType: "AK",
|
|
7982
|
+
style: "ROA",
|
|
7983
|
+
reqBodyType: "json",
|
|
7984
|
+
bodyType: "json",
|
|
7985
|
+
});
|
|
7986
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineActiveProcessResponse({}));
|
|
7476
7987
|
}
|
|
7477
7988
|
async describeEdgeMachineModels() {
|
|
7478
7989
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7483,7 +7994,18 @@ class Client extends openapi_client_1.default {
|
|
|
7483
7994
|
let req = new $OpenApi.OpenApiRequest({
|
|
7484
7995
|
headers: headers,
|
|
7485
7996
|
});
|
|
7486
|
-
|
|
7997
|
+
let params = new $OpenApi.Params({
|
|
7998
|
+
action: "DescribeEdgeMachineModels",
|
|
7999
|
+
version: "2015-12-15",
|
|
8000
|
+
protocol: "HTTPS",
|
|
8001
|
+
pathname: `/edge_machines/models`,
|
|
8002
|
+
method: "GET",
|
|
8003
|
+
authType: "AK",
|
|
8004
|
+
style: "ROA",
|
|
8005
|
+
reqBodyType: "json",
|
|
8006
|
+
bodyType: "json",
|
|
8007
|
+
});
|
|
8008
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineModelsResponse({}));
|
|
7487
8009
|
}
|
|
7488
8010
|
async describeEdgeMachineTunnelConfigDetail(edgeMachineid) {
|
|
7489
8011
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7495,7 +8017,18 @@ class Client extends openapi_client_1.default {
|
|
|
7495
8017
|
let req = new $OpenApi.OpenApiRequest({
|
|
7496
8018
|
headers: headers,
|
|
7497
8019
|
});
|
|
7498
|
-
|
|
8020
|
+
let params = new $OpenApi.Params({
|
|
8021
|
+
action: "DescribeEdgeMachineTunnelConfigDetail",
|
|
8022
|
+
version: "2015-12-15",
|
|
8023
|
+
protocol: "HTTPS",
|
|
8024
|
+
pathname: `/edge_machines/[edge_machineid]/tunnelconfig`,
|
|
8025
|
+
method: "POST",
|
|
8026
|
+
authType: "AK",
|
|
8027
|
+
style: "ROA",
|
|
8028
|
+
reqBodyType: "json",
|
|
8029
|
+
bodyType: "json",
|
|
8030
|
+
});
|
|
8031
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineTunnelConfigDetailResponse({}));
|
|
7499
8032
|
}
|
|
7500
8033
|
async describeEdgeMachines(request) {
|
|
7501
8034
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7527,7 +8060,18 @@ class Client extends openapi_client_1.default {
|
|
|
7527
8060
|
headers: headers,
|
|
7528
8061
|
query: openapi_util_1.default.query(query),
|
|
7529
8062
|
});
|
|
7530
|
-
|
|
8063
|
+
let params = new $OpenApi.Params({
|
|
8064
|
+
action: "DescribeEdgeMachines",
|
|
8065
|
+
version: "2015-12-15",
|
|
8066
|
+
protocol: "HTTPS",
|
|
8067
|
+
pathname: `/edge_machines`,
|
|
8068
|
+
method: "GET",
|
|
8069
|
+
authType: "AK",
|
|
8070
|
+
style: "ROA",
|
|
8071
|
+
reqBodyType: "json",
|
|
8072
|
+
bodyType: "json",
|
|
8073
|
+
});
|
|
8074
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachinesResponse({}));
|
|
7531
8075
|
}
|
|
7532
8076
|
async describeEvents(request) {
|
|
7533
8077
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7553,7 +8097,18 @@ class Client extends openapi_client_1.default {
|
|
|
7553
8097
|
headers: headers,
|
|
7554
8098
|
query: openapi_util_1.default.query(query),
|
|
7555
8099
|
});
|
|
7556
|
-
|
|
8100
|
+
let params = new $OpenApi.Params({
|
|
8101
|
+
action: "DescribeEvents",
|
|
8102
|
+
version: "2015-12-15",
|
|
8103
|
+
protocol: "HTTPS",
|
|
8104
|
+
pathname: `/events`,
|
|
8105
|
+
method: "GET",
|
|
8106
|
+
authType: "AK",
|
|
8107
|
+
style: "ROA",
|
|
8108
|
+
reqBodyType: "json",
|
|
8109
|
+
bodyType: "json",
|
|
8110
|
+
});
|
|
8111
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
|
|
7557
8112
|
}
|
|
7558
8113
|
async describeExternalAgent(ClusterId, request) {
|
|
7559
8114
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7571,7 +8126,18 @@ class Client extends openapi_client_1.default {
|
|
|
7571
8126
|
headers: headers,
|
|
7572
8127
|
query: openapi_util_1.default.query(query),
|
|
7573
8128
|
});
|
|
7574
|
-
|
|
8129
|
+
let params = new $OpenApi.Params({
|
|
8130
|
+
action: "DescribeExternalAgent",
|
|
8131
|
+
version: "2015-12-15",
|
|
8132
|
+
protocol: "HTTPS",
|
|
8133
|
+
pathname: `/k8s/${ClusterId}/external/agent/deployment`,
|
|
8134
|
+
method: "GET",
|
|
8135
|
+
authType: "AK",
|
|
8136
|
+
style: "ROA",
|
|
8137
|
+
reqBodyType: "json",
|
|
8138
|
+
bodyType: "json",
|
|
8139
|
+
});
|
|
8140
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeExternalAgentResponse({}));
|
|
7575
8141
|
}
|
|
7576
8142
|
async describeKubernetesVersionMetadata(request) {
|
|
7577
8143
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7597,7 +8163,18 @@ class Client extends openapi_client_1.default {
|
|
|
7597
8163
|
headers: headers,
|
|
7598
8164
|
query: openapi_util_1.default.query(query),
|
|
7599
8165
|
});
|
|
7600
|
-
|
|
8166
|
+
let params = new $OpenApi.Params({
|
|
8167
|
+
action: "DescribeKubernetesVersionMetadata",
|
|
8168
|
+
version: "2015-12-15",
|
|
8169
|
+
protocol: "HTTPS",
|
|
8170
|
+
pathname: `/api/v1/metadata/versions`,
|
|
8171
|
+
method: "GET",
|
|
8172
|
+
authType: "AK",
|
|
8173
|
+
style: "ROA",
|
|
8174
|
+
reqBodyType: "json",
|
|
8175
|
+
bodyType: "array",
|
|
8176
|
+
});
|
|
8177
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeKubernetesVersionMetadataResponse({}));
|
|
7601
8178
|
}
|
|
7602
8179
|
async describePolicies() {
|
|
7603
8180
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7608,7 +8185,18 @@ class Client extends openapi_client_1.default {
|
|
|
7608
8185
|
let req = new $OpenApi.OpenApiRequest({
|
|
7609
8186
|
headers: headers,
|
|
7610
8187
|
});
|
|
7611
|
-
|
|
8188
|
+
let params = new $OpenApi.Params({
|
|
8189
|
+
action: "DescribePolicies",
|
|
8190
|
+
version: "2015-12-15",
|
|
8191
|
+
protocol: "HTTPS",
|
|
8192
|
+
pathname: `/policies`,
|
|
8193
|
+
method: "GET",
|
|
8194
|
+
authType: "AK",
|
|
8195
|
+
style: "ROA",
|
|
8196
|
+
reqBodyType: "json",
|
|
8197
|
+
bodyType: "json",
|
|
8198
|
+
});
|
|
8199
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePoliciesResponse({}));
|
|
7612
8200
|
}
|
|
7613
8201
|
async describePolicyDetails(policyName) {
|
|
7614
8202
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7620,7 +8208,18 @@ class Client extends openapi_client_1.default {
|
|
|
7620
8208
|
let req = new $OpenApi.OpenApiRequest({
|
|
7621
8209
|
headers: headers,
|
|
7622
8210
|
});
|
|
7623
|
-
|
|
8211
|
+
let params = new $OpenApi.Params({
|
|
8212
|
+
action: "DescribePolicyDetails",
|
|
8213
|
+
version: "2015-12-15",
|
|
8214
|
+
protocol: "HTTPS",
|
|
8215
|
+
pathname: `/policies/${policyName}`,
|
|
8216
|
+
method: "GET",
|
|
8217
|
+
authType: "AK",
|
|
8218
|
+
style: "ROA",
|
|
8219
|
+
reqBodyType: "json",
|
|
8220
|
+
bodyType: "json",
|
|
8221
|
+
});
|
|
8222
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyDetailsResponse({}));
|
|
7624
8223
|
}
|
|
7625
8224
|
async describePolicyGovernanceInCluster(clusterId) {
|
|
7626
8225
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7632,7 +8231,18 @@ class Client extends openapi_client_1.default {
|
|
|
7632
8231
|
let req = new $OpenApi.OpenApiRequest({
|
|
7633
8232
|
headers: headers,
|
|
7634
8233
|
});
|
|
7635
|
-
|
|
8234
|
+
let params = new $OpenApi.Params({
|
|
8235
|
+
action: "DescribePolicyGovernanceInCluster",
|
|
8236
|
+
version: "2015-12-15",
|
|
8237
|
+
protocol: "HTTPS",
|
|
8238
|
+
pathname: `/clusters/${clusterId}/policygovernance`,
|
|
8239
|
+
method: "GET",
|
|
8240
|
+
authType: "AK",
|
|
8241
|
+
style: "ROA",
|
|
8242
|
+
reqBodyType: "json",
|
|
8243
|
+
bodyType: "json",
|
|
8244
|
+
});
|
|
8245
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyGovernanceInClusterResponse({}));
|
|
7636
8246
|
}
|
|
7637
8247
|
async describePolicyInstances(clusterId, request) {
|
|
7638
8248
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7653,7 +8263,18 @@ class Client extends openapi_client_1.default {
|
|
|
7653
8263
|
headers: headers,
|
|
7654
8264
|
query: openapi_util_1.default.query(query),
|
|
7655
8265
|
});
|
|
7656
|
-
|
|
8266
|
+
let params = new $OpenApi.Params({
|
|
8267
|
+
action: "DescribePolicyInstances",
|
|
8268
|
+
version: "2015-12-15",
|
|
8269
|
+
protocol: "HTTPS",
|
|
8270
|
+
pathname: `/clusters/${clusterId}/policies`,
|
|
8271
|
+
method: "GET",
|
|
8272
|
+
authType: "AK",
|
|
8273
|
+
style: "ROA",
|
|
8274
|
+
reqBodyType: "json",
|
|
8275
|
+
bodyType: "array",
|
|
8276
|
+
});
|
|
8277
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyInstancesResponse({}));
|
|
7657
8278
|
}
|
|
7658
8279
|
async describePolicyInstancesStatus(clusterId) {
|
|
7659
8280
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7665,7 +8286,18 @@ class Client extends openapi_client_1.default {
|
|
|
7665
8286
|
let req = new $OpenApi.OpenApiRequest({
|
|
7666
8287
|
headers: headers,
|
|
7667
8288
|
});
|
|
7668
|
-
|
|
8289
|
+
let params = new $OpenApi.Params({
|
|
8290
|
+
action: "DescribePolicyInstancesStatus",
|
|
8291
|
+
version: "2015-12-15",
|
|
8292
|
+
protocol: "HTTPS",
|
|
8293
|
+
pathname: `/clusters/${clusterId}/policies/status`,
|
|
8294
|
+
method: "GET",
|
|
8295
|
+
authType: "AK",
|
|
8296
|
+
style: "ROA",
|
|
8297
|
+
reqBodyType: "json",
|
|
8298
|
+
bodyType: "json",
|
|
8299
|
+
});
|
|
8300
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyInstancesStatusResponse({}));
|
|
7669
8301
|
}
|
|
7670
8302
|
async describeTaskInfo(taskId) {
|
|
7671
8303
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7677,7 +8309,18 @@ class Client extends openapi_client_1.default {
|
|
|
7677
8309
|
let req = new $OpenApi.OpenApiRequest({
|
|
7678
8310
|
headers: headers,
|
|
7679
8311
|
});
|
|
7680
|
-
|
|
8312
|
+
let params = new $OpenApi.Params({
|
|
8313
|
+
action: "DescribeTaskInfo",
|
|
8314
|
+
version: "2015-12-15",
|
|
8315
|
+
protocol: "HTTPS",
|
|
8316
|
+
pathname: `/tasks/${taskId}`,
|
|
8317
|
+
method: "GET",
|
|
8318
|
+
authType: "AK",
|
|
8319
|
+
style: "ROA",
|
|
8320
|
+
reqBodyType: "json",
|
|
8321
|
+
bodyType: "json",
|
|
8322
|
+
});
|
|
8323
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTaskInfoResponse({}));
|
|
7681
8324
|
}
|
|
7682
8325
|
async describeTemplateAttribute(TemplateId, request) {
|
|
7683
8326
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7695,7 +8338,18 @@ class Client extends openapi_client_1.default {
|
|
|
7695
8338
|
headers: headers,
|
|
7696
8339
|
query: openapi_util_1.default.query(query),
|
|
7697
8340
|
});
|
|
7698
|
-
|
|
8341
|
+
let params = new $OpenApi.Params({
|
|
8342
|
+
action: "DescribeTemplateAttribute",
|
|
8343
|
+
version: "2015-12-15",
|
|
8344
|
+
protocol: "HTTPS",
|
|
8345
|
+
pathname: `/templates/${TemplateId}`,
|
|
8346
|
+
method: "GET",
|
|
8347
|
+
authType: "AK",
|
|
8348
|
+
style: "ROA",
|
|
8349
|
+
reqBodyType: "json",
|
|
8350
|
+
bodyType: "array",
|
|
8351
|
+
});
|
|
8352
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTemplateAttributeResponse({}));
|
|
7699
8353
|
}
|
|
7700
8354
|
async describeTemplates(request) {
|
|
7701
8355
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7718,7 +8372,18 @@ class Client extends openapi_client_1.default {
|
|
|
7718
8372
|
headers: headers,
|
|
7719
8373
|
query: openapi_util_1.default.query(query),
|
|
7720
8374
|
});
|
|
7721
|
-
|
|
8375
|
+
let params = new $OpenApi.Params({
|
|
8376
|
+
action: "DescribeTemplates",
|
|
8377
|
+
version: "2015-12-15",
|
|
8378
|
+
protocol: "HTTPS",
|
|
8379
|
+
pathname: `/templates`,
|
|
8380
|
+
method: "GET",
|
|
8381
|
+
authType: "AK",
|
|
8382
|
+
style: "ROA",
|
|
8383
|
+
reqBodyType: "json",
|
|
8384
|
+
bodyType: "json",
|
|
8385
|
+
});
|
|
8386
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTemplatesResponse({}));
|
|
7722
8387
|
}
|
|
7723
8388
|
async describeTrigger(clusterId, request) {
|
|
7724
8389
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7745,7 +8410,18 @@ class Client extends openapi_client_1.default {
|
|
|
7745
8410
|
headers: headers,
|
|
7746
8411
|
query: openapi_util_1.default.query(query),
|
|
7747
8412
|
});
|
|
7748
|
-
|
|
8413
|
+
let params = new $OpenApi.Params({
|
|
8414
|
+
action: "DescribeTrigger",
|
|
8415
|
+
version: "2015-12-15",
|
|
8416
|
+
protocol: "HTTPS",
|
|
8417
|
+
pathname: `/clusters/[cluster_id]/triggers`,
|
|
8418
|
+
method: "GET",
|
|
8419
|
+
authType: "AK",
|
|
8420
|
+
style: "ROA",
|
|
8421
|
+
reqBodyType: "json",
|
|
8422
|
+
bodyType: "array",
|
|
8423
|
+
});
|
|
8424
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTriggerResponse({}));
|
|
7749
8425
|
}
|
|
7750
8426
|
async describeUserPermission(uid) {
|
|
7751
8427
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7757,7 +8433,18 @@ class Client extends openapi_client_1.default {
|
|
|
7757
8433
|
let req = new $OpenApi.OpenApiRequest({
|
|
7758
8434
|
headers: headers,
|
|
7759
8435
|
});
|
|
7760
|
-
|
|
8436
|
+
let params = new $OpenApi.Params({
|
|
8437
|
+
action: "DescribeUserPermission",
|
|
8438
|
+
version: "2015-12-15",
|
|
8439
|
+
protocol: "HTTPS",
|
|
8440
|
+
pathname: `/permissions/users/${uid}`,
|
|
8441
|
+
method: "GET",
|
|
8442
|
+
authType: "AK",
|
|
8443
|
+
style: "ROA",
|
|
8444
|
+
reqBodyType: "json",
|
|
8445
|
+
bodyType: "array",
|
|
8446
|
+
});
|
|
8447
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserPermissionResponse({}));
|
|
7761
8448
|
}
|
|
7762
8449
|
async describeUserQuota() {
|
|
7763
8450
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7768,7 +8455,18 @@ class Client extends openapi_client_1.default {
|
|
|
7768
8455
|
let req = new $OpenApi.OpenApiRequest({
|
|
7769
8456
|
headers: headers,
|
|
7770
8457
|
});
|
|
7771
|
-
|
|
8458
|
+
let params = new $OpenApi.Params({
|
|
8459
|
+
action: "DescribeUserQuota",
|
|
8460
|
+
version: "2015-12-15",
|
|
8461
|
+
protocol: "HTTPS",
|
|
8462
|
+
pathname: `/quota`,
|
|
8463
|
+
method: "GET",
|
|
8464
|
+
authType: "AK",
|
|
8465
|
+
style: "ROA",
|
|
8466
|
+
reqBodyType: "json",
|
|
8467
|
+
bodyType: "json",
|
|
8468
|
+
});
|
|
8469
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserQuotaResponse({}));
|
|
7772
8470
|
}
|
|
7773
8471
|
async describeWorkflows() {
|
|
7774
8472
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7779,7 +8477,18 @@ class Client extends openapi_client_1.default {
|
|
|
7779
8477
|
let req = new $OpenApi.OpenApiRequest({
|
|
7780
8478
|
headers: headers,
|
|
7781
8479
|
});
|
|
7782
|
-
|
|
8480
|
+
let params = new $OpenApi.Params({
|
|
8481
|
+
action: "DescribeWorkflows",
|
|
8482
|
+
version: "2015-12-15",
|
|
8483
|
+
protocol: "HTTPS",
|
|
8484
|
+
pathname: `/gs/workflows`,
|
|
8485
|
+
method: "GET",
|
|
8486
|
+
authType: "AK",
|
|
8487
|
+
style: "ROA",
|
|
8488
|
+
reqBodyType: "json",
|
|
8489
|
+
bodyType: "json",
|
|
8490
|
+
});
|
|
8491
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeWorkflowsResponse({}));
|
|
7783
8492
|
}
|
|
7784
8493
|
async edgeClusterAddEdgeMachine(clusterid, edgeMachineid, request) {
|
|
7785
8494
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7804,7 +8513,18 @@ class Client extends openapi_client_1.default {
|
|
|
7804
8513
|
headers: headers,
|
|
7805
8514
|
body: openapi_util_1.default.parseToMap(body),
|
|
7806
8515
|
});
|
|
7807
|
-
|
|
8516
|
+
let params = new $OpenApi.Params({
|
|
8517
|
+
action: "EdgeClusterAddEdgeMachine",
|
|
8518
|
+
version: "2015-12-15",
|
|
8519
|
+
protocol: "HTTPS",
|
|
8520
|
+
pathname: `/clusters/[clusterid]/attachedgemachine/[edge_machineid]`,
|
|
8521
|
+
method: "POST",
|
|
8522
|
+
authType: "AK",
|
|
8523
|
+
style: "ROA",
|
|
8524
|
+
reqBodyType: "json",
|
|
8525
|
+
bodyType: "json",
|
|
8526
|
+
});
|
|
8527
|
+
return $tea.cast(await this.callApi(params, req, runtime), new EdgeClusterAddEdgeMachineResponse({}));
|
|
7808
8528
|
}
|
|
7809
8529
|
async getKubernetesTrigger(ClusterId, request) {
|
|
7810
8530
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7831,7 +8551,18 @@ class Client extends openapi_client_1.default {
|
|
|
7831
8551
|
headers: headers,
|
|
7832
8552
|
query: openapi_util_1.default.query(query),
|
|
7833
8553
|
});
|
|
7834
|
-
|
|
8554
|
+
let params = new $OpenApi.Params({
|
|
8555
|
+
action: "GetKubernetesTrigger",
|
|
8556
|
+
version: "2015-12-15",
|
|
8557
|
+
protocol: "HTTPS",
|
|
8558
|
+
pathname: `/triggers/${ClusterId}`,
|
|
8559
|
+
method: "GET",
|
|
8560
|
+
authType: "AK",
|
|
8561
|
+
style: "ROA",
|
|
8562
|
+
reqBodyType: "json",
|
|
8563
|
+
bodyType: "array",
|
|
8564
|
+
});
|
|
8565
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetKubernetesTriggerResponse({}));
|
|
7835
8566
|
}
|
|
7836
8567
|
async getUpgradeStatus(ClusterId) {
|
|
7837
8568
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7843,7 +8574,18 @@ class Client extends openapi_client_1.default {
|
|
|
7843
8574
|
let req = new $OpenApi.OpenApiRequest({
|
|
7844
8575
|
headers: headers,
|
|
7845
8576
|
});
|
|
7846
|
-
|
|
8577
|
+
let params = new $OpenApi.Params({
|
|
8578
|
+
action: "GetUpgradeStatus",
|
|
8579
|
+
version: "2015-12-15",
|
|
8580
|
+
protocol: "HTTPS",
|
|
8581
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/status`,
|
|
8582
|
+
method: "GET",
|
|
8583
|
+
authType: "AK",
|
|
8584
|
+
style: "ROA",
|
|
8585
|
+
reqBodyType: "json",
|
|
8586
|
+
bodyType: "json",
|
|
8587
|
+
});
|
|
8588
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetUpgradeStatusResponse({}));
|
|
7847
8589
|
}
|
|
7848
8590
|
async grantPermissions(uid, request) {
|
|
7849
8591
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7857,7 +8599,18 @@ class Client extends openapi_client_1.default {
|
|
|
7857
8599
|
headers: headers,
|
|
7858
8600
|
body: tea_util_1.default.toArray(request.body),
|
|
7859
8601
|
});
|
|
7860
|
-
|
|
8602
|
+
let params = new $OpenApi.Params({
|
|
8603
|
+
action: "GrantPermissions",
|
|
8604
|
+
version: "2015-12-15",
|
|
8605
|
+
protocol: "HTTPS",
|
|
8606
|
+
pathname: `/permissions/users/${uid}`,
|
|
8607
|
+
method: "POST",
|
|
8608
|
+
authType: "AK",
|
|
8609
|
+
style: "ROA",
|
|
8610
|
+
reqBodyType: "json",
|
|
8611
|
+
bodyType: "none",
|
|
8612
|
+
});
|
|
8613
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GrantPermissionsResponse({}));
|
|
7861
8614
|
}
|
|
7862
8615
|
async installClusterAddons(ClusterId, request) {
|
|
7863
8616
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7871,7 +8624,18 @@ class Client extends openapi_client_1.default {
|
|
|
7871
8624
|
headers: headers,
|
|
7872
8625
|
body: tea_util_1.default.toArray(request.body),
|
|
7873
8626
|
});
|
|
7874
|
-
|
|
8627
|
+
let params = new $OpenApi.Params({
|
|
8628
|
+
action: "InstallClusterAddons",
|
|
8629
|
+
version: "2015-12-15",
|
|
8630
|
+
protocol: "HTTPS",
|
|
8631
|
+
pathname: `/clusters/${ClusterId}/components/install`,
|
|
8632
|
+
method: "POST",
|
|
8633
|
+
authType: "AK",
|
|
8634
|
+
style: "ROA",
|
|
8635
|
+
reqBodyType: "json",
|
|
8636
|
+
bodyType: "none",
|
|
8637
|
+
});
|
|
8638
|
+
return $tea.cast(await this.callApi(params, req, runtime), new InstallClusterAddonsResponse({}));
|
|
7875
8639
|
}
|
|
7876
8640
|
async listTagResources(request) {
|
|
7877
8641
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7908,7 +8672,18 @@ class Client extends openapi_client_1.default {
|
|
|
7908
8672
|
headers: headers,
|
|
7909
8673
|
query: openapi_util_1.default.query(query),
|
|
7910
8674
|
});
|
|
7911
|
-
|
|
8675
|
+
let params = new $OpenApi.Params({
|
|
8676
|
+
action: "ListTagResources",
|
|
8677
|
+
version: "2015-12-15",
|
|
8678
|
+
protocol: "HTTPS",
|
|
8679
|
+
pathname: `/tags`,
|
|
8680
|
+
method: "GET",
|
|
8681
|
+
authType: "AK",
|
|
8682
|
+
style: "ROA",
|
|
8683
|
+
reqBodyType: "json",
|
|
8684
|
+
bodyType: "json",
|
|
8685
|
+
});
|
|
8686
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
7912
8687
|
}
|
|
7913
8688
|
async migrateCluster(clusterId) {
|
|
7914
8689
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7920,7 +8695,18 @@ class Client extends openapi_client_1.default {
|
|
|
7920
8695
|
let req = new $OpenApi.OpenApiRequest({
|
|
7921
8696
|
headers: headers,
|
|
7922
8697
|
});
|
|
7923
|
-
|
|
8698
|
+
let params = new $OpenApi.Params({
|
|
8699
|
+
action: "MigrateCluster",
|
|
8700
|
+
version: "2015-12-15",
|
|
8701
|
+
protocol: "HTTPS",
|
|
8702
|
+
pathname: `/clusters/${clusterId}/migrate`,
|
|
8703
|
+
method: "POST",
|
|
8704
|
+
authType: "AK",
|
|
8705
|
+
style: "ROA",
|
|
8706
|
+
reqBodyType: "json",
|
|
8707
|
+
bodyType: "none",
|
|
8708
|
+
});
|
|
8709
|
+
return $tea.cast(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
|
|
7924
8710
|
}
|
|
7925
8711
|
async modifyCluster(ClusterId, request) {
|
|
7926
8712
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7940,6 +8726,9 @@ class Client extends openapi_client_1.default {
|
|
|
7940
8726
|
if (!tea_util_1.default.isUnset(request.deletionProtection)) {
|
|
7941
8727
|
body["deletion_protection"] = request.deletionProtection;
|
|
7942
8728
|
}
|
|
8729
|
+
if (!tea_util_1.default.isUnset(request.enableRrsa)) {
|
|
8730
|
+
body["enable_rrsa"] = request.enableRrsa;
|
|
8731
|
+
}
|
|
7943
8732
|
if (!tea_util_1.default.isUnset(request.ingressDomainRebinding)) {
|
|
7944
8733
|
body["ingress_domain_rebinding"] = request.ingressDomainRebinding;
|
|
7945
8734
|
}
|
|
@@ -7959,7 +8748,18 @@ class Client extends openapi_client_1.default {
|
|
|
7959
8748
|
headers: headers,
|
|
7960
8749
|
body: openapi_util_1.default.parseToMap(body),
|
|
7961
8750
|
});
|
|
7962
|
-
|
|
8751
|
+
let params = new $OpenApi.Params({
|
|
8752
|
+
action: "ModifyCluster",
|
|
8753
|
+
version: "2015-12-15",
|
|
8754
|
+
protocol: "HTTPS",
|
|
8755
|
+
pathname: `/api/v2/clusters/${ClusterId}`,
|
|
8756
|
+
method: "PUT",
|
|
8757
|
+
authType: "AK",
|
|
8758
|
+
style: "ROA",
|
|
8759
|
+
reqBodyType: "json",
|
|
8760
|
+
bodyType: "json",
|
|
8761
|
+
});
|
|
8762
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterResponse({}));
|
|
7963
8763
|
}
|
|
7964
8764
|
async modifyClusterAddon(clusterId, componentId, request) {
|
|
7965
8765
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7978,7 +8778,18 @@ class Client extends openapi_client_1.default {
|
|
|
7978
8778
|
headers: headers,
|
|
7979
8779
|
body: openapi_util_1.default.parseToMap(body),
|
|
7980
8780
|
});
|
|
7981
|
-
|
|
8781
|
+
let params = new $OpenApi.Params({
|
|
8782
|
+
action: "ModifyClusterAddon",
|
|
8783
|
+
version: "2015-12-15",
|
|
8784
|
+
protocol: "HTTPS",
|
|
8785
|
+
pathname: `/clusters/${clusterId}/components/{componentId}/config`,
|
|
8786
|
+
method: "POST",
|
|
8787
|
+
authType: "AK",
|
|
8788
|
+
style: "ROA",
|
|
8789
|
+
reqBodyType: "json",
|
|
8790
|
+
bodyType: "none",
|
|
8791
|
+
});
|
|
8792
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterAddonResponse({}));
|
|
7982
8793
|
}
|
|
7983
8794
|
async modifyClusterConfiguration(ClusterId, request) {
|
|
7984
8795
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7996,7 +8807,18 @@ class Client extends openapi_client_1.default {
|
|
|
7996
8807
|
headers: headers,
|
|
7997
8808
|
body: openapi_util_1.default.parseToMap(body),
|
|
7998
8809
|
});
|
|
7999
|
-
|
|
8810
|
+
let params = new $OpenApi.Params({
|
|
8811
|
+
action: "ModifyClusterConfiguration",
|
|
8812
|
+
version: "2015-12-15",
|
|
8813
|
+
protocol: "HTTPS",
|
|
8814
|
+
pathname: `/clusters/${ClusterId}/configuration`,
|
|
8815
|
+
method: "PUT",
|
|
8816
|
+
authType: "AK",
|
|
8817
|
+
style: "ROA",
|
|
8818
|
+
reqBodyType: "json",
|
|
8819
|
+
bodyType: "none",
|
|
8820
|
+
});
|
|
8821
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterConfigurationResponse({}));
|
|
8000
8822
|
}
|
|
8001
8823
|
async modifyClusterNodePool(ClusterId, NodepoolId, request) {
|
|
8002
8824
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8033,7 +8855,18 @@ class Client extends openapi_client_1.default {
|
|
|
8033
8855
|
headers: headers,
|
|
8034
8856
|
body: openapi_util_1.default.parseToMap(body),
|
|
8035
8857
|
});
|
|
8036
|
-
|
|
8858
|
+
let params = new $OpenApi.Params({
|
|
8859
|
+
action: "ModifyClusterNodePool",
|
|
8860
|
+
version: "2015-12-15",
|
|
8861
|
+
protocol: "HTTPS",
|
|
8862
|
+
pathname: `/clusters/${ClusterId}/nodepools/{NodepoolId}`,
|
|
8863
|
+
method: "PUT",
|
|
8864
|
+
authType: "AK",
|
|
8865
|
+
style: "ROA",
|
|
8866
|
+
reqBodyType: "json",
|
|
8867
|
+
bodyType: "json",
|
|
8868
|
+
});
|
|
8869
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterNodePoolResponse({}));
|
|
8037
8870
|
}
|
|
8038
8871
|
async modifyClusterTags(ClusterId, request) {
|
|
8039
8872
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8047,7 +8880,18 @@ class Client extends openapi_client_1.default {
|
|
|
8047
8880
|
headers: headers,
|
|
8048
8881
|
body: tea_util_1.default.toArray(request.body),
|
|
8049
8882
|
});
|
|
8050
|
-
|
|
8883
|
+
let params = new $OpenApi.Params({
|
|
8884
|
+
action: "ModifyClusterTags",
|
|
8885
|
+
version: "2015-12-15",
|
|
8886
|
+
protocol: "HTTPS",
|
|
8887
|
+
pathname: `/clusters/${ClusterId}/tags`,
|
|
8888
|
+
method: "POST",
|
|
8889
|
+
authType: "AK",
|
|
8890
|
+
style: "ROA",
|
|
8891
|
+
reqBodyType: "json",
|
|
8892
|
+
bodyType: "none",
|
|
8893
|
+
});
|
|
8894
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
|
|
8051
8895
|
}
|
|
8052
8896
|
async modifyPolicyInstance(clusterId, policyName, request) {
|
|
8053
8897
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8075,7 +8919,18 @@ class Client extends openapi_client_1.default {
|
|
|
8075
8919
|
headers: headers,
|
|
8076
8920
|
body: openapi_util_1.default.parseToMap(body),
|
|
8077
8921
|
});
|
|
8078
|
-
|
|
8922
|
+
let params = new $OpenApi.Params({
|
|
8923
|
+
action: "ModifyPolicyInstance",
|
|
8924
|
+
version: "2015-12-15",
|
|
8925
|
+
protocol: "HTTPS",
|
|
8926
|
+
pathname: `/clusters/${clusterId}/policies/{policyName}`,
|
|
8927
|
+
method: "PUT",
|
|
8928
|
+
authType: "AK",
|
|
8929
|
+
style: "ROA",
|
|
8930
|
+
reqBodyType: "json",
|
|
8931
|
+
bodyType: "json",
|
|
8932
|
+
});
|
|
8933
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyPolicyInstanceResponse({}));
|
|
8079
8934
|
}
|
|
8080
8935
|
async openAckService(request) {
|
|
8081
8936
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8092,7 +8947,18 @@ class Client extends openapi_client_1.default {
|
|
|
8092
8947
|
headers: headers,
|
|
8093
8948
|
query: openapi_util_1.default.query(query),
|
|
8094
8949
|
});
|
|
8095
|
-
|
|
8950
|
+
let params = new $OpenApi.Params({
|
|
8951
|
+
action: "OpenAckService",
|
|
8952
|
+
version: "2015-12-15",
|
|
8953
|
+
protocol: "HTTPS",
|
|
8954
|
+
pathname: `/service/open`,
|
|
8955
|
+
method: "POST",
|
|
8956
|
+
authType: "AK",
|
|
8957
|
+
style: "ROA",
|
|
8958
|
+
reqBodyType: "json",
|
|
8959
|
+
bodyType: "json",
|
|
8960
|
+
});
|
|
8961
|
+
return $tea.cast(await this.callApi(params, req, runtime), new OpenAckServiceResponse({}));
|
|
8096
8962
|
}
|
|
8097
8963
|
async pauseClusterUpgrade(ClusterId) {
|
|
8098
8964
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8104,7 +8970,18 @@ class Client extends openapi_client_1.default {
|
|
|
8104
8970
|
let req = new $OpenApi.OpenApiRequest({
|
|
8105
8971
|
headers: headers,
|
|
8106
8972
|
});
|
|
8107
|
-
|
|
8973
|
+
let params = new $OpenApi.Params({
|
|
8974
|
+
action: "PauseClusterUpgrade",
|
|
8975
|
+
version: "2015-12-15",
|
|
8976
|
+
protocol: "HTTPS",
|
|
8977
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/pause`,
|
|
8978
|
+
method: "POST",
|
|
8979
|
+
authType: "AK",
|
|
8980
|
+
style: "ROA",
|
|
8981
|
+
reqBodyType: "json",
|
|
8982
|
+
bodyType: "none",
|
|
8983
|
+
});
|
|
8984
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PauseClusterUpgradeResponse({}));
|
|
8108
8985
|
}
|
|
8109
8986
|
async pauseComponentUpgrade(clusterid, componentid) {
|
|
8110
8987
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8117,7 +8994,18 @@ class Client extends openapi_client_1.default {
|
|
|
8117
8994
|
let req = new $OpenApi.OpenApiRequest({
|
|
8118
8995
|
headers: headers,
|
|
8119
8996
|
});
|
|
8120
|
-
|
|
8997
|
+
let params = new $OpenApi.Params({
|
|
8998
|
+
action: "PauseComponentUpgrade",
|
|
8999
|
+
version: "2015-12-15",
|
|
9000
|
+
protocol: "HTTPS",
|
|
9001
|
+
pathname: `/clusters/${clusterid}/components/{componentid}/pause`,
|
|
9002
|
+
method: "POST",
|
|
9003
|
+
authType: "AK",
|
|
9004
|
+
style: "ROA",
|
|
9005
|
+
reqBodyType: "json",
|
|
9006
|
+
bodyType: "none",
|
|
9007
|
+
});
|
|
9008
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PauseComponentUpgradeResponse({}));
|
|
8121
9009
|
}
|
|
8122
9010
|
async removeClusterNodes(ClusterId, request) {
|
|
8123
9011
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8141,7 +9029,18 @@ class Client extends openapi_client_1.default {
|
|
|
8141
9029
|
headers: headers,
|
|
8142
9030
|
body: openapi_util_1.default.parseToMap(body),
|
|
8143
9031
|
});
|
|
8144
|
-
|
|
9032
|
+
let params = new $OpenApi.Params({
|
|
9033
|
+
action: "RemoveClusterNodes",
|
|
9034
|
+
version: "2015-12-15",
|
|
9035
|
+
protocol: "HTTPS",
|
|
9036
|
+
pathname: `/api/v2/clusters/${ClusterId}/nodes/remove`,
|
|
9037
|
+
method: "POST",
|
|
9038
|
+
authType: "AK",
|
|
9039
|
+
style: "ROA",
|
|
9040
|
+
reqBodyType: "json",
|
|
9041
|
+
bodyType: "none",
|
|
9042
|
+
});
|
|
9043
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RemoveClusterNodesResponse({}));
|
|
8145
9044
|
}
|
|
8146
9045
|
async removeWorkflow(workflowName) {
|
|
8147
9046
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8153,7 +9052,18 @@ class Client extends openapi_client_1.default {
|
|
|
8153
9052
|
let req = new $OpenApi.OpenApiRequest({
|
|
8154
9053
|
headers: headers,
|
|
8155
9054
|
});
|
|
8156
|
-
|
|
9055
|
+
let params = new $OpenApi.Params({
|
|
9056
|
+
action: "RemoveWorkflow",
|
|
9057
|
+
version: "2015-12-15",
|
|
9058
|
+
protocol: "HTTPS",
|
|
9059
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
9060
|
+
method: "DELETE",
|
|
9061
|
+
authType: "AK",
|
|
9062
|
+
style: "ROA",
|
|
9063
|
+
reqBodyType: "json",
|
|
9064
|
+
bodyType: "none",
|
|
9065
|
+
});
|
|
9066
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
|
|
8157
9067
|
}
|
|
8158
9068
|
async resumeComponentUpgrade(clusterid, componentid) {
|
|
8159
9069
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8166,7 +9076,18 @@ class Client extends openapi_client_1.default {
|
|
|
8166
9076
|
let req = new $OpenApi.OpenApiRequest({
|
|
8167
9077
|
headers: headers,
|
|
8168
9078
|
});
|
|
8169
|
-
|
|
9079
|
+
let params = new $OpenApi.Params({
|
|
9080
|
+
action: "ResumeComponentUpgrade",
|
|
9081
|
+
version: "2015-12-15",
|
|
9082
|
+
protocol: "HTTPS",
|
|
9083
|
+
pathname: `/clusters/${clusterid}/components/{componentid}/resume`,
|
|
9084
|
+
method: "POST",
|
|
9085
|
+
authType: "AK",
|
|
9086
|
+
style: "ROA",
|
|
9087
|
+
reqBodyType: "json",
|
|
9088
|
+
bodyType: "none",
|
|
9089
|
+
});
|
|
9090
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ResumeComponentUpgradeResponse({}));
|
|
8170
9091
|
}
|
|
8171
9092
|
async resumeUpgradeCluster(ClusterId) {
|
|
8172
9093
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8178,7 +9099,18 @@ class Client extends openapi_client_1.default {
|
|
|
8178
9099
|
let req = new $OpenApi.OpenApiRequest({
|
|
8179
9100
|
headers: headers,
|
|
8180
9101
|
});
|
|
8181
|
-
|
|
9102
|
+
let params = new $OpenApi.Params({
|
|
9103
|
+
action: "ResumeUpgradeCluster",
|
|
9104
|
+
version: "2015-12-15",
|
|
9105
|
+
protocol: "HTTPS",
|
|
9106
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/resume`,
|
|
9107
|
+
method: "POST",
|
|
9108
|
+
authType: "AK",
|
|
9109
|
+
style: "ROA",
|
|
9110
|
+
reqBodyType: "json",
|
|
9111
|
+
bodyType: "none",
|
|
9112
|
+
});
|
|
9113
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ResumeUpgradeClusterResponse({}));
|
|
8182
9114
|
}
|
|
8183
9115
|
async scaleCluster(ClusterId, request) {
|
|
8184
9116
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8250,7 +9182,18 @@ class Client extends openapi_client_1.default {
|
|
|
8250
9182
|
headers: headers,
|
|
8251
9183
|
body: openapi_util_1.default.parseToMap(body),
|
|
8252
9184
|
});
|
|
8253
|
-
|
|
9185
|
+
let params = new $OpenApi.Params({
|
|
9186
|
+
action: "ScaleCluster",
|
|
9187
|
+
version: "2015-12-15",
|
|
9188
|
+
protocol: "HTTPS",
|
|
9189
|
+
pathname: `/clusters/${ClusterId}`,
|
|
9190
|
+
method: "PUT",
|
|
9191
|
+
authType: "AK",
|
|
9192
|
+
style: "ROA",
|
|
9193
|
+
reqBodyType: "json",
|
|
9194
|
+
bodyType: "json",
|
|
9195
|
+
});
|
|
9196
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ScaleClusterResponse({}));
|
|
8254
9197
|
}
|
|
8255
9198
|
async scaleClusterNodePool(ClusterId, NodepoolId, request) {
|
|
8256
9199
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8269,7 +9212,18 @@ class Client extends openapi_client_1.default {
|
|
|
8269
9212
|
headers: headers,
|
|
8270
9213
|
body: openapi_util_1.default.parseToMap(body),
|
|
8271
9214
|
});
|
|
8272
|
-
|
|
9215
|
+
let params = new $OpenApi.Params({
|
|
9216
|
+
action: "ScaleClusterNodePool",
|
|
9217
|
+
version: "2015-12-15",
|
|
9218
|
+
protocol: "HTTPS",
|
|
9219
|
+
pathname: `/clusters/${ClusterId}/nodepools/{NodepoolId}`,
|
|
9220
|
+
method: "POST",
|
|
9221
|
+
authType: "AK",
|
|
9222
|
+
style: "ROA",
|
|
9223
|
+
reqBodyType: "json",
|
|
9224
|
+
bodyType: "json",
|
|
9225
|
+
});
|
|
9226
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ScaleClusterNodePoolResponse({}));
|
|
8273
9227
|
}
|
|
8274
9228
|
async scaleOutCluster(ClusterId, request) {
|
|
8275
9229
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8347,7 +9301,18 @@ class Client extends openapi_client_1.default {
|
|
|
8347
9301
|
headers: headers,
|
|
8348
9302
|
body: openapi_util_1.default.parseToMap(body),
|
|
8349
9303
|
});
|
|
8350
|
-
|
|
9304
|
+
let params = new $OpenApi.Params({
|
|
9305
|
+
action: "ScaleOutCluster",
|
|
9306
|
+
version: "2015-12-15",
|
|
9307
|
+
protocol: "HTTPS",
|
|
9308
|
+
pathname: `/api/v2/clusters/${ClusterId}`,
|
|
9309
|
+
method: "POST",
|
|
9310
|
+
authType: "AK",
|
|
9311
|
+
style: "ROA",
|
|
9312
|
+
reqBodyType: "json",
|
|
9313
|
+
bodyType: "json",
|
|
9314
|
+
});
|
|
9315
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
|
|
8351
9316
|
}
|
|
8352
9317
|
async startWorkflow(request) {
|
|
8353
9318
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8418,7 +9383,18 @@ class Client extends openapi_client_1.default {
|
|
|
8418
9383
|
headers: headers,
|
|
8419
9384
|
body: openapi_util_1.default.parseToMap(body),
|
|
8420
9385
|
});
|
|
8421
|
-
|
|
9386
|
+
let params = new $OpenApi.Params({
|
|
9387
|
+
action: "StartWorkflow",
|
|
9388
|
+
version: "2015-12-15",
|
|
9389
|
+
protocol: "HTTPS",
|
|
9390
|
+
pathname: `/gs/workflow`,
|
|
9391
|
+
method: "POST",
|
|
9392
|
+
authType: "AK",
|
|
9393
|
+
style: "ROA",
|
|
9394
|
+
reqBodyType: "json",
|
|
9395
|
+
bodyType: "json",
|
|
9396
|
+
});
|
|
9397
|
+
return $tea.cast(await this.callApi(params, req, runtime), new StartWorkflowResponse({}));
|
|
8422
9398
|
}
|
|
8423
9399
|
async tagResources(request) {
|
|
8424
9400
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8444,7 +9420,18 @@ class Client extends openapi_client_1.default {
|
|
|
8444
9420
|
headers: headers,
|
|
8445
9421
|
body: openapi_util_1.default.parseToMap(body),
|
|
8446
9422
|
});
|
|
8447
|
-
|
|
9423
|
+
let params = new $OpenApi.Params({
|
|
9424
|
+
action: "TagResources",
|
|
9425
|
+
version: "2015-12-15",
|
|
9426
|
+
protocol: "HTTPS",
|
|
9427
|
+
pathname: `/tags`,
|
|
9428
|
+
method: "PUT",
|
|
9429
|
+
authType: "AK",
|
|
9430
|
+
style: "ROA",
|
|
9431
|
+
reqBodyType: "json",
|
|
9432
|
+
bodyType: "none",
|
|
9433
|
+
});
|
|
9434
|
+
return $tea.cast(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
|
|
8448
9435
|
}
|
|
8449
9436
|
async unInstallClusterAddons(ClusterId, request) {
|
|
8450
9437
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8458,7 +9445,18 @@ class Client extends openapi_client_1.default {
|
|
|
8458
9445
|
headers: headers,
|
|
8459
9446
|
body: tea_util_1.default.toArray(request.addons),
|
|
8460
9447
|
});
|
|
8461
|
-
|
|
9448
|
+
let params = new $OpenApi.Params({
|
|
9449
|
+
action: "UnInstallClusterAddons",
|
|
9450
|
+
version: "2015-12-15",
|
|
9451
|
+
protocol: "HTTPS",
|
|
9452
|
+
pathname: `/clusters/${ClusterId}/components/uninstall`,
|
|
9453
|
+
method: "POST",
|
|
9454
|
+
authType: "AK",
|
|
9455
|
+
style: "ROA",
|
|
9456
|
+
reqBodyType: "json",
|
|
9457
|
+
bodyType: "none",
|
|
9458
|
+
});
|
|
9459
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UnInstallClusterAddonsResponse({}));
|
|
8462
9460
|
}
|
|
8463
9461
|
async untagResources(request) {
|
|
8464
9462
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8484,7 +9482,18 @@ class Client extends openapi_client_1.default {
|
|
|
8484
9482
|
headers: headers,
|
|
8485
9483
|
query: openapi_util_1.default.query(query),
|
|
8486
9484
|
});
|
|
8487
|
-
|
|
9485
|
+
let params = new $OpenApi.Params({
|
|
9486
|
+
action: "UntagResources",
|
|
9487
|
+
version: "2015-12-15",
|
|
9488
|
+
protocol: "HTTPS",
|
|
9489
|
+
pathname: `/tags`,
|
|
9490
|
+
method: "DELETE",
|
|
9491
|
+
authType: "AK",
|
|
9492
|
+
style: "ROA",
|
|
9493
|
+
reqBodyType: "json",
|
|
9494
|
+
bodyType: "none",
|
|
9495
|
+
});
|
|
9496
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
8488
9497
|
}
|
|
8489
9498
|
async updateK8sClusterUserConfigExpire(ClusterId) {
|
|
8490
9499
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8496,7 +9505,18 @@ class Client extends openapi_client_1.default {
|
|
|
8496
9505
|
let req = new $OpenApi.OpenApiRequest({
|
|
8497
9506
|
headers: headers,
|
|
8498
9507
|
});
|
|
8499
|
-
|
|
9508
|
+
let params = new $OpenApi.Params({
|
|
9509
|
+
action: "UpdateK8sClusterUserConfigExpire",
|
|
9510
|
+
version: "2015-12-15",
|
|
9511
|
+
protocol: "HTTPS",
|
|
9512
|
+
pathname: `/k8s/${ClusterId}/user_config/expire`,
|
|
9513
|
+
method: "POST",
|
|
9514
|
+
authType: "AK",
|
|
9515
|
+
style: "ROA",
|
|
9516
|
+
reqBodyType: "json",
|
|
9517
|
+
bodyType: "none",
|
|
9518
|
+
});
|
|
9519
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateK8sClusterUserConfigExpireResponse({}));
|
|
8500
9520
|
}
|
|
8501
9521
|
async updateTemplate(TemplateId, request) {
|
|
8502
9522
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8526,7 +9546,18 @@ class Client extends openapi_client_1.default {
|
|
|
8526
9546
|
headers: headers,
|
|
8527
9547
|
body: openapi_util_1.default.parseToMap(body),
|
|
8528
9548
|
});
|
|
8529
|
-
|
|
9549
|
+
let params = new $OpenApi.Params({
|
|
9550
|
+
action: "UpdateTemplate",
|
|
9551
|
+
version: "2015-12-15",
|
|
9552
|
+
protocol: "HTTPS",
|
|
9553
|
+
pathname: `/templates/${TemplateId}`,
|
|
9554
|
+
method: "PUT",
|
|
9555
|
+
authType: "AK",
|
|
9556
|
+
style: "ROA",
|
|
9557
|
+
reqBodyType: "json",
|
|
9558
|
+
bodyType: "none",
|
|
9559
|
+
});
|
|
9560
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateTemplateResponse({}));
|
|
8530
9561
|
}
|
|
8531
9562
|
async upgradeCluster(ClusterId, request) {
|
|
8532
9563
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8550,7 +9581,18 @@ class Client extends openapi_client_1.default {
|
|
|
8550
9581
|
headers: headers,
|
|
8551
9582
|
body: openapi_util_1.default.parseToMap(body),
|
|
8552
9583
|
});
|
|
8553
|
-
|
|
9584
|
+
let params = new $OpenApi.Params({
|
|
9585
|
+
action: "UpgradeCluster",
|
|
9586
|
+
version: "2015-12-15",
|
|
9587
|
+
protocol: "HTTPS",
|
|
9588
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade`,
|
|
9589
|
+
method: "POST",
|
|
9590
|
+
authType: "AK",
|
|
9591
|
+
style: "ROA",
|
|
9592
|
+
reqBodyType: "json",
|
|
9593
|
+
bodyType: "none",
|
|
9594
|
+
});
|
|
9595
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterResponse({}));
|
|
8554
9596
|
}
|
|
8555
9597
|
async upgradeClusterAddons(ClusterId, request) {
|
|
8556
9598
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8564,7 +9606,18 @@ class Client extends openapi_client_1.default {
|
|
|
8564
9606
|
headers: headers,
|
|
8565
9607
|
body: tea_util_1.default.toArray(request.body),
|
|
8566
9608
|
});
|
|
8567
|
-
|
|
9609
|
+
let params = new $OpenApi.Params({
|
|
9610
|
+
action: "UpgradeClusterAddons",
|
|
9611
|
+
version: "2015-12-15",
|
|
9612
|
+
protocol: "HTTPS",
|
|
9613
|
+
pathname: `/clusters/${ClusterId}/components/upgrade`,
|
|
9614
|
+
method: "POST",
|
|
9615
|
+
authType: "AK",
|
|
9616
|
+
style: "ROA",
|
|
9617
|
+
reqBodyType: "json",
|
|
9618
|
+
bodyType: "none",
|
|
9619
|
+
});
|
|
9620
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterAddonsResponse({}));
|
|
8568
9621
|
}
|
|
8569
9622
|
}
|
|
8570
9623
|
exports.default = Client;
|