@ucloud-sdks/ucloud-sdk-js 0.2.55 → 0.2.57

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.
@@ -12,6 +12,15 @@ class UK8SClient extends client_1.default {
12
12
  constructor({ config, credential, }) {
13
13
  super({ config, credential });
14
14
  }
15
+ /**
16
+ * AddUK8SAutoScalingGroupV2 - 创建绑定已有节点池的自动伸缩组。当前请求校验仍要求提供 CPU、Mem、MachineType 和 Zone。
17
+ *
18
+ * See also: https://docs.ucloud.cn/api/uk8s-api/add_uk8s_auto_scaling_group_v2
19
+ */
20
+ addUK8SAutoScalingGroupV2(request) {
21
+ const args = Object.assign({ Action: 'AddUK8SAutoScalingGroupV2' }, (request || {}));
22
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
23
+ }
15
24
  /**
16
25
  * AddUK8SExistingUHost - 将预先创建好的云主机加入到UK8S集群,需要注意的是,该云主机依然会执行重装系统的操作。
17
26
  *
@@ -84,6 +93,15 @@ class UK8SClient extends client_1.default {
84
93
  const args = Object.assign({ Action: 'DelUK8SClusterNodeV2' }, (request || {}));
85
94
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
86
95
  }
96
+ /**
97
+ * DeleteUK8SAutoScalingGroup - 删除伸缩组
98
+ *
99
+ * See also: https://docs.ucloud.cn/api/uk8s-api/delete_uk8s_auto_scaling_group
100
+ */
101
+ deleteUK8SAutoScalingGroup(request) {
102
+ const args = Object.assign({ Action: 'DeleteUK8SAutoScalingGroup' }, (request || {}));
103
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
104
+ }
87
105
  /**
88
106
  * DeleteUK8SULSConfig - 删除指定UK8S集群的日志采集规则。
89
107
  *
@@ -93,6 +111,15 @@ class UK8SClient extends client_1.default {
93
111
  const args = Object.assign({ Action: 'DeleteUK8SULSConfig' }, (request || {}));
94
112
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
95
113
  }
114
+ /**
115
+ * DescribeUK8SAutoscalerGroup - 获取autoscaler与auto scaling group信息
116
+ *
117
+ * See also: https://docs.ucloud.cn/api/uk8s-api/describe_uk8s_autoscaler_group
118
+ */
119
+ describeUK8SAutoscalerGroup(request) {
120
+ const args = Object.assign({ Action: 'DescribeUK8SAutoscalerGroup' }, (request || {}));
121
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
122
+ }
96
123
  /**
97
124
  * DescribeUK8SCluster - 获取集群信息
98
125
  *
@@ -120,6 +147,15 @@ class UK8SClient extends client_1.default {
120
147
  const args = Object.assign({ Action: 'DescribeUK8SNode' }, (request || {}));
121
148
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
122
149
  }
150
+ /**
151
+ * EnableUK8SAutoscaler - 开启/关闭伸缩器
152
+ *
153
+ * See also: https://docs.ucloud.cn/api/uk8s-api/enable_uk8s_autoscaler
154
+ */
155
+ enableUK8SAutoscaler(request) {
156
+ const args = Object.assign({ Action: 'EnableUK8SAutoscaler' }, (request || {}));
157
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
158
+ }
123
159
  /**
124
160
  * GetClusterConfig - 获取集群配置文件,管理集群的凭证
125
161
  *
@@ -129,6 +165,60 @@ class UK8SClient extends client_1.default {
129
165
  const args = Object.assign({ Action: 'GetClusterConfig' }, (request || {}));
130
166
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
131
167
  }
168
+ /**
169
+ * GetUK8SAvailableInstanceTypes - 获取uk8s节点可用机型
170
+ *
171
+ * See also: https://docs.ucloud.cn/api/uk8s-api/get_uk8s_available_instance_types
172
+ */
173
+ getUK8SAvailableInstanceTypes(request) {
174
+ const args = Object.assign({ Action: 'GetUK8SAvailableInstanceTypes' }, (request || {}));
175
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
176
+ }
177
+ /**
178
+ * GetUK8SCNINodeInfo - 获取 UK8S 集群各节点的 CNI 版本、状态及版本同步情况。
179
+ *
180
+ * See also: https://docs.ucloud.cn/api/uk8s-api/get_uk8s_cni_node_info
181
+ */
182
+ getUK8SCNINodeInfo(request) {
183
+ const args = Object.assign({ Action: 'GetUK8SCNINodeInfo' }, (request || {}));
184
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
185
+ }
186
+ /**
187
+ * GetUK8SIpamdStatus - 查询 ipamd 插件的安装状态、版本、CNI 初始化模式及模式切换能力。
188
+ *
189
+ * See also: https://docs.ucloud.cn/api/uk8s-api/get_uk8s_ipamd_status
190
+ */
191
+ getUK8SIpamdStatus(request) {
192
+ const args = Object.assign({ Action: 'GetUK8SIpamdStatus' }, (request || {}));
193
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
194
+ }
195
+ /**
196
+ * GetUK8SLoadBalancerController - 获取 uk8s LoadBalancerController 信息
197
+ *
198
+ * See also: https://docs.ucloud.cn/api/uk8s-api/get_uk8s_load_balancer_controller
199
+ */
200
+ getUK8SLoadBalancerController(request) {
201
+ const args = Object.assign({ Action: 'GetUK8SLoadBalancerController' }, (request || {}));
202
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
203
+ }
204
+ /**
205
+ * GetUK8SNodeGroup - 列出某个UK8S节点池
206
+ *
207
+ * See also: https://docs.ucloud.cn/api/uk8s-api/get_uk8s_node_group
208
+ */
209
+ getUK8SNodeGroup(request) {
210
+ const args = Object.assign({ Action: 'GetUK8SNodeGroup' }, (request || {}));
211
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
212
+ }
213
+ /**
214
+ * GetUK8SPluginInfo - 查询集群插件信息
215
+ *
216
+ * See also: https://docs.ucloud.cn/api/uk8s-api/get_uk8s_plugin_info
217
+ */
218
+ getUK8SPluginInfo(request) {
219
+ const args = Object.assign({ Action: 'GetUK8SPluginInfo' }, (request || {}));
220
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
221
+ }
132
222
  /**
133
223
  * GetUK8SVersions - 获取支持创建的UK8S集群版本、Containerd版本
134
224
  *
@@ -192,6 +282,24 @@ class UK8SClient extends client_1.default {
192
282
  const args = Object.assign({ Action: 'RemoveUK8SNodeGroup' }, (request || {}));
193
283
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
194
284
  }
285
+ /**
286
+ * UpdateUK8SAutoScalingGroupV2 - 更新伸缩组的名称、节点数上下限和优先级。节点规格等配置请通过关联节点池修改。
287
+ *
288
+ * See also: https://docs.ucloud.cn/api/uk8s-api/update_uk8s_auto_scaling_group_v2
289
+ */
290
+ updateUK8SAutoScalingGroupV2(request) {
291
+ const args = Object.assign({ Action: 'UpdateUK8SAutoScalingGroupV2' }, (request || {}));
292
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
293
+ }
294
+ /**
295
+ * UpdateUK8SAutoscaler - 更新集群级缩容阈值和等待时间。调用前必须关闭 cluster-autoscaler;修改后重新开启,使新配置生效。
296
+ *
297
+ * See also: https://docs.ucloud.cn/api/uk8s-api/update_uk8s_autoscaler
298
+ */
299
+ updateUK8SAutoscaler(request) {
300
+ const args = Object.assign({ Action: 'UpdateUK8SAutoscaler' }, (request || {}));
301
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
302
+ }
195
303
  /**
196
304
  * UpdateUK8SNodeGroup - 修改UK8S节点池
197
305
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ucloud-sdks/ucloud-sdk-js",
3
3
  "description": "ucloud-sdk-js",
4
- "version": "0.2.55",
4
+ "version": "0.2.57",
5
5
  "author": "oas@ucloud.cn",
6
6
  "license": "MIT",
7
7
  "private": false,