@ucloud-sdks/ucloud-sdk-js 0.2.41 → 0.2.43

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.
@@ -106,6 +106,10 @@ export interface CreateSandboxSiteRequest {
106
106
  * 访问码
107
107
  */
108
108
  AccessCode: string;
109
+ /**
110
+ * 站点空间空间模版,格式:site-nc-ng,n为偶数
111
+ */
112
+ TemplateName: string;
109
113
  /**
110
114
  * 环境变量,格式:["key=value"]
111
115
  */
@@ -117,12 +117,24 @@ export default class UK8SClient extends Client {
117
117
  * See also: https://docs.ucloud.cn/api/uk8s-api/list_uk8s_uls_config
118
118
  */
119
119
  listUK8SULSConfig(request?: ListUK8SULSConfigRequest): Promise<ListUK8SULSConfigResponse>;
120
+ /**
121
+ * ModifyUK8SClusterName - 修改k8s集群名称
122
+ *
123
+ * See also: https://docs.ucloud.cn/api/uk8s-api/modify_uk8s_cluster_name
124
+ */
125
+ modifyUK8SClusterName(request?: ModifyUK8SClusterNameRequest): Promise<ModifyUK8SClusterNameResponse>;
120
126
  /**
121
127
  * RemoveUK8SNodeGroup - 删除UK8S节点池
122
128
  *
123
129
  * See also: https://docs.ucloud.cn/api/uk8s-api/remove_uk8s_node_group
124
130
  */
125
131
  removeUK8SNodeGroup(request?: RemoveUK8SNodeGroupRequest): Promise<RemoveUK8SNodeGroupResponse>;
132
+ /**
133
+ * UpdateUK8SNodeGroup - 修改UK8S节点池
134
+ *
135
+ * See also: https://docs.ucloud.cn/api/uk8s-api/update_uk8s_node_group
136
+ */
137
+ updateUK8SNodeGroup(request?: UpdateUK8SNodeGroupRequest): Promise<UpdateUK8SNodeGroupResponse>;
126
138
  /**
127
139
  * UpdateUK8SULSConfig - 更新指定UK8S集群的日志采集规则。
128
140
  *
@@ -203,35 +215,43 @@ export interface AddUK8SNodeGroupRequest {
203
215
  /**
204
216
  * 镜像ID
205
217
  */
206
- ImageId?: string;
218
+ ImageId: string;
207
219
  /**
208
220
  * 云主机机型。枚举值["N", "C", "G", "O", "OS"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。
209
221
  */
210
- MachineType?: string;
222
+ MachineType: string;
211
223
  /**
212
- * 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake";"Intel/CascadelakeR"; “Amd/Epyc2”,"Amd/Auto"],默认值是"Intel/Auto"
224
+ * CPU个数
213
225
  */
214
- MinimalCpuPlatform?: string;
226
+ CPU: number;
215
227
  /**
216
- * GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关)
228
+ * 内存大小。单位:MB
217
229
  */
218
- CPU?: number;
230
+ Mem: number;
219
231
  /**
220
- * 内存大小。单位:MB
232
+ * 磁盘类型
221
233
  */
222
- Mem?: number;
234
+ BootDiskType: string;
235
+ /**
236
+ * 系统盘大小,单位GB。默认40。范围:[40, 500]。注意SSD本地盘无法调整。
237
+ */
238
+ BootDiskSize: number;
239
+ /**
240
+ * 子网 ID。默认为集群创建时填写的子网ID,也可以填写集群同VPC内的子网ID。
241
+ */
242
+ SubnetId: string;
243
+ /**
244
+ * 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake";"Intel/CascadelakeR"; “Amd/Epyc2”,"Amd/Auto"],默认值是"Intel/Auto"
245
+ */
246
+ MinimalCpuPlatform?: string;
223
247
  /**
224
248
  * GPU类型
225
249
  */
226
250
  GpuType?: string;
227
251
  /**
228
- * GPU卡核心数
252
+ * GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关)
229
253
  */
230
254
  GPU?: number;
231
- /**
232
- * 磁盘类型
233
- */
234
- BootDiskType?: string;
235
255
  /**
236
256
  * 数据磁盘大小
237
257
  */
@@ -249,13 +269,234 @@ export interface AddUK8SNodeGroupRequest {
249
269
  */
250
270
  ChargeType?: string;
251
271
  /**
252
- * 系统盘大小,单位GB。默认40。范围:[40, 500]。注意SSD本地盘无法调整。
272
+ * 主机规格族
253
273
  */
254
- BootDiskSize?: number;
274
+ UHostFamily?: string;
255
275
  /**
256
- * 子网 ID。默认为集群创建时填写的子网ID,也可以填写集群同VPC内的子网ID
276
+ * 主机安全模式。Firewall:防火墙;SecGroup:安全组;默认值:Firewall
257
277
  */
258
- SubnetId?: string;
278
+ SecurityMode?: string;
279
+ /**
280
+ * 自定义Uhost主机名前缀。完整的自定义Uhost主机名为{NodeNamePrefix}-{NodeIP}。
281
+ */
282
+ NodeNamePrefix?: string;
283
+ /**
284
+ * 重复 待删除 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
285
+ */
286
+ ZoneBaned?: string;
287
+ /**
288
+ * 硬件隔离组id。可通过DescribeIsolationGroup获取。
289
+ */
290
+ IsolationGroupId?: string;
291
+ /**
292
+ * 默认110,生产环境建议小于等于110。
293
+ */
294
+ MaxPods?: string;
295
+ /**
296
+ * 用户自定义数据。当镜像支持Cloud-init Feature时可填写此字段。注意:1、总数据量大小不超过 16K;2、使用base64编码。
297
+ */
298
+ UserData?: string;
299
+ /**
300
+ * 用户自定义Shell脚本。与UserData的区别在于InitScript在节点初始化完毕后才执行,UserData则是云主机初始化时执行。
301
+ */
302
+ InitScript?: string;
303
+ /**
304
+ * Node节点污点,形式为key=value:effect,多组taints用”,“隔开,最多支持五组。
305
+ */
306
+ Taints?: string;
307
+ /**
308
+ * Node节点标签。key=value形式,多组用”,“隔开,最多5组。 如env=pro,type=game
309
+ */
310
+ Labels?: string;
311
+ /**
312
+ * 网络增强特性。枚举值:Normal,不开启; Super,开启网络增强1.0; Ultra,开启网络增强2.0;Extreme,开启网络增强3.0; Infiniband, 开启网络增强4.0(详情参考主机官网文档)
313
+ */
314
+ NetCapability?: string;
315
+ /**
316
+ * 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启。
317
+ */
318
+ UNIFeature?: boolean;
319
+ /**
320
+ *
321
+ */
322
+ SecGroupId?: {
323
+ /**
324
+ * 安全组 ID。至多可以同时绑定5个安全组。
325
+ */
326
+ Id?: string;
327
+ /**
328
+ * 安全组优先级。取值范围[1, 5]
329
+ */
330
+ Priority?: string;
331
+ /**
332
+ * 安全组名称。
333
+ */
334
+ Name?: string;
335
+ }[];
336
+ /**
337
+ * 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 [DescribeFirewall](api/unet-api/describe_firewall.html)。
338
+ */
339
+ SecurityGroupId?: string;
340
+ /**
341
+ *
342
+ */
343
+ NetworkInterface?: {
344
+ /**
345
+ *
346
+ */
347
+ EIP?: {
348
+ /**
349
+ * 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式下非必传, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800]
350
+ */
351
+ Bandwidth?: number;
352
+ /**
353
+ * 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. "Free":免费带宽模式,默认为 "Bandwidth"
354
+ */
355
+ PayMode?: string;
356
+ /**
357
+ * 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效
358
+ */
359
+ ShareBandwidthId?: string;
360
+ /**
361
+ * 【若绑定EIP,此参数必填】弹性IP的线路。枚举值: 国际: International,BGP: Bgp.各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International
362
+ */
363
+ OperatorName?: string;
364
+ /**
365
+ * 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看。
366
+ */
367
+ CouponId?: string;
368
+ };
369
+ }[];
370
+ /**
371
+ *
372
+ */
373
+ KubeletConfiguration?: {
374
+ /**
375
+ * 容器的日志文件个数上限,需大于等于2。控制台展示为containerLogMaxFiles
376
+ */
377
+ ContainerLogMaxFiles?: number;
378
+ /**
379
+ * 容器日志文件轮换生成新文件的最大阈值,需以Mi结尾。控制台展示为containerLogMaxSize
380
+ */
381
+ ContainerLogMaxSize?: string;
382
+ /**
383
+ * 配置镜像的磁盘用量百分比阈值,一旦镜像用量超过此阈值,镜像垃圾收集会一直运行。取值范围[1, 100], 同时需大于ImageGCLowThresholdPercent取值。控制台展示为imageGCHighThresholdPercent
384
+ */
385
+ ImageGCHighThresholdPercent?: number;
386
+ /**
387
+ * 配置镜像的磁盘用量百分比阈值,镜像用量低于此阈值时不会执行镜像垃圾收集操作。取值范围[1, 100], 同时需小于imageGCHighThresholdPercent取值。控制台展示为imageGCLowThresholdPercent
388
+ */
389
+ ImageGCLowThresholdPercent?: number;
390
+ /**
391
+ * Node能运行的Pod最大数量。需大于0。控制台展示为maxPods
392
+ */
393
+ MaxPods?: number;
394
+ /**
395
+ *
396
+ */
397
+ EvictionHard?: {
398
+ /**
399
+ * 触发Pod驱逐操作的硬性门限之内存用量: 需以Mi或Gi结尾。控制台展示为evictionHard - memory.available
400
+ */
401
+ MemoryAvailable?: string;
402
+ /**
403
+ * 触发Pod驱逐操作的硬性门限之容器镜像剩余空间: 需以%结尾。控制台展示为evictionHard - imagefs.available
404
+ */
405
+ ImagefsAvailable?: string;
406
+ /**
407
+ * 触发Pod驱逐操作的硬性门限之节点存储剩余空间: 需以%结尾。控制台展示为evictionHard - nodefs.available
408
+ */
409
+ NodefsAvailable?: string;
410
+ /**
411
+ * 触发Pod驱逐操作的硬性门限节点inode剩余量: 需以%结尾。控制台展示为evictionHard - nodefs.inodesFree
412
+ */
413
+ NodefsInodesFree?: string;
414
+ };
415
+ /**
416
+ *
417
+ */
418
+ EvictionSoft?: {
419
+ /**
420
+ * 触发Pod驱逐操作的软性门限之内存用量: 需以Mi或Gi结尾。配置此值时必须同时配置EvictionSoftGracePeriod.MemoryAvailable。控制台展示为evictionSoft - memory.available
421
+ */
422
+ MemoryAvailable?: string;
423
+ /**
424
+ * 触发Pod驱逐操作的软性门限之容器镜像剩余空间: 需以%结尾。配置此值时必须同时配置EvictionSoftGracePeriod.ImagefsAvailable。控制台展示为evictionSoft - imagefs.available
425
+ */
426
+ ImagefsAvailable?: string;
427
+ /**
428
+ * 触发Pod驱逐操作的软性门限之节点存储剩余空间: 需以%结尾。配置此值时必须同时配置EvictionSoftGracePeriod.NodefsAvailable。控制台展示为evictionSoft - nodefs.available
429
+ */
430
+ NodefsAvailable?: string;
431
+ /**
432
+ * 触发Pod驱逐操作的软性门限节点inode剩余量: 需以%结尾。配置此值时必须同时配置EvictionSoftGracePeriod.NodefsInodesFree。控制台展示为evictionSoft - nodefs.inodesFree
433
+ */
434
+ NodefsInodesFree?: string;
435
+ };
436
+ /**
437
+ *
438
+ */
439
+ EvictionSoftGracePeriod?: {
440
+ /**
441
+ * MemoryAvailable软性门限的宽限时间,必须以s结尾。控制台展示为evictionSoftGracePeriod - memory.available
442
+ */
443
+ MemoryAvailable?: string;
444
+ /**
445
+ * ImagefsAvailable软性门限的宽限时间,必须以s结尾。控制台展示为evictionSoftGracePeriod - imagefs.available
446
+ */
447
+ ImagefsAvailable?: string;
448
+ /**
449
+ * NodefsAvailable软性门限的宽限时间,必须以s结尾。控制台展示为evictionSoftGracePeriod - nodefs.available
450
+ */
451
+ NodefsAvailable?: string;
452
+ /**
453
+ * NodefsInodesFree软性门限的宽限时间,必须以s结尾。控制台展示为evictionSoftGracePeriod - nodefs.inodesFree
454
+ */
455
+ NodefsInodesFree?: string;
456
+ };
457
+ /**
458
+ *
459
+ */
460
+ KubeReserved?: {
461
+ /**
462
+ * kubelet预留CPU资源,以m结尾。控制台展示为kubeReserved - cpu
463
+ */
464
+ CPU?: string;
465
+ /**
466
+ * kubelet预留内存资源,以Mi结尾。控制台展示为kubeReserved - memory
467
+ */
468
+ Memory?: string;
469
+ /**
470
+ * kubelet预留存储空间,以Gi结尾。控制台展示为kubeReserved - ephemeral-storage
471
+ */
472
+ EphemeralStorage?: string;
473
+ /**
474
+ * kubelet预留pid数量,必须大于等于500, string方式提供。控制台展示为kubeReserved - pid
475
+ */
476
+ Pid?: string;
477
+ };
478
+ /**
479
+ *
480
+ */
481
+ SystemReserved?: {
482
+ /**
483
+ * 系统预留CPU资源,以m结尾。控制台展示为systemReserved - cpu
484
+ */
485
+ CPU?: string;
486
+ /**
487
+ * 系统预留内存资源,以Mi结尾。控制台展示为systemReserved - memory
488
+ */
489
+ Memory?: string;
490
+ /**
491
+ * 系统预留存储空间,以Gi结尾。控制台展示为systemReserved - ephemeral-storage
492
+ */
493
+ EphemeralStorage?: string;
494
+ /**
495
+ * 系统预留pid数量,必须大于等于500, string方式提供。控制台展示为systemReserved - pid
496
+ */
497
+ Pid?: string;
498
+ };
499
+ };
259
500
  }
260
501
  /**
261
502
  * AddUK8SNodeGroup - 添加UK8S节点池
@@ -3033,6 +3274,24 @@ export interface ListUK8SULSConfigResponse {
3033
3274
  Name?: string;
3034
3275
  }[];
3035
3276
  }
3277
+ /**
3278
+ * ModifyUK8SClusterName - 修改k8s集群名称
3279
+ */
3280
+ export interface ModifyUK8SClusterNameRequest {
3281
+ /**
3282
+ * 集群ID
3283
+ */
3284
+ ClusterId: string;
3285
+ /**
3286
+ * 集群名称
3287
+ */
3288
+ ClusterName: string;
3289
+ }
3290
+ /**
3291
+ * ModifyUK8SClusterName - 修改k8s集群名称
3292
+ */
3293
+ export interface ModifyUK8SClusterNameResponse {
3294
+ }
3036
3295
  /**
3037
3296
  * RemoveUK8SNodeGroup - 删除UK8S节点池
3038
3297
  */
@@ -3051,6 +3310,200 @@ export interface RemoveUK8SNodeGroupRequest {
3051
3310
  */
3052
3311
  export interface RemoveUK8SNodeGroupResponse {
3053
3312
  }
3313
+ /**
3314
+ * UpdateUK8SNodeGroup - 修改UK8S节点池
3315
+ */
3316
+ export interface UpdateUK8SNodeGroupRequest {
3317
+ /**
3318
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
3319
+ */
3320
+ Zone?: string;
3321
+ /**
3322
+ * 要修改的节点池Id
3323
+ */
3324
+ NodeGroupId: string;
3325
+ /**
3326
+ * 要修改的集群ID
3327
+ */
3328
+ ClusterId: string;
3329
+ /**
3330
+ * 节点池名字
3331
+ */
3332
+ NodeGroupName?: string;
3333
+ /**
3334
+ * 镜像ID
3335
+ */
3336
+ ImageId?: string;
3337
+ /**
3338
+ * 云主机机型。枚举值["N", "C", "G", "O", "OS"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。
3339
+ */
3340
+ MachineType?: string;
3341
+ /**
3342
+ * 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake";"Intel/CascadelakeR"; “Amd/Epyc2”,"Amd/Auto"],默认值是"Intel/Auto"
3343
+ */
3344
+ MinimalCpuPlatform?: string;
3345
+ /**
3346
+ * 主机规格族
3347
+ */
3348
+ UHostFamily?: string;
3349
+ /**
3350
+ * GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关)
3351
+ */
3352
+ CPU?: number;
3353
+ /**
3354
+ * 内存大小。单位:MB
3355
+ */
3356
+ Mem?: number;
3357
+ /**
3358
+ * GPU类型
3359
+ */
3360
+ GpuType?: string;
3361
+ /**
3362
+ * GPU卡核心数
3363
+ */
3364
+ GPU?: number;
3365
+ /**
3366
+ * 磁盘类型
3367
+ */
3368
+ BootDiskType?: string;
3369
+ /**
3370
+ * 数据磁盘大小
3371
+ */
3372
+ DataDiskSize?: number;
3373
+ /**
3374
+ * 磁盘类型
3375
+ */
3376
+ DataDiskType?: string;
3377
+ /**
3378
+ * 业务组
3379
+ */
3380
+ Tag?: string;
3381
+ /**
3382
+ * 计费模式
3383
+ */
3384
+ ChargeType?: string;
3385
+ /**
3386
+ * 系统盘大小,单位GB。默认40。范围:[40, 500]。注意SSD本地盘无法调整。
3387
+ */
3388
+ BootDiskSize?: number;
3389
+ /**
3390
+ * 子网 ID。默认为集群创建时填写的子网ID,也可以填写集群同VPC内的子网ID。
3391
+ */
3392
+ SubnetId?: string;
3393
+ /**
3394
+ * 重复 待删除 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
3395
+ */
3396
+ ZoneBaned?: string;
3397
+ /**
3398
+ * 硬件隔离组id。可通过DescribeIsolationGroup获取。
3399
+ */
3400
+ IsolationGroupId?: string;
3401
+ /**
3402
+ * 默认110,生产环境建议小于等于110。
3403
+ */
3404
+ MaxPods?: string;
3405
+ /**
3406
+ * 用户自定义数据。当镜像支持Cloud-init Feature时可填写此字段。注意:1、总数据量大小不超过 16K;2、使用base64编码。
3407
+ */
3408
+ UserData?: string;
3409
+ /**
3410
+ * 用户自定义Shell脚本。与UserData的区别在于InitScript在节点初始化完毕后才执行,UserData则是云主机初始化时执行。
3411
+ */
3412
+ InitScript?: string;
3413
+ /**
3414
+ * Node节点污点,形式为key=value:effect,多组taints用”,“隔开,最多支持五组。
3415
+ */
3416
+ Taints?: string;
3417
+ /**
3418
+ * Node节点标签。key=value形式,多组用”,“隔开,最多5组。 如env=pro,type=game
3419
+ */
3420
+ Labels?: string;
3421
+ /**
3422
+ * 网络增强特性。枚举值:Normal,不开启; Super,开启网络增强1.0; Ultra,开启网络增强2.0;Extreme,开启网络增强3.0; Infiniband, 开启网络增强4.0(详情参考主机官网文档)
3423
+ */
3424
+ NetCapability?: string;
3425
+ /**
3426
+ * 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启。
3427
+ */
3428
+ UNIFeature?: boolean;
3429
+ /**
3430
+ * 主机安全模式。Firewall:防火墙;SecGroup:安全组;默认值:Firewall。
3431
+ */
3432
+ SecurityMode?: string;
3433
+ /**
3434
+ * 自定义主机名前缀。完整的自定义主机名为{NodeNamePrefix}-{NodeIP}。
3435
+ */
3436
+ NodeNamePrefix?: string;
3437
+ /**
3438
+ *
3439
+ */
3440
+ SecGroupId?: {
3441
+ /**
3442
+ * 安全组 ID。至多可以同时绑定5个安全组。
3443
+ */
3444
+ Id?: string;
3445
+ /**
3446
+ * 安全组优先级。取值范围[1, 5]
3447
+ */
3448
+ Priority?: string;
3449
+ /**
3450
+ * 安全组名称。
3451
+ */
3452
+ Name?: string;
3453
+ }[];
3454
+ /**
3455
+ * 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 [DescribeFirewall](api/unet-api/describe_firewall.html)。
3456
+ */
3457
+ SecurityGroupId?: string;
3458
+ /**
3459
+ *
3460
+ */
3461
+ NetworkInterface?: {
3462
+ /**
3463
+ *
3464
+ */
3465
+ EIP?: {
3466
+ /**
3467
+ * 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式下非必传, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800]
3468
+ */
3469
+ Bandwidth?: number;
3470
+ /**
3471
+ * 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. "Free":免费带宽模式,默认为 "Bandwidth"
3472
+ */
3473
+ PayMode?: string;
3474
+ /**
3475
+ * 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效
3476
+ */
3477
+ ShareBandwidthId?: string;
3478
+ /**
3479
+ * 【若绑定EIP,此参数必填】弹性IP的线路。枚举值: 国际: International, BGP: Bgp。 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International
3480
+ */
3481
+ OperatorName?: string;
3482
+ /**
3483
+ * 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看。
3484
+ */
3485
+ CouponId?: string;
3486
+ };
3487
+ }[];
3488
+ /**
3489
+ *
3490
+ */
3491
+ KubeletConfiguration?: {
3492
+ /**
3493
+ * 全量KubeletConfiguration.XXX定义参考AddUK8SNodeGroup接口: https://uxiao.ucloudadmin.com/#/api-manager/api/detail/UK8S/AddUK8SNodeGroup
3494
+ */
3495
+ ContainerLogMaxFiles?: number;
3496
+ };
3497
+ }
3498
+ /**
3499
+ * UpdateUK8SNodeGroup - 修改UK8S节点池
3500
+ */
3501
+ export interface UpdateUK8SNodeGroupResponse {
3502
+ /**
3503
+ * 节点池ID
3504
+ */
3505
+ NodeGroupId: string;
3506
+ }
3054
3507
  /**
3055
3508
  * UpdateUK8SULSConfig - 更新指定UK8S集群的日志采集规则。
3056
3509
  */
@@ -174,6 +174,15 @@ class UK8SClient extends client_1.default {
174
174
  const args = Object.assign({ Action: 'ListUK8SULSConfig' }, (request || {}));
175
175
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
176
176
  }
177
+ /**
178
+ * ModifyUK8SClusterName - 修改k8s集群名称
179
+ *
180
+ * See also: https://docs.ucloud.cn/api/uk8s-api/modify_uk8s_cluster_name
181
+ */
182
+ modifyUK8SClusterName(request) {
183
+ const args = Object.assign({ Action: 'ModifyUK8SClusterName' }, (request || {}));
184
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
185
+ }
177
186
  /**
178
187
  * RemoveUK8SNodeGroup - 删除UK8S节点池
179
188
  *
@@ -183,6 +192,15 @@ class UK8SClient extends client_1.default {
183
192
  const args = Object.assign({ Action: 'RemoveUK8SNodeGroup' }, (request || {}));
184
193
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
185
194
  }
195
+ /**
196
+ * UpdateUK8SNodeGroup - 修改UK8S节点池
197
+ *
198
+ * See also: https://docs.ucloud.cn/api/uk8s-api/update_uk8s_node_group
199
+ */
200
+ updateUK8SNodeGroup(request) {
201
+ const args = Object.assign({ Action: 'UpdateUK8SNodeGroup' }, (request || {}));
202
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
203
+ }
186
204
  /**
187
205
  * UpdateUK8SULSConfig - 更新指定UK8S集群的日志采集规则。
188
206
  *