@alicloud/cs20151215 3.2.0 → 3.3.1
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 +204 -2
- package/dist/client.js +352 -3
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +434 -3
package/dist/client.js
CHANGED
|
@@ -51,6 +51,8 @@ class DataDisk extends $tea.Model {
|
|
|
51
51
|
autoSnapshotPolicyId: 'auto_snapshot_policy_id',
|
|
52
52
|
burstingEnabled: 'bursting_enabled',
|
|
53
53
|
category: 'category',
|
|
54
|
+
device: 'device',
|
|
55
|
+
diskName: 'disk_name',
|
|
54
56
|
encrypted: 'encrypted',
|
|
55
57
|
fileSystem: 'file_system',
|
|
56
58
|
kmsKeyId: 'kms_key_id',
|
|
@@ -58,6 +60,7 @@ class DataDisk extends $tea.Model {
|
|
|
58
60
|
performanceLevel: 'performance_level',
|
|
59
61
|
provisionedIops: 'provisioned_iops',
|
|
60
62
|
size: 'size',
|
|
63
|
+
snapshotId: 'snapshot_id',
|
|
61
64
|
};
|
|
62
65
|
}
|
|
63
66
|
static types() {
|
|
@@ -66,6 +69,8 @@ class DataDisk extends $tea.Model {
|
|
|
66
69
|
autoSnapshotPolicyId: 'string',
|
|
67
70
|
burstingEnabled: 'boolean',
|
|
68
71
|
category: 'string',
|
|
72
|
+
device: 'string',
|
|
73
|
+
diskName: 'string',
|
|
69
74
|
encrypted: 'string',
|
|
70
75
|
fileSystem: 'string',
|
|
71
76
|
kmsKeyId: 'string',
|
|
@@ -73,6 +78,7 @@ class DataDisk extends $tea.Model {
|
|
|
73
78
|
performanceLevel: 'string',
|
|
74
79
|
provisionedIops: 'number',
|
|
75
80
|
size: 'number',
|
|
81
|
+
snapshotId: 'string',
|
|
76
82
|
};
|
|
77
83
|
}
|
|
78
84
|
}
|
|
@@ -1293,11 +1299,15 @@ class DeleteClusterResponseBody extends $tea.Model {
|
|
|
1293
1299
|
}
|
|
1294
1300
|
static names() {
|
|
1295
1301
|
return {
|
|
1302
|
+
clusterId: 'cluster_id',
|
|
1303
|
+
requestId: 'request_id',
|
|
1296
1304
|
taskId: 'task_id',
|
|
1297
1305
|
};
|
|
1298
1306
|
}
|
|
1299
1307
|
static types() {
|
|
1300
1308
|
return {
|
|
1309
|
+
clusterId: 'string',
|
|
1310
|
+
requestId: 'string',
|
|
1301
1311
|
taskId: 'string',
|
|
1302
1312
|
};
|
|
1303
1313
|
}
|
|
@@ -1689,6 +1699,86 @@ class DescirbeWorkflowResponse extends $tea.Model {
|
|
|
1689
1699
|
}
|
|
1690
1700
|
}
|
|
1691
1701
|
exports.DescirbeWorkflowResponse = DescirbeWorkflowResponse;
|
|
1702
|
+
class DescribeAddonRequest extends $tea.Model {
|
|
1703
|
+
constructor(map) {
|
|
1704
|
+
super(map);
|
|
1705
|
+
}
|
|
1706
|
+
static names() {
|
|
1707
|
+
return {
|
|
1708
|
+
clusterId: 'cluster_id',
|
|
1709
|
+
clusterSpec: 'cluster_spec',
|
|
1710
|
+
clusterType: 'cluster_type',
|
|
1711
|
+
clusterVersion: 'cluster_version',
|
|
1712
|
+
profile: 'profile',
|
|
1713
|
+
regionId: 'region_id',
|
|
1714
|
+
version: 'version',
|
|
1715
|
+
};
|
|
1716
|
+
}
|
|
1717
|
+
static types() {
|
|
1718
|
+
return {
|
|
1719
|
+
clusterId: 'string',
|
|
1720
|
+
clusterSpec: 'string',
|
|
1721
|
+
clusterType: 'string',
|
|
1722
|
+
clusterVersion: 'string',
|
|
1723
|
+
profile: 'string',
|
|
1724
|
+
regionId: 'string',
|
|
1725
|
+
version: 'string',
|
|
1726
|
+
};
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
exports.DescribeAddonRequest = DescribeAddonRequest;
|
|
1730
|
+
class DescribeAddonResponseBody extends $tea.Model {
|
|
1731
|
+
constructor(map) {
|
|
1732
|
+
super(map);
|
|
1733
|
+
}
|
|
1734
|
+
static names() {
|
|
1735
|
+
return {
|
|
1736
|
+
architecture: 'architecture',
|
|
1737
|
+
category: 'category',
|
|
1738
|
+
configSchema: 'config_schema',
|
|
1739
|
+
installByDefault: 'install_by_default',
|
|
1740
|
+
managed: 'managed',
|
|
1741
|
+
name: 'name',
|
|
1742
|
+
newerVersions: 'newer_versions',
|
|
1743
|
+
supportedActions: 'supported_actions',
|
|
1744
|
+
version: 'version',
|
|
1745
|
+
};
|
|
1746
|
+
}
|
|
1747
|
+
static types() {
|
|
1748
|
+
return {
|
|
1749
|
+
architecture: { 'type': 'array', 'itemType': 'string' },
|
|
1750
|
+
category: 'string',
|
|
1751
|
+
configSchema: 'string',
|
|
1752
|
+
installByDefault: 'boolean',
|
|
1753
|
+
managed: 'boolean',
|
|
1754
|
+
name: 'string',
|
|
1755
|
+
newerVersions: { 'type': 'array', 'itemType': DescribeAddonResponseBodyNewerVersions },
|
|
1756
|
+
supportedActions: { 'type': 'array', 'itemType': 'string' },
|
|
1757
|
+
version: 'string',
|
|
1758
|
+
};
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
exports.DescribeAddonResponseBody = DescribeAddonResponseBody;
|
|
1762
|
+
class DescribeAddonResponse extends $tea.Model {
|
|
1763
|
+
constructor(map) {
|
|
1764
|
+
super(map);
|
|
1765
|
+
}
|
|
1766
|
+
static names() {
|
|
1767
|
+
return {
|
|
1768
|
+
headers: 'headers',
|
|
1769
|
+
statusCode: 'statusCode',
|
|
1770
|
+
body: 'body',
|
|
1771
|
+
};
|
|
1772
|
+
}
|
|
1773
|
+
static types() {
|
|
1774
|
+
return {
|
|
1775
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1776
|
+
statusCode: 'number',
|
|
1777
|
+
body: DescribeAddonResponseBody,
|
|
1778
|
+
};
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
exports.DescribeAddonResponse = DescribeAddonResponse;
|
|
1692
1782
|
class DescribeAddonsRequest extends $tea.Model {
|
|
1693
1783
|
constructor(map) {
|
|
1694
1784
|
super(map);
|
|
@@ -4107,6 +4197,60 @@ class ListClusterChecksResponse extends $tea.Model {
|
|
|
4107
4197
|
}
|
|
4108
4198
|
}
|
|
4109
4199
|
exports.ListClusterChecksResponse = ListClusterChecksResponse;
|
|
4200
|
+
class ListOperationPlansRequest extends $tea.Model {
|
|
4201
|
+
constructor(map) {
|
|
4202
|
+
super(map);
|
|
4203
|
+
}
|
|
4204
|
+
static names() {
|
|
4205
|
+
return {
|
|
4206
|
+
clusterId: 'cluster_id',
|
|
4207
|
+
type: 'type',
|
|
4208
|
+
};
|
|
4209
|
+
}
|
|
4210
|
+
static types() {
|
|
4211
|
+
return {
|
|
4212
|
+
clusterId: 'string',
|
|
4213
|
+
type: 'string',
|
|
4214
|
+
};
|
|
4215
|
+
}
|
|
4216
|
+
}
|
|
4217
|
+
exports.ListOperationPlansRequest = ListOperationPlansRequest;
|
|
4218
|
+
class ListOperationPlansResponseBody extends $tea.Model {
|
|
4219
|
+
constructor(map) {
|
|
4220
|
+
super(map);
|
|
4221
|
+
}
|
|
4222
|
+
static names() {
|
|
4223
|
+
return {
|
|
4224
|
+
plans: 'plans',
|
|
4225
|
+
};
|
|
4226
|
+
}
|
|
4227
|
+
static types() {
|
|
4228
|
+
return {
|
|
4229
|
+
plans: { 'type': 'array', 'itemType': ListOperationPlansResponseBodyPlans },
|
|
4230
|
+
};
|
|
4231
|
+
}
|
|
4232
|
+
}
|
|
4233
|
+
exports.ListOperationPlansResponseBody = ListOperationPlansResponseBody;
|
|
4234
|
+
class ListOperationPlansResponse extends $tea.Model {
|
|
4235
|
+
constructor(map) {
|
|
4236
|
+
super(map);
|
|
4237
|
+
}
|
|
4238
|
+
static names() {
|
|
4239
|
+
return {
|
|
4240
|
+
headers: 'headers',
|
|
4241
|
+
statusCode: 'statusCode',
|
|
4242
|
+
body: 'body',
|
|
4243
|
+
};
|
|
4244
|
+
}
|
|
4245
|
+
static types() {
|
|
4246
|
+
return {
|
|
4247
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4248
|
+
statusCode: 'number',
|
|
4249
|
+
body: ListOperationPlansResponseBody,
|
|
4250
|
+
};
|
|
4251
|
+
}
|
|
4252
|
+
}
|
|
4253
|
+
exports.ListOperationPlansResponse = ListOperationPlansResponse;
|
|
4110
4254
|
class ListTagResourcesRequest extends $tea.Model {
|
|
4111
4255
|
constructor(map) {
|
|
4112
4256
|
super(map);
|
|
@@ -4406,6 +4550,7 @@ class ModifyClusterNodePoolRequest extends $tea.Model {
|
|
|
4406
4550
|
static names() {
|
|
4407
4551
|
return {
|
|
4408
4552
|
autoScaling: 'auto_scaling',
|
|
4553
|
+
concurrency: 'concurrency',
|
|
4409
4554
|
kubernetesConfig: 'kubernetes_config',
|
|
4410
4555
|
management: 'management',
|
|
4411
4556
|
nodepoolInfo: 'nodepool_info',
|
|
@@ -4417,6 +4562,7 @@ class ModifyClusterNodePoolRequest extends $tea.Model {
|
|
|
4417
4562
|
static types() {
|
|
4418
4563
|
return {
|
|
4419
4564
|
autoScaling: ModifyClusterNodePoolRequestAutoScaling,
|
|
4565
|
+
concurrency: 'boolean',
|
|
4420
4566
|
kubernetesConfig: ModifyClusterNodePoolRequestKubernetesConfig,
|
|
4421
4567
|
management: ModifyClusterNodePoolRequestManagement,
|
|
4422
4568
|
nodepoolInfo: ModifyClusterNodePoolRequestNodepoolInfo,
|
|
@@ -4767,6 +4913,7 @@ class RemoveNodePoolNodesRequest extends $tea.Model {
|
|
|
4767
4913
|
}
|
|
4768
4914
|
static names() {
|
|
4769
4915
|
return {
|
|
4916
|
+
concurrency: 'concurrency',
|
|
4770
4917
|
drainNode: 'drain_node',
|
|
4771
4918
|
instanceIds: 'instance_ids',
|
|
4772
4919
|
nodes: 'nodes',
|
|
@@ -4775,6 +4922,7 @@ class RemoveNodePoolNodesRequest extends $tea.Model {
|
|
|
4775
4922
|
}
|
|
4776
4923
|
static types() {
|
|
4777
4924
|
return {
|
|
4925
|
+
concurrency: 'boolean',
|
|
4778
4926
|
drainNode: 'boolean',
|
|
4779
4927
|
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
4780
4928
|
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -4789,6 +4937,7 @@ class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
|
|
|
4789
4937
|
}
|
|
4790
4938
|
static names() {
|
|
4791
4939
|
return {
|
|
4940
|
+
concurrency: 'concurrency',
|
|
4792
4941
|
drainNode: 'drain_node',
|
|
4793
4942
|
instanceIdsShrink: 'instance_ids',
|
|
4794
4943
|
nodesShrink: 'nodes',
|
|
@@ -4797,6 +4946,7 @@ class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
|
|
|
4797
4946
|
}
|
|
4798
4947
|
static types() {
|
|
4799
4948
|
return {
|
|
4949
|
+
concurrency: 'boolean',
|
|
4800
4950
|
drainNode: 'boolean',
|
|
4801
4951
|
instanceIdsShrink: 'string',
|
|
4802
4952
|
nodesShrink: 'string',
|
|
@@ -5721,6 +5871,26 @@ class UpdateControlPlaneLogRequest extends $tea.Model {
|
|
|
5721
5871
|
}
|
|
5722
5872
|
}
|
|
5723
5873
|
exports.UpdateControlPlaneLogRequest = UpdateControlPlaneLogRequest;
|
|
5874
|
+
class UpdateControlPlaneLogResponseBody extends $tea.Model {
|
|
5875
|
+
constructor(map) {
|
|
5876
|
+
super(map);
|
|
5877
|
+
}
|
|
5878
|
+
static names() {
|
|
5879
|
+
return {
|
|
5880
|
+
clusterId: 'cluster_id',
|
|
5881
|
+
requestId: 'request_id',
|
|
5882
|
+
taskId: 'task_id',
|
|
5883
|
+
};
|
|
5884
|
+
}
|
|
5885
|
+
static types() {
|
|
5886
|
+
return {
|
|
5887
|
+
clusterId: 'string',
|
|
5888
|
+
requestId: 'string',
|
|
5889
|
+
taskId: 'string',
|
|
5890
|
+
};
|
|
5891
|
+
}
|
|
5892
|
+
}
|
|
5893
|
+
exports.UpdateControlPlaneLogResponseBody = UpdateControlPlaneLogResponseBody;
|
|
5724
5894
|
class UpdateControlPlaneLogResponse extends $tea.Model {
|
|
5725
5895
|
constructor(map) {
|
|
5726
5896
|
super(map);
|
|
@@ -5729,12 +5899,14 @@ class UpdateControlPlaneLogResponse extends $tea.Model {
|
|
|
5729
5899
|
return {
|
|
5730
5900
|
headers: 'headers',
|
|
5731
5901
|
statusCode: 'statusCode',
|
|
5902
|
+
body: 'body',
|
|
5732
5903
|
};
|
|
5733
5904
|
}
|
|
5734
5905
|
static types() {
|
|
5735
5906
|
return {
|
|
5736
5907
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5737
5908
|
statusCode: 'number',
|
|
5909
|
+
body: UpdateControlPlaneLogResponseBody,
|
|
5738
5910
|
};
|
|
5739
5911
|
}
|
|
5740
5912
|
}
|
|
@@ -6771,6 +6943,26 @@ class CreateClusterNodePoolRequestTeeConfig extends $tea.Model {
|
|
|
6771
6943
|
}
|
|
6772
6944
|
}
|
|
6773
6945
|
exports.CreateClusterNodePoolRequestTeeConfig = CreateClusterNodePoolRequestTeeConfig;
|
|
6946
|
+
class DescribeAddonResponseBodyNewerVersions extends $tea.Model {
|
|
6947
|
+
constructor(map) {
|
|
6948
|
+
super(map);
|
|
6949
|
+
}
|
|
6950
|
+
static names() {
|
|
6951
|
+
return {
|
|
6952
|
+
minimumClusterVersion: 'minimum_cluster_version',
|
|
6953
|
+
upgradable: 'upgradable',
|
|
6954
|
+
version: 'version',
|
|
6955
|
+
};
|
|
6956
|
+
}
|
|
6957
|
+
static types() {
|
|
6958
|
+
return {
|
|
6959
|
+
minimumClusterVersion: 'string',
|
|
6960
|
+
upgradable: 'boolean',
|
|
6961
|
+
version: 'string',
|
|
6962
|
+
};
|
|
6963
|
+
}
|
|
6964
|
+
}
|
|
6965
|
+
exports.DescribeAddonResponseBodyNewerVersions = DescribeAddonResponseBodyNewerVersions;
|
|
6774
6966
|
class DescribeAddonsResponseBodyComponentGroupsItems extends $tea.Model {
|
|
6775
6967
|
constructor(map) {
|
|
6776
6968
|
super(map);
|
|
@@ -9155,6 +9347,38 @@ class ListClusterChecksResponseBodyChecks extends $tea.Model {
|
|
|
9155
9347
|
}
|
|
9156
9348
|
}
|
|
9157
9349
|
exports.ListClusterChecksResponseBodyChecks = ListClusterChecksResponseBodyChecks;
|
|
9350
|
+
class ListOperationPlansResponseBodyPlans extends $tea.Model {
|
|
9351
|
+
constructor(map) {
|
|
9352
|
+
super(map);
|
|
9353
|
+
}
|
|
9354
|
+
static names() {
|
|
9355
|
+
return {
|
|
9356
|
+
clusterId: 'cluster_id',
|
|
9357
|
+
created: 'created',
|
|
9358
|
+
endTime: 'end_time',
|
|
9359
|
+
planId: 'plan_id',
|
|
9360
|
+
startTime: 'start_time',
|
|
9361
|
+
state: 'state',
|
|
9362
|
+
targetId: 'target_id',
|
|
9363
|
+
targetType: 'target_type',
|
|
9364
|
+
type: 'type',
|
|
9365
|
+
};
|
|
9366
|
+
}
|
|
9367
|
+
static types() {
|
|
9368
|
+
return {
|
|
9369
|
+
clusterId: 'string',
|
|
9370
|
+
created: 'string',
|
|
9371
|
+
endTime: 'string',
|
|
9372
|
+
planId: 'string',
|
|
9373
|
+
startTime: 'string',
|
|
9374
|
+
state: 'string',
|
|
9375
|
+
targetId: 'string',
|
|
9376
|
+
targetType: 'string',
|
|
9377
|
+
type: 'string',
|
|
9378
|
+
};
|
|
9379
|
+
}
|
|
9380
|
+
}
|
|
9381
|
+
exports.ListOperationPlansResponseBodyPlans = ListOperationPlansResponseBodyPlans;
|
|
9158
9382
|
class ListTagResourcesResponseBodyTagResourcesTagResource extends $tea.Model {
|
|
9159
9383
|
constructor(map) {
|
|
9160
9384
|
super(map);
|
|
@@ -10054,6 +10278,20 @@ class Client extends openapi_client_1.default {
|
|
|
10054
10278
|
let headers = {};
|
|
10055
10279
|
return await this.createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime);
|
|
10056
10280
|
}
|
|
10281
|
+
/**
|
|
10282
|
+
* This topic describes all parameters for creating an ACK cluster. You can create the following types of ACK clusters.
|
|
10283
|
+
* * [Create an ACK managed cluster](~~90776~~)
|
|
10284
|
+
* * [Create an ACK dedicated cluster](~~197620~~)
|
|
10285
|
+
* * [Create an ACK Serverless cluster](~~144246~~)
|
|
10286
|
+
* * [Create an ACK Edge cluster](128204)
|
|
10287
|
+
* * [Create an ACK Basic cluster that supports sandboxed containers](~~196321~~)
|
|
10288
|
+
* * [Create an ACK Pro cluster that supports sandboxed containers](140623)
|
|
10289
|
+
*
|
|
10290
|
+
* @param request CreateClusterRequest
|
|
10291
|
+
* @param headers map
|
|
10292
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
10293
|
+
* @return CreateClusterResponse
|
|
10294
|
+
*/
|
|
10057
10295
|
async createClusterWithOptions(request, headers, runtime) {
|
|
10058
10296
|
tea_util_1.default.validateModel(request);
|
|
10059
10297
|
let body = {};
|
|
@@ -10344,6 +10582,18 @@ class Client extends openapi_client_1.default {
|
|
|
10344
10582
|
});
|
|
10345
10583
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterResponse({}));
|
|
10346
10584
|
}
|
|
10585
|
+
/**
|
|
10586
|
+
* This topic describes all parameters for creating an ACK cluster. You can create the following types of ACK clusters.
|
|
10587
|
+
* * [Create an ACK managed cluster](~~90776~~)
|
|
10588
|
+
* * [Create an ACK dedicated cluster](~~197620~~)
|
|
10589
|
+
* * [Create an ACK Serverless cluster](~~144246~~)
|
|
10590
|
+
* * [Create an ACK Edge cluster](128204)
|
|
10591
|
+
* * [Create an ACK Basic cluster that supports sandboxed containers](~~196321~~)
|
|
10592
|
+
* * [Create an ACK Pro cluster that supports sandboxed containers](140623)
|
|
10593
|
+
*
|
|
10594
|
+
* @param request CreateClusterRequest
|
|
10595
|
+
* @return CreateClusterResponse
|
|
10596
|
+
*/
|
|
10347
10597
|
async createCluster(request) {
|
|
10348
10598
|
let runtime = new $Util.RuntimeOptions({});
|
|
10349
10599
|
let headers = {};
|
|
@@ -10894,6 +11144,52 @@ class Client extends openapi_client_1.default {
|
|
|
10894
11144
|
let headers = {};
|
|
10895
11145
|
return await this.descirbeWorkflowWithOptions(workflowName, headers, runtime);
|
|
10896
11146
|
}
|
|
11147
|
+
async describeAddonWithOptions(addonName, request, headers, runtime) {
|
|
11148
|
+
tea_util_1.default.validateModel(request);
|
|
11149
|
+
let query = {};
|
|
11150
|
+
if (!tea_util_1.default.isUnset(request.clusterId)) {
|
|
11151
|
+
query["cluster_id"] = request.clusterId;
|
|
11152
|
+
}
|
|
11153
|
+
if (!tea_util_1.default.isUnset(request.clusterSpec)) {
|
|
11154
|
+
query["cluster_spec"] = request.clusterSpec;
|
|
11155
|
+
}
|
|
11156
|
+
if (!tea_util_1.default.isUnset(request.clusterType)) {
|
|
11157
|
+
query["cluster_type"] = request.clusterType;
|
|
11158
|
+
}
|
|
11159
|
+
if (!tea_util_1.default.isUnset(request.clusterVersion)) {
|
|
11160
|
+
query["cluster_version"] = request.clusterVersion;
|
|
11161
|
+
}
|
|
11162
|
+
if (!tea_util_1.default.isUnset(request.profile)) {
|
|
11163
|
+
query["profile"] = request.profile;
|
|
11164
|
+
}
|
|
11165
|
+
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
11166
|
+
query["region_id"] = request.regionId;
|
|
11167
|
+
}
|
|
11168
|
+
if (!tea_util_1.default.isUnset(request.version)) {
|
|
11169
|
+
query["version"] = request.version;
|
|
11170
|
+
}
|
|
11171
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11172
|
+
headers: headers,
|
|
11173
|
+
query: openapi_util_1.default.query(query),
|
|
11174
|
+
});
|
|
11175
|
+
let params = new $OpenApi.Params({
|
|
11176
|
+
action: "DescribeAddon",
|
|
11177
|
+
version: "2015-12-15",
|
|
11178
|
+
protocol: "HTTPS",
|
|
11179
|
+
pathname: `/addons/${openapi_util_1.default.getEncodeParam(addonName)}`,
|
|
11180
|
+
method: "GET",
|
|
11181
|
+
authType: "AK",
|
|
11182
|
+
style: "ROA",
|
|
11183
|
+
reqBodyType: "json",
|
|
11184
|
+
bodyType: "json",
|
|
11185
|
+
});
|
|
11186
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeAddonResponse({}));
|
|
11187
|
+
}
|
|
11188
|
+
async describeAddon(addonName, request) {
|
|
11189
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
11190
|
+
let headers = {};
|
|
11191
|
+
return await this.describeAddonWithOptions(addonName, request, headers, runtime);
|
|
11192
|
+
}
|
|
10897
11193
|
async describeAddonsWithOptions(request, headers, runtime) {
|
|
10898
11194
|
tea_util_1.default.validateModel(request);
|
|
10899
11195
|
let query = {};
|
|
@@ -11327,6 +11623,15 @@ class Client extends openapi_client_1.default {
|
|
|
11327
11623
|
let headers = {};
|
|
11328
11624
|
return await this.describeClusterTasksWithOptions(clusterId, request, headers, runtime);
|
|
11329
11625
|
}
|
|
11626
|
+
/**
|
|
11627
|
+
* **
|
|
11628
|
+
* ****The default validity period of a kubeconfig file is 3 years. Two months before a kubeconfig file expires, you can renew it in the Container Service for Kubernetes (ACK) console or by calling API operations. After a kubeconfig file is renewed, the secret is valid for 3 years. The previous kubeconfig secret remains valid until expiration. We recommend that you renew your kubeconfig file at the earliest opportunity.
|
|
11629
|
+
*
|
|
11630
|
+
* @param request DescribeClusterUserKubeconfigRequest
|
|
11631
|
+
* @param headers map
|
|
11632
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
11633
|
+
* @return DescribeClusterUserKubeconfigResponse
|
|
11634
|
+
*/
|
|
11330
11635
|
async describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime) {
|
|
11331
11636
|
tea_util_1.default.validateModel(request);
|
|
11332
11637
|
let query = {};
|
|
@@ -11353,6 +11658,13 @@ class Client extends openapi_client_1.default {
|
|
|
11353
11658
|
});
|
|
11354
11659
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterUserKubeconfigResponse({}));
|
|
11355
11660
|
}
|
|
11661
|
+
/**
|
|
11662
|
+
* **
|
|
11663
|
+
* ****The default validity period of a kubeconfig file is 3 years. Two months before a kubeconfig file expires, you can renew it in the Container Service for Kubernetes (ACK) console or by calling API operations. After a kubeconfig file is renewed, the secret is valid for 3 years. The previous kubeconfig secret remains valid until expiration. We recommend that you renew your kubeconfig file at the earliest opportunity.
|
|
11664
|
+
*
|
|
11665
|
+
* @param request DescribeClusterUserKubeconfigRequest
|
|
11666
|
+
* @return DescribeClusterUserKubeconfigResponse
|
|
11667
|
+
*/
|
|
11356
11668
|
async describeClusterUserKubeconfig(ClusterId, request) {
|
|
11357
11669
|
let runtime = new $Util.RuntimeOptions({});
|
|
11358
11670
|
let headers = {};
|
|
@@ -12512,6 +12824,37 @@ class Client extends openapi_client_1.default {
|
|
|
12512
12824
|
let headers = {};
|
|
12513
12825
|
return await this.listClusterChecksWithOptions(clusterId, request, headers, runtime);
|
|
12514
12826
|
}
|
|
12827
|
+
async listOperationPlansWithOptions(request, headers, runtime) {
|
|
12828
|
+
tea_util_1.default.validateModel(request);
|
|
12829
|
+
let query = {};
|
|
12830
|
+
if (!tea_util_1.default.isUnset(request.clusterId)) {
|
|
12831
|
+
query["cluster_id"] = request.clusterId;
|
|
12832
|
+
}
|
|
12833
|
+
if (!tea_util_1.default.isUnset(request.type)) {
|
|
12834
|
+
query["type"] = request.type;
|
|
12835
|
+
}
|
|
12836
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
12837
|
+
headers: headers,
|
|
12838
|
+
query: openapi_util_1.default.query(query),
|
|
12839
|
+
});
|
|
12840
|
+
let params = new $OpenApi.Params({
|
|
12841
|
+
action: "ListOperationPlans",
|
|
12842
|
+
version: "2015-12-15",
|
|
12843
|
+
protocol: "HTTPS",
|
|
12844
|
+
pathname: `/operation/plans`,
|
|
12845
|
+
method: "GET",
|
|
12846
|
+
authType: "AK",
|
|
12847
|
+
style: "ROA",
|
|
12848
|
+
reqBodyType: "json",
|
|
12849
|
+
bodyType: "json",
|
|
12850
|
+
});
|
|
12851
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListOperationPlansResponse({}));
|
|
12852
|
+
}
|
|
12853
|
+
async listOperationPlans(request) {
|
|
12854
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
12855
|
+
let headers = {};
|
|
12856
|
+
return await this.listOperationPlansWithOptions(request, headers, runtime);
|
|
12857
|
+
}
|
|
12515
12858
|
async listTagResourcesWithOptions(tmpReq, headers, runtime) {
|
|
12516
12859
|
tea_util_1.default.validateModel(tmpReq);
|
|
12517
12860
|
let request = new ListTagResourcesShrinkRequest({});
|
|
@@ -12734,6 +13077,9 @@ class Client extends openapi_client_1.default {
|
|
|
12734
13077
|
if (!tea_util_1.default.isUnset(request.autoScaling)) {
|
|
12735
13078
|
body["auto_scaling"] = request.autoScaling;
|
|
12736
13079
|
}
|
|
13080
|
+
if (!tea_util_1.default.isUnset(request.concurrency)) {
|
|
13081
|
+
body["concurrency"] = request.concurrency;
|
|
13082
|
+
}
|
|
12737
13083
|
if (!tea_util_1.default.isUnset(request.kubernetesConfig)) {
|
|
12738
13084
|
body["kubernetes_config"] = request.kubernetesConfig;
|
|
12739
13085
|
}
|
|
@@ -12799,7 +13145,7 @@ class Client extends openapi_client_1.default {
|
|
|
12799
13145
|
return await this.modifyClusterTagsWithOptions(ClusterId, request, headers, runtime);
|
|
12800
13146
|
}
|
|
12801
13147
|
/**
|
|
12802
|
-
*
|
|
13148
|
+
* > Container Service for Kubernetes (ACK) allows you to modify the kubelet configuration of nodes in a node pool. After you modify the kubelet configuration, the new configuration immediately takes effect on existing nodes in the node pool and is automatically applied to newly added nodes.
|
|
12803
13149
|
*
|
|
12804
13150
|
* @param request ModifyNodePoolNodeConfigRequest
|
|
12805
13151
|
* @param headers map
|
|
@@ -12833,7 +13179,7 @@ class Client extends openapi_client_1.default {
|
|
|
12833
13179
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyNodePoolNodeConfigResponse({}));
|
|
12834
13180
|
}
|
|
12835
13181
|
/**
|
|
12836
|
-
*
|
|
13182
|
+
* > Container Service for Kubernetes (ACK) allows you to modify the kubelet configuration of nodes in a node pool. After you modify the kubelet configuration, the new configuration immediately takes effect on existing nodes in the node pool and is automatically applied to newly added nodes.
|
|
12837
13183
|
*
|
|
12838
13184
|
* @param request ModifyNodePoolNodeConfigRequest
|
|
12839
13185
|
* @return ModifyNodePoolNodeConfigResponse
|
|
@@ -13071,6 +13417,9 @@ class Client extends openapi_client_1.default {
|
|
|
13071
13417
|
request.nodesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.nodes, "nodes", "json");
|
|
13072
13418
|
}
|
|
13073
13419
|
let query = {};
|
|
13420
|
+
if (!tea_util_1.default.isUnset(request.concurrency)) {
|
|
13421
|
+
query["concurrency"] = request.concurrency;
|
|
13422
|
+
}
|
|
13074
13423
|
if (!tea_util_1.default.isUnset(request.drainNode)) {
|
|
13075
13424
|
query["drain_node"] = request.drainNode;
|
|
13076
13425
|
}
|
|
@@ -13822,7 +14171,7 @@ class Client extends openapi_client_1.default {
|
|
|
13822
14171
|
authType: "AK",
|
|
13823
14172
|
style: "ROA",
|
|
13824
14173
|
reqBodyType: "json",
|
|
13825
|
-
bodyType: "
|
|
14174
|
+
bodyType: "json",
|
|
13826
14175
|
});
|
|
13827
14176
|
return $tea.cast(await this.callApi(params, req, runtime), new UpdateControlPlaneLogResponse({}));
|
|
13828
14177
|
}
|