tencentcloud-sdk-python-tke 3.1.127__tar.gz → 3.1.134__tar.gz

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.
Files changed (22) hide show
  1. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud/tke/v20180525/models.py +4 -4
  5. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud/tke/v20220501/models.py +94 -49
  6. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud/tke/v20220501/tke_client.py +90 -1
  7. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud/tke/v20220501/tke_client_async.py +90 -1
  8. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud_sdk_python_tke.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_tke-3.1.134/tencentcloud_sdk_python_tke.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_tke-3.1.127/tencentcloud_sdk_python_tke.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/README.rst +0 -0
  12. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud/tke/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud/tke/v20180525/__init__.py +0 -0
  15. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud/tke/v20180525/errorcodes.py +0 -0
  16. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud/tke/v20180525/tke_client.py +0 -0
  17. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud/tke/v20180525/tke_client_async.py +0 -0
  18. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud/tke/v20220501/__init__.py +0 -0
  19. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud/tke/v20220501/errorcodes.py +0 -0
  20. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud_sdk_python_tke.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud_sdk_python_tke.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_tke-3.1.127 → tencentcloud_sdk_python_tke-3.1.134}/tencentcloud_sdk_python_tke.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tke
3
- Version: 3.1.127
3
+ Version: 3.1.134
4
4
  Summary: Tencent Cloud Tke SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.127
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.134
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-tke',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.127,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.134,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Tke SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.127'
17
+ __version__ = '3.1.134'
@@ -51545,9 +51545,9 @@ class RuntimeConfig(AbstractModel):
51545
51545
 
51546
51546
  def __init__(self):
51547
51547
  r"""
51548
- :param _RuntimeType: 运行时类型,支持的类型有 docker、containerd
51548
+ :param _RuntimeType: <p>运行时类型,支持的类型有 docker、containerd</p>
51549
51549
  :type RuntimeType: str
51550
- :param _RuntimeVersion: 运行时版本,参考:https://cloud.tencent.com/document/api/457/105241
51550
+ :param _RuntimeVersion: <p>运行时版本,参考:https://cloud.tencent.com/document/api/457/105241</p>
51551
51551
  :type RuntimeVersion: str
51552
51552
  """
51553
51553
  self._RuntimeType = None
@@ -51555,7 +51555,7 @@ class RuntimeConfig(AbstractModel):
51555
51555
 
51556
51556
  @property
51557
51557
  def RuntimeType(self):
51558
- r"""运行时类型,支持的类型有 docker、containerd
51558
+ r"""<p>运行时类型,支持的类型有 docker、containerd</p>
51559
51559
  :rtype: str
51560
51560
  """
51561
51561
  return self._RuntimeType
@@ -51566,7 +51566,7 @@ class RuntimeConfig(AbstractModel):
51566
51566
 
51567
51567
  @property
51568
51568
  def RuntimeVersion(self):
51569
- r"""运行时版本,参考:https://cloud.tencent.com/document/api/457/105241
51569
+ r"""<p>运行时版本,参考:https://cloud.tencent.com/document/api/457/105241</p>
51570
51570
  :rtype: str
51571
51571
  """
51572
51572
  return self._RuntimeVersion
@@ -931,25 +931,25 @@ class CreateNodePoolRequest(AbstractModel):
931
931
 
932
932
  def __init__(self):
933
933
  r"""
934
- :param _ClusterId: 集群 ID
934
+ :param _ClusterId: <p>集群 ID</p>
935
935
  :type ClusterId: str
936
- :param _Name: 节点池名称
936
+ :param _Name: <p>节点池名称</p>
937
937
  :type Name: str
938
- :param _Type: 节点池类型
938
+ :param _Type: <p>节点池类型</p>
939
939
  :type Type: str
940
- :param _Labels: 节点 Labels
940
+ :param _Labels: <p>节点 Labels</p>
941
941
  :type Labels: list of Label
942
- :param _Taints: 节点污点
942
+ :param _Taints: <p>节点污点</p>
943
943
  :type Taints: list of Taint
944
- :param _Tags: 节点标签
944
+ :param _Tags: <p>节点标签</p>
945
945
  :type Tags: list of TagSpecification
946
- :param _DeletionProtection: 是否开启删除保护
946
+ :param _DeletionProtection: <p>是否开启删除保护</p>
947
947
  :type DeletionProtection: bool
948
- :param _Unschedulable: 节点是否默认不可调度
948
+ :param _Unschedulable: <p>节点是否默认不可调度</p>
949
949
  :type Unschedulable: bool
950
- :param _Native: 原生节点池创建参数(Type字段设置为Native时需填写)
950
+ :param _Native: <p>原生节点池创建参数(Type字段设置为Native时需填写)</p>
951
951
  :type Native: :class:`tencentcloud.tke.v20220501.models.CreateNativeNodePoolParam`
952
- :param _Annotations: 节点 Annotation 列表
952
+ :param _Annotations: <p>节点 Annotation 列表</p>
953
953
  :type Annotations: list of Annotation
954
954
  """
