tencentcloud-sdk-python-tke 3.0.1411__tar.gz → 3.0.1420__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 (20) hide show
  1. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/setup.py +1 -1
  3. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/tencentcloud/tke/v20180525/errorcodes.py +1 -1
  5. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/tencentcloud/tke/v20180525/models.py +126 -101
  6. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/tencentcloud/tke/v20180525/tke_client.py +1 -1
  7. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/tencentcloud/tke/v20220501/errorcodes.py +1 -1
  8. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/tencentcloud/tke/v20220501/models.py +95 -1
  9. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/tencentcloud/tke/v20220501/tke_client.py +24 -1
  10. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/tencentcloud_sdk_python_tke.egg-info/PKG-INFO +1 -1
  11. tencentcloud-sdk-python-tke-3.0.1420/tencentcloud_sdk_python_tke.egg-info/requires.txt +1 -0
  12. tencentcloud-sdk-python-tke-3.0.1411/tencentcloud_sdk_python_tke.egg-info/requires.txt +0 -1
  13. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/README.rst +0 -0
  14. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/setup.cfg +0 -0
  15. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/tencentcloud/tke/__init__.py +0 -0
  16. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/tencentcloud/tke/v20180525/__init__.py +0 -0
  17. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/tencentcloud/tke/v20220501/__init__.py +0 -0
  18. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/tencentcloud_sdk_python_tke.egg-info/SOURCES.txt +0 -0
  19. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/tencentcloud_sdk_python_tke.egg-info/dependency_links.txt +0 -0
  20. {tencentcloud-sdk-python-tke-3.0.1411 → tencentcloud-sdk-python-tke-3.0.1420}/tencentcloud_sdk_python_tke.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-tke
3
- Version: 3.0.1411
3
+ Version: 3.0.1420
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
@@ -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.0.1411"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1420,<4.0.0"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Tke SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1411'
17
+ __version__ = '3.0.1420'
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf8 -*-
2
- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf8 -*-
2
- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -3053,7 +3053,9 @@ class ClusterBasicSettings(AbstractModel):
3053
3053
  :type OsCustomizeType: str
3054
3054
  :param _NeedWorkSecurityGroup: 是否开启节点的默认安全组(默认: 否,Alpha特性)
3055
3055
  :type NeedWorkSecurityGroup: bool
3056
- :param _SubnetId: 当选择Cilium Overlay网络插件时,TKE会从该子网获取2个IP用来创建内网负载均衡
3056
+ :param _SubnetId: 控制面子网信息,仅在以下场景使用时要求必填。
3057
+ - 容器网络插件为CiliumOverlay时,TKE会从该子网获取2个IP用来创建内网负载均衡。
3058
+ - 创建支持CDC的托管集群,且网络插件为VPC-CNI时,要求预留至少12个IP。
3057
3059
  :type SubnetId: str
3058
3060
  :param _ClusterLevel: 集群等级,针对托管集群生效
3059
3061
  :type ClusterLevel: str
@@ -3174,7 +3176,9 @@ class ClusterBasicSettings(AbstractModel):
3174
3176
 
3175
3177
  @property
3176
3178
  def SubnetId(self):
3177
- """当选择Cilium Overlay网络插件时,TKE会从该子网获取2个IP用来创建内网负载均衡
3179
+ """控制面子网信息,仅在以下场景使用时要求必填。
3180
+ - 容器网络插件为CiliumOverlay时,TKE会从该子网获取2个IP用来创建内网负载均衡。
3181
+ - 创建支持CDC的托管集群,且网络插件为VPC-CNI时,要求预留至少12个IP。
3178
3182
  :rtype: str
3179
3183
  """
3180
3184
  return self._SubnetId
@@ -6350,6 +6354,8 @@ class CreateClusterRequest(AbstractModel):
6350
6354
  :type ExtensionAddons: list of ExtensionAddon
6351
6355
  :param _CdcId: 本地专用集群Id
6352
6356
  :type CdcId: str
6357
+ :param _DisableAddons: 屏蔽安装指定Addon组件,填写相应的AddonName
6358
+ :type DisableAddons: list of str
6353
6359
  """
6354
6360
  self._ClusterType = None
6355
6361
  self._ClusterCIDRSettings = None
@@ -6361,6 +6367,7 @@ class CreateClusterRequest(AbstractModel):
6361
6367
  self._InstanceDataDiskMountSettings = None
6362
6368
  self._ExtensionAddons = None
6363
6369
  self._CdcId = None
6370
+ self._DisableAddons = None
6364
6371
 
6365
6372
  @property
6366
6373
  def ClusterType(self):
@@ -6472,6 +6479,17 @@ class CreateClusterRequest(AbstractModel):
6472
6479
  def CdcId(self, CdcId):
6473
6480
  self._CdcId = CdcId
6474
6481
 
6482
+ @property
6483
+ def DisableAddons(self):
6484
+ """屏蔽安装指定Addon组件,填写相应的AddonName
6485
+ :rtype: list of str
6486
+ """
6487
+ return self._DisableAddons
6488
+
6489
+ @DisableAddons.setter
6490
+ def DisableAddons(self, DisableAddons):
6491
+ self._DisableAddons = DisableAddons
6492
+
6475
6493
 
6476
6494
  def _deserialize(self, params):
6477
6495
  self._ClusterType = params.get("ClusterType")
@@ -6512,6 +6530,7 @@ class CreateClusterRequest(AbstractModel):
6512
6530
  obj._deserialize(item)
6513
6531
  self._ExtensionAddons.append(obj)
6514
6532
  self._CdcId = params.get("CdcId")
6533
+ self._DisableAddons = params.get("DisableAddons")
6515
6534
  memeber_set = set(params.keys())
6516
6535
  for name, value in vars(self).items():
6517
6536
  property_name = name[1:]
@@ -6775,13 +6794,13 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
6775
6794
 
6776
6795
  def __init__(self):
