@alicloud/cs20151215 3.0.24 → 3.0.26
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 +140 -78
- package/dist/client.js +181 -84
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +226 -101
package/dist/client.js
CHANGED
|
@@ -67,6 +67,58 @@ class DataDisk extends $tea.Model {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
exports.DataDisk = DataDisk;
|
|
70
|
+
class KubeletConfig extends $tea.Model {
|
|
71
|
+
constructor(map) {
|
|
72
|
+
super(map);
|
|
73
|
+
}
|
|
74
|
+
static names() {
|
|
75
|
+
return {
|
|
76
|
+
allowedUnsafeSysctls: 'allowedUnsafeSysctls',
|
|
77
|
+
containerLogMaxFiles: 'containerLogMaxFiles',
|
|
78
|
+
containerLogMaxSize: 'containerLogMaxSize',
|
|
79
|
+
cpuManagerPolicy: 'cpuManagerPolicy',
|
|
80
|
+
eventBurst: 'eventBurst',
|
|
81
|
+
eventRecordQPS: 'eventRecordQPS',
|
|
82
|
+
evictionHard: 'evictionHard',
|
|
83
|
+
evictionSoft: 'evictionSoft',
|
|
84
|
+
evictionSoftGracePeriod: 'evictionSoftGracePeriod',
|
|
85
|
+
featureGates: 'featureGates',
|
|
86
|
+
kubeAPIBurst: 'kubeAPIBurst',
|
|
87
|
+
kubeAPIQPS: 'kubeAPIQPS',
|
|
88
|
+
kubeReserved: 'kubeReserved',
|
|
89
|
+
maxPods: 'maxPods',
|
|
90
|
+
readOnlyPort: 'readOnlyPort',
|
|
91
|
+
registryBurst: 'registryBurst',
|
|
92
|
+
registryPullQPS: 'registryPullQPS',
|
|
93
|
+
serializeImagePulls: 'serializeImagePulls',
|
|
94
|
+
systemReserved: 'systemReserved',
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
static types() {
|
|
98
|
+
return {
|
|
99
|
+
allowedUnsafeSysctls: { 'type': 'array', 'itemType': 'string' },
|
|
100
|
+
containerLogMaxFiles: 'number',
|
|
101
|
+
containerLogMaxSize: 'string',
|
|
102
|
+
cpuManagerPolicy: 'string',
|
|
103
|
+
eventBurst: 'number',
|
|
104
|
+
eventRecordQPS: 'number',
|
|
105
|
+
evictionHard: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
106
|
+
evictionSoft: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
107
|
+
evictionSoftGracePeriod: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
108
|
+
featureGates: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
109
|
+
kubeAPIBurst: 'number',
|
|
110
|
+
kubeAPIQPS: 'number',
|
|
111
|
+
kubeReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
112
|
+
maxPods: 'number',
|
|
113
|
+
readOnlyPort: 'number',
|
|
114
|
+
registryBurst: 'number',
|
|
115
|
+
registryPullQPS: 'number',
|
|
116
|
+
serializeImagePulls: 'boolean',
|
|
117
|
+
systemReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.KubeletConfig = KubeletConfig;
|
|
70
122
|
class MaintenanceWindow extends $tea.Model {
|
|
71
123
|
constructor(map) {
|
|
72
124
|
super(map);
|
|
@@ -559,6 +611,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
559
611
|
}
|
|
560
612
|
static names() {
|
|
561
613
|
return {
|
|
614
|
+
accessControlList: 'access_control_list',
|
|
562
615
|
addons: 'addons',
|
|
563
616
|
apiAudiences: 'api_audiences',
|
|
564
617
|
chargeType: 'charge_type',
|
|
@@ -652,6 +705,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
652
705
|
}
|
|
653
706
|
static types() {
|
|
654
707
|
return {
|
|
708
|
+
accessControlList: { 'type': 'array', 'itemType': 'string' },
|
|
655
709
|
addons: { 'type': 'array', 'itemType': Addon },
|
|
656
710
|
apiAudiences: 'string',
|
|
657
711
|
chargeType: 'string',
|
|
@@ -826,11 +880,13 @@ class CreateClusterNodePoolResponseBody extends $tea.Model {
|
|
|
826
880
|
static names() {
|
|
827
881
|
return {
|
|
828
882
|
nodepoolId: 'nodepool_id',
|
|
883
|
+
taskId: 'task_id',
|
|
829
884
|
};
|
|
830
885
|
}
|
|
831
886
|
static types() {
|
|
832
887
|
return {
|
|
833
888
|
nodepoolId: 'string',
|
|
889
|
+
taskId: 'string',
|
|
834
890
|
};
|
|
835
891
|
}
|
|
836
892
|
}
|
|
@@ -2047,6 +2103,7 @@ class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
2047
2103
|
kubernetesConfig: 'kubernetes_config',
|
|
2048
2104
|
management: 'management',
|
|
2049
2105
|
maxNodes: 'max_nodes',
|
|
2106
|
+
nodeConfig: 'node_config',
|
|
2050
2107
|
nodepoolInfo: 'nodepool_info',
|
|
2051
2108
|
scalingGroup: 'scaling_group',
|
|
2052
2109
|
status: 'status',
|
|
@@ -2061,6 +2118,7 @@ class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
2061
2118
|
kubernetesConfig: DescribeClusterNodePoolDetailResponseBodyKubernetesConfig,
|
|
2062
2119
|
management: DescribeClusterNodePoolDetailResponseBodyManagement,
|
|
2063
2120
|
maxNodes: 'number',
|
|
2121
|
+
nodeConfig: DescribeClusterNodePoolDetailResponseBodyNodeConfig,
|
|
2064
2122
|
nodepoolInfo: DescribeClusterNodePoolDetailResponseBodyNodepoolInfo,
|
|
2065
2123
|
scalingGroup: DescribeClusterNodePoolDetailResponseBodyScalingGroup,
|
|
2066
2124
|
status: DescribeClusterNodePoolDetailResponseBodyStatus,
|
|
@@ -3885,8 +3943,10 @@ class ModifyClusterRequest extends $tea.Model {
|
|
|
3885
3943
|
}
|
|
3886
3944
|
static names() {
|
|
3887
3945
|
return {
|
|
3946
|
+
accessControlList: 'access_control_list',
|
|
3888
3947
|
apiServerEip: 'api_server_eip',
|
|
3889
3948
|
apiServerEipId: 'api_server_eip_id',
|
|
3949
|
+
clusterName: 'cluster_name',
|
|
3890
3950
|
deletionProtection: 'deletion_protection',
|
|
3891
3951
|
enableRrsa: 'enable_rrsa',
|
|
3892
3952
|
ingressDomainRebinding: 'ingress_domain_rebinding',
|
|
@@ -3898,11 +3958,13 @@ class ModifyClusterRequest extends $tea.Model {
|
|
|
3898
3958
|
}
|
|
3899
3959
|
static types() {
|
|
3900
3960
|
return {
|
|
3961
|
+
accessControlList: { 'type': 'array', 'itemType': 'string' },
|
|
3901
3962
|
apiServerEip: 'boolean',
|
|
3902
3963
|
apiServerEipId: 'string',
|
|
3964
|
+
clusterName: 'string',
|
|
3903
3965
|
deletionProtection: 'boolean',
|
|
3904
3966
|
enableRrsa: 'boolean',
|
|
3905
|
-
ingressDomainRebinding: '
|
|
3967
|
+
ingressDomainRebinding: 'boolean',
|
|
3906
3968
|
ingressLoadbalancerId: 'string',
|
|
3907
3969
|
instanceDeletionProtection: 'boolean',
|
|
3908
3970
|
maintenanceWindow: MaintenanceWindow,
|
|
@@ -4131,7 +4193,7 @@ class ModifyNodePoolNodeConfigRequest extends $tea.Model {
|
|
|
4131
4193
|
}
|
|
4132
4194
|
static types() {
|
|
4133
4195
|
return {
|
|
4134
|
-
kubeletConfig:
|
|
4196
|
+
kubeletConfig: KubeletConfig,
|
|
4135
4197
|
rollingPolicy: ModifyNodePoolNodeConfigRequestRollingPolicy,
|
|
4136
4198
|
};
|
|
4137
4199
|
}
|
|
@@ -6405,6 +6467,22 @@ class DescribeClusterNodePoolDetailResponseBodyManagement extends $tea.Model {
|
|
|
6405
6467
|
}
|
|
6406
6468
|
}
|
|
6407
6469
|
exports.DescribeClusterNodePoolDetailResponseBodyManagement = DescribeClusterNodePoolDetailResponseBodyManagement;
|
|
6470
|
+
class DescribeClusterNodePoolDetailResponseBodyNodeConfig extends $tea.Model {
|
|
6471
|
+
constructor(map) {
|
|
6472
|
+
super(map);
|
|
6473
|
+
}
|
|
6474
|
+
static names() {
|
|
6475
|
+
return {
|
|
6476
|
+
kubeletConfiguration: 'kubelet_configuration',
|
|
6477
|
+
};
|
|
6478
|
+
}
|
|
6479
|
+
static types() {
|
|
6480
|
+
return {
|
|
6481
|
+
kubeletConfiguration: KubeletConfig,
|
|
6482
|
+
};
|
|
6483
|
+
}
|
|
6484
|
+
}
|
|
6485
|
+
exports.DescribeClusterNodePoolDetailResponseBodyNodeConfig = DescribeClusterNodePoolDetailResponseBodyNodeConfig;
|
|
6408
6486
|
class DescribeClusterNodePoolDetailResponseBodyNodepoolInfo extends $tea.Model {
|
|
6409
6487
|
constructor(map) {
|
|
6410
6488
|
super(map);
|
|
@@ -6725,6 +6803,22 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsManagement extends $tea.Model
|
|
|
6725
6803
|
}
|
|
6726
6804
|
}
|
|
6727
6805
|
exports.DescribeClusterNodePoolsResponseBodyNodepoolsManagement = DescribeClusterNodePoolsResponseBodyNodepoolsManagement;
|
|
6806
|
+
class DescribeClusterNodePoolsResponseBodyNodepoolsNodeConfig extends $tea.Model {
|
|
6807
|
+
constructor(map) {
|
|
6808
|
+
super(map);
|
|
6809
|
+
}
|
|
6810
|
+
static names() {
|
|
6811
|
+
return {
|
|
6812
|
+
kubeletConfiguration: 'kubelet_configuration',
|
|
6813
|
+
};
|
|
6814
|
+
}
|
|
6815
|
+
static types() {
|
|
6816
|
+
return {
|
|
6817
|
+
kubeletConfiguration: KubeletConfig,
|
|
6818
|
+
};
|
|
6819
|
+
}
|
|
6820
|
+
}
|
|
6821
|
+
exports.DescribeClusterNodePoolsResponseBodyNodepoolsNodeConfig = DescribeClusterNodePoolsResponseBodyNodepoolsNodeConfig;
|
|
6728
6822
|
class DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo extends $tea.Model {
|
|
6729
6823
|
constructor(map) {
|
|
6730
6824
|
super(map);
|
|
@@ -6933,6 +7027,7 @@ class DescribeClusterNodePoolsResponseBodyNodepools extends $tea.Model {
|
|
|
6933
7027
|
kubernetesConfig: 'kubernetes_config',
|
|
6934
7028
|
management: 'management',
|
|
6935
7029
|
maxNodes: 'max_nodes',
|
|
7030
|
+
nodeConfig: 'node_config',
|
|
6936
7031
|
nodepoolInfo: 'nodepool_info',
|
|
6937
7032
|
scalingGroup: 'scaling_group',
|
|
6938
7033
|
status: 'status',
|
|
@@ -6947,6 +7042,7 @@ class DescribeClusterNodePoolsResponseBodyNodepools extends $tea.Model {
|
|
|
6947
7042
|
kubernetesConfig: DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig,
|
|
6948
7043
|
management: DescribeClusterNodePoolsResponseBodyNodepoolsManagement,
|
|
6949
7044
|
maxNodes: 'number',
|
|
7045
|
+
nodeConfig: DescribeClusterNodePoolsResponseBodyNodepoolsNodeConfig,
|
|
6950
7046
|
nodepoolInfo: DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo,
|
|
6951
7047
|
scalingGroup: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup,
|
|
6952
7048
|
status: DescribeClusterNodePoolsResponseBodyNodepoolsStatus,
|
|
@@ -7029,6 +7125,26 @@ class DescribeClusterNodesResponseBodyPage extends $tea.Model {
|
|
|
7029
7125
|
}
|
|
7030
7126
|
}
|
|
7031
7127
|
exports.DescribeClusterNodesResponseBodyPage = DescribeClusterNodesResponseBodyPage;
|
|
7128
|
+
class DescribeClusterResourcesResponseBodyDependencies extends $tea.Model {
|
|
7129
|
+
constructor(map) {
|
|
7130
|
+
super(map);
|
|
7131
|
+
}
|
|
7132
|
+
static names() {
|
|
7133
|
+
return {
|
|
7134
|
+
clusterId: 'cluster_id',
|
|
7135
|
+
resourceType: 'resource_type',
|
|
7136
|
+
instanceId: 'instance_id',
|
|
7137
|
+
};
|
|
7138
|
+
}
|
|
7139
|
+
static types() {
|
|
7140
|
+
return {
|
|
7141
|
+
clusterId: 'string',
|
|
7142
|
+
resourceType: 'string',
|
|
7143
|
+
instanceId: 'string',
|
|
7144
|
+
};
|
|
7145
|
+
}
|
|
7146
|
+
}
|
|
7147
|
+
exports.DescribeClusterResourcesResponseBodyDependencies = DescribeClusterResourcesResponseBodyDependencies;
|
|
7032
7148
|
class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
7033
7149
|
constructor(map) {
|
|
7034
7150
|
super(map);
|
|
@@ -7042,6 +7158,7 @@ class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
7042
7158
|
resourceType: 'resource_type',
|
|
7043
7159
|
state: 'state',
|
|
7044
7160
|
autoCreate: 'auto_create',
|
|
7161
|
+
dependencies: 'dependencies',
|
|
7045
7162
|
};
|
|
7046
7163
|
}
|
|
7047
7164
|
static types() {
|
|
@@ -7053,6 +7170,7 @@ class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
7053
7170
|
resourceType: 'string',
|
|
7054
7171
|
state: 'string',
|
|
7055
7172
|
autoCreate: 'number',
|
|
7173
|
+
dependencies: DescribeClusterResourcesResponseBodyDependencies,
|
|
7056
7174
|
};
|
|
7057
7175
|
}
|
|
7058
7176
|
}
|
|
@@ -8537,46 +8655,6 @@ class ModifyClusterNodePoolRequestTeeConfig extends $tea.Model {
|
|
|
8537
8655
|
}
|
|
8538
8656
|
}
|
|
8539
8657
|
exports.ModifyClusterNodePoolRequestTeeConfig = ModifyClusterNodePoolRequestTeeConfig;
|
|
8540
|
-
class ModifyNodePoolNodeConfigRequestKubeletConfig extends $tea.Model {
|
|
8541
|
-
constructor(map) {
|
|
8542
|
-
super(map);
|
|
8543
|
-
}
|
|
8544
|
-
static names() {
|
|
8545
|
-
return {
|
|
8546
|
-
cpuManagerPolicy: 'cpuManagerPolicy',
|
|
8547
|
-
eventBurst: 'eventBurst',
|
|
8548
|
-
eventRecordQPS: 'eventRecordQPS',
|
|
8549
|
-
evictionHard: 'evictionHard',
|
|
8550
|
-
evictionSoft: 'evictionSoft',
|
|
8551
|
-
evictionSoftGracePeriod: 'evictionSoftGracePeriod',
|
|
8552
|
-
kubeAPIBurst: 'kubeAPIBurst',
|
|
8553
|
-
kubeAPIQPS: 'kubeAPIQPS',
|
|
8554
|
-
kubeReserved: 'kubeReserved',
|
|
8555
|
-
registryBurst: 'registryBurst',
|
|
8556
|
-
registryPullQPS: 'registryPullQPS',
|
|
8557
|
-
serializeImagePulls: 'serializeImagePulls',
|
|
8558
|
-
systemReserved: 'systemReserved',
|
|
8559
|
-
};
|
|
8560
|
-
}
|
|
8561
|
-
static types() {
|
|
8562
|
-
return {
|
|
8563
|
-
cpuManagerPolicy: 'string',
|
|
8564
|
-
eventBurst: 'number',
|
|
8565
|
-
eventRecordQPS: 'number',
|
|
8566
|
-
evictionHard: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
8567
|
-
evictionSoft: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
8568
|
-
evictionSoftGracePeriod: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
8569
|
-
kubeAPIBurst: 'number',
|
|
8570
|
-
kubeAPIQPS: 'number',
|
|
8571
|
-
kubeReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
8572
|
-
registryBurst: 'number',
|
|
8573
|
-
registryPullQPS: 'number',
|
|
8574
|
-
serializeImagePulls: 'boolean',
|
|
8575
|
-
systemReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
8576
|
-
};
|
|
8577
|
-
}
|
|
8578
|
-
}
|
|
8579
|
-
exports.ModifyNodePoolNodeConfigRequestKubeletConfig = ModifyNodePoolNodeConfigRequestKubeletConfig;
|
|
8580
8658
|
class ModifyNodePoolNodeConfigRequestRollingPolicy extends $tea.Model {
|
|
8581
8659
|
constructor(map) {
|
|
8582
8660
|
super(map);
|
|
@@ -8677,11 +8755,13 @@ class UnInstallClusterAddonsRequestAddons extends $tea.Model {
|
|
|
8677
8755
|
}
|
|
8678
8756
|
static names() {
|
|
8679
8757
|
return {
|
|
8758
|
+
cleanupCloudResources: 'cleanup_cloud_resources',
|
|
8680
8759
|
name: 'name',
|
|
8681
8760
|
};
|
|
8682
8761
|
}
|
|
8683
8762
|
static types() {
|
|
8684
8763
|
return {
|
|
8764
|
+
cleanupCloudResources: 'boolean',
|
|
8685
8765
|
name: 'string',
|
|
8686
8766
|
};
|
|
8687
8767
|
}
|
|
@@ -9047,6 +9127,9 @@ class Client extends openapi_client_1.default {
|
|
|
9047
9127
|
async createClusterWithOptions(request, headers, runtime) {
|
|
9048
9128
|
tea_util_1.default.validateModel(request);
|
|
9049
9129
|
let body = {};
|
|
9130
|
+
if (!tea_util_1.default.isUnset(request.accessControlList)) {
|
|
9131
|
+
body["access_control_list"] = request.accessControlList;
|
|
9132
|
+
}
|
|
9050
9133
|
if (!tea_util_1.default.isUnset(request.addons)) {
|
|
9051
9134
|
body["addons"] = request.addons;
|
|
9052
9135
|
}
|
|
@@ -9652,10 +9735,7 @@ class Client extends openapi_client_1.default {
|
|
|
9652
9735
|
}
|
|
9653
9736
|
/**
|
|
9654
9737
|
* >
|
|
9655
|
-
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
|
|
9656
|
-
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
9657
|
-
* * Nodes remain in the unschedulable state when they are being removed.
|
|
9658
|
-
* * You can remove only worker nodes by calling this operation.
|
|
9738
|
+
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours. - The operation may have unexpected risks. Back up the data before you perform this operation. - When the system removes a node, it sets the status of the node to Unschedulable. - The system removes only worker nodes. It does not remove master nodes.
|
|
9659
9739
|
*
|
|
9660
9740
|
* @param request DeleteClusterNodesRequest
|
|
9661
9741
|
* @param headers map
|
|
@@ -9693,10 +9773,7 @@ class Client extends openapi_client_1.default {
|
|
|
9693
9773
|
}
|
|
9694
9774
|
/**
|
|
9695
9775
|
* >
|
|
9696
|
-
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
|
|
9697
|
-
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
9698
|
-
* * Nodes remain in the unschedulable state when they are being removed.
|
|
9699
|
-
* * You can remove only worker nodes by calling this operation.
|
|
9776
|
+
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours. - The operation may have unexpected risks. Back up the data before you perform this operation. - When the system removes a node, it sets the status of the node to Unschedulable. - The system removes only worker nodes. It does not remove master nodes.
|
|
9700
9777
|
*
|
|
9701
9778
|
* @param request DeleteClusterNodesRequest
|
|
9702
9779
|
* @return DeleteClusterNodesResponse
|
|
@@ -10880,7 +10957,8 @@ class Client extends openapi_client_1.default {
|
|
|
10880
10957
|
return await this.describePolicyInstancesStatusWithOptions(clusterId, headers, runtime);
|
|
10881
10958
|
}
|
|
10882
10959
|
/**
|
|
10883
|
-
*
|
|
10960
|
+
* **
|
|
10961
|
+
* ****Only Alibaba Cloud accounts can call this API operation.
|
|
10884
10962
|
*
|
|
10885
10963
|
* @param request DescribeSubaccountK8sClusterUserConfigRequest
|
|
10886
10964
|
* @param headers map
|
|
@@ -10914,7 +10992,8 @@ class Client extends openapi_client_1.default {
|
|
|
10914
10992
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeSubaccountK8sClusterUserConfigResponse({}));
|
|
10915
10993
|
}
|
|
10916
10994
|
/**
|
|
10917
|
-
*
|
|
10995
|
+
* **
|
|
10996
|
+
* ****Only Alibaba Cloud accounts can call this API operation.
|
|
10918
10997
|
*
|
|
10919
10998
|
* @param request DescribeSubaccountK8sClusterUserConfigRequest
|
|
10920
10999
|
* @return DescribeSubaccountK8sClusterUserConfigResponse
|
|
@@ -11261,10 +11340,9 @@ class Client extends openapi_client_1.default {
|
|
|
11261
11340
|
return await this.getUpgradeStatusWithOptions(ClusterId, headers, runtime);
|
|
11262
11341
|
}
|
|
11263
11342
|
/**
|
|
11264
|
-
*
|
|
11265
|
-
* * Make sure that you have granted the
|
|
11266
|
-
*
|
|
11267
|
-
* * If you call this operation as a RAM user, make sure that this RAM user has the permissions to grant other RAM users the permissions to manage ACK clusters. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` errors will be returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](~~119035~~).
|
|
11343
|
+
* ****
|
|
11344
|
+
* * Make sure that you have granted the RAM user at least read-only permissions on the desired ACK clusters in the RAM console. Otherwise, the `ErrorRamPolicyConfig` error code is returned. For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](~~86485~~).
|
|
11345
|
+
* * If you use a RAM user to call this API operation, make sure that the RAM user is authorized to modify the permissions of other RAM users on the desired ACK clusters. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](~~119035~~).
|
|
11268
11346
|
* * This operation overwrites the permissions that have been granted to the specified RAM user. When you call this operation, make sure that the required permissions are included.
|
|
11269
11347
|
*
|
|
11270
11348
|
* @param request GrantPermissionsRequest
|
|
@@ -11292,10 +11370,9 @@ class Client extends openapi_client_1.default {
|
|
|
11292
11370
|
return $tea.cast(await this.callApi(params, req, runtime), new GrantPermissionsResponse({}));
|
|
11293
11371
|
}
|
|
11294
11372
|
/**
|
|
11295
|
-
*
|
|
11296
|
-
* * Make sure that you have granted the
|
|
11297
|
-
*
|
|
11298
|
-
* * If you call this operation as a RAM user, make sure that this RAM user has the permissions to grant other RAM users the permissions to manage ACK clusters. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` errors will be returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](~~119035~~).
|
|
11373
|
+
* ****
|
|
11374
|
+
* * Make sure that you have granted the RAM user at least read-only permissions on the desired ACK clusters in the RAM console. Otherwise, the `ErrorRamPolicyConfig` error code is returned. For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](~~86485~~).
|
|
11375
|
+
* * If you use a RAM user to call this API operation, make sure that the RAM user is authorized to modify the permissions of other RAM users on the desired ACK clusters. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](~~119035~~).
|
|
11299
11376
|
* * This operation overwrites the permissions that have been granted to the specified RAM user. When you call this operation, make sure that the required permissions are included.
|
|
11300
11377
|
*
|
|
11301
11378
|
* @param request GrantPermissionsRequest
|
|
@@ -11412,12 +11489,18 @@ class Client extends openapi_client_1.default {
|
|
|
11412
11489
|
async modifyClusterWithOptions(ClusterId, request, headers, runtime) {
|
|
11413
11490
|
tea_util_1.default.validateModel(request);
|
|
11414
11491
|
let body = {};
|
|
11492
|
+
if (!tea_util_1.default.isUnset(request.accessControlList)) {
|
|
11493
|
+
body["access_control_list"] = request.accessControlList;
|
|
11494
|
+
}
|
|
11415
11495
|
if (!tea_util_1.default.isUnset(request.apiServerEip)) {
|
|
11416
11496
|
body["api_server_eip"] = request.apiServerEip;
|
|
11417
11497
|
}
|
|
11418
11498
|
if (!tea_util_1.default.isUnset(request.apiServerEipId)) {
|
|
11419
11499
|
body["api_server_eip_id"] = request.apiServerEipId;
|
|
11420
11500
|
}
|
|
11501
|
+
if (!tea_util_1.default.isUnset(request.clusterName)) {
|
|
11502
|
+
body["cluster_name"] = request.clusterName;
|
|
11503
|
+
}
|
|
11421
11504
|
if (!tea_util_1.default.isUnset(request.deletionProtection)) {
|
|
11422
11505
|
body["deletion_protection"] = request.deletionProtection;
|
|
11423
11506
|
}
|
|
@@ -11465,7 +11548,7 @@ class Client extends openapi_client_1.default {
|
|
|
11465
11548
|
* You can use this API operation to modify the components in a Container Service for Kubernetes (ACK) cluster or the control plane components in an ACK Pro cluster.
|
|
11466
11549
|
* * To query the customizable parameters of a component, call the `DescribeClusterAddonMetadata` API operation. For more information, see [Query the metadata of a specified component version](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/query).
|
|
11467
11550
|
* * For more information about the customizable parameters of control plane components in ACK Pro clusters, see [Customize the parameters of control plane components in ACK Pro clusters](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/customize-control-plane-parameters-for-a-professional-kubernetes-cluster).
|
|
11468
|
-
* After you call this operation, the component may be redeployed and restarted. We recommend that you
|
|
11551
|
+
* After you call this operation, the component may be redeployed and restarted. We recommend that you assess the impact before you call this operation.
|
|
11469
11552
|
*
|
|
11470
11553
|
* @param request ModifyClusterAddonRequest
|
|
11471
11554
|
* @param headers map
|
|
@@ -11499,7 +11582,7 @@ class Client extends openapi_client_1.default {
|
|
|
11499
11582
|
* You can use this API operation to modify the components in a Container Service for Kubernetes (ACK) cluster or the control plane components in an ACK Pro cluster.
|
|
11500
11583
|
* * To query the customizable parameters of a component, call the `DescribeClusterAddonMetadata` API operation. For more information, see [Query the metadata of a specified component version](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/query).
|
|
11501
11584
|
* * For more information about the customizable parameters of control plane components in ACK Pro clusters, see [Customize the parameters of control plane components in ACK Pro clusters](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/customize-control-plane-parameters-for-a-professional-kubernetes-cluster).
|
|
11502
|
-
* After you call this operation, the component may be redeployed and restarted. We recommend that you
|
|
11585
|
+
* After you call this operation, the component may be redeployed and restarted. We recommend that you assess the impact before you call this operation.
|
|
11503
11586
|
*
|
|
11504
11587
|
* @param request ModifyClusterAddonRequest
|
|
11505
11588
|
* @return ModifyClusterAddonResponse
|
|
@@ -11607,6 +11690,14 @@ class Client extends openapi_client_1.default {
|
|
|
11607
11690
|
let headers = {};
|
|
11608
11691
|
return await this.modifyClusterTagsWithOptions(ClusterId, request, headers, runtime);
|
|
11609
11692
|
}
|
|
11693
|
+
/**
|
|
11694
|
+
* This operation progressively modifies the kubelet configuration of the nodes in a node pool and restarts the kubelet process, which may affect your businesses.
|
|
11695
|
+
*
|
|
11696
|
+
* @param request ModifyNodePoolNodeConfigRequest
|
|
11697
|
+
* @param headers map
|
|
11698
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
11699
|
+
* @return ModifyNodePoolNodeConfigResponse
|
|
11700
|
+
*/
|
|
11610
11701
|
async modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
|
|
11611
11702
|
tea_util_1.default.validateModel(request);
|
|
11612
11703
|
let body = {};
|
|
@@ -11633,6 +11724,12 @@ class Client extends openapi_client_1.default {
|
|
|
11633
11724
|
});
|
|
11634
11725
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyNodePoolNodeConfigResponse({}));
|
|
11635
11726
|
}
|
|
11727
|
+
/**
|
|
11728
|
+
* This operation progressively modifies the kubelet configuration of the nodes in a node pool and restarts the kubelet process, which may affect your businesses.
|
|
11729
|
+
*
|
|
11730
|
+
* @param request ModifyNodePoolNodeConfigRequest
|
|
11731
|
+
* @return ModifyNodePoolNodeConfigResponse
|
|
11732
|
+
*/
|
|
11636
11733
|
async modifyNodePoolNodeConfig(ClusterId, NodepoolId, request) {
|
|
11637
11734
|
let runtime = new $Util.RuntimeOptions({});
|
|
11638
11735
|
let headers = {};
|
|
@@ -11676,7 +11773,8 @@ class Client extends openapi_client_1.default {
|
|
|
11676
11773
|
return await this.modifyPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
11677
11774
|
}
|
|
11678
11775
|
/**
|
|
11679
|
-
* You can activate ACK
|
|
11776
|
+
* * You can activate ACK by using Alibaba Cloud accounts.
|
|
11777
|
+
* * To activate ACK by using RAM users, you need to grant the AdministratorAccess permission to the RAM users.
|
|
11680
11778
|
*
|
|
11681
11779
|
* @param request OpenAckServiceRequest
|
|
11682
11780
|
* @param headers map
|
|
@@ -11707,7 +11805,8 @@ class Client extends openapi_client_1.default {
|
|
|
11707
11805
|
return $tea.cast(await this.callApi(params, req, runtime), new OpenAckServiceResponse({}));
|
|
11708
11806
|
}
|
|
11709
11807
|
/**
|
|
11710
|
-
* You can activate ACK
|
|
11808
|
+
* * You can activate ACK by using Alibaba Cloud accounts.
|
|
11809
|
+
* * To activate ACK by using RAM users, you need to grant the AdministratorAccess permission to the RAM users.
|
|
11711
11810
|
*
|
|
11712
11811
|
* @param request OpenAckServiceRequest
|
|
11713
11812
|
* @return OpenAckServiceResponse
|
|
@@ -11834,11 +11933,9 @@ class Client extends openapi_client_1.default {
|
|
|
11834
11933
|
return await this.removeClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
11835
11934
|
}
|
|
11836
11935
|
/**
|
|
11837
|
-
*
|
|
11838
|
-
*
|
|
11839
|
-
* *
|
|
11840
|
-
* * Nodes remain in the Unschedulable state when they are being removed.
|
|
11841
|
-
* * You can remove only worker nodes. You cannot remove control planes.
|
|
11936
|
+
* **
|
|
11937
|
+
* ****
|
|
11938
|
+
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours. - The operation may have unexpected risks. Back up the data before you perform this operation. - When the system removes a node, it sets the status of the node to Unschedulable. - The system removes only worker nodes. It does not remove master nodes.
|
|
11842
11939
|
*
|
|
11843
11940
|
* @param tmpReq RemoveNodePoolNodesRequest
|
|
11844
11941
|
* @param headers map
|
|
@@ -11886,11 +11983,9 @@ class Client extends openapi_client_1.default {
|
|
|
11886
11983
|
return $tea.cast(await this.callApi(params, req, runtime), new RemoveNodePoolNodesResponse({}));
|
|
11887
11984
|
}
|
|
11888
11985
|
/**
|
|
11889
|
-
*
|
|
11890
|
-
*
|
|
11891
|
-
* *
|
|
11892
|
-
* * Nodes remain in the Unschedulable state when they are being removed.
|
|
11893
|
-
* * You can remove only worker nodes. You cannot remove control planes.
|
|
11986
|
+
* **
|
|
11987
|
+
* ****
|
|
11988
|
+
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours. - The operation may have unexpected risks. Back up the data before you perform this operation. - When the system removes a node, it sets the status of the node to Unschedulable. - The system removes only worker nodes. It does not remove master nodes.
|
|
11894
11989
|
*
|
|
11895
11990
|
* @param request RemoveNodePoolNodesRequest
|
|
11896
11991
|
* @return RemoveNodePoolNodesResponse
|
|
@@ -12143,7 +12238,8 @@ class Client extends openapi_client_1.default {
|
|
|
12143
12238
|
return await this.scaleClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
12144
12239
|
}
|
|
12145
12240
|
/**
|
|
12146
|
-
*
|
|
12241
|
+
* **
|
|
12242
|
+
* ****The ScaleOutCluster API operation is phased out. You must call the node pool-related API operations to manage nodes. If you want to add worker nodes to a Container Service for Kubernetes (ACK) cluster, call the ScaleClusterNodePool API operation. For more information, see [ScaleClusterNodePool](~~184928~~).
|
|
12147
12243
|
*
|
|
12148
12244
|
* @param request ScaleOutClusterRequest
|
|
12149
12245
|
* @param headers map
|
|
@@ -12234,7 +12330,8 @@ class Client extends openapi_client_1.default {
|
|
|
12234
12330
|
return $tea.cast(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
|
|
12235
12331
|
}
|
|
12236
12332
|
/**
|
|
12237
|
-
*
|
|
12333
|
+
* **
|
|
12334
|
+
* ****The ScaleOutCluster API operation is phased out. You must call the node pool-related API operations to manage nodes. If you want to add worker nodes to a Container Service for Kubernetes (ACK) cluster, call the ScaleClusterNodePool API operation. For more information, see [ScaleClusterNodePool](~~184928~~).
|
|
12238
12335
|
*
|
|
12239
12336
|
* @param request ScaleOutClusterRequest
|
|
12240
12337
|
* @return ScaleOutClusterResponse
|
|
@@ -12583,9 +12680,9 @@ class Client extends openapi_client_1.default {
|
|
|
12583
12680
|
return await this.updateControlPlaneLogWithOptions(ClusterId, request, headers, runtime);
|
|
12584
12681
|
}
|
|
12585
12682
|
/**
|
|
12586
|
-
*
|
|
12587
|
-
*
|
|
12588
|
-
* *
|
|
12683
|
+
* **
|
|
12684
|
+
* ****
|
|
12685
|
+
* * You can call this operation only with an Alibaba Cloud account. - If the kubeconfig file used by your cluster is revoked, the custom validity period of the kubeconfig file is reset. In this case, you need to call this API operation to reconfigure the validity period of the kubeconfig file.
|
|
12589
12686
|
*
|
|
12590
12687
|
* @param request UpdateK8sClusterUserConfigExpireRequest
|
|
12591
12688
|
* @param headers map
|
|
@@ -12619,9 +12716,9 @@ class Client extends openapi_client_1.default {
|
|
|
12619
12716
|
return $tea.cast(await this.callApi(params, req, runtime), new UpdateK8sClusterUserConfigExpireResponse({}));
|
|
12620
12717
|
}
|
|
12621
12718
|
/**
|
|
12622
|
-
*
|
|
12623
|
-
*
|
|
12624
|
-
* *
|
|
12719
|
+
* **
|
|
12720
|
+
* ****
|
|
12721
|
+
* * You can call this operation only with an Alibaba Cloud account. - If the kubeconfig file used by your cluster is revoked, the custom validity period of the kubeconfig file is reset. In this case, you need to call this API operation to reconfigure the validity period of the kubeconfig file.
|
|
12625
12722
|
*
|
|
12626
12723
|
* @param request UpdateK8sClusterUserConfigExpireRequest
|
|
12627
12724
|
* @return UpdateK8sClusterUserConfigExpireResponse
|
|
@@ -12733,7 +12830,7 @@ class Client extends openapi_client_1.default {
|
|
|
12733
12830
|
return await this.upgradeClusterAddonsWithOptions(ClusterId, request, headers, runtime);
|
|
12734
12831
|
}
|
|
12735
12832
|
/**
|
|
12736
|
-
*
|
|
12833
|
+
* This operation allows you to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
|
|
12737
12834
|
*
|
|
12738
12835
|
* @param request UpgradeClusterNodepoolRequest
|
|
12739
12836
|
* @param headers map
|
|
@@ -12773,7 +12870,7 @@ class Client extends openapi_client_1.default {
|
|
|
12773
12870
|
return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterNodepoolResponse({}));
|
|
12774
12871
|
}
|
|
12775
12872
|
/**
|
|
12776
|
-
*
|
|
12873
|
+
* This operation allows you to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
|
|
12777
12874
|
*
|
|
12778
12875
|
* @param request UpgradeClusterNodepoolRequest
|
|
12779
12876
|
* @return UpgradeClusterNodepoolResponse
|