955
955
  self._ClusterId = None
@@ -965,7 +965,7 @@ class CreateNodePoolRequest(AbstractModel):
965
965
 
966
966
  @property
967
967
  def ClusterId(self):
968
- r"""集群 ID
968
+ r"""<p>集群 ID</p>
969
969
  :rtype: str
970
970
  """
971
971
  return self._ClusterId
@@ -976,7 +976,7 @@ class CreateNodePoolRequest(AbstractModel):
976
976
 
977
977
  @property
978
978
  def Name(self):
979
- r"""节点池名称
979
+ r"""<p>节点池名称</p>
980
980
  :rtype: str
981
981
  """
982
982
  return self._Name
@@ -987,7 +987,7 @@ class CreateNodePoolRequest(AbstractModel):
987
987
 
988
988
  @property
989
989
  def Type(self):
990
- r"""节点池类型
990
+ r"""<p>节点池类型</p>
991
991
  :rtype: str
992
992
  """
993
993
  return self._Type
@@ -998,7 +998,7 @@ class CreateNodePoolRequest(AbstractModel):
998
998
 
999
999
  @property
1000
1000
  def Labels(self):
1001
- r"""节点 Labels
1001
+ r"""<p>节点 Labels</p>
1002
1002
  :rtype: list of Label
1003
1003
  """
1004
1004
  return self._Labels
@@ -1009,7 +1009,7 @@ class CreateNodePoolRequest(AbstractModel):
1009
1009
 
1010
1010
  @property
1011
1011
  def Taints(self):
1012
- r"""节点污点
1012
+ r"""<p>节点污点</p>
1013
1013
  :rtype: list of Taint
1014
1014
  """
1015
1015
  return self._Taints
@@ -1020,7 +1020,7 @@ class CreateNodePoolRequest(AbstractModel):
1020
1020
 
1021
1021
  @property
1022
1022
  def Tags(self):
1023
- r"""节点标签
1023
+ r"""<p>节点标签</p>
1024
1024
  :rtype: list of TagSpecification
1025
1025
  """
1026
1026
  return self._Tags
@@ -1031,7 +1031,7 @@ class CreateNodePoolRequest(AbstractModel):
1031
1031
 
1032
1032
  @property
1033
1033
  def DeletionProtection(self):
1034
- r"""是否开启删除保护
1034
+ r"""<p>是否开启删除保护</p>
1035
1035
  :rtype: bool
1036
1036
  """
1037
1037
  return self._DeletionProtection
@@ -1042,7 +1042,7 @@ class CreateNodePoolRequest(AbstractModel):
1042
1042
 
1043
1043
  @property
1044
1044
  def Unschedulable(self):
1045
- r"""节点是否默认不可调度
1045
+ r"""<p>节点是否默认不可调度</p>
1046
1046
  :rtype: bool
1047
1047
  """
1048
1048
  return self._Unschedulable
@@ -1053,7 +1053,7 @@ class CreateNodePoolRequest(AbstractModel):
1053
1053
 
1054
1054
  @property
1055
1055
  def Native(self):
1056
- r"""原生节点池创建参数(Type字段设置为Native时需填写)
1056
+ r"""<p>原生节点池创建参数(Type字段设置为Native时需填写)</p>
1057
1057
  :rtype: :class:`tencentcloud.tke.v20220501.models.CreateNativeNodePoolParam`
1058
1058
  """
1059
1059
  return self._Native
@@ -1064,7 +1064,7 @@ class CreateNodePoolRequest(AbstractModel):
1064
1064
 
1065
1065
  @property
1066
1066
  def Annotations(self):
1067
- r"""节点 Annotation 列表
1067
+ r"""<p>节点 Annotation 列表</p>
1068
1068
  :rtype: list of Annotation
1069
1069
  """