6777
6796
  r"""
6778
- :param _ClusterId: 集群Id
6797
+ :param _ClusterId: 集群ID,通过DescribeClusters接口获取
6779
6798
  :type ClusterId: str
6780
6799
  :param _Name: 节点池名称
6781
6800
  :type Name: str
6782
6801
  :param _SubnetIds: 子网ID列表
6783
6802
  :type SubnetIds: list of str
6784
- :param _SecurityGroupIds: 安全组ID列表
6803
+ :param _SecurityGroupIds: 安全组ID列表,必选参数
6785
6804
  :type SecurityGroupIds: list of str
6786
6805
  :param _Labels: 虚拟节点label
6787
6806
  :type Labels: list of Label
@@ -6789,7 +6808,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
6789
6808
  :type Taints: list of Taint
6790
6809
  :param _VirtualNodes: 节点列表
6791
6810
  :type VirtualNodes: list of VirtualNodeSpec
6792
- :param _DeletionProtection: 删除保护开关
6811
+ :param _DeletionProtection: 删除保护开关,默认关闭
6793
6812
  :type DeletionProtection: bool
6794
6813
  :param _OS: 节点池操作系统:
6795
6814
  - linux(默认)
@@ -6808,7 +6827,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
6808
6827
 
6809
6828
  @property
6810
6829
  def ClusterId(self):
6811
- """集群Id
6830
+ """集群ID,通过DescribeClusters接口获取
6812
6831
  :rtype: str
6813
6832
  """
6814
6833
  return self._ClusterId
@@ -6841,7 +6860,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
6841
6860
 
6842
6861
  @property
6843
6862
  def SecurityGroupIds(self):
6844
- """安全组ID列表
6863
+ """安全组ID列表,必选参数
6845
6864
  :rtype: list of str
6846
6865
  """
6847
6866
  return self._SecurityGroupIds
@@ -6885,7 +6904,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
6885
6904
 
6886
6905
  @property
6887
6906
  def DeletionProtection(self):
6888
- """删除保护开关
6907
+ """删除保护开关,默认关闭
6889
6908
  :rtype: bool
6890
6909
  """
6891
6910
  return self._DeletionProtection
@@ -6993,15 +7012,15 @@ class CreateClusterVirtualNodeRequest(AbstractModel):
6993
7012
 
6994
7013
  def __init__(self):
6995
7014
  r"""
6996
- :param _ClusterId: 集群ID
7015
+ :param _ClusterId: 集群ID,通过DescribeClusters接口获取
6997
7016
  :type ClusterId: str
6998
- :param _NodePoolId: 虚拟节点所属节点池
7017
+ :param _NodePoolId: 虚拟节点所属节点池,通过DescribeNodePools接口获取
6999
7018
  :type NodePoolId: str
7000
- :param _SubnetId: 虚拟节点所属子网
7019
+ :param _SubnetId: 虚拟节点所属子网,SubnetId、SubnetIds、VirtualNodes必选一个。
7001
7020
  :type SubnetId: str
7002
- :param _SubnetIds: 虚拟节点子网ID列表,和参数SubnetId互斥
7021
+ :param _SubnetIds: 虚拟节点子网ID列表,SubnetId、SubnetIds、VirtualNodes必选一个。
7003
7022
  :type SubnetIds: list of str
7004
- :param _VirtualNodes: 虚拟节点列表
7023
+ :param _VirtualNodes: 虚拟节点列表,SubnetId、SubnetIds、VirtualNodes必选一个。
7005
7024
  :type VirtualNodes: list of VirtualNodeSpec
7006
7025
  """
7007
7026
  self._ClusterId = None
@@ -7012,7 +7031,7 @@ class CreateClusterVirtualNodeRequest(AbstractModel):
7012
7031
 
7013
7032
  @property
7014
7033
  def ClusterId(self):
7015
- """集群ID
7034
+ """集群ID,通过DescribeClusters接口获取
7016
7035
  :rtype: str
7017
7036
  """
7018
7037
  return self._ClusterId
@@ -7023,7 +7042,7 @@ class CreateClusterVirtualNodeRequest(AbstractModel):
7023
7042
 
7024
7043
  @property
7025
7044
  def NodePoolId(self):
7026
- """虚拟节点所属节点池
7045
+ """虚拟节点所属节点池,通过DescribeNodePools接口获取
7027
7046
  :rtype: str
7028
7047
  """
7029
7048
  return self._NodePoolId
@@ -7034,7 +7053,7 @@ class CreateClusterVirtualNodeRequest(AbstractModel):
7034
7053
 
7035
7054
  @property
7036
7055
  def SubnetId(self):
7037
- """虚拟节点所属子网
7056
+ """虚拟节点所属子网,SubnetId、SubnetIds、VirtualNodes必选一个。
7038
7057
  :rtype: str
7039
7058
  """
7040
7059
  return self._SubnetId
@@ -7045,7 +7064,7 @@ class CreateClusterVirtualNodeRequest(AbstractModel):
7045
7064
 
7046
7065
  @property
7047
7066
  def SubnetIds(self):
7048
- """虚拟节点子网ID列表,和参数SubnetId互斥
7067
+ """虚拟节点子网ID列表,SubnetId、SubnetIds、VirtualNodes必选一个。
7049
7068
  :rtype: list of str
7050
7069
  """
7051
7070
  return self._SubnetIds
@@ -7056,7 +7075,7 @@ class CreateClusterVirtualNodeRequest(AbstractModel):
7056
7075
 
7057
7076
  @property
7058
7077
  def VirtualNodes(self):
7059
- """虚拟节点列表
7078
+ """虚拟节点列表,SubnetId、SubnetIds、VirtualNodes必选一个。
7060
7079
  :rtype: list of VirtualNodeSpec
7061
7080
  """
7062
7081
  return self._VirtualNodes
@@ -9587,7 +9606,7 @@ class CreateReservedInstancesRequest(AbstractModel):
9587
9606
  :type InstanceCount: int
9588
9607
  :param _InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。
9589
9608
  :type InstanceChargePrepaid: :class:`tencentcloud.tke.v20180525.models.InstanceChargePrepaid`
9590
- :param _InstanceName: 预留券名称。
9609
+ :param _InstanceName: 预留券名称,名称不得超过60个字符。
9591
9610
  :type InstanceName: str
9592
9611
  :param _ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
9593
9612
  :type ClientToken: str
@@ -9633,7 +9652,7 @@ class CreateReservedInstancesRequest(AbstractModel):
9633
9652
 
9634
9653
  @property
9635
9654
  def InstanceName(self):
9636
- """预留券名称。
9655
+ """预留券名称,名称不得超过60个字符。
9637
9656
  :rtype: str
9638
9657
  """
