tencentcloud-sdk-nodejs-tke 4.1.268 → 4.1.270

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.
@@ -1,6 +1,6 @@
1
- import { v20180525 } from "./v20180525";
2
1
  import { v20220501 } from "./v20220501";
2
+ import { v20180525 } from "./v20180525";
3
3
  export const tke = {
4
- v20180525: v20180525,
5
4
  v20220501: v20220501,
5
+ v20180525: v20180525,
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-tke",
3
- "version": "4.1.268",
3
+ "version": "4.1.270",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1,10 +1,10 @@
1
1
  export declare const tke: {
2
- v20180525: {
3
- Client: typeof import("./v20180525/tke_client").Client;
4
- Models: typeof import("./v20180525/tke_models");
5
- };
6
2
  v20220501: {
7
3
  Client: typeof import("./v20220501/tke_client").Client;
8
4
  Models: typeof import("./v20220501/tke_models");
9
5
  };
6
+ v20180525: {
7
+ Client: typeof import("./v20180525/tke_client").Client;
8
+ Models: typeof import("./v20180525/tke_models");
9
+ };
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tke = void 0;
4
- const v20180525_1 = require("./v20180525");
5
4
  const v20220501_1 = require("./v20220501");
5
+ const v20180525_1 = require("./v20180525");
6
6
  exports.tke = {
7
- v20180525: v20180525_1.v20180525,
8
7
  v20220501: v20220501_1.v20220501,
8
+ v20180525: v20180525_1.v20180525,
9
9
  };
@@ -1207,46 +1207,39 @@ export interface DescribeClustersRequest {
1207
1207
  */
1208
1208
  export interface UpgradeClusterInstancesRequest {
1209
1209
  /**
1210
- * 集群ID(请登录 [TKE 控制台](https://console.cloud.tencent.com/tke2) 获取集群 ID
1210
+ * <p>集群ID(请登录 <a href="https://console.cloud.tencent.com/tke2">TKE 控制台</a> 获取集群 ID )</p>
1211
1211
  */
1212
1212
  ClusterId: string;
1213
1213
  /**
1214
- * create 表示开始一次升级任务
1215
- pause 表示停止任务
1216
- resume表示继续任务
1217
- abort表示终止任务
1214
+ * <p>create 表示开始一次升级任务<br>pause 表示停止任务<br>resume表示继续任务<br>abort表示终止任务</p>
1218
1215
  */
1219
1216
  Operation: string;
1220
1217
  /**
1221
- * 升级类型,只有Operation是create需要设置
1222
- reset 大版本重装升级
1223
- hot 小版本热升级
1224
- major 大版本原地升级
1218
+ * <p>升级类型,只有Operation是create需要设置<br>reset 大版本重装升级<br>hot 小版本热升级<br>major 大版本原地升级</p>
1225
1219
  */
1226
1220
  UpgradeType?: string;
1227
1221
  /**
1228
- * 需要升级的节点列表,可以通过控制台或 [查询待升级节点接口
1229
- ](https://cloud.tencent.com/document/api/457/50366) 获取
1222
+ * <p>需要升级的节点列表,可以通过控制台或 <a href="https://cloud.tencent.com/document/api/457/50366">查询待升级节点接口</a> 获取</p>
1230
1223
  */
1231
1224
  InstanceIds?: Array<string>;
1232
1225
  /**
1233
- * 当节点重新加入集群时候所使用的参数,参考添加已有节点接口
1226
+ * <p>当节点重新加入集群时候所使用的参数,参考添加已有节点接口</p>
1234
1227
  */
1235
1228
  ResetParam?: UpgradeNodeResetParam;
1236
1229
  /**
1237
- * 是否忽略节点升级前检查,默认值 false
1230
+ * <p>是否忽略节点升级前检查,默认值 false</p>
1238
1231
  */
1239
1232
  SkipPreCheck?: boolean;
1240
1233
  /**
1241
- * 最大可容忍的不可用Pod比例,如果设置 0 表示不做校验
1234
+ * <p>最大可容忍的不可用Pod百分比,如果设置 0 表示不做校验</p><p>取值范围:[0, 100]</p><p>默认值:20</p>
1242
1235
  */
1243
1236
  MaxNotReadyPercent?: number;
1244
1237
  /**
1245
- * 是否升级节点运行时,默认false不升级
1238
+ * <p>是否升级节点运行时,默认false不升级</p>
1246
1239
  */
1247
1240
  UpgradeRunTime?: boolean;
1248
1241
  /**
1249
- * 支持多个节点并行升级,默认值为 1,最大并行数为15
1242
+ * <p>支持多个节点并行升级,默认值为 1,最大并行数为15</p>
1250
1243
  */
1251
1244
  Concurrent?: number;
1252
1245
  }
@@ -5626,31 +5619,31 @@ export interface DescribePrometheusTemplatesResponse {
5626
5619
  */
5627
5620
  export interface ModifyExternalNodePoolRequest {
5628
5621
  /**
5629
- * 集群ID
5622
+ * <p>集群ID</p>
5630
5623
  */
5631
5624
  ClusterId: string;
5632
5625
  /**
5633
- * 节点池ID
5626
+ * <p>节点池ID</p>
5634
5627
  */
5635
5628
  NodePoolId: string;
5636
5629
  /**
5637
- * 节点池名称
5630
+ * <p>节点池名称</p>
5638
5631
  */
5639
5632
  Name?: string;
5640
5633
  /**
5641
- * 注册节点标签
5634
+ * <p>注册节点标签</p>
5642
5635
  */
5643
5636
  Labels?: Array<Label>;
5644
5637
  /**
5645
- * 注册节点污点
5638
+ * <p>注册节点污点</p>
5646
5639
  */
5647
5640
  Taints?: Array<Taint>;
5648
5641
  /**
5649
- * 删除保护开关
5642
+ * <p>删除保护开关</p>
5650
5643
  */
5651
5644
  DeletionProtection?: boolean;
5652
5645
  /**
5653
- * base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看
5646
+ * <p>base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看</p>
5654
5647
  */
5655
5648
  UserScript?: string;
5656
5649
  }
@@ -7167,63 +7160,63 @@ export interface ModifyRollOutSequenceRequest {
7167
7160
  */
7168
7161
  export interface CreateClusterNodePoolRequest {
7169
7162
  /**
7170
- * cluster id
7163
+ * <p>cluster id</p>
7171
7164
  */
7172
7165
  ClusterId: string;
7173
7166
  /**
7174
- * AutoScalingGroupPara AS组参数,参考 https://cloud.tencent.com/document/product/377/20440
7167
+ * <p>AutoScalingGroupPara AS组参数,参考 https://cloud.tencent.com/document/product/377/20440</p>
7175
7168
  */
7176
7169
  AutoScalingGroupPara: string;
7177
7170
  /**
7178
- * LaunchConfigurePara 运行参数,参考 https://cloud.tencent.com/document/product/377/20447
7171
+ * <p>LaunchConfigurePara 运行参数,参考 https://cloud.tencent.com/document/product/377/20447</p>
7179
7172
  */
7180
7173
  LaunchConfigurePara: string;
7181
7174
  /**
7182
- * InstanceAdvancedSettings
7175
+ * <p>InstanceAdvancedSettings</p>
7183
7176
  */
7184
7177
  InstanceAdvancedSettings: InstanceAdvancedSettings;
7185
7178
  /**
7186
- * 是否启用自动伸缩
7179
+ * <p>是否启用自动伸缩</p>
7187
7180
  */
7188
7181
  EnableAutoscale: boolean;
7189
7182
  /**
7190
- * 节点池名称
7183
+ * <p>节点池名称</p>
7191
7184
  */
7192
7185
  Name?: string;
7193
7186
  /**
7194
- * Labels标签
7187
+ * <p>Labels标签</p>
7195
7188
  */
7196
7189
  Labels?: Array<Label>;
7197
7190
  /**
7198
- * Taints互斥
7191
+ * <p>Taints互斥</p>
7199
7192
  */
7200
7193
  Taints?: Array<Taint>;
7201
7194
  /**
7202
- * 节点Annotation 列表
7195
+ * <p>节点Annotation 列表</p>
7203
7196
  */
7204
7197
  Annotations?: Array<AnnotationValue>;
7205
7198
  /**
7206
- * 节点池纬度运行时类型及版本
7199
+ * <p>节点池纬度运行时类型及版本</p>
7207
7200
  */
7208
7201
  ContainerRuntime?: string;
7209
7202
  /**
7210
- * 运行时版本
7203
+ * <p>运行时版本</p>
7211
7204
  */
7212
7205
  RuntimeVersion?: string;
7213
7206
  /**
7214
- * 节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName
7207
+ * <p>节点池os,当为自定义镜像时,传镜像id;否则为公共镜像的osName</p>
7215
7208
  */
7216
7209
  NodePoolOs?: string;
7217
7210
  /**
7218
- * 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值)
7211
+ * <p>容器的镜像版本,&quot;DOCKER_CUSTOMIZE&quot;(容器定制版),&quot;GENERAL&quot;(普通版本,默认值)</p>
7219
7212
  */
7220
7213
  OsCustomizeType?: string;
7221
7214
  /**
7222
- * 资源标签
7215
+ * <p>资源标签</p>
7223
7216
  */
7224
7217
  Tags?: Array<Tag>;
7225
7218
  /**
7226
- * 删除保护开关
7219
+ * <p>删除保护开关</p>
7227
7220
  */
7228
7221
  DeletionProtection?: boolean;
7229
7222
  }
@@ -7263,7 +7256,7 @@ export interface ReleaseValues {
7263
7256
  */
7264
7257
  export interface CreateClusterNodePoolResponse {
7265
7258
  /**
7266
- * 节点池id
7259
+ * <p>节点池id</p>
7267
7260
  */
7268
7261
  NodePoolId?: string;
7269
7262
  /**
@@ -13925,83 +13918,83 @@ export interface DeleteEdgeCVMInstancesRequest {
13925
13918
  */
13926
13919
  export interface ModifyClusterNodePoolRequest {
13927
13920
  /**
13928
- * 集群ID
13921
+ * <p>集群ID</p>
13929
13922
  */
13930
13923
  ClusterId: string;
13931
13924
  /**
13932
- * 节点池ID
13925
+ * <p>节点池ID</p>
13933
13926
  */
13934
13927
  NodePoolId: string;
13935
13928
  /**
13936
- * 名称,最长63个字符,只能包含小写字母、数字及分隔符“_”,且必须以小写字母开头,数字或小写字母结尾
13929
+ * <p>名称,最长63个字符,只能包含小写字母、数字及分隔符“_”,且必须以小写字母开头,数字或小写字母结尾</p>
13937
13930
  */
13938
13931
  Name?: string;
13939
13932
  /**
13940
- * 最大节点数
13933
+ * <p>最大节点数</p>
13941
13934
  */
13942
13935
  MaxNodesNum?: number;
13943
13936
  /**
13944
- * 最小节点数
13937
+ * <p>最小节点数</p>
13945
13938
  */
13946
13939
  MinNodesNum?: number;
13947
13940
  /**
13948
- * 标签
13941
+ * <p>标签</p>
13949
13942
  */
13950
13943
  Labels?: Array<Label>;
13951
13944
  /**
13952
- * 污点
13945
+ * <p>污点</p>
13953
13946
  */
13954
13947
  Taints?: Array<Taint>;
13955
13948
  /**
13956
- * 节点 Annotation 列表
13949
+ * <p>节点 Annotation 列表</p>
13957
13950
  */
13958
13951
  Annotations?: Array<AnnotationValue>;
13959
13952
  /**
13960
- * 是否开启伸缩
13953
+ * <p>是否开启伸缩</p>
13961
13954
  */
13962
13955
  EnableAutoscale?: boolean;
13963
13956
  /**
13964
- * 操作系统名称
13957
+ * <p>操作系统名称</p>
13965
13958
  */
13966
13959
  OsName?: string;
13967
13960
  /**
13968
- * 镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值)
13961
+ * <p>镜像版本,&quot;DOCKER_CUSTOMIZE&quot;(容器定制版),&quot;GENERAL&quot;(普通版本,默认值)</p>
13969
13962
  */
13970
13963
  OsCustomizeType?: string;
13971
13964
  /**
13972
- * GPU驱动版本,CUDA版本,cuDNN版本以及是否启用MIG特性
13965
+ * <p>GPU驱动版本,CUDA版本,cuDNN版本以及是否启用MIG特性</p>
13973
13966
  */
13974
13967
  GPUArgs?: GPUArgs;
13975
13968
  /**
13976
- * base64编码后的自定义脚本
13969
+ * <p>base64编码后的自定义脚本</p>
13977
13970
  */
13978
13971
  UserScript?: string;
13979
13972
  /**
13980
- * 更新label和taint时忽略存量节点
13973
+ * <p>更新label和taint时忽略存量节点</p>
13981
13974
  */
13982
13975
  IgnoreExistedNode?: boolean;
13983
13976
  /**
13984
- * 节点自定义参数
13977
+ * <p>节点自定义参数</p>
13985
13978
  */
13986
13979
  ExtraArgs?: InstanceExtraArgs;
13987
13980
  /**
13988
- * 资源标签
13981
+ * <p>资源标签</p>
13989
13982
  */
13990
13983
  Tags?: Array<Tag>;
13991
13984
  /**
13992
- * 设置加入的节点是否参与调度,默认值为0,表示参与调度;非0表示不参与调度, 待节点初始化完成之后, 可执行kubectl uncordon nodename使node加入调度.
13985
+ * <p>设置加入的节点是否参与调度,默认值为0,表示参与调度;非0表示不参与调度, 待节点初始化完成之后, 可执行kubectl uncordon nodename使node加入调度.</p>
13993
13986
  */
13994
13987
  Unschedulable?: number;
13995
13988
  /**
13996
- * 删除保护开关
13989
+ * <p>删除保护开关</p>
13997
13990
  */
13998
13991
  DeletionProtection?: boolean;
13999
13992
  /**
14000
- * dockerd --graph 指定值, 默认为 /var/lib/docker
13993
+ * <p>dockerd --graph 指定值, 默认为 /var/lib/docker</p>
14001
13994
  */
14002
13995
  DockerGraphPath?: string;
14003
13996
  /**
14004
- * base64编码后的自定义脚本
13997
+ * <p>base64编码后的自定义脚本</p>
14005
13998
  */
14006
13999
  PreStartUserScript?: string;
14007
14000
  }
@@ -28,8 +28,97 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
28
28
  */
29
29
  StartMachines(req: StartMachinesRequest, cb?: (error: string, rep: StartMachinesResponse) => void): Promise<StartMachinesResponse>;
30
30
  /**
31
- * 创建 TKE 节点池
32
- */
31
+ * **通过 CAM 策略强制节点池安全配置**
32
+
33
+ 创建原生节点池(`CreateNodePool`)接口已接入 CAM 条件鉴权,会根据请求参数计算出一组**条件键(Condition Key)**并传入 CAM 鉴权。您可以在 CAM/SCP 策略中基于这些条件键配置 `deny` 规则,从而强制约束节点池的安全配置(如必须开启磁盘加密、安全加固等)。
34
+
35
+ **支持的条件键**
36
+
37
+ | 条件键 | 含义 | 取值 | 取值判定说明 |
38
+ |--------|------|------|-------------|
39
+ | `tke:NodePoolType` | 节点池类型 | `Native` / `External` | 取请求的节点池类型,未指定时默认为 `Native` |
40
+ | `tke:SystemDiskEncrypted` | 系统盘是否加密 | `true` / `false` | 系统盘加密属性为 `ENCRYPT`(大小写不敏感)时为 `true`,否则为 `false` |
41
+ | `tke:AllDataDisksEncrypted` | 所有数据盘是否都已加密 | `true` / `false` | 全部数据盘加密属性均为 `ENCRYPT` 时为 `true`;未配置数据盘时也为 `true`;只要有任一数据盘未加密即为 `false` |
42
+ | `tke:SecurityAgentEnabled` | 是否开启安全加固(Security Agent) | `true` / `false` | 开启安全加固时为 `true`,否则为 `false` |
43
+
44
+ > 说明:所有条件键的取值均为字符串 `"true"` / `"false"`,请在策略中使用字符串形式匹配。
45
+
46
+ **使用方式**
47
+
48
+ 在 CAM 策略中使用 `bool_equal` 匹配条件键值为 `"false"`,配合 `effect: deny`,即可实现"未满足安全配置则拒绝创建节点池"的强制约束。
49
+
50
+ **示例一:强制开启安全加固**
51
+
52
+ 创建节点池时若未开启安全加固(`tke:SecurityAgentEnabled = "false"`),则拒绝。
53
+
54
+ ```json
55
+ {
56
+ "version": "2.0",
57
+ "statement": [
58
+ {
59
+ "effect": "deny",
60
+ "action": ["tke:CreateNodePool"],
61
+ "resource": ["*"],
62
+ "condition": {
63
+ "bool_equal": {
64
+ "tke:SecurityAgentEnabled": "false"
65
+ }
66
+ }
67
+ }
68
+ ]
69
+ }
70
+ ```
71
+
72
+ **示例二:强制数据盘加密**
73
+
74
+ 创建节点池时若存在未加密的数据盘(`tke:AllDataDisksEncrypted = "false"`),则拒绝。
75
+
76
+ ```json
77
+ {
78
+ "version": "2.0",
79
+ "statement": [
80
+ {
81
+ "effect": "deny",
82
+ "action": ["tke:CreateNodePool"],
83
+ "resource": ["*"],
84
+ "condition": {
85
+ "bool_equal": {
86
+ "tke:AllDataDisksEncrypted": "false"
87
+ }
88
+ }
89
+ }
90
+ ]
91
+ }
92
+ ```
93
+
94
+ **示例三:强制系统盘加密**
95
+
96
+ 创建节点池时若系统盘未加密(`tke:SystemDiskEncrypted = "false"`),则拒绝。
97
+
98
+ ```json
99
+ {
100
+ "version": "2.0",
101
+ "statement": [
102
+ {
103
+ "effect": "deny",
104
+ "action": ["tke:CreateNodePool"],
105
+ "resource": ["*"],
106
+ "condition": {
107
+ "bool_equal": {
108
+ "tke:SystemDiskEncrypted": "false"
109
+ }
110
+ }
111
+ }
112
+ ]
113
+ }
114
+ ```
115
+
116
+ **注意事项**
117
+
118
+ - 上述条件键在**未配置任何 CAM 策略**时不会影响节点池创建,仅在您显式配置了对应 `deny` 策略时才生效。
119
+ - 如需同时强制多项安全配置,必须在同一策略的 `statement` 中配置多条 `deny` 规则,不能将多个条件键写入同一条 `condition`。
120
+ - `tke:AllDataDisksEncrypted` 在**无数据盘**场景下取值为 `true`(不存在未加密的数据盘),因此仅约束"已配置的数据盘必须加密",不会强制要求必须挂载数据盘。
121
+ */
33
122
  CreateNodePool(req: CreateNodePoolRequest, cb?: (error: string, rep: CreateNodePoolResponse) => void): Promise<CreateNodePoolResponse>;
34
123
  /**
35
124
  * 查询健康检测策略绑定关系
@@ -58,8 +58,97 @@ class Client extends TencentCloudCommon.AbstractClient {
58
58
  return this.request("StartMachines", req, cb);
59
59
  }
60
60
  /**
61
- * 创建 TKE 节点池
62
- */
61
+ * **通过 CAM 策略强制节点池安全配置**
62
+
63
+ 创建原生节点池(`CreateNodePool`)接口已接入 CAM 条件鉴权,会根据请求参数计算出一组**条件键(Condition Key)**并传入 CAM 鉴权。您可以在 CAM/SCP 策略中基于这些条件键配置 `deny` 规则,从而强制约束节点池的安全配置(如必须开启磁盘加密、安全加固等)。
64
+
65
+ **支持的条件键**
66
+
67
+ | 条件键 | 含义 | 取值 | 取值判定说明 |
68
+ |--------|------|------|-------------|
69
+ | `tke:NodePoolType` | 节点池类型 | `Native` / `External` | 取请求的节点池类型,未指定时默认为 `Native` |
70
+ | `tke:SystemDiskEncrypted` | 系统盘是否加密 | `true` / `false` | 系统盘加密属性为 `ENCRYPT`(大小写不敏感)时为 `true`,否则为 `false` |
71
+ | `tke:AllDataDisksEncrypted` | 所有数据盘是否都已加密 | `true` / `false` | 全部数据盘加密属性均为 `ENCRYPT` 时为 `true`;未配置数据盘时也为 `true`;只要有任一数据盘未加密即为 `false` |
72
+ | `tke:SecurityAgentEnabled` | 是否开启安全加固(Security Agent) | `true` / `false` | 开启安全加固时为 `true`,否则为 `false` |
73
+
74
+ > 说明:所有条件键的取值均为字符串 `"true"` / `"false"`,请在策略中使用字符串形式匹配。
75
+
76
+ **使用方式**
77
+
78
+ 在 CAM 策略中使用 `bool_equal` 匹配条件键值为 `"false"`,配合 `effect: deny`,即可实现"未满足安全配置则拒绝创建节点池"的强制约束。
79
+
80
+ **示例一:强制开启安全加固**
81
+
82
+ 创建节点池时若未开启安全加固(`tke:SecurityAgentEnabled = "false"`),则拒绝。
83
+
84
+ ```json
85
+ {
86
+ "version": "2.0",
87
+ "statement": [
88
+ {
89
+ "effect": "deny",
90
+ "action": ["tke:CreateNodePool"],
91
+ "resource": ["*"],
92
+ "condition": {
93
+ "bool_equal": {
94
+ "tke:SecurityAgentEnabled": "false"
95
+ }
96
+ }
97
+ }
98
+ ]
99
+ }
100
+ ```
101
+
102
+ **示例二:强制数据盘加密**
103
+
104
+ 创建节点池时若存在未加密的数据盘(`tke:AllDataDisksEncrypted = "false"`),则拒绝。
105
+
106
+ ```json
107
+ {
108
+ "version": "2.0",
109
+ "statement": [
110
+ {
111
+ "effect": "deny",
112
+ "action": ["tke:CreateNodePool"],
113
+ "resource": ["*"],
114
+ "condition": {
115
+ "bool_equal": {
116
+ "tke:AllDataDisksEncrypted": "false"
117
+ }
118
+ }
119
+ }
120
+ ]
121
+ }
122
+ ```
123
+
124
+ **示例三:强制系统盘加密**
125
+
126
+ 创建节点池时若系统盘未加密(`tke:SystemDiskEncrypted = "false"`),则拒绝。
127
+
128
+ ```json
129
+ {
130
+ "version": "2.0",
131
+ "statement": [
132
+ {
133
+ "effect": "deny",
134
+ "action": ["tke:CreateNodePool"],
135
+ "resource": ["*"],
136
+ "condition": {
137
+ "bool_equal": {
138
+ "tke:SystemDiskEncrypted": "false"
139
+ }
140
+ }
141
+ }
142
+ ]
143
+ }
144
+ ```
145
+
146
+ **注意事项**
147
+
148
+ - 上述条件键在**未配置任何 CAM 策略**时不会影响节点池创建,仅在您显式配置了对应 `deny` 策略时才生效。
149
+ - 如需同时强制多项安全配置,必须在同一策略的 `statement` 中配置多条 `deny` 规则,不能将多个条件键写入同一条 `condition`。
150
+ - `tke:AllDataDisksEncrypted` 在**无数据盘**场景下取值为 `true`(不存在未加密的数据盘),因此仅约束"已配置的数据盘必须加密",不会强制要求必须挂载数据盘。
151
+ */
63
152
  async CreateNodePool(req, cb) {
64
153
  return this.request("CreateNodePool", req, cb);
65
154
  }
@@ -382,43 +382,43 @@ export interface IntOrString {
382
382
  */
383
383
  export interface CreateNodePoolRequest {
384
384
  /**
385
- * 集群 ID
385
+ * <p>集群 ID</p>
386
386
  */
387
387
  ClusterId: string;
388
388
  /**
389
- * 节点池名称
389
+ * <p>节点池名称</p>
390
390
  */
391
391
  Name: string;
392
392
  /**
393
- * 节点池类型
393
+ * <p>节点池类型</p>
394
394
  */
395
395
  Type: string;
396
396
  /**
397
- * 节点 Labels
397
+ * <p>节点 Labels</p>
398
398
  */
399
399
  Labels?: Array<Label>;
400
400
  /**
401
- * 节点污点
401
+ * <p>节点污点</p>
402
402
  */
403
403
  Taints?: Array<Taint>;
404
404
  /**
405
- * 节点标签
405
+ * <p>节点标签</p>
406
406
  */
407
407
  Tags?: Array<TagSpecification>;
408
408
  /**
409
- * 是否开启删除保护
409
+ * <p>是否开启删除保护</p>
410
410
  */
411
411
  DeletionProtection?: boolean;
412
412
  /**
413
- * 节点是否默认不可调度
413
+ * <p>节点是否默认不可调度</p>
414
414
  */
415
415
  Unschedulable?: boolean;
416
416
  /**
417
- * 原生节点池创建参数(Type字段设置为Native时需填写)
417
+ * <p>原生节点池创建参数(Type字段设置为Native时需填写)</p>
418
418
  */
419
419
  Native?: CreateNativeNodePoolParam;
420
420
  /**
421
- * 节点 Annotation 列表
421
+ * <p>节点 Annotation 列表</p>
422
422
  */
423
423
  Annotations?: Array<Annotation>;
424
424
  }
@@ -1045,6 +1045,10 @@ export interface ModifyNodePoolResponse {
1045
1045
  * kubernetes Taint
1046
1046
  */
1047
1047
  export interface Taint {
1048
+ /**
1049
+ * Taint的Effect
1050
+ */
1051
+ Effect?: string;
1048
1052
  /**
1049
1053
  * Taint的Key
1050
1054
  */
@@ -1053,10 +1057,6 @@ export interface Taint {
1053
1057
  * Taint的Value
1054
1058
  */
1055
1059
  Value?: string;
1056
- /**
1057
- * Taint的Effect
1058
- */
1059
- Effect?: string;
1060
1060
  }
1061
1061
  /**
1062
1062
  * 普通节点信息
@@ -1383,7 +1383,7 @@ export interface HealthCheckTemplateRule {
1383
1383
  */
1384
1384
  export interface CreateNodePoolResponse {
1385
1385
  /**
1386
- * 节点池 ID
1386
+ * <p>节点池 ID</p>
1387
1387
  */
1388
1388
  NodePoolId?: string;
1389
1389
  /**