1070
1070
  return self._Annotations
@@ -1124,7 +1124,7 @@ class CreateNodePoolResponse(AbstractModel):
1124
1124
 
1125
1125
  def __init__(self):
1126
1126
  r"""
1127
- :param _NodePoolId: 节点池 ID
1127
+ :param _NodePoolId: <p>节点池 ID</p>
1128
1128
  :type NodePoolId: str
1129
1129
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1130
1130
  :type RequestId: str
@@ -1134,7 +1134,7 @@ class CreateNodePoolResponse(AbstractModel):
1134
1134
 
1135
1135
  @property
1136
1136
  def NodePoolId(self):
1137
- r"""节点池 ID
1137
+ r"""<p>节点池 ID</p>
1138
1138
  :rtype: str
1139
1139
  """
1140
1140
  return self._NodePoolId
@@ -4919,21 +4919,24 @@ class MachineSetScaling(AbstractModel):
4919
4919
 
4920
4920
  def __init__(self):
4921
4921
  r"""
4922
- :param _MinReplicas: 节点池最小副本数
4922
+ :param _MinReplicas: <p>节点池最小副本数</p>
4923
4923
  :type MinReplicas: int
4924
- :param _MaxReplicas: 节点池最大副本数
4924
+ :param _MaxReplicas: <p>节点池最大副本数</p>
4925
4925
  :type MaxReplicas: int
4926
- :param _CreatePolicy: 节点池扩容策略。ZoneEquality:多可用区打散;ZonePriority:首选可用区优先;
4926
+ :param _CreatePolicy: <p>节点池扩容策略。ZoneEquality:多可用区打散;ZonePriority:首选可用区优先;</p>
4927
4927
  注意:此字段可能返回 null,表示取不到有效值。
4928
4928
  :type CreatePolicy: str
4929
+ :param _ScaleDownMode: <p>扩缩容模式</p><p>枚举值:</p><ul><li>ShutdownAndDelete: 释放模式,默认</li><li>Shutdown: 停机模式,关机不计费</li></ul><p>默认值:ShutdownAndDelete</p>
4930
+ :type ScaleDownMode: str
4929
4931
  """
4930
4932
  self._MinReplicas = None
4931
4933
  self._MaxReplicas = None
4932
4934
  self._CreatePolicy = None
4935
+ self._ScaleDownMode = None
4933
4936
 
4934
4937
  @property
4935
4938
  def MinReplicas(self):
4936
- r"""节点池最小副本数
4939
+ r"""<p>节点池最小副本数</p>
4937
4940
  :rtype: int
4938
4941
  """
4939
4942
  return self._MinReplicas
@@ -4944,7 +4947,7 @@ class MachineSetScaling(AbstractModel):
4944
4947
 
4945
4948
  @property
4946
4949
  def MaxReplicas(self):
4947
- r"""节点池最大副本数
4950
+ r"""<p>节点池最大副本数</p>
4948
4951
  :rtype: int
4949
4952
  """
4950
4953
  return self._MaxReplicas
@@ -4955,7 +4958,7 @@ class MachineSetScaling(AbstractModel):
4955
4958
 
4956
4959
  @property
4957
4960
  def CreatePolicy(self):
4958
- r"""节点池扩容策略。ZoneEquality:多可用区打散;ZonePriority:首选可用区优先;
4961
+ r"""<p>节点池扩容策略。ZoneEquality:多可用区打散;ZonePriority:首选可用区优先;</p>
4959
4962
  注意:此字段可能返回 null,表示取不到有效值。
4960
4963
  :rtype: str