9639
9658
  return self._InstanceName
@@ -11183,9 +11202,9 @@ class DeleteClusterVirtualNodePoolRequest(AbstractModel):
11183
11202
 
11184
11203
  def __init__(self):
11185
11204
  r"""
11186
- :param _ClusterId: 集群ID
11205
+ :param _ClusterId: 集群ID,通过DescribeClusters接口获取
11187
11206
  :type ClusterId: str
11188
- :param _NodePoolIds: 超级节点池ID列表
11207
+ :param _NodePoolIds: 节点池ID,通过DescribeNodePools接口获取
11189
11208
  :type NodePoolIds: list of str
11190
11209
  :param _Force: 是否强制删除,在超级节点上有pod的情况下,如果选择非强制删除,则删除会失败
11191
11210
  :type Force: bool
@@ -11196,7 +11215,7 @@ class DeleteClusterVirtualNodePoolRequest(AbstractModel):
11196
11215
 
11197
11216
  @property
11198
11217
  def ClusterId(self):
11199
- """集群ID
11218
+ """集群ID,通过DescribeClusters接口获取
11200
11219
  :rtype: str
11201
11220
  """
11202
11221
  return self._ClusterId
@@ -11207,7 +11226,7 @@ class DeleteClusterVirtualNodePoolRequest(AbstractModel):
11207
11226
 
11208
11227
  @property
11209
11228
  def NodePoolIds(self):
11210
- """超级节点池ID列表
11229
+ """节点池ID,通过DescribeNodePools接口获取
11211
11230
  :rtype: list of str
11212
11231
  """
11213
11232
  return self._NodePoolIds
@@ -11277,9 +11296,9 @@ class DeleteClusterVirtualNodeRequest(AbstractModel):
11277
11296
 
11278
11297
  def __init__(self):
11279
11298
  r"""
11280
- :param _ClusterId: 集群ID
11299
+ :param _ClusterId: 集群ID,通过DescribeClusters接口获取
11281
11300
  :type ClusterId: str
11282
- :param _NodeNames: 虚拟节点列表
11301
+ :param _NodeNames: 虚拟节点ID列表
11283
11302
  :type NodeNames: list of str
11284
11303
  :param _Force: 是否强制删除:如果虚拟节点上有运行中Pod,则非强制删除状态下不会进行删除
11285
11304
  :type Force: bool
@@ -11290,7 +11309,7 @@ class DeleteClusterVirtualNodeRequest(AbstractModel):
11290
11309
 
11291
11310
  @property
11292
11311
  def ClusterId(self):
11293
- """集群ID
11312
+ """集群ID,通过DescribeClusters接口获取
11294
11313
  :rtype: str
11295
11314
  """
11296
11315
  return self._ClusterId
@@ -11301,7 +11320,7 @@ class DeleteClusterVirtualNodeRequest(AbstractModel):
11301
11320
 
11302
11321
  @property
11303
11322
  def NodeNames(self):
11304
- """虚拟节点列表
11323
+ """虚拟节点ID列表
11305
11324
  :rtype: list of str
11306
11325
  """
11307
11326
  return self._NodeNames
@@ -12725,14 +12744,14 @@ class DeleteReservedInstancesRequest(AbstractModel):
12725
12744
 
12726
12745
  def __init__(self):
12727
12746
  r"""
12728
- :param _ReservedInstanceIds: 预留券实例ID。
12747
+ :param _ReservedInstanceIds: 预留券实例ID。可通过 [DescribeReservedInstances](https://cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取。
12729
12748
  :type ReservedInstanceIds: list of str
12730
12749
  """
12731
12750
  self._ReservedInstanceIds = None
12732
12751
 
12733
12752
  @property
12734
12753
  def ReservedInstanceIds(self):
