@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/src/client.ts
CHANGED
|
@@ -70,6 +70,79 @@ export class DataDisk extends $tea.Model {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
export class KubeletConfig extends $tea.Model {
|
|
74
|
+
allowedUnsafeSysctls?: string[];
|
|
75
|
+
containerLogMaxFiles?: number;
|
|
76
|
+
containerLogMaxSize?: string;
|
|
77
|
+
cpuManagerPolicy?: string;
|
|
78
|
+
eventBurst?: number;
|
|
79
|
+
eventRecordQPS?: number;
|
|
80
|
+
evictionHard?: { [key: string]: any };
|
|
81
|
+
evictionSoft?: { [key: string]: any };
|
|
82
|
+
evictionSoftGracePeriod?: { [key: string]: any };
|
|
83
|
+
featureGates?: { [key: string]: any };
|
|
84
|
+
kubeAPIBurst?: number;
|
|
85
|
+
kubeAPIQPS?: number;
|
|
86
|
+
kubeReserved?: { [key: string]: any };
|
|
87
|
+
maxPods?: number;
|
|
88
|
+
readOnlyPort?: number;
|
|
89
|
+
registryBurst?: number;
|
|
90
|
+
registryPullQPS?: number;
|
|
91
|
+
serializeImagePulls?: boolean;
|
|
92
|
+
systemReserved?: { [key: string]: any };
|
|
93
|
+
static names(): { [key: string]: string } {
|
|
94
|
+
return {
|
|
95
|
+
allowedUnsafeSysctls: 'allowedUnsafeSysctls',
|
|
96
|
+
containerLogMaxFiles: 'containerLogMaxFiles',
|
|
97
|
+
containerLogMaxSize: 'containerLogMaxSize',
|
|
98
|
+
cpuManagerPolicy: 'cpuManagerPolicy',
|
|
99
|
+
eventBurst: 'eventBurst',
|
|
100
|
+
eventRecordQPS: 'eventRecordQPS',
|
|
101
|
+
evictionHard: 'evictionHard',
|
|
102
|
+
evictionSoft: 'evictionSoft',
|
|
103
|
+
evictionSoftGracePeriod: 'evictionSoftGracePeriod',
|
|
104
|
+
featureGates: 'featureGates',
|
|
105
|
+
kubeAPIBurst: 'kubeAPIBurst',
|
|
106
|
+
kubeAPIQPS: 'kubeAPIQPS',
|
|
107
|
+
kubeReserved: 'kubeReserved',
|
|
108
|
+
maxPods: 'maxPods',
|
|
109
|
+
readOnlyPort: 'readOnlyPort',
|
|
110
|
+
registryBurst: 'registryBurst',
|
|
111
|
+
registryPullQPS: 'registryPullQPS',
|
|
112
|
+
serializeImagePulls: 'serializeImagePulls',
|
|
113
|
+
systemReserved: 'systemReserved',
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
static types(): { [key: string]: any } {
|
|
118
|
+
return {
|
|
119
|
+
allowedUnsafeSysctls: { 'type': 'array', 'itemType': 'string' },
|
|
120
|
+
containerLogMaxFiles: 'number',
|
|
121
|
+
containerLogMaxSize: 'string',
|
|
122
|
+
cpuManagerPolicy: 'string',
|
|
123
|
+
eventBurst: 'number',
|
|
124
|
+
eventRecordQPS: 'number',
|
|
125
|
+
evictionHard: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
126
|
+
evictionSoft: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
127
|
+
evictionSoftGracePeriod: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
128
|
+
featureGates: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
129
|
+
kubeAPIBurst: 'number',
|
|
130
|
+
kubeAPIQPS: 'number',
|
|
131
|
+
kubeReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
132
|
+
maxPods: 'number',
|
|
133
|
+
readOnlyPort: 'number',
|
|
134
|
+
registryBurst: 'number',
|
|
135
|
+
registryPullQPS: 'number',
|
|
136
|
+
serializeImagePulls: 'boolean',
|
|
137
|
+
systemReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
constructor(map?: { [key: string]: any }) {
|
|
142
|
+
super(map);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
73
146
|
export class MaintenanceWindow extends $tea.Model {
|
|
74
147
|
duration?: string;
|
|
75
148
|
enable?: boolean;
|
|
@@ -690,6 +763,7 @@ export class CreateAutoscalingConfigResponse extends $tea.Model {
|
|
|
690
763
|
}
|
|
691
764
|
|
|
692
765
|
export class CreateClusterRequest extends $tea.Model {
|
|
766
|
+
accessControlList?: string[];
|
|
693
767
|
addons?: Addon[];
|
|
694
768
|
apiAudiences?: string;
|
|
695
769
|
chargeType?: string;
|
|
@@ -781,6 +855,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
781
855
|
zoneId?: string;
|
|
782
856
|
static names(): { [key: string]: string } {
|
|
783
857
|
return {
|
|
858
|
+
accessControlList: 'access_control_list',
|
|
784
859
|
addons: 'addons',
|
|
785
860
|
apiAudiences: 'api_audiences',
|
|
786
861
|
chargeType: 'charge_type',
|
|
@@ -875,6 +950,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
875
950
|
|
|
876
951
|
static types(): { [key: string]: any } {
|
|
877
952
|
return {
|
|
953
|
+
accessControlList: { 'type': 'array', 'itemType': 'string' },
|
|
878
954
|
addons: { 'type': 'array', 'itemType': Addon },
|
|
879
955
|
apiAudiences: 'string',
|
|
880
956
|
chargeType: 'string',
|
|
@@ -1070,15 +1146,18 @@ export class CreateClusterNodePoolRequest extends $tea.Model {
|
|
|
1070
1146
|
|
|
1071
1147
|
export class CreateClusterNodePoolResponseBody extends $tea.Model {
|
|
1072
1148
|
nodepoolId?: string;
|
|
1149
|
+
taskId?: string;
|
|
1073
1150
|
static names(): { [key: string]: string } {
|
|
1074
1151
|
return {
|
|
1075
1152
|
nodepoolId: 'nodepool_id',
|
|
1153
|
+
taskId: 'task_id',
|
|
1076
1154
|
};
|
|
1077
1155
|
}
|
|
1078
1156
|
|
|
1079
1157
|
static types(): { [key: string]: any } {
|
|
1080
1158
|
return {
|
|
1081
1159
|
nodepoolId: 'string',
|
|
1160
|
+
taskId: 'string',
|
|
1082
1161
|
};
|
|
1083
1162
|
}
|
|
1084
1163
|
|
|
@@ -2604,6 +2683,7 @@ export class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
2604
2683
|
kubernetesConfig?: DescribeClusterNodePoolDetailResponseBodyKubernetesConfig;
|
|
2605
2684
|
management?: DescribeClusterNodePoolDetailResponseBodyManagement;
|
|
2606
2685
|
maxNodes?: number;
|
|
2686
|
+
nodeConfig?: DescribeClusterNodePoolDetailResponseBodyNodeConfig;
|
|
2607
2687
|
nodepoolInfo?: DescribeClusterNodePoolDetailResponseBodyNodepoolInfo;
|
|
2608
2688
|
scalingGroup?: DescribeClusterNodePoolDetailResponseBodyScalingGroup;
|
|
2609
2689
|
status?: DescribeClusterNodePoolDetailResponseBodyStatus;
|
|
@@ -2616,6 +2696,7 @@ export class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
2616
2696
|
kubernetesConfig: 'kubernetes_config',
|
|
2617
2697
|
management: 'management',
|
|
2618
2698
|
maxNodes: 'max_nodes',
|
|
2699
|
+
nodeConfig: 'node_config',
|
|
2619
2700
|
nodepoolInfo: 'nodepool_info',
|
|
2620
2701
|
scalingGroup: 'scaling_group',
|
|
2621
2702
|
status: 'status',
|
|
@@ -2631,6 +2712,7 @@ export class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
2631
2712
|
kubernetesConfig: DescribeClusterNodePoolDetailResponseBodyKubernetesConfig,
|
|
2632
2713
|
management: DescribeClusterNodePoolDetailResponseBodyManagement,
|
|
2633
2714
|
maxNodes: 'number',
|
|
2715
|
+
nodeConfig: DescribeClusterNodePoolDetailResponseBodyNodeConfig,
|
|
2634
2716
|
nodepoolInfo: DescribeClusterNodePoolDetailResponseBodyNodepoolInfo,
|
|
2635
2717
|
scalingGroup: DescribeClusterNodePoolDetailResponseBodyScalingGroup,
|
|
2636
2718
|
status: DescribeClusterNodePoolDetailResponseBodyStatus,
|
|
@@ -4909,19 +4991,23 @@ export class MigrateClusterResponse extends $tea.Model {
|
|
|
4909
4991
|
}
|
|
4910
4992
|
|
|
4911
4993
|
export class ModifyClusterRequest extends $tea.Model {
|
|
4994
|
+
accessControlList?: string[];
|
|
4912
4995
|
apiServerEip?: boolean;
|
|
4913
4996
|
apiServerEipId?: string;
|
|
4997
|
+
clusterName?: string;
|
|
4914
4998
|
deletionProtection?: boolean;
|
|
4915
4999
|
enableRrsa?: boolean;
|
|
4916
|
-
ingressDomainRebinding?:
|
|
5000
|
+
ingressDomainRebinding?: boolean;
|
|
4917
5001
|
ingressLoadbalancerId?: string;
|
|
4918
5002
|
instanceDeletionProtection?: boolean;
|
|
4919
5003
|
maintenanceWindow?: MaintenanceWindow;
|
|
4920
5004
|
resourceGroupId?: string;
|
|
4921
5005
|
static names(): { [key: string]: string } {
|
|
4922
5006
|
return {
|
|
5007
|
+
accessControlList: 'access_control_list',
|
|
4923
5008
|
apiServerEip: 'api_server_eip',
|
|
4924
5009
|
apiServerEipId: 'api_server_eip_id',
|
|
5010
|
+
clusterName: 'cluster_name',
|
|
4925
5011
|
deletionProtection: 'deletion_protection',
|
|
4926
5012
|
enableRrsa: 'enable_rrsa',
|
|
4927
5013
|
ingressDomainRebinding: 'ingress_domain_rebinding',
|
|
@@ -4934,11 +5020,13 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
4934
5020
|
|
|
4935
5021
|
static types(): { [key: string]: any } {
|
|
4936
5022
|
return {
|
|
5023
|
+
accessControlList: { 'type': 'array', 'itemType': 'string' },
|
|
4937
5024
|
apiServerEip: 'boolean',
|
|
4938
5025
|
apiServerEipId: 'string',
|
|
5026
|
+
clusterName: 'string',
|
|
4939
5027
|
deletionProtection: 'boolean',
|
|
4940
5028
|
enableRrsa: 'boolean',
|
|
4941
|
-
ingressDomainRebinding: '
|
|
5029
|
+
ingressDomainRebinding: 'boolean',
|
|
4942
5030
|
ingressLoadbalancerId: 'string',
|
|
4943
5031
|
instanceDeletionProtection: 'boolean',
|
|
4944
5032
|
maintenanceWindow: MaintenanceWindow,
|
|
@@ -5209,7 +5297,7 @@ export class ModifyClusterTagsResponse extends $tea.Model {
|
|
|
5209
5297
|
}
|
|
5210
5298
|
|
|
5211
5299
|
export class ModifyNodePoolNodeConfigRequest extends $tea.Model {
|
|
5212
|
-
kubeletConfig?:
|
|
5300
|
+
kubeletConfig?: KubeletConfig;
|
|
5213
5301
|
rollingPolicy?: ModifyNodePoolNodeConfigRequestRollingPolicy;
|
|
5214
5302
|
static names(): { [key: string]: string } {
|
|
5215
5303
|
return {
|
|
@@ -5220,7 +5308,7 @@ export class ModifyNodePoolNodeConfigRequest extends $tea.Model {
|
|
|
5220
5308
|
|
|
5221
5309
|
static types(): { [key: string]: any } {
|
|
5222
5310
|
return {
|
|
5223
|
-
kubeletConfig:
|
|
5311
|
+
kubeletConfig: KubeletConfig,
|
|
5224
5312
|
rollingPolicy: ModifyNodePoolNodeConfigRequestRollingPolicy,
|
|
5225
5313
|
};
|
|
5226
5314
|
}
|
|
@@ -8122,6 +8210,25 @@ export class DescribeClusterNodePoolDetailResponseBodyManagement extends $tea.Mo
|
|
|
8122
8210
|
}
|
|
8123
8211
|
}
|
|
8124
8212
|
|
|
8213
|
+
export class DescribeClusterNodePoolDetailResponseBodyNodeConfig extends $tea.Model {
|
|
8214
|
+
kubeletConfiguration?: KubeletConfig;
|
|
8215
|
+
static names(): { [key: string]: string } {
|
|
8216
|
+
return {
|
|
8217
|
+
kubeletConfiguration: 'kubelet_configuration',
|
|
8218
|
+
};
|
|
8219
|
+
}
|
|
8220
|
+
|
|
8221
|
+
static types(): { [key: string]: any } {
|
|
8222
|
+
return {
|
|
8223
|
+
kubeletConfiguration: KubeletConfig,
|
|
8224
|
+
};
|
|
8225
|
+
}
|
|
8226
|
+
|
|
8227
|
+
constructor(map?: { [key: string]: any }) {
|
|
8228
|
+
super(map);
|
|
8229
|
+
}
|
|
8230
|
+
}
|
|
8231
|
+
|
|
8125
8232
|
export class DescribeClusterNodePoolDetailResponseBodyNodepoolInfo extends $tea.Model {
|
|
8126
8233
|
created?: string;
|
|
8127
8234
|
isDefault?: boolean;
|
|
@@ -8547,6 +8654,25 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsManagement extends $te
|
|
|
8547
8654
|
}
|
|
8548
8655
|
}
|
|
8549
8656
|
|
|
8657
|
+
export class DescribeClusterNodePoolsResponseBodyNodepoolsNodeConfig extends $tea.Model {
|
|
8658
|
+
kubeletConfiguration?: KubeletConfig;
|
|
8659
|
+
static names(): { [key: string]: string } {
|
|
8660
|
+
return {
|
|
8661
|
+
kubeletConfiguration: 'kubelet_configuration',
|
|
8662
|
+
};
|
|
8663
|
+
}
|
|
8664
|
+
|
|
8665
|
+
static types(): { [key: string]: any } {
|
|
8666
|
+
return {
|
|
8667
|
+
kubeletConfiguration: KubeletConfig,
|
|
8668
|
+
};
|
|
8669
|
+
}
|
|
8670
|
+
|
|
8671
|
+
constructor(map?: { [key: string]: any }) {
|
|
8672
|
+
super(map);
|
|
8673
|
+
}
|
|
8674
|
+
}
|
|
8675
|
+
|
|
8550
8676
|
export class DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo extends $tea.Model {
|
|
8551
8677
|
created?: string;
|
|
8552
8678
|
isDefault?: boolean;
|
|
@@ -8818,6 +8944,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepools extends $tea.Model {
|
|
|
8818
8944
|
kubernetesConfig?: DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig;
|
|
8819
8945
|
management?: DescribeClusterNodePoolsResponseBodyNodepoolsManagement;
|
|
8820
8946
|
maxNodes?: number;
|
|
8947
|
+
nodeConfig?: DescribeClusterNodePoolsResponseBodyNodepoolsNodeConfig;
|
|
8821
8948
|
nodepoolInfo?: DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo;
|
|
8822
8949
|
scalingGroup?: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup;
|
|
8823
8950
|
status?: DescribeClusterNodePoolsResponseBodyNodepoolsStatus;
|
|
@@ -8830,6 +8957,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepools extends $tea.Model {
|
|
|
8830
8957
|
kubernetesConfig: 'kubernetes_config',
|
|
8831
8958
|
management: 'management',
|
|
8832
8959
|
maxNodes: 'max_nodes',
|
|
8960
|
+
nodeConfig: 'node_config',
|
|
8833
8961
|
nodepoolInfo: 'nodepool_info',
|
|
8834
8962
|
scalingGroup: 'scaling_group',
|
|
8835
8963
|
status: 'status',
|
|
@@ -8845,6 +8973,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepools extends $tea.Model {
|
|
|
8845
8973
|
kubernetesConfig: DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig,
|
|
8846
8974
|
management: DescribeClusterNodePoolsResponseBodyNodepoolsManagement,
|
|
8847
8975
|
maxNodes: 'number',
|
|
8976
|
+
nodeConfig: DescribeClusterNodePoolsResponseBodyNodepoolsNodeConfig,
|
|
8848
8977
|
nodepoolInfo: DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo,
|
|
8849
8978
|
scalingGroup: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup,
|
|
8850
8979
|
status: DescribeClusterNodePoolsResponseBodyNodepoolsStatus,
|
|
@@ -8958,6 +9087,31 @@ export class DescribeClusterNodesResponseBodyPage extends $tea.Model {
|
|
|
8958
9087
|
}
|
|
8959
9088
|
}
|
|
8960
9089
|
|
|
9090
|
+
export class DescribeClusterResourcesResponseBodyDependencies extends $tea.Model {
|
|
9091
|
+
clusterId?: string;
|
|
9092
|
+
resourceType?: string;
|
|
9093
|
+
instanceId?: string;
|
|
9094
|
+
static names(): { [key: string]: string } {
|
|
9095
|
+
return {
|
|
9096
|
+
clusterId: 'cluster_id',
|
|
9097
|
+
resourceType: 'resource_type',
|
|
9098
|
+
instanceId: 'instance_id',
|
|
9099
|
+
};
|
|
9100
|
+
}
|
|
9101
|
+
|
|
9102
|
+
static types(): { [key: string]: any } {
|
|
9103
|
+
return {
|
|
9104
|
+
clusterId: 'string',
|
|
9105
|
+
resourceType: 'string',
|
|
9106
|
+
instanceId: 'string',
|
|
9107
|
+
};
|
|
9108
|
+
}
|
|
9109
|
+
|
|
9110
|
+
constructor(map?: { [key: string]: any }) {
|
|
9111
|
+
super(map);
|
|
9112
|
+
}
|
|
9113
|
+
}
|
|
9114
|
+
|
|
8961
9115
|
export class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
8962
9116
|
clusterId?: string;
|
|
8963
9117
|
created?: string;
|
|
@@ -8966,6 +9120,7 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
8966
9120
|
resourceType?: string;
|
|
8967
9121
|
state?: string;
|
|
8968
9122
|
autoCreate?: number;
|
|
9123
|
+
dependencies?: DescribeClusterResourcesResponseBodyDependencies;
|
|
8969
9124
|
static names(): { [key: string]: string } {
|
|
8970
9125
|
return {
|
|
8971
9126
|
clusterId: 'cluster_id',
|
|
@@ -8975,6 +9130,7 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
8975
9130
|
resourceType: 'resource_type',
|
|
8976
9131
|
state: 'state',
|
|
8977
9132
|
autoCreate: 'auto_create',
|
|
9133
|
+
dependencies: 'dependencies',
|
|
8978
9134
|
};
|
|
8979
9135
|
}
|
|
8980
9136
|
|
|
@@ -8987,6 +9143,7 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
8987
9143
|
resourceType: 'string',
|
|
8988
9144
|
state: 'string',
|
|
8989
9145
|
autoCreate: 'number',
|
|
9146
|
+
dependencies: DescribeClusterResourcesResponseBodyDependencies,
|
|
8990
9147
|
};
|
|
8991
9148
|
}
|
|
8992
9149
|
|
|
@@ -10920,61 +11077,6 @@ export class ModifyClusterNodePoolRequestTeeConfig extends $tea.Model {
|
|
|
10920
11077
|
}
|
|
10921
11078
|
}
|
|
10922
11079
|
|
|
10923
|
-
export class ModifyNodePoolNodeConfigRequestKubeletConfig extends $tea.Model {
|
|
10924
|
-
cpuManagerPolicy?: string;
|
|
10925
|
-
eventBurst?: number;
|
|
10926
|
-
eventRecordQPS?: number;
|
|
10927
|
-
evictionHard?: { [key: string]: any };
|
|
10928
|
-
evictionSoft?: { [key: string]: any };
|
|
10929
|
-
evictionSoftGracePeriod?: { [key: string]: any };
|
|
10930
|
-
kubeAPIBurst?: number;
|
|
10931
|
-
kubeAPIQPS?: number;
|
|
10932
|
-
kubeReserved?: { [key: string]: any };
|
|
10933
|
-
registryBurst?: number;
|
|
10934
|
-
registryPullQPS?: number;
|
|
10935
|
-
serializeImagePulls?: boolean;
|
|
10936
|
-
systemReserved?: { [key: string]: any };
|
|
10937
|
-
static names(): { [key: string]: string } {
|
|
10938
|
-
return {
|
|
10939
|
-
cpuManagerPolicy: 'cpuManagerPolicy',
|
|
10940
|
-
eventBurst: 'eventBurst',
|
|
10941
|
-
eventRecordQPS: 'eventRecordQPS',
|
|
10942
|
-
evictionHard: 'evictionHard',
|
|
10943
|
-
evictionSoft: 'evictionSoft',
|
|
10944
|
-
evictionSoftGracePeriod: 'evictionSoftGracePeriod',
|
|
10945
|
-
kubeAPIBurst: 'kubeAPIBurst',
|
|
10946
|
-
kubeAPIQPS: 'kubeAPIQPS',
|
|
10947
|
-
kubeReserved: 'kubeReserved',
|
|
10948
|
-
registryBurst: 'registryBurst',
|
|
10949
|
-
registryPullQPS: 'registryPullQPS',
|
|
10950
|
-
serializeImagePulls: 'serializeImagePulls',
|
|
10951
|
-
systemReserved: 'systemReserved',
|
|
10952
|
-
};
|
|
10953
|
-
}
|
|
10954
|
-
|
|
10955
|
-
static types(): { [key: string]: any } {
|
|
10956
|
-
return {
|
|
10957
|
-
cpuManagerPolicy: 'string',
|
|
10958
|
-
eventBurst: 'number',
|
|
10959
|
-
eventRecordQPS: 'number',
|
|
10960
|
-
evictionHard: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
10961
|
-
evictionSoft: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
10962
|
-
evictionSoftGracePeriod: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
10963
|
-
kubeAPIBurst: 'number',
|
|
10964
|
-
kubeAPIQPS: 'number',
|
|
10965
|
-
kubeReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
10966
|
-
registryBurst: 'number',
|
|
10967
|
-
registryPullQPS: 'number',
|
|
10968
|
-
serializeImagePulls: 'boolean',
|
|
10969
|
-
systemReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
10970
|
-
};
|
|
10971
|
-
}
|
|
10972
|
-
|
|
10973
|
-
constructor(map?: { [key: string]: any }) {
|
|
10974
|
-
super(map);
|
|
10975
|
-
}
|
|
10976
|
-
}
|
|
10977
|
-
|
|
10978
11080
|
export class ModifyNodePoolNodeConfigRequestRollingPolicy extends $tea.Model {
|
|
10979
11081
|
maxParallelism?: number;
|
|
10980
11082
|
static names(): { [key: string]: string } {
|
|
@@ -11092,15 +11194,18 @@ export class ScaleOutClusterRequestWorkerDataDisks extends $tea.Model {
|
|
|
11092
11194
|
}
|
|
11093
11195
|
|
|
11094
11196
|
export class UnInstallClusterAddonsRequestAddons extends $tea.Model {
|
|
11197
|
+
cleanupCloudResources?: boolean;
|
|
11095
11198
|
name?: string;
|
|
11096
11199
|
static names(): { [key: string]: string } {
|
|
11097
11200
|
return {
|
|
11201
|
+
cleanupCloudResources: 'cleanup_cloud_resources',
|
|
11098
11202
|
name: 'name',
|
|
11099
11203
|
};
|
|
11100
11204
|
}
|
|
11101
11205
|
|
|
11102
11206
|
static types(): { [key: string]: any } {
|
|
11103
11207
|
return {
|
|
11208
|
+
cleanupCloudResources: 'boolean',
|
|
11104
11209
|
name: 'string',
|
|
11105
11210
|
};
|
|
11106
11211
|
}
|
|
@@ -11532,6 +11637,10 @@ export default class Client extends OpenApi {
|
|
|
11532
11637
|
async createClusterWithOptions(request: CreateClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateClusterResponse> {
|
|
11533
11638
|
Util.validateModel(request);
|
|
11534
11639
|
let body : {[key: string ]: any} = { };
|
|
11640
|
+
if (!Util.isUnset(request.accessControlList)) {
|
|
11641
|
+
body["access_control_list"] = request.accessControlList;
|
|
11642
|
+
}
|
|
11643
|
+
|
|
11535
11644
|
if (!Util.isUnset(request.addons)) {
|
|
11536
11645
|
body["addons"] = request.addons;
|
|
11537
11646
|
}
|
|
@@ -12277,10 +12386,7 @@ export default class Client extends OpenApi {
|
|
|
12277
12386
|
|
|
12278
12387
|
/**
|
|
12279
12388
|
* >
|
|
12280
|
-
* * 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.
|
|
12281
|
-
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
12282
|
-
* * Nodes remain in the unschedulable state when they are being removed.
|
|
12283
|
-
* * You can remove only worker nodes by calling this operation.
|
|
12389
|
+
* * 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.
|
|
12284
12390
|
*
|
|
12285
12391
|
* @param request DeleteClusterNodesRequest
|
|
12286
12392
|
* @param headers map
|
|
@@ -12322,10 +12428,7 @@ export default class Client extends OpenApi {
|
|
|
12322
12428
|
|
|
12323
12429
|
/**
|
|
12324
12430
|
* >
|
|
12325
|
-
* * 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.
|
|
12326
|
-
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
12327
|
-
* * Nodes remain in the unschedulable state when they are being removed.
|
|
12328
|
-
* * You can remove only worker nodes by calling this operation.
|
|
12431
|
+
* * 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.
|
|
12329
12432
|
*
|
|
12330
12433
|
* @param request DeleteClusterNodesRequest
|
|
12331
12434
|
* @return DeleteClusterNodesResponse
|
|
@@ -13649,7 +13752,8 @@ export default class Client extends OpenApi {
|
|
|
13649
13752
|
}
|
|
13650
13753
|
|
|
13651
13754
|
/**
|
|
13652
|
-
*
|
|
13755
|
+
* **
|
|
13756
|
+
* ****Only Alibaba Cloud accounts can call this API operation.
|
|
13653
13757
|
*
|
|
13654
13758
|
* @param request DescribeSubaccountK8sClusterUserConfigRequest
|
|
13655
13759
|
* @param headers map
|
|
@@ -13686,7 +13790,8 @@ export default class Client extends OpenApi {
|
|
|
13686
13790
|
}
|
|
13687
13791
|
|
|
13688
13792
|
/**
|
|
13689
|
-
*
|
|
13793
|
+
* **
|
|
13794
|
+
* ****Only Alibaba Cloud accounts can call this API operation.
|
|
13690
13795
|
*
|
|
13691
13796
|
* @param request DescribeSubaccountK8sClusterUserConfigRequest
|
|
13692
13797
|
* @return DescribeSubaccountK8sClusterUserConfigResponse
|
|
@@ -14076,10 +14181,9 @@ export default class Client extends OpenApi {
|
|
|
14076
14181
|
}
|
|
14077
14182
|
|
|
14078
14183
|
/**
|
|
14079
|
-
*
|
|
14080
|
-
* * Make sure that you have granted the
|
|
14081
|
-
*
|
|
14082
|
-
* * 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~~).
|
|
14184
|
+
* ****
|
|
14185
|
+
* * 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~~).
|
|
14186
|
+
* * 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~~).
|
|
14083
14187
|
* * 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.
|
|
14084
14188
|
*
|
|
14085
14189
|
* @param request GrantPermissionsRequest
|
|
@@ -14108,10 +14212,9 @@ export default class Client extends OpenApi {
|
|
|
14108
14212
|
}
|
|
14109
14213
|
|
|
14110
14214
|
/**
|
|
14111
|
-
*
|
|
14112
|
-
* * Make sure that you have granted the
|
|
14113
|
-
*
|
|
14114
|
-
* * 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~~).
|
|
14215
|
+
* ****
|
|
14216
|
+
* * 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~~).
|
|
14217
|
+
* * 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~~).
|
|
14115
14218
|
* * 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.
|
|
14116
14219
|
*
|
|
14117
14220
|
* @param request GrantPermissionsRequest
|
|
@@ -14244,6 +14347,10 @@ export default class Client extends OpenApi {
|
|
|
14244
14347
|
async modifyClusterWithOptions(ClusterId: string, request: ModifyClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterResponse> {
|
|
14245
14348
|
Util.validateModel(request);
|
|
14246
14349
|
let body : {[key: string ]: any} = { };
|
|
14350
|
+
if (!Util.isUnset(request.accessControlList)) {
|
|
14351
|
+
body["access_control_list"] = request.accessControlList;
|
|
14352
|
+
}
|
|
14353
|
+
|
|
14247
14354
|
if (!Util.isUnset(request.apiServerEip)) {
|
|
14248
14355
|
body["api_server_eip"] = request.apiServerEip;
|
|
14249
14356
|
}
|
|
@@ -14252,6 +14359,10 @@ export default class Client extends OpenApi {
|
|
|
14252
14359
|
body["api_server_eip_id"] = request.apiServerEipId;
|
|
14253
14360
|
}
|
|
14254
14361
|
|
|
14362
|
+
if (!Util.isUnset(request.clusterName)) {
|
|
14363
|
+
body["cluster_name"] = request.clusterName;
|
|
14364
|
+
}
|
|
14365
|
+
|
|
14255
14366
|
if (!Util.isUnset(request.deletionProtection)) {
|
|
14256
14367
|
body["deletion_protection"] = request.deletionProtection;
|
|
14257
14368
|
}
|
|
@@ -14308,7 +14419,7 @@ export default class Client extends OpenApi {
|
|
|
14308
14419
|
* 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.
|
|
14309
14420
|
* * 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).
|
|
14310
14421
|
* * 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).
|
|
14311
|
-
* After you call this operation, the component may be redeployed and restarted. We recommend that you
|
|
14422
|
+
* After you call this operation, the component may be redeployed and restarted. We recommend that you assess the impact before you call this operation.
|
|
14312
14423
|
*
|
|
14313
14424
|
* @param request ModifyClusterAddonRequest
|
|
14314
14425
|
* @param headers map
|
|
@@ -14344,7 +14455,7 @@ export default class Client extends OpenApi {
|
|
|
14344
14455
|
* 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.
|
|
14345
14456
|
* * 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).
|
|
14346
14457
|
* * 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).
|
|
14347
|
-
* After you call this operation, the component may be redeployed and restarted. We recommend that you
|
|
14458
|
+
* After you call this operation, the component may be redeployed and restarted. We recommend that you assess the impact before you call this operation.
|
|
14348
14459
|
*
|
|
14349
14460
|
* @param request ModifyClusterAddonRequest
|
|
14350
14461
|
* @return ModifyClusterAddonResponse
|
|
@@ -14467,6 +14578,14 @@ export default class Client extends OpenApi {
|
|
|
14467
14578
|
return await this.modifyClusterTagsWithOptions(ClusterId, request, headers, runtime);
|
|
14468
14579
|
}
|
|
14469
14580
|
|
|
14581
|
+
/**
|
|
14582
|
+
* This operation progressively modifies the kubelet configuration of the nodes in a node pool and restarts the kubelet process, which may affect your businesses.
|
|
14583
|
+
*
|
|
14584
|
+
* @param request ModifyNodePoolNodeConfigRequest
|
|
14585
|
+
* @param headers map
|
|
14586
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14587
|
+
* @return ModifyNodePoolNodeConfigResponse
|
|
14588
|
+
*/
|
|
14470
14589
|
async modifyNodePoolNodeConfigWithOptions(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyNodePoolNodeConfigResponse> {
|
|
14471
14590
|
Util.validateModel(request);
|
|
14472
14591
|
let body : {[key: string ]: any} = { };
|
|
@@ -14496,6 +14615,12 @@ export default class Client extends OpenApi {
|
|
|
14496
14615
|
return $tea.cast<ModifyNodePoolNodeConfigResponse>(await this.callApi(params, req, runtime), new ModifyNodePoolNodeConfigResponse({}));
|
|
14497
14616
|
}
|
|
14498
14617
|
|
|
14618
|
+
/**
|
|
14619
|
+
* This operation progressively modifies the kubelet configuration of the nodes in a node pool and restarts the kubelet process, which may affect your businesses.
|
|
14620
|
+
*
|
|
14621
|
+
* @param request ModifyNodePoolNodeConfigRequest
|
|
14622
|
+
* @return ModifyNodePoolNodeConfigResponse
|
|
14623
|
+
*/
|
|
14499
14624
|
async modifyNodePoolNodeConfig(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest): Promise<ModifyNodePoolNodeConfigResponse> {
|
|
14500
14625
|
let runtime = new $Util.RuntimeOptions({ });
|
|
14501
14626
|
let headers : {[key: string ]: string} = { };
|
|
@@ -14546,7 +14671,8 @@ export default class Client extends OpenApi {
|
|
|
14546
14671
|
}
|
|
14547
14672
|
|
|
14548
14673
|
/**
|
|
14549
|
-
* You can activate ACK
|
|
14674
|
+
* * You can activate ACK by using Alibaba Cloud accounts.
|
|
14675
|
+
* * To activate ACK by using RAM users, you need to grant the AdministratorAccess permission to the RAM users.
|
|
14550
14676
|
*
|
|
14551
14677
|
* @param request OpenAckServiceRequest
|
|
14552
14678
|
* @param headers map
|
|
@@ -14579,7 +14705,8 @@ export default class Client extends OpenApi {
|
|
|
14579
14705
|
}
|
|
14580
14706
|
|
|
14581
14707
|
/**
|
|
14582
|
-
* You can activate ACK
|
|
14708
|
+
* * You can activate ACK by using Alibaba Cloud accounts.
|
|
14709
|
+
* * To activate ACK by using RAM users, you need to grant the AdministratorAccess permission to the RAM users.
|
|
14583
14710
|
*
|
|
14584
14711
|
* @param request OpenAckServiceRequest
|
|
14585
14712
|
* @return OpenAckServiceResponse
|
|
@@ -14718,11 +14845,9 @@ export default class Client extends OpenApi {
|
|
|
14718
14845
|
}
|
|
14719
14846
|
|
|
14720
14847
|
/**
|
|
14721
|
-
*
|
|
14722
|
-
*
|
|
14723
|
-
* *
|
|
14724
|
-
* * Nodes remain in the Unschedulable state when they are being removed.
|
|
14725
|
-
* * You can remove only worker nodes. You cannot remove control planes.
|
|
14848
|
+
* **
|
|
14849
|
+
* ****
|
|
14850
|
+
* * 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.
|
|
14726
14851
|
*
|
|
14727
14852
|
* @param tmpReq RemoveNodePoolNodesRequest
|
|
14728
14853
|
* @param headers map
|
|
@@ -14777,11 +14902,9 @@ export default class Client extends OpenApi {
|
|
|
14777
14902
|
}
|
|
14778
14903
|
|
|
14779
14904
|
/**
|
|
14780
|
-
*
|
|
14781
|
-
*
|
|
14782
|
-
* *
|
|
14783
|
-
* * Nodes remain in the Unschedulable state when they are being removed.
|
|
14784
|
-
* * You can remove only worker nodes. You cannot remove control planes.
|
|
14905
|
+
* **
|
|
14906
|
+
* ****
|
|
14907
|
+
* * 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.
|
|
14785
14908
|
*
|
|
14786
14909
|
* @param request RemoveNodePoolNodesRequest
|
|
14787
14910
|
* @return RemoveNodePoolNodesResponse
|
|
@@ -15070,7 +15193,8 @@ export default class Client extends OpenApi {
|
|
|
15070
15193
|
}
|
|
15071
15194
|
|
|
15072
15195
|
/**
|
|
15073
|
-
*
|
|
15196
|
+
* **
|
|
15197
|
+
* ****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~~).
|
|
15074
15198
|
*
|
|
15075
15199
|
* @param request ScaleOutClusterRequest
|
|
15076
15200
|
* @param headers map
|
|
@@ -15183,7 +15307,8 @@ export default class Client extends OpenApi {
|
|
|
15183
15307
|
}
|
|
15184
15308
|
|
|
15185
15309
|
/**
|
|
15186
|
-
*
|
|
15310
|
+
* **
|
|
15311
|
+
* ****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~~).
|
|
15187
15312
|
*
|
|
15188
15313
|
* @param request ScaleOutClusterRequest
|
|
15189
15314
|
* @return ScaleOutClusterResponse
|
|
@@ -15587,9 +15712,9 @@ export default class Client extends OpenApi {
|
|
|
15587
15712
|
}
|
|
15588
15713
|
|
|
15589
15714
|
/**
|
|
15590
|
-
*
|
|
15591
|
-
*
|
|
15592
|
-
* *
|
|
15715
|
+
* **
|
|
15716
|
+
* ****
|
|
15717
|
+
* * 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.
|
|
15593
15718
|
*
|
|
15594
15719
|
* @param request UpdateK8sClusterUserConfigExpireRequest
|
|
15595
15720
|
* @param headers map
|
|
@@ -15626,9 +15751,9 @@ export default class Client extends OpenApi {
|
|
|
15626
15751
|
}
|
|
15627
15752
|
|
|
15628
15753
|
/**
|
|
15629
|
-
*
|
|
15630
|
-
*
|
|
15631
|
-
* *
|
|
15754
|
+
* **
|
|
15755
|
+
* ****
|
|
15756
|
+
* * 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.
|
|
15632
15757
|
*
|
|
15633
15758
|
* @param request UpdateK8sClusterUserConfigExpireRequest
|
|
15634
15759
|
* @return UpdateK8sClusterUserConfigExpireResponse
|
|
@@ -15756,7 +15881,7 @@ export default class Client extends OpenApi {
|
|
|
15756
15881
|
}
|
|
15757
15882
|
|
|
15758
15883
|
/**
|
|
15759
|
-
*
|
|
15884
|
+
* This operation allows you to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
|
|
15760
15885
|
*
|
|
15761
15886
|
* @param request UpgradeClusterNodepoolRequest
|
|
15762
15887
|
* @param headers map
|
|
@@ -15801,7 +15926,7 @@ export default class Client extends OpenApi {
|
|
|
15801
15926
|
}
|
|
15802
15927
|
|
|
15803
15928
|
/**
|
|
15804
|
-
*
|
|
15929
|
+
* This operation allows you to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
|
|
15805
15930
|
*
|
|
15806
15931
|
* @param request UpgradeClusterNodepoolRequest
|
|
15807
15932
|
* @return UpgradeClusterNodepoolResponse
|