4961
4964
  """
@@ -4965,11 +4968,23 @@ class MachineSetScaling(AbstractModel):
4965
4968
  def CreatePolicy(self, CreatePolicy):
4966
4969
  self._CreatePolicy = CreatePolicy
4967
4970
 
4971
+ @property
4972
+ def ScaleDownMode(self):
4973
+ r"""<p>扩缩容模式</p><p>枚举值:</p><ul><li>ShutdownAndDelete: 释放模式,默认</li><li>Shutdown: 停机模式,关机不计费</li></ul><p>默认值:ShutdownAndDelete</p>
4974
+ :rtype: str
4975
+ """
4976
+ return self._ScaleDownMode
4977
+
4978
+ @ScaleDownMode.setter
4979
+ def ScaleDownMode(self, ScaleDownMode):
4980
+ self._ScaleDownMode = ScaleDownMode
4981
+
4968
4982
 
4969
4983
  def _deserialize(self, params):
4970
4984
  self._MinReplicas = params.get("MinReplicas")
4971
4985
  self._MaxReplicas = params.get("MaxReplicas")
4972
4986
  self._CreatePolicy = params.get("CreatePolicy")
4987
+ self._ScaleDownMode = params.get("ScaleDownMode")
4973
4988
  memeber_set = set(params.keys())
4974
4989
  for name, value in vars(self).items():
4975
4990
  property_name = name[1:]
@@ -5239,6 +5254,10 @@ class ModifyClusterMachineRequest(AbstractModel):
5239
5254
  :type SecurityGroupIDs: list of str
5240
5255
  :param _InstanceChargePrepaid: <p>节点预付费信息</p>
5241
5256
  :type InstanceChargePrepaid: :class:`tencentcloud.tke.v20220501.models.InstanceChargePrepaid`
5257
+ :param _InstanceChargeType: <p>节点计费类型变更</p><p>枚举值:</p><ul><li>POSTPAID_BY_HOUR: 目标计费类型为按量计费</li><li>PREPAID: 目标计费类型为包年包月计费</li></ul>
5258
+ :type InstanceChargeType: str
5259
+ :param _ModifyPortableDataDisk: <p>是否同时切换弹性数据云盘计费模式。取值范围: true:表示切换弹性数据云盘计费模式 false:表示不切换弹性数据云盘计费模式 默认取值:true。</p><p>默认值:true</p>
5260
+ :type ModifyPortableDataDisk: bool
5242
5261
  """
5243
5262
  self._ClusterId = None
5244
5263
  self._MachineNames = None
@@ -5246,6 +5265,8 @@ class ModifyClusterMachineRequest(AbstractModel):
5246
5265
  self._SystemDisk = None
5247
5266
  self._SecurityGroupIDs = None
5248
5267
  self._InstanceChargePrepaid = None
5268
+ self._InstanceChargeType = None
5269
+ self._ModifyPortableDataDisk = None
5249
5270
 
5250
5271
  @property
5251
5272
  def ClusterId(self):
@@ -5313,6 +5334,28 @@ class ModifyClusterMachineRequest(AbstractModel):
5313
5334
  def InstanceChargePrepaid(self, InstanceChargePrepaid):
5314
5335
  self._InstanceChargePrepaid = InstanceChargePrepaid
5315
5336
 
5337
+ @property
5338
+ def InstanceChargeType(self):
5339
+ r"""<p>节点计费类型变更</p><p>枚举值:</p><ul><li>POSTPAID_BY_HOUR: 目标计费类型为按量计费</li><li>PREPAID: 目标计费类型为包年包月计费</li></ul>
5340
+ :rtype: str
5341
+ """
5342
+ return self._InstanceChargeType
5343
+
5344
+ @InstanceChargeType.setter
5345
+ def InstanceChargeType(self, InstanceChargeType):
5346
+ self._InstanceChargeType = InstanceChargeType
5347
+
5348
+ @property
5349
+ def ModifyPortableDataDisk(self):
5350
+ r"""<p>是否同时切换弹性数据云盘计费模式。取值范围: true:表示切换弹性数据云盘计费模式 false:表示不切换弹性数据云盘计费模式 默认取值:true。</p><p>默认值:true</p>
5351
+ :rtype: bool
5352
+ """
5353
+ return self._ModifyPortableDataDisk
5354
+
5355
+ @ModifyPortableDataDisk.setter
5356
+ def ModifyPortableDataDisk(self, ModifyPortableDataDisk):
5357
+ self._ModifyPortableDataDisk = ModifyPortableDataDisk
5358
+
5316
5359
 
5317
5360
  def _deserialize(self, params):
5318
5361
  self._ClusterId = params.get("ClusterId")
@@ -5325,6 +5368,8 @@ class ModifyClusterMachineRequest(AbstractModel):
5325
5368
  if params.get("InstanceChargePrepaid") is not None:
5326
5369
  self._InstanceChargePrepaid = InstanceChargePrepaid()
5327
5370
  self._InstanceChargePrepaid._deserialize(params.get("InstanceChargePrepaid"))
5371
+ self._InstanceChargeType = params.get("InstanceChargeType")
5372
+ self._ModifyPortableDataDisk = params.get("ModifyPortableDataDisk")
5328
5373
  memeber_set = set(params.keys())