12735
- """预留券实例ID。
12754
+ """预留券实例ID。可通过 [DescribeReservedInstances](https://cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取。
12736
12755
  :rtype: list of str
12737
12756
  """
12738
12757
  return self._ReservedInstanceIds
@@ -16609,14 +16628,14 @@ class DescribeClusterVirtualNodePoolsRequest(AbstractModel):
16609
16628
 
16610
16629
  def __init__(self):
16611
16630
  r"""
16612
- :param _ClusterId: 集群ID
16631
+ :param _ClusterId: 集群ID,通过DescribeClusters接口获取
16613
16632
  :type ClusterId: str
16614
16633
  """
16615
16634
  self._ClusterId = None
16616
16635
 
16617
16636
  @property
16618
16637
  def ClusterId(self):
16619
- """集群ID
16638
+ """集群ID,通过DescribeClusters接口获取
16620
16639
  :rtype: str
16621
16640
  """
16622
16641
  return self._ClusterId
@@ -16708,11 +16727,11 @@ class DescribeClusterVirtualNodeRequest(AbstractModel):
16708
16727
 
16709
16728
  def __init__(self):
16710
16729
  r"""
16711
- :param _ClusterId: 集群ID
16730
+ :param _ClusterId: 集群ID,通过DescribeClusters接口获取
16712
16731
  :type ClusterId: str
16713
- :param _NodePoolId: 节点池ID
16732
+ :param _NodePoolId: 节点池ID,通过DescribeNodePools接口获取
16714
16733
  :type NodePoolId: str
16715
- :param _NodeNames: 节点名称
16734
+ :param _NodeNames: 节点名称,可搜索DescribeClusterVirtualNode接口节点
16716
16735
  :type NodeNames: list of str
16717
16736
  """
16718
16737
  self._ClusterId = None
@@ -16721,7 +16740,7 @@ class DescribeClusterVirtualNodeRequest(AbstractModel):
16721
16740
 
16722
16741
  @property
16723
16742
  def ClusterId(self):
16724
- """集群ID
16743
+ """集群ID,通过DescribeClusters接口获取
16725
16744
  :rtype: str
16726
16745
  """
16727
16746
  return self._ClusterId
@@ -16732,7 +16751,7 @@ class DescribeClusterVirtualNodeRequest(AbstractModel):
16732
16751
 
16733
16752
  @property
16734
16753
  def NodePoolId(self):
16735
- """节点池ID
16754
+ """节点池ID,通过DescribeNodePools接口获取
16736
16755
  :rtype: str
16737
16756
  """
16738
16757
  return self._NodePoolId
@@ -16743,7 +16762,7 @@ class DescribeClusterVirtualNodeRequest(AbstractModel):
16743
16762
 
16744
16763
  @property
16745
16764
  def NodeNames(self):
16746
- """节点名称
16765
+ """节点名称,可搜索DescribeClusterVirtualNode接口节点
16747
16766
  :rtype: list of str
16748
16767
  """
16749
16768
  return self._NodeNames
@@ -20328,13 +20347,13 @@ class DescribePodChargeInfoRequest(AbstractModel):
20328
20347
 
20329
20348
  def __init__(self):
20330
20349
  r"""
20331
- :param _ClusterId: 集群ID
20350
+ :param _ClusterId: 集群 ID。TKE 集群可通过 [DescribeClusters](https://cloud.tencent.com/document/api/457/31862) 接口返回值中的ClusterId获取。
20332
20351
  :type ClusterId: str
20333
20352
  :param _Namespace: 命名空间
20334
20353
  :type Namespace: str
20335
20354
  :param _Name: Pod名称
20336
20355
  :type Name: str
20337
- :param _Uids: Pod的Uid
20356
+ :param _Uids: Pod的Uid,可以通过Uids 来批量查询,也可以通过 Namespace 和 Name 来查询某个 Pod 的计费信息。Uids 不传时,Namespace 和 Name 必须同时传。
20338
20357
  :type Uids: list of str
20339
20358
  """
20340
20359
  self._ClusterId = None
@@ -20344,7 +20363,7 @@ class DescribePodChargeInfoRequest(AbstractModel):
20344
20363
 
20345
20364
  @property
20346
20365
  def ClusterId(self):
20347
- """集群ID
20366
+ """集群 ID。TKE 集群可通过 [DescribeClusters](https://cloud.tencent.com/document/api/457/31862) 接口返回值中的ClusterId获取。
20348
20367
  :rtype: str
20349
20368
  """
20350
20369
  return self._ClusterId
@@ -20377,7 +20396,7 @@ class DescribePodChargeInfoRequest(AbstractModel):
20377
20396
 
20378
20397
  @property
20379
20398
  def Uids(self):
20380
- """Pod的Uid
20399
+ """Pod的Uid,可以通过Uids 来批量查询,也可以通过 Namespace 和 Name 来查询某个 Pod 的计费信息。Uids 不传时,Namespace 和 Name 必须同时传。
20381
20400
  :rtype: list of str
20382
20401
  """
20383
20402
  return self._Uids
@@ -20461,7 +20480,7 @@ class DescribePodDeductionRateRequest(AbstractModel):
20461
20480
  :type Zone: str
20462
20481
  :param _ClusterId: 集群 ID
20463
20482
  :type ClusterId: str
20464
- :param _NodeName: 节点名称
20483
+ :param _NodeName: 节点 ID
20465
20484
  :type NodeName: str
20466
20485
  """
20467
20486
  self._Zone = None
@@ -20492,7 +20511,7 @@ class DescribePodDeductionRateRequest(AbstractModel):
20492
20511
 
20493
20512
  @property
20494
20513
  def NodeName(self):
20495
- """ 节点名称
20514
+ """节点 ID
20496
20515
  :rtype: str
20497
20516
  """
20498
20517
  return self._NodeName
@@ -20573,15 +20592,15 @@ class DescribePodsBySpecRequest(AbstractModel):
20573
20592
  r"""
20574
20593
  :param _Cpu: 核数
20575
20594
  :type Cpu: float
20576
- :param _Memory: 内存
20595
+ :param _Memory: 内存,单位:GiB
20577
20596
  :type Memory: float
20578
- :param _GpuNum: 卡数,有0.25、0.5、1、2、4等
20597
+ :param _GpuNum: 卡数,有0.25、0.5、1、2、4和8
20579
20598
  :type GpuNum: str
20580
20599
  :param _Zone: 可用区
20581
20600
  :type Zone: str
20582
20601
  :param _ClusterId: 集群 ID
20583
20602
  :type ClusterId: str
20584
- :param _NodeName: 节点名称
20603
+ :param _NodeName: 节点 ID
20585
20604
  :type NodeName: str
20586
20605
  :param _Offset: 偏移量,默认0。
20587
20606
  :type Offset: int
@@ -20624,7 +20643,7 @@ pod-not-deduct
20624
20643
 
20625
20644
  @property
20626
20645
  def Memory(self):
20627
- """内存
20646
+ """内存,单位:GiB
20628
20647
  :rtype: float
20629
20648
  """
20630
20649
  return self._Memory
@@ -20635,7 +20654,7 @@ pod-not-deduct
20635
20654
 
20636
20655
  @property
20637
20656
  def GpuNum(self):
20638
- """卡数,有0.25、0.5、1、2、4等
20657
+ """卡数,有0.25、0.5、1、2、4和8
20639
20658
  :rtype: str
20640
20659
  """
20641
20660
  return self._GpuNum
@@ -20668,7 +20687,7 @@ pod-not-deduct
20668
20687
 
20669
20688
  @property
20670
20689
  def NodeName(self):
20671
- """节点名称
20690
+ """节点 ID
20672
20691
  :rtype: str
20673
20692
  """
20674
20693
  return self._NodeName
@@ -23772,7 +23791,7 @@ class DescribeReservedInstanceUtilizationRateRequest(AbstractModel):
23772
23791
  :type Zone: str
23773
23792
  :param _ClusterId: 集群 ID
23774
23793
  :type ClusterId: str
23775
- :param _NodeName: 节点名称
23794
+ :param _NodeName: 节点 ID
23776
23795
  :type NodeName: str
23777
23796
  """
23778
23797
  self._Zone = None
@@ -23803,7 +23822,7 @@ class DescribeReservedInstanceUtilizationRateRequest(AbstractModel):
23803
23822
 
23804
23823
  @property
23805
23824
  def NodeName(self):
23806
- """ 节点名称
23825
+ """节点 ID
23807
23826
  :rtype: str
23808
23827
  """
23809
23828
  return self._NodeName
@@ -23917,7 +23936,7 @@ class DescribeReservedInstancesRequest(AbstractModel):
23917
23936
  :param _Limit: 返回数量,默认为20,最大值为100。
23918
23937
  :type Limit: int
23919
23938
  :param _Filters: status
23920
- 按照**【状态**】进行过滤。状态:Creating、Active、Expired、Refunded。
23939
+ 按照**【状态**】进行过滤。状态:Creating:创建中、Active:生效中、Expired:已过期、Refunded:已退还。
23921
23940
  类型:String
23922
23941
  必选:否
23923
23942
 
@@ -24010,7 +24029,7 @@ reserved-instance-not-deduct
24010
24029
  @property
24011
24030
  def Filters(self):
24012
24031
  """status
24013
- 按照**【状态**】进行过滤。状态:Creating、Active、Expired、Refunded。
24032
+ 按照**【状态**】进行过滤。状态:Creating:创建中、Active:生效中、Expired:已过期、Refunded:已退还。
24014
24033
  类型:String
24015
24034
  必选:否
24016
24035
 
@@ -25855,9 +25874,9 @@ class DrainClusterVirtualNodeRequest(AbstractModel):
25855
25874
 
25856
25875
  def __init__(self):
25857
25876
  r"""
25858
- :param _ClusterId: 集群ID
25877
+ :param _ClusterId: 集群ID,通过DescribeClusters接口获取
25859
25878
  :type ClusterId: str
25860
- :param _NodeName: 节点名
25879
+ :param _NodeName: 节点ID
25861
25880
  :type NodeName: str
25862
25881
  """
25863
25882
  self._ClusterId = None
@@ -25865,7 +25884,7 @@ class DrainClusterVirtualNodeRequest(AbstractModel):
25865
25884
 
25866
25885
  @property
25867
25886
  def ClusterId(self):
25868
- """集群ID
25887
+ """集群ID,通过DescribeClusters接口获取
25869
25888
  :rtype: str
25870
25889
  """
25871
25890
  return self._ClusterId
@@ -25876,7 +25895,7 @@ class DrainClusterVirtualNodeRequest(AbstractModel):
25876
25895
 
25877
25896
  @property
25878
25897
  def NodeName(self):
25879
- """节点名
25898
+ """节点ID
25880
25899
  :rtype: str
25881
25900
  """
25882
25901
  return self._NodeName
@@ -31246,7 +31265,7 @@ class InstanceChargePrepaid(AbstractModel):
31246
31265
 
31247
31266
  def __init__(self):
31248
31267
  r"""
31249
- :param _Period: 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60。
31268
+ :param _Period: 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36。
31250
31269
  :type Period: int
31251
31270
  :param _RenewFlag: 自动续费标识。取值范围:
31252
31271
  NOTIFY_AND_AUTO_RENEW:通知过期且自动续费
@@ -31261,7 +31280,7 @@ DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费
31261
31280
 
31262
31281
  @property
31263
31282
  def Period(self):
31264
- """购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60。
31283
+ """购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36。
31265
31284
  :rtype: int
31266
31285
  """
31267
31286
  return self._Period
@@ -34463,19 +34482,19 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
34463
34482
 
34464
34483
  def __init__(self):
34465
34484
  r"""
34466
- :param _ClusterId: 集群ID
34485
+ :param _ClusterId: 集群ID,通过DescribeClusters接口获取
34467
34486
  :type ClusterId: str
34468
- :param _NodePoolId: 节点池ID
34487
+ :param _NodePoolId: 节点池ID,通过DescribeNodePools接口获取
34469
34488
  :type NodePoolId: str
34470
- :param _Name: 节点池名称
34489
+ :param _Name: 节点池名称,必须修改至少一个参数
34471
34490
  :type Name: str
34472
- :param _SecurityGroupIds: 安全组ID列表
34491
+ :param _SecurityGroupIds: 安全组ID列表,必须修改至少一个参数
34473
34492
  :type SecurityGroupIds: list of str
34474
- :param _Labels: 虚拟节点label
34493
+ :param _Labels: 虚拟节点label,必须修改至少一个参数
34475
34494
  :type Labels: list of Label
34476
- :param _Taints: 虚拟节点taint
34495
+ :param _Taints: 虚拟节点taint,必须修改至少一个参数
34477
34496
  :type Taints: list of Taint
34478
- :param _DeletionProtection: 删除保护开关
34497
+ :param _DeletionProtection: 删除保护开关,必须修改至少一个参数
34479
34498
  :type DeletionProtection: bool
34480
34499
  """
34481
34500
  self._ClusterId = None
@@ -34488,7 +34507,7 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
34488
34507
 
34489
34508
  @property
34490
34509
  def ClusterId(self):
34491
- """集群ID
34510
+ """集群ID,通过DescribeClusters接口获取
34492
34511
  :rtype: str
34493
34512
  """
34494
34513
  return self._ClusterId
@@ -34499,7 +34518,7 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
34499
34518
 
34500
34519
  @property
34501
34520
  def NodePoolId(self):
34502
- """节点池ID
34521
+ """节点池ID,通过DescribeNodePools接口获取
34503
34522
  :rtype: str
34504
34523
  """
34505
34524
  return self._NodePoolId
@@ -34510,7 +34529,7 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
34510
34529
 
34511
34530
  @property
34512
34531
  def Name(self):
34513
- """节点池名称
34532
+ """节点池名称,必须修改至少一个参数
34514
34533
  :rtype: str
34515
34534
  """
34516
34535
  return self._Name
@@ -34521,7 +34540,7 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
34521
34540
 
34522
34541
  @property
34523
34542
  def SecurityGroupIds(self):
34524
- """安全组ID列表
34543
+ """安全组ID列表,必须修改至少一个参数
34525
34544
  :rtype: list of str
34526
34545
  """
34527
34546
  return self._SecurityGroupIds
@@ -34532,7 +34551,7 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
34532
34551
 
34533
34552
  @property
34534
34553
  def Labels(self):
34535
- """虚拟节点label
34554
+ """虚拟节点label,必须修改至少一个参数
34536
34555
  :rtype: list of Label
34537
34556
  """
34538
34557
  return self._Labels
@@ -34543,7 +34562,7 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
34543
34562
 
34544
34563
  @property
34545
34564
  def Taints(self):
34546
- """虚拟节点taint
34565
+ """虚拟节点taint,必须修改至少一个参数
34547
34566
  :rtype: list of Taint
34548
34567
  """
34549
34568
  return self._Taints
@@ -34554,7 +34573,7 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
34554
34573
 
34555
34574
  @property
34556
34575
  def DeletionProtection(self):
34557
- """删除保护开关
34576
+ """删除保护开关,必须修改至少一个参数
34558
34577
  :rtype: bool
34559
34578
  """
34560
34579
  return self._DeletionProtection
@@ -35795,7 +35814,7 @@ class ModifyReservedInstanceScopeRequest(AbstractModel):
35795
35814
 
35796
35815
  def __init__(self):
35797
35816
  r"""
35798
- :param _ReservedInstanceIds: 预留券唯一 ID
35817
+ :param _ReservedInstanceIds: 预留券实例ID。可通过 [DescribeReservedInstances](https://cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取。
35799
35818
  :type ReservedInstanceIds: list of str
35800
35819
  :param _ReservedInstanceScope: 预留券抵扣范围信息
35801
35820
  :type ReservedInstanceScope: :class:`tencentcloud.tke.v20180525.models.ReservedInstanceScope`
@@ -35805,7 +35824,7 @@ class ModifyReservedInstanceScopeRequest(AbstractModel):
35805
35824
 
35806
35825
  @property
35807
35826
  def ReservedInstanceIds(self):
35808
- """预留券唯一 ID
35827
+ """预留券实例ID。可通过 [DescribeReservedInstances](https://cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取。
35809
35828
  :rtype: list of str
35810
35829
  """
35811
35830
  return self._ReservedInstanceIds
@@ -37531,9 +37550,9 @@ class PodDeductionRate(AbstractModel):
37531
37550
  r"""
37532
37551
  :param _Cpu: Pod的 CPU
37533
37552
  :type Cpu: float
37534
- :param _Memory: Pod 的内存
37553
+ :param _Memory: Pod 的内存,单位:GiB
37535
37554
  :type Memory: float
37536
- :param _Type: Pod 的类型
37555
+ :param _Type: Pod 的类型, intel,amd,windows-common,windows-amd,sa4,sa5,s7,s8,t4,v100,l20,l40,a10\*gnv4,a10\*gnv4v,a10\*pnv4
37537
37556
  :type Type: str
37538
37557
  :param _GpuNum: Pod 的 GPU 卡数,Pod 类型为 GPU 时有效。
37539
37558
  :type GpuNum: str
@@ -37562,7 +37581,7 @@ class PodDeductionRate(AbstractModel):
37562
37581
 
37563
37582
  @property
37564
37583
  def Memory(self):
37565
- """Pod 的内存
37584
+ """Pod 的内存,单位:GiB
37566
37585
  :rtype: float
37567
37586
  """
37568
37587
  return self._Memory
@@ -37573,7 +37592,7 @@ class PodDeductionRate(AbstractModel):
37573
37592
 
37574
37593
  @property
37575
37594
  def Type(self):
37576
- """ Pod 的类型
37595
+ """ Pod 的类型, intel,amd,windows-common,windows-amd,sa4,sa5,s7,s8,t4,v100,l20,l40,a10\*gnv4,a10\*gnv4v,a10\*pnv4
37577
37596
  :rtype: str
37578
37597
  """
37579
37598
  return self._Type
@@ -37806,7 +37825,7 @@ class PodNodeInfo(AbstractModel):
37806
37825
  r"""
37807
37826
  :param _ClusterId: 集群 ID
37808
37827
  :type ClusterId: str
37809
- :param _NodeName: 节点名称
37828
+ :param _NodeName: 节点 ID
37810
37829
  :type NodeName: str
37811
37830
  :param _Zone: 可用区
37812
37831
  :type Zone: str
@@ -37834,7 +37853,7 @@ class PodNodeInfo(AbstractModel):
37834
37853
 
37835
37854
  @property
37836
37855
  def NodeName(self):
37837
- """ 节点名称
37856
+ """节点 ID
37838
37857
  :rtype: str
37839
37858
  """
37840
37859
  return self._NodeName
@@ -41623,7 +41642,7 @@ class RIUtilizationDetail(AbstractModel):
41623
41642
  :type Name: str
41624
41643
  :param _Namespace: Pod的命名空间
41625
41644
  :type Namespace: str
41626
- :param _Kind: 工作负载类型
41645
+ :param _Kind: 工作负载类型,如 deployment、statefulset和pod等。
41627
41646
  :type Kind: str
41628
41647
  :param _KindName: 工作负载名称
41629
41648
  :type KindName: str
@@ -41705,7 +41724,7 @@ class RIUtilizationDetail(AbstractModel):
41705
41724
 
41706
41725
  @property
41707
41726
  def Kind(self):
41708
- """工作负载类型
41727
+ """工作负载类型,如 deployment、statefulset和pod等。
41709
41728
  :rtype: str
41710
41729
  """
41711
41730
  return self._Kind
@@ -42643,7 +42662,7 @@ class RenewReservedInstancesRequest(AbstractModel):
42643
42662
 
42644
42663
  def __init__(self):
42645
42664
  r"""
42646
- :param _ReservedInstanceIds: 预留券实例ID,每次请求实例的上限为100。
42665
+ :param _ReservedInstanceIds: 预留券实例ID。可通过 [DescribeReservedInstances](https://cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取,每次请求实例的上限为100。
42647
42666
  :type ReservedInstanceIds: list of str
42648
42667
  :param _InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。
42649
42668
  :type InstanceChargePrepaid: :class:`tencentcloud.tke.v20180525.models.InstanceChargePrepaid`
@@ -42656,7 +42675,7 @@ class RenewReservedInstancesRequest(AbstractModel):
42656
42675
 
42657
42676
  @property
42658
42677
  def ReservedInstanceIds(self):
42659
- """预留券实例ID,每次请求实例的上限为100。
42678
+ """预留券实例ID。可通过 [DescribeReservedInstances](https://cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取,每次请求实例的上限为100。
42660
42679
  :rtype: list of str
42661
42680
  """
42662
42681
  return self._ReservedInstanceIds
@@ -42769,7 +42788,7 @@ class ReservedInstance(AbstractModel):
42769
42788
  :type ClusterId: str
42770
42789
  :param _NodeName: 节点名称
42771
42790
  :type NodeName: str
42772
- :param _DeductStatus: 上个周期预留券的抵扣状态,Deduct、NotDeduct
42791
+ :param _DeductStatus: 上个周期预留券的抵扣状态,Deduct:已抵扣、NotDeduct:未抵扣
42773
42792
  :type DeductStatus: str
42774
42793
  """
42775
42794
  self._ReservedInstanceId = None
@@ -42956,7 +42975,7 @@ class ReservedInstance(AbstractModel):
42956
42975
 
42957
42976
  @property
42958
42977
  def DeductStatus(self):
42959
- """ 上个周期预留券的抵扣状态,Deduct、NotDeduct
42978
+ """ 上个周期预留券的抵扣状态,Deduct:已抵扣、NotDeduct:未抵扣
42960
42979
  :rtype: str
42961
42980
  """
42962
42981
  return self._DeductStatus
@@ -43006,7 +43025,7 @@ class ReservedInstanceScope(AbstractModel):
43006
43025
  :type Zone: str
43007
43026
  :param _ClusterId: 集群 ID
43008
43027
  :type ClusterId: str
43009
- :param _NodeName: 节点名称
43028
+ :param _NodeName: 节点 ID
43010
43029
  :type NodeName: str
43011
43030
  """
43012
43031
  self._Scope = None
@@ -43049,7 +43068,7 @@ class ReservedInstanceScope(AbstractModel):
43049
43068
 
43050
43069
  @property
43051
43070
  def NodeName(self):
43052
- """ 节点名称
43071
+ """节点 ID
43053
43072
  :rtype: str
43054
43073
  """
43055
43074
  return self._NodeName
@@ -43085,7 +43104,7 @@ class ReservedInstanceSpec(AbstractModel):
43085
43104
  :type Type: str
43086
43105
  :param _Cpu: 核数
43087
43106
  :type Cpu: float
43088
- :param _Memory: 内存
43107
+ :param _Memory: 内存,单位:GiB
43089
43108
  :type Memory: float
43090
43109
  :param _Gpu: GPU卡数,当Type为GPU类型时设置。
43091
43110
  :type Gpu: float
@@ -43119,7 +43138,7 @@ class ReservedInstanceSpec(AbstractModel):
43119
43138
 
43120
43139
  @property
43121
43140
  def Memory(self):
43122
- """内存
43141
+ """内存,单位:GiB
43123
43142
  :rtype: float
43124
43143
  """
43125
43144
  return self._Memory
@@ -43168,9 +43187,9 @@ class ReservedInstanceUtilizationRate(AbstractModel):
43168
43187
  :type Num: int
43169
43188
  :param _CPU: 核数
43170
43189
  :type CPU: float
43171
- :param _Memory: 内存
43190
+ :param _Memory: 内存,单位:GiB
43172
43191
  :type Memory: float
43173
- :param _Type: 预留券类型
43192
+ :param _Type: 预留券类型, common:CPU通用,amd:AMD专用,windows-common: Windows容器 CPU通用,windows-amd:Windows容器 AMD专用,sa4,sa5,s7,s8,t4,v100,l20,l40,a10\*gnv4,a10\*gnv4v,a10\*pnv4
43174
43193
  :type Type: str
43175
43194
  :param _GpuNum: GPU 卡数
43176
43195
  :type GpuNum: str
@@ -43178,7 +43197,7 @@ class ReservedInstanceUtilizationRate(AbstractModel):
43178
43197
  :type Zone: str
43179
43198
  :param _ClusterId: 集群 ID
43180
43199
  :type ClusterId: str
43181
- :param _NodeName: 节点名称
43200
+ :param _NodeName: 节点 ID
43182
43201
  :type NodeName: str
43183
43202
  :param _PodNum: Pod 数量
43184
43203
  :type PodNum: int
@@ -43229,7 +43248,7 @@ class ReservedInstanceUtilizationRate(AbstractModel):
43229
43248
 
43230
43249
  @property
43231
43250
  def Memory(self):
43232
- """内存
43251
+ """内存,单位:GiB
43233
43252
  :rtype: float
43234
43253
  """
43235
43254
  return self._Memory
@@ -43240,7 +43259,7 @@ class ReservedInstanceUtilizationRate(AbstractModel):
43240
43259
 
43241
43260
  @property
43242
43261
  def Type(self):
43243
- """ 预留券类型
43262
+ """ 预留券类型, common:CPU通用,amd:AMD专用,windows-common: Windows容器 CPU通用,windows-amd:Windows容器 AMD专用,sa4,sa5,s7,s8,t4,v100,l20,l40,a10\*gnv4,a10\*gnv4v,a10\*pnv4
43244
43263
  :rtype: str
43245
43264
  """
43246
43265
  return self._Type
@@ -43284,7 +43303,7 @@ class ReservedInstanceUtilizationRate(AbstractModel):
43284
43303
 
43285
43304
  @property
43286
43305
  def NodeName(self):
43287
- """节点名称
43306
+ """节点 ID
43288
43307
  :rtype: str
43289
43308
  """
43290
43309
  return self._NodeName
@@ -48291,6 +48310,9 @@ class VirtualNodePool(AbstractModel):
48291
48310
  :param _Name: 节点池名称
48292
48311
  :type Name: str
48293
48312
  :param _LifeState: 节点池生命周期
48313
+ - creating:创建中
48314
+ - normal:正常
48315
+ - updating:更新中
48294
48316
  :type LifeState: str
48295
48317
  :param _Labels: 虚拟节点label
48296
48318
  注意:此字段可能返回 null,表示取不到有效值。
@@ -48343,6 +48365,9 @@ class VirtualNodePool(AbstractModel):
48343
48365
  @property
48344
48366
  def LifeState(self):
48345
48367
  """节点池生命周期
48368
+ - creating:创建中
48369
+ - normal:正常
48370
+ - updating:更新中
48346
48371
  :rtype: str
48347
48372
  """
48348
48373
  return self._LifeState
@@ -48410,7 +48435,7 @@ class VirtualNodeSpec(AbstractModel):
48410
48435
 
48411
48436
  def __init__(self):
48412
48437
  r"""
48413
- :param _DisplayName: 节点展示名称
48438
+ :param _DisplayName: 节点展示名称,建议不超过20个字符
48414
48439
  :type DisplayName: str
48415
48440
  :param _SubnetId: 子网ID
48416
48441
  :type SubnetId: str
@@ -48423,7 +48448,7 @@ class VirtualNodeSpec(AbstractModel):
48423
48448
 
48424
48449
  @property
48425
48450
  def DisplayName(self):
48426
- """节点展示名称
48451
+ """节点展示名称,建议不超过20个字符
48427
48452
  :rtype: str
48428
48453
  """
48429
48454
  return self._DisplayName
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf8 -*-
2
- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf8 -*-
2
- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf8 -*-
2
- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -5908,6 +5908,100 @@ class RuntimeConfig(AbstractModel):
5908
5908
 
5909
5909
 
5910
5910
 
5911
+ class SetMachineLoginRequest(AbstractModel):
5912
+ """SetMachineLogin请求参数结构体
5913
+
5914
+ """
5915
+
5916
+ def __init__(self):
5917
+ r"""
5918
+ :param _ClusterId: 集群 ID
5919
+ :type ClusterId: str
5920
+ :param _MachineName: 节点名称
5921
+ :type MachineName: str
5922
+ :param _KeyIds: 密钥 ID 列表
5923
+ :type KeyIds: list of str
5924
+ """
5925
+ self._ClusterId = None
5926
+ self._MachineName = None
5927
+ self._KeyIds = None
5928
+
5929
+ @property
5930
+ def ClusterId(self):
5931
+ """集群 ID
5932
+ :rtype: str
5933
+ """
5934
+ return self._ClusterId
5935
+
5936
+ @ClusterId.setter
5937
+ def ClusterId(self, ClusterId):
5938
+ self._ClusterId = ClusterId
5939
+
5940
+ @property
5941
+ def MachineName(self):
5942
+ """节点名称
5943
+ :rtype: str
5944
+ """
5945
+ return self._MachineName
5946
+
5947
+ @MachineName.setter
5948
+ def MachineName(self, MachineName):
5949
+ self._MachineName = MachineName
5950
+
5951
+ @property
5952
+ def KeyIds(self):
5953
+ """密钥 ID 列表
5954
+ :rtype: list of str
5955
+ """
5956
+ return self._KeyIds
5957
+
5958
+ @KeyIds.setter
5959
+ def KeyIds(self, KeyIds):
5960
+ self._KeyIds = KeyIds
5961
+
5962
+
5963
+ def _deserialize(self, params):
5964
+ self._ClusterId = params.get("ClusterId")
5965
+ self._MachineName = params.get("MachineName")
5966
+ self._KeyIds = params.get("KeyIds")
5967
+ memeber_set = set(params.keys())
5968
+ for name, value in vars(self).items():
5969
+ property_name = name[1:]
5970
+ if property_name in memeber_set:
5971
+ memeber_set.remove(property_name)
5972
+ if len(memeber_set) > 0:
5973
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5974
+
5975
+
5976
+
5977
+ class SetMachineLoginResponse(AbstractModel):
5978
+ """SetMachineLogin返回参数结构体
5979
+
5980
+ """
5981
+
5982
+ def __init__(self):
5983
+ r"""
5984
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5985
+ :type RequestId: str
5986
+ """
5987
+ self._RequestId = None
5988
+
5989
+ @property
5990
+ def RequestId(self):
5991
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5992
+ :rtype: str
5993
+ """
5994
+ return self._RequestId
5995
+
5996
+ @RequestId.setter
5997
+ def RequestId(self, RequestId):
5998
+ self._RequestId = RequestId
5999
+
6000
+
6001
+ def _deserialize(self, params):
6002
+ self._RequestId = params.get("RequestId")
6003
+
6004
+
5911
6005
  class SortBy(AbstractModel):
5912
6006
  """排序信息
5913
6007
 
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf8 -*-
2
- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -325,6 +325,29 @@ class TkeClient(AbstractClient):
325
325
  raise TencentCloudSDKException(type(e).__name__, str(e))
326
326
 
327
327
 
328
+ def SetMachineLogin(self, request):
329
+ """设置是否开启节点登录
330
+
331
+ :param request: Request instance for SetMachineLogin.
332
+ :type request: :class:`tencentcloud.tke.v20220501.models.SetMachineLoginRequest`
333
+ :rtype: :class:`tencentcloud.tke.v20220501.models.SetMachineLoginResponse`
334
+
335
+ """
336
+ try:
337
+ params = request._serialize()
338
+ headers = request.headers
339
+ body = self.call("SetMachineLogin", params, headers=headers)
340
+ response = json.loads(body)
341
+ model = models.SetMachineLoginResponse()
342
+ model._deserialize(response["Response"])
343
+ return model
344
+ except Exception as e:
345
+ if isinstance(e, TencentCloudSDKException):
346
+ raise
347
+ else:
348
+ raise TencentCloudSDKException(type(e).__name__, str(e))
349
+
350
+
328
351
  def StartMachines(self, request):
329
352
  """本接口 (StartMachines) 用于启动一个或多个原生节点实例。
330
353
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-tke
3
- Version: 3.0.1411
3
+ Version: 3.0.1420
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.0.1420
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1411