5329
5374
  for name, value in vars(self).items():
5330
5375
  property_name = name[1:]
@@ -7288,13 +7333,13 @@ class RuntimeConfig(AbstractModel):
7288
7333
 
7289
7334
  def __init__(self):
7290
7335
  r"""
7291
- :param _RuntimeType: 运行时类型
7336
+ :param _RuntimeType: <p>运行时类型</p>
7292
7337
  注意:此字段可能返回 null,表示取不到有效值。
7293
7338
  :type RuntimeType: str
7294
- :param _RuntimeVersion: 运行时版本
7339
+ :param _RuntimeVersion: <p>运行时版本</p>
7295
7340
  注意:此字段可能返回 null,表示取不到有效值。
7296
7341
  :type RuntimeVersion: str
7297
- :param _RuntimeRootDir: 运行时根目录
7342
+ :param _RuntimeRootDir: <p>运行时根目录</p>
7298
7343
  注意:此字段可能返回 null,表示取不到有效值。
7299
7344
  :type RuntimeRootDir: str
7300
7345
  """
@@ -7304,7 +7349,7 @@ class RuntimeConfig(AbstractModel):
7304
7349
 
7305
7350
  @property
7306
7351
  def RuntimeType(self):
7307
- r"""运行时类型
7352
+ r"""<p>运行时类型</p>
7308
7353
  注意:此字段可能返回 null,表示取不到有效值。
7309
7354
  :rtype: str
7310
7355
  """
@@ -7316,7 +7361,7 @@ class RuntimeConfig(AbstractModel):
7316
7361
 
7317
7362
  @property
7318
7363
  def RuntimeVersion(self):
7319
- r"""运行时版本
7364
+ r"""<p>运行时版本</p>
7320
7365
  注意:此字段可能返回 null,表示取不到有效值。
7321
7366
  :rtype: str
7322
7367
  """
@@ -7328,7 +7373,7 @@ class RuntimeConfig(AbstractModel):
7328
7373
 
7329
7374
  @property
7330
7375
  def RuntimeRootDir(self):
7331
- r"""运行时根目录
7376
+ r"""<p>运行时根目录</p>
7332
7377
  注意:此字段可能返回 null,表示取不到有效值。
7333
7378
  :rtype: str
7334
7379
  """
@@ -8252,16 +8297,27 @@ class Taint(AbstractModel):
8252
8297
 
8253
8298
  def __init__(self):
8254
8299
  r"""
8300
+ :param _Effect: Taint的Effect
8301
+ :type Effect: str
8255
8302
  :param _Key: Taint的Key
8256
8303
  :type Key: str
8257
8304
  :param _Value: Taint的Value
8258
8305
  :type Value: str
8259
- :param _Effect: Taint的Effect
8260
- :type Effect: str
8261
8306
  """
8307
+ self._Effect = None
8262
8308
  self._Key = None
8263
8309
  self._Value = None
8264
- self._Effect = None
8310
+
8311
+ @property
8312
+ def Effect(self):
8313
+ r"""Taint的Effect
8314
+ :rtype: str
8315
+ """
8316
+ return self._Effect
8317
+
8318
+ @Effect.setter
8319
+ def Effect(self, Effect):
8320
+ self._Effect = Effect
8265
8321
 
8266
8322
  @property
8267
8323
  def Key(self):
@@ -8285,22 +8341,11 @@ class Taint(AbstractModel):
8285
8341
  def Value(self, Value):
8286
8342
  self._Value = Value
8287
8343
 
8288
- @property
8289
- def Effect(self):
8290
- r"""Taint的Effect
8291
- :rtype: str
8292
- """
8293
- return self._Effect
8294
-
8295
- @Effect.setter
8296
- def Effect(self, Effect):
8297
- self._Effect = Effect
8298
-
8299
8344
 
8300
8345
  def _deserialize(self, params):
8346
+ self._Effect = params.get("Effect")
8301
8347
  self._Key = params.get("Key")
8302
8348
  self._Value = params.get("Value")
8303
- self._Effect = params.get("Effect")
8304
8349
  memeber_set = set(params.keys())
8305
8350
  for name, value in vars(self).items():
8306
8351
  property_name = name[1:]
@@ -50,7 +50,96 @@ class TkeClient(AbstractClient):
50
50
 
51
51
 
52
52
  def CreateNodePool(self, request):
53
- r"""创建 TKE 节点池
53
+ r"""**通过 CAM 策略强制节点池安全配置**
54
+
55
+ 创建原生节点池(`CreateNodePool`)接口已接入 CAM 条件鉴权,会根据请求参数计算出一组**条件键(Condition Key)**并传入 CAM 鉴权。您可以在 CAM/SCP 策略中基于这些条件键配置 `deny` 规则,从而强制约束节点池的安全配置(如必须开启磁盘加密、安全加固等)。
56
+
57
+ **支持的条件键**
58
+
59
+ | 条件键 | 含义 | 取值 | 取值判定说明 |
60
+ |--------|------|------|-------------|
61
+ | `tke:NodePoolType` | 节点池类型 | `Native` / `External` | 取请求的节点池类型,未指定时默认为 `Native` |
62
+ | `tke:SystemDiskEncrypted` | 系统盘是否加密 | `true` / `false` | 系统盘加密属性为 `ENCRYPT`(大小写不敏感)时为 `true`,否则为 `false` |
63
+ | `tke:AllDataDisksEncrypted` | 所有数据盘是否都已加密 | `true` / `false` | 全部数据盘加密属性均为 `ENCRYPT` 时为 `true`;未配置数据盘时也为 `true`;只要有任一数据盘未加密即为 `false` |
64
+ | `tke:SecurityAgentEnabled` | 是否开启安全加固(Security Agent) | `true` / `false` | 开启安全加固时为 `true`,否则为 `false` |
65
+
66
+ > 说明:所有条件键的取值均为字符串 `"true"` / `"false"`,请在策略中使用字符串形式匹配。
67
+
68
+ **使用方式**
69
+
70
+ 在 CAM 策略中使用 `bool_equal` 匹配条件键值为 `"false"`,配合 `effect: deny`,即可实现"未满足安全配置则拒绝创建节点池"的强制约束。
71
+
72
+ **示例一:强制开启安全加固**
73
+
74
+ 创建节点池时若未开启安全加固(`tke:SecurityAgentEnabled = "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:SecurityAgentEnabled": "false"
87
+ }
88
+ }
89
+ }
90
+ ]
91
+ }
92
+ ```
93
+
94
+ **示例二:强制数据盘加密**
95
+
96
+ 创建节点池时若存在未加密的数据盘(`tke:AllDataDisksEncrypted = "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:AllDataDisksEncrypted": "false"
109
+ }
110
+ }
111
+ }
112
+ ]
113
+ }
114
+ ```
115
+
116
+ **示例三:强制系统盘加密**
117
+
118
+ 创建节点池时若系统盘未加密(`tke:SystemDiskEncrypted = "false"`),则拒绝。
119
+
120
+ ```json
121
+ {
122
+ "version": "2.0",
123
+ "statement": [
124
+ {
125
+ "effect": "deny",
126
+ "action": ["tke:CreateNodePool"],
127
+ "resource": ["*"],
128
+ "condition": {
129
+ "bool_equal": {
130
+ "tke:SystemDiskEncrypted": "false"
131
+ }
132
+ }
133
+ }
134
+ ]
135
+ }
136
+ ```
137
+
138
+ **注意事项**
139
+
140
+ - 上述条件键在**未配置任何 CAM 策略**时不会影响节点池创建,仅在您显式配置了对应 `deny` 策略时才生效。
141
+ - 如需同时强制多项安全配置,必须在同一策略的 `statement` 中配置多条 `deny` 规则,不能将多个条件键写入同一条 `condition`。
142
+ - `tke:AllDataDisksEncrypted` 在**无数据盘**场景下取值为 `true`(不存在未加密的数据盘),因此仅约束"已配置的数据盘必须加密",不会强制要求必须挂载数据盘。
54
143
 
55
144
  :param request: Request instance for CreateNodePool.
56
145
  :type request: :class:`tencentcloud.tke.v20220501.models.CreateNodePoolRequest`
@@ -49,7 +49,96 @@ class TkeClient(AbstractClient):
49
49
  opts: Dict = None,
50
50
  ) -> models.CreateNodePoolResponse:
51
51
  """
52
- 创建 TKE 节点池
52
+ **通过 CAM 策略强制节点池安全配置**
53
+
54
+ 创建原生节点池(`CreateNodePool`)接口已接入 CAM 条件鉴权,会根据请求参数计算出一组**条件键(Condition Key)**并传入 CAM 鉴权。您可以在 CAM/SCP 策略中基于这些条件键配置 `deny` 规则,从而强制约束节点池的安全配置(如必须开启磁盘加密、安全加固等)。
55
+
56
+ **支持的条件键**
57
+
58
+ | 条件键 | 含义 | 取值 | 取值判定说明 |
59
+ |--------|------|------|-------------|
60
+ | `tke:NodePoolType` | 节点池类型 | `Native` / `External` | 取请求的节点池类型,未指定时默认为 `Native` |
61
+ | `tke:SystemDiskEncrypted` | 系统盘是否加密 | `true` / `false` | 系统盘加密属性为 `ENCRYPT`(大小写不敏感)时为 `true`,否则为 `false` |
62
+ | `tke:AllDataDisksEncrypted` | 所有数据盘是否都已加密 | `true` / `false` | 全部数据盘加密属性均为 `ENCRYPT` 时为 `true`;未配置数据盘时也为 `true`;只要有任一数据盘未加密即为 `false` |
63
+ | `tke:SecurityAgentEnabled` | 是否开启安全加固(Security Agent) | `true` / `false` | 开启安全加固时为 `true`,否则为 `false` |
64
+
65
+ > 说明:所有条件键的取值均为字符串 `"true"` / `"false"`,请在策略中使用字符串形式匹配。
66
+
67
+ **使用方式**
68
+
69
+ 在 CAM 策略中使用 `bool_equal` 匹配条件键值为 `"false"`,配合 `effect: deny`,即可实现"未满足安全配置则拒绝创建节点池"的强制约束。
70
+
71
+ **示例一:强制开启安全加固**
72
+
73
+ 创建节点池时若未开启安全加固(`tke:SecurityAgentEnabled = "false"`),则拒绝。
74
+
75
+ ```json
76
+ {
77
+ "version": "2.0",
78
+ "statement": [
79
+ {
80
+ "effect": "deny",
81
+ "action": ["tke:CreateNodePool"],
82
+ "resource": ["*"],
83
+ "condition": {
84
+ "bool_equal": {
85
+ "tke:SecurityAgentEnabled": "false"
86
+ }
87
+ }
88
+ }
89
+ ]
90
+ }
91
+ ```
92
+
93
+ **示例二:强制数据盘加密**
94
+
95
+ 创建节点池时若存在未加密的数据盘(`tke:AllDataDisksEncrypted = "false"`),则拒绝。
96
+
97
+ ```json
98
+ {
99
+ "version": "2.0",
100
+ "statement": [
101
+ {
102
+ "effect": "deny",
103
+ "action": ["tke:CreateNodePool"],
104
+ "resource": ["*"],
105
+ "condition": {
106
+ "bool_equal": {
107
+ "tke:AllDataDisksEncrypted": "false"
108
+ }
109
+ }
110
+ }
111
+ ]
112
+ }
113
+ ```
114
+
115
+ **示例三:强制系统盘加密**
116
+
117
+ 创建节点池时若系统盘未加密(`tke:SystemDiskEncrypted = "false"`),则拒绝。
118
+
119
+ ```json
120
+ {
121
+ "version": "2.0",
122
+ "statement": [
123
+ {
124
+ "effect": "deny",
125
+ "action": ["tke:CreateNodePool"],
126
+ "resource": ["*"],
127
+ "condition": {
128
+ "bool_equal": {
129
+ "tke:SystemDiskEncrypted": "false"
130
+ }
131
+ }
132
+ }
133
+ ]
134
+ }
135
+ ```
136
+
137
+ **注意事项**
138
+
139
+ - 上述条件键在**未配置任何 CAM 策略**时不会影响节点池创建,仅在您显式配置了对应 `deny` 策略时才生效。
140
+ - 如需同时强制多项安全配置,必须在同一策略的 `statement` 中配置多条 `deny` 规则,不能将多个条件键写入同一条 `condition`。
141
+ - `tke:AllDataDisksEncrypted` 在**无数据盘**场景下取值为 `true`(不存在未加密的数据盘),因此仅约束"已配置的数据盘必须加密",不会强制要求必须挂载数据盘。
53
142
  """
54
143
 
55
144
  kwargs = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tke
3
- Version: 3.1.127
3
+ Version: 3.1.134
4
4
  Summary: Tencent Cloud Tke SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.127
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.134
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.134
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.127