tencentcloud-sdk-python-tke 3.0.1481__tar.gz → 3.0.1482__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.1481 → tencentcloud_sdk_python_tke-3.0.1482}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/tencentcloud/tke/v20180525/models.py +128 -78
  5. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/tencentcloud/tke/v20180525/tke_client.py +2 -2
  6. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/tencentcloud/tke/v20220501/errorcodes.py +16 -1
  7. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/tencentcloud/tke/v20220501/models.py +443 -0
  8. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/tencentcloud/tke/v20220501/tke_client.py +23 -0
  9. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/tencentcloud_sdk_python_tke.egg-info/PKG-INFO +2 -2
  10. tencentcloud_sdk_python_tke-3.0.1482/tencentcloud_sdk_python_tke.egg-info/requires.txt +1 -0
  11. tencentcloud_sdk_python_tke-3.0.1481/tencentcloud_sdk_python_tke.egg-info/requires.txt +0 -1
  12. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/README.rst +0 -0
  13. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/setup.cfg +0 -0
  14. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/tencentcloud/tke/__init__.py +0 -0
  15. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/tencentcloud/tke/v20180525/__init__.py +0 -0
  16. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/tencentcloud/tke/v20180525/errorcodes.py +0 -0
  17. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/tencentcloud/tke/v20220501/__init__.py +0 -0
  18. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/tencentcloud_sdk_python_tke.egg-info/SOURCES.txt +0 -0
  19. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/tencentcloud_sdk_python_tke.egg-info/dependency_links.txt +0 -0
  20. {tencentcloud_sdk_python_tke-3.0.1481 → tencentcloud_sdk_python_tke-3.0.1482}/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.0.1481
3
+ Version: 3.0.1482
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.0.1481
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1482
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.0.1481,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1482,<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.1481'
17
+ __version__ = '3.0.1482'
@@ -183,9 +183,9 @@ class AddExistedInstancesRequest(AbstractModel):
183
183
 
184
184
  def __init__(self):
185
185
  r"""
186
- :param _ClusterId: 集群ID
186
+ :param _ClusterId: 集群ID(请登录 [TKE 控制台](https://console.cloud.tencent.com/tke2) 获取集群 ID )
187
187
  :type ClusterId: str
188
- :param _InstanceIds: 实例列表,不支持竞价实例
188
+ :param _InstanceIds: 实例列表,不支持竞价实例(请登录 [CVM控制台](https://console.cloud.tencent.com/cvm) 获取待添加节点ID )
189
189
  :type InstanceIds: list of str
190
190
  :param _InstanceAdvancedSettings: 实例额外需要设置参数信息(默认值)
191
191
  :type InstanceAdvancedSettings: :class:`tencentcloud.tke.v20180525.models.InstanceAdvancedSettings`
@@ -220,7 +220,7 @@ class AddExistedInstancesRequest(AbstractModel):
220
220
 
221
221
  @property
222
222
  def ClusterId(self):
223
- r"""集群ID
223
+ r"""集群ID(请登录 [TKE 控制台](https://console.cloud.tencent.com/tke2) 获取集群 ID )
224
224
  :rtype: str
225
225
  """
226
226
  return self._ClusterId
@@ -231,7 +231,7 @@ class AddExistedInstancesRequest(AbstractModel):
231
231
 
232
232
  @property
233
233
  def InstanceIds(self):
234
- r"""实例列表,不支持竞价实例
234
+ r"""实例列表,不支持竞价实例(请登录 [CVM控制台](https://console.cloud.tencent.com/cvm) 获取待添加节点ID )
235
235
  :rtype: list of str
236
236
  """
237
237
  return self._InstanceIds
@@ -482,7 +482,7 @@ class AddNodeToNodePoolRequest(AbstractModel):
482
482
  :type ClusterId: str
483
483
  :param _NodePoolId: 节点池id
484
484
  :type NodePoolId: str
485
- :param _InstanceIds: 节点id
485
+ :param _InstanceIds: 节点id,获取参考 https://cloud.tencent.com/document/product/213/15728
486
486
  :type InstanceIds: list of str
487
487
  """
488
488
  self._ClusterId = None
@@ -513,7 +513,7 @@ class AddNodeToNodePoolRequest(AbstractModel):
513
513
 
514
514
  @property
515
515
  def InstanceIds(self):
516
- r"""节点id
516
+ r"""节点id,获取参考 https://cloud.tencent.com/document/product/213/15728
517
517
  :rtype: list of str
518
518
  """
519
519
  return self._InstanceIds
@@ -1932,15 +1932,15 @@ class Cluster(AbstractModel):
1932
1932
  :type ContainerRuntime: str
1933
1933
  :param _CreatedTime: 创建时间
1934
1934
  :type CreatedTime: str
1935
- :param _DeletionProtection: 删除保护开关
1935
+ :param _DeletionProtection: 集群删除保护开关,打开:true,关闭:false
1936
1936
  :type DeletionProtection: bool
1937
- :param _EnableExternalNode: 集群是否开启第三方节点支持
1937
+ :param _EnableExternalNode: 集群是否开启第三方节点支持,开启:true,关闭:false
1938
1938
  :type EnableExternalNode: bool
1939
1939
  :param _ClusterLevel: 集群等级,针对托管集群生效
1940
1940
  :type ClusterLevel: str
1941
- :param _AutoUpgradeClusterLevel: 自动变配集群等级,针对托管集群生效
1941
+ :param _AutoUpgradeClusterLevel: 自动变配集群等级,针对托管集群生效。开启:true,关闭:false
1942
1942
  :type AutoUpgradeClusterLevel: bool
1943
- :param _QGPUShareEnable: 是否开启QGPU共享
1943
+ :param _QGPUShareEnable: 是否开启QGPU共享,开启:true,关闭:false
1944
1944
  :type QGPUShareEnable: bool
1945
1945
  :param _RuntimeVersion: 运行时版本
1946
1946
  :type RuntimeVersion: str
@@ -2165,7 +2165,7 @@ class Cluster(AbstractModel):
2165
2165
 
2166
2166
  @property
2167
2167
  def DeletionProtection(self):
2168
- r"""删除保护开关
2168
+ r"""集群删除保护开关,打开:true,关闭:false
2169
2169
  :rtype: bool
2170
2170
  """
2171
2171
  return self._DeletionProtection
@@ -2176,7 +2176,7 @@ class Cluster(AbstractModel):
2176
2176
 
2177
2177
  @property
2178
2178
  def EnableExternalNode(self):
2179
- r"""集群是否开启第三方节点支持
2179
+ r"""集群是否开启第三方节点支持,开启:true,关闭:false
2180
2180
  :rtype: bool
2181
2181
  """
2182
2182
  return self._EnableExternalNode
@@ -2198,7 +2198,7 @@ class Cluster(AbstractModel):
2198
2198
 
2199
2199
  @property
2200
2200
  def AutoUpgradeClusterLevel(self):
2201
- r"""自动变配集群等级,针对托管集群生效
2201
+ r"""自动变配集群等级,针对托管集群生效。开启:true,关闭:false
2202
2202
  :rtype: bool
2203
2203
  """
2204
2204
  return self._AutoUpgradeClusterLevel
@@ -2209,7 +2209,7 @@ class Cluster(AbstractModel):
2209
2209
 
2210
2210
  @property
2211
2211
  def QGPUShareEnable(self):
2212
- r"""是否开启QGPU共享
2212
+ r"""是否开启QGPU共享,开启:true,关闭:false
2213
2213
  :rtype: bool
2214
2214
  """
2215
2215
  return self._QGPUShareEnable
@@ -2864,10 +2864,10 @@ class ClusterAsGroupOption(AbstractModel):
2864
2864
  :param _MaxTotalUnreadyPercentage: 未就绪节点的最大百分比,此后CA会停止操作
2865
2865
  注意:此字段可能返回 null,表示取不到有效值。
2866
2866
  :type MaxTotalUnreadyPercentage: int
2867
- :param _ScaleDownUnreadyTime: 表示未准备就绪的节点在有资格进行缩减之前应该停留多长时间
2867
+ :param _ScaleDownUnreadyTime: 表示未准备就绪的节点在有资格进行缩减之前应该停留多少分钟
2868
2868
  注意:此字段可能返回 null,表示取不到有效值。
2869
2869
  :type ScaleDownUnreadyTime: int
2870
- :param _UnregisteredNodeRemovalTime: CA删除未在Kubernetes中注册的节点之前等待的时间
2870
+ :param _UnregisteredNodeRemovalTime: CA删除未在Kubernetes中注册的节点之前等待的分钟数
2871
2871
  注意:此字段可能返回 null,表示取不到有效值。
2872
2872
  :type UnregisteredNodeRemovalTime: int
2873
2873
  """
@@ -3018,7 +3018,7 @@ class ClusterAsGroupOption(AbstractModel):
3018
3018
 
3019
3019
  @property
3020
3020
  def ScaleDownUnreadyTime(self):
3021
- r"""表示未准备就绪的节点在有资格进行缩减之前应该停留多长时间
3021
+ r"""表示未准备就绪的节点在有资格进行缩减之前应该停留多少分钟
3022
3022
  注意:此字段可能返回 null,表示取不到有效值。
3023
3023
  :rtype: int
3024
3024
  """
@@ -3030,7 +3030,7 @@ class ClusterAsGroupOption(AbstractModel):
3030
3030
 
3031
3031
  @property
3032
3032
  def UnregisteredNodeRemovalTime(self):
3033
- r"""CA删除未在Kubernetes中注册的节点之前等待的时间
3033
+ r"""CA删除未在Kubernetes中注册的节点之前等待的分钟数
3034
3034
  注意:此字段可能返回 null,表示取不到有效值。
3035
3035
  :rtype: int
3036
3036
  """
@@ -5212,9 +5212,9 @@ class CreateBackupStorageLocationRequest(AbstractModel):
5212
5212
  r"""
5213
5213
  :param _StorageRegion: 存储仓库所属地域,比如COS广州(ap-guangzhou)
5214
5214
  :type StorageRegion: str
5215
- :param _Bucket: 对象存储桶名称,如果是COS必须是tke-backup前缀开头
5215
+ :param _Bucket: 对象存储桶名称,如果是COS必须是tke-backup前缀开头,字符长度是19
5216
5216
  :type Bucket: str
5217
- :param _Name: 备份仓库名称
5217
+ :param _Name: 备份仓库名称,字符长度为63
5218
5218
  :type Name: str
5219
5219
  :param _Provider: 存储服务提供方,默认腾讯云
5220
5220
  :type Provider: str
@@ -5240,7 +5240,7 @@ class CreateBackupStorageLocationRequest(AbstractModel):
5240
5240
 
5241
5241
  @property
5242
5242
  def Bucket(self):
5243
- r"""对象存储桶名称,如果是COS必须是tke-backup前缀开头
5243
+ r"""对象存储桶名称,如果是COS必须是tke-backup前缀开头,字符长度是19
5244
5244
  :rtype: str
5245
5245
  """
5246
5246
  return self._Bucket
@@ -5251,7 +5251,7 @@ class CreateBackupStorageLocationRequest(AbstractModel):
5251
5251
 
5252
5252
  @property
5253
5253
  def Name(self):
5254
- r"""备份仓库名称
5254
+ r"""备份仓库名称,字符长度为63
5255
5255
  :rtype: str
5256
5256
  """
5257
5257
  return self._Name
@@ -5445,13 +5445,14 @@ class CreateClusterEndpointRequest(AbstractModel):
5445
5445
  r"""
5446
5446
  :param _ClusterId: 集群ID
5447
5447
  :type ClusterId: str
5448
- :param _SubnetId: 集群端口所在的子网ID (仅在开启非外网访问时需要填,必须为集群所在VPC内的子网)
5448
+ :param _SubnetId: 集群端口所在的子网ID (仅在开启非外网访问时需要填,必须为集群所在VPC内的子网)。获取方式:https://cloud.tencent.com/document/product/215/15784
5449
+
5449
5450
  :type SubnetId: str
5450
5451
  :param _IsExtranet: 是否为外网访问(TRUE 外网访问 FALSE 内网访问,默认值: FALSE)
5451
5452
  :type IsExtranet: bool
5452
5453
  :param _Domain: 设置域名
5453
5454
  :type Domain: str
5454
- :param _SecurityGroup: 使用的安全组,只有外网访问需要传递(开启外网访问且不使用已有clb时必传)
5455
+ :param _SecurityGroup: 使用的安全组,只有外网访问需要传递(开启外网访问且不使用已有clb时必传)。获取方式:https://cloud.tencent.com/document/api/215/15808
5455
5456
  :type SecurityGroup: str
5456
5457
  :param _ExtensiveParameters: 创建lb参数,只有外网访问需要设置,是一个json格式化后的字符串:{"InternetAccessible":{"InternetChargeType":"TRAFFIC_POSTPAID_BY_HOUR","InternetMaxBandwidthOut":200},"VipIsp":"","BandwidthPackageId":""}。
5457
5458
  各个参数意义:
@@ -5484,7 +5485,8 @@ BandwidthPackageId含义:带宽包ID,指定此参数时,网络计费方式
5484
5485
 
5485
5486
  @property
5486
5487
  def SubnetId(self):
5487
- r"""集群端口所在的子网ID (仅在开启非外网访问时需要填,必须为集群所在VPC内的子网)
5488
+ r"""集群端口所在的子网ID (仅在开启非外网访问时需要填,必须为集群所在VPC内的子网)。获取方式:https://cloud.tencent.com/document/product/215/15784
5489
+
5488
5490
  :rtype: str
5489
5491
  """
5490
5492
  return self._SubnetId
@@ -5517,7 +5519,7 @@ BandwidthPackageId含义:带宽包ID,指定此参数时,网络计费方式
5517
5519
 
5518
5520
  @property
5519
5521
  def SecurityGroup(self):
5520
- r"""使用的安全组,只有外网访问需要传递(开启外网访问且不使用已有clb时必传)
5522
+ r"""使用的安全组,只有外网访问需要传递(开启外网访问且不使用已有clb时必传)。获取方式:https://cloud.tencent.com/document/api/215/15808
5521
5523
  :rtype: str
5522
5524
  """
5523
5525
  return self._SecurityGroup
@@ -13169,9 +13171,9 @@ class DescribeAvailableClusterVersionRequest(AbstractModel):
13169
13171
 
13170
13172
  def __init__(self):
13171
13173
  r"""
13172
- :param _ClusterId: 集群 Id。若只查询某个集群可升级的版本,需填写此项。
13174
+ :param _ClusterId: 集群 Id。若只查询某个集群可升级的版本,需填写此项,与ClusterIds 参数二选一。
13173
13175
  :type ClusterId: str
13174
- :param _ClusterIds: 集群 Id 列表。若查询多个集群可升级的版本,需填写此项。
13176
+ :param _ClusterIds: 集群 Id 列表。若查询多个集群可升级的版本,需填写此项,与ClusterId 参数二选一。
13175
13177
  :type ClusterIds: list of str
13176
13178
  """
13177
13179
  self._ClusterId = None
@@ -13179,7 +13181,7 @@ class DescribeAvailableClusterVersionRequest(AbstractModel):
13179
13181
 
13180
13182
  @property
13181
13183
  def ClusterId(self):
13182
- r"""集群 Id。若只查询某个集群可升级的版本,需填写此项。
13184
+ r"""集群 Id。若只查询某个集群可升级的版本,需填写此项,与ClusterIds 参数二选一。
13183
13185
  :rtype: str
13184
13186
  """
13185
13187
  return self._ClusterId
@@ -13190,7 +13192,7 @@ class DescribeAvailableClusterVersionRequest(AbstractModel):
13190
13192
 
13191
13193
  @property
13192
13194
  def ClusterIds(self):
13193
- r"""集群 Id 列表。若查询多个集群可升级的版本,需填写此项。
13195
+ r"""集群 Id 列表。若查询多个集群可升级的版本,需填写此项,与ClusterId 参数二选一。
13194
13196
  :rtype: list of str
13195
13197
  """
13196
13198
  return self._ClusterIds
@@ -14207,7 +14209,7 @@ class DescribeClusterEndpointStatusResponse(AbstractModel):
14207
14209
 
14208
14210
  def __init__(self):
14209
14211
  r"""
14210
- :param _Status: 查询集群访问端口状态(Created 开启成功,Creating 开启中,NotFound 未开启)
14212
+ :param _Status: 查询集群访问端口状态(Created 开启成功,Creating 开启中,NotFound 未开启,CreateFailed 开启失败)
14211
14213
  :type Status: str
14212
14214
  :param _ErrorMsg: 开启访问入口失败信息
14213
14215
  :type ErrorMsg: str
@@ -14220,7 +14222,7 @@ class DescribeClusterEndpointStatusResponse(AbstractModel):
14220
14222
 
14221
14223
  @property
14222
14224
  def Status(self):
14223
- r"""查询集群访问端口状态(Created 开启成功,Creating 开启中,NotFound 未开启)
14225
+ r"""查询集群访问端口状态(Created 开启成功,Creating 开启中,NotFound 未开启,CreateFailed 开启失败)
14224
14226
  :rtype: str
14225
14227
  """
14226
14228
  return self._Status
@@ -16954,7 +16956,7 @@ class DescribeClustersRequest(AbstractModel):
16954
16956
  :type Limit: int
16955
16957
  :param _Filters: · "Name":"ClusterName","Values": ["test"] 按照【集群名】进行过滤。 类型:String 必选:否 · "Name":"ClusterType","Values": ["MANAGED_CLUSTER"] 按照【集群类型】进行过滤。 类型:String 必选:否 · "Name":"ClusterStatus","Values": ["Running"] 按照【集群状态】进行过滤。 类型:String 必选:否 · "Name":"vpc-id","Values": ["vpc-2wds9k9p"] 按照【VPC】进行过滤。 类型:String 必选:否 · "Name":"tag-key","Values": ["testKey"] 按照【标签键】进行过滤。 类型:String 必选:否 · "Name":"tag-value","Values": ["testValue"] 按照【标签值】进行过滤。 类型:String 必选:否 · "Name":"Tags","Values": ["product:tke"] 按照【标签键值对】进行过滤。 类型:String 必选:否
16956
16958
  :type Filters: list of Filter
16957
- :param _ClusterType: 集群类型,例如:MANAGED_CLUSTER
16959
+ :param _ClusterType: 集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。
16958
16960
  :type ClusterType: str
16959
16961
  """
16960
16962
  self._ClusterIds = None
@@ -17010,7 +17012,7 @@ class DescribeClustersRequest(AbstractModel):
17010
17012
 
17011
17013
  @property
17012
17014
  def ClusterType(self):
17013
- r"""集群类型,例如:MANAGED_CLUSTER
17015
+ r"""集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。
17014
17016
  :rtype: str
17015
17017
  """
17016
17018
  return self._ClusterType
@@ -24342,11 +24344,11 @@ class DescribeResourceUsageResponse(AbstractModel):
24342
24344
  r"""
24343
24345
  :param _CRDUsage: CRD使用量
24344
24346
  :type CRDUsage: :class:`tencentcloud.tke.v20180525.models.ResourceUsage`
24345
- :param _PodUsage: Pod使用量
24347
+ :param _PodUsage: Pod使用量,单位:个数
24346
24348
  :type PodUsage: int
24347
- :param _RSUsage: ReplicaSet使用量
24349
+ :param _RSUsage: ReplicaSet使用量,单位:个数
24348
24350
  :type RSUsage: int
24349
- :param _ConfigMapUsage: ConfigMap使用量
24351
+ :param _ConfigMapUsage: ConfigMap使用量,单位:个数
24350
24352
  :type ConfigMapUsage: int
24351
24353
  :param _OtherUsage: 其他资源使用量
24352
24354
  :type OtherUsage: :class:`tencentcloud.tke.v20180525.models.ResourceUsage`
@@ -24373,7 +24375,7 @@ class DescribeResourceUsageResponse(AbstractModel):
24373
24375
 
24374
24376
  @property
24375
24377
  def PodUsage(self):
24376
- r"""Pod使用量
24378
+ r"""Pod使用量,单位:个数
24377
24379
  :rtype: int
24378
24380
  """
24379
24381
  return self._PodUsage
@@ -24384,7 +24386,7 @@ class DescribeResourceUsageResponse(AbstractModel):
24384
24386
 
24385
24387
  @property
24386
24388
  def RSUsage(self):
24387
- r"""ReplicaSet使用量
24389
+ r"""ReplicaSet使用量,单位:个数
24388
24390
  :rtype: int
24389
24391
  """
24390
24392
  return self._RSUsage
@@ -24395,7 +24397,7 @@ class DescribeResourceUsageResponse(AbstractModel):
24395
24397
 
24396
24398
  @property
24397
24399
  def ConfigMapUsage(self):
24398
- r"""ConfigMap使用量
24400
+ r"""ConfigMap使用量,单位:个数
24399
24401
  :rtype: int
24400
24402
  """
24401
24403
  return self._ConfigMapUsage
@@ -29572,14 +29574,14 @@ class GetClusterLevelPriceRequest(AbstractModel):
29572
29574
 
29573
29575
  def __init__(self):
29574
29576
  r"""
29575
- :param _ClusterLevel: 集群规格,托管集群询价
29577
+ :param _ClusterLevel: 集群规格,托管集群询价,集群等级:L20、L50、L100、L200、L500、L1000、L3000、L5000
29576
29578
  :type ClusterLevel: str
29577
29579
  """
29578
29580
  self._ClusterLevel = None
29579
29581
 
29580
29582
  @property
29581
29583
  def ClusterLevel(self):
29582
- r"""集群规格,托管集群询价
29584
+ r"""集群规格,托管集群询价,集群等级:L20、L50、L100、L200、L500、L1000、L3000、L5000
29583
29585
  :rtype: str
29584
29586
  """
29585
29587
  return self._ClusterLevel
@@ -32476,9 +32478,15 @@ class KubeJarvisStateInspectionResultsItem(AbstractModel):
32476
32478
  :type Name: str
32477
32479
  :param _Statistics: 诊断结果统计
32478
32480
  :type Statistics: list of KubeJarvisStateStatistic
32481
+ :param _StartTime: 诊断数据开始时间
32482
+ :type StartTime: str
32483
+ :param _EndTime: 诊断数据结束时间
32484
+ :type EndTime: str
32479
32485
  """
32480
32486
  self._Name = None
32481
32487
  self._Statistics = None
32488
+ self._StartTime = None
32489
+ self._EndTime = None
32482
32490
 
32483
32491
  @property
32484
32492
  def Name(self):
@@ -32502,6 +32510,28 @@ class KubeJarvisStateInspectionResultsItem(AbstractModel):
32502
32510
  def Statistics(self, Statistics):
32503
32511
  self._Statistics = Statistics
32504
32512
 
32513
+ @property
32514
+ def StartTime(self):
32515
+ r"""诊断数据开始时间
32516
+ :rtype: str
32517
+ """
32518
+ return self._StartTime
32519
+
32520
+ @StartTime.setter
32521
+ def StartTime(self, StartTime):
32522
+ self._StartTime = StartTime
32523
+
32524
+ @property
32525
+ def EndTime(self):
32526
+ r"""诊断数据结束时间
32527
+ :rtype: str
32528
+ """
32529
+ return self._EndTime
32530
+
32531
+ @EndTime.setter
32532
+ def EndTime(self, EndTime):
32533
+ self._EndTime = EndTime
32534
+
32505
32535
 
32506
32536
  def _deserialize(self, params):
32507
32537
  self._Name = params.get("Name")
@@ -32511,6 +32541,8 @@ class KubeJarvisStateInspectionResultsItem(AbstractModel):
32511
32541
  obj = KubeJarvisStateStatistic()
32512
32542
  obj._deserialize(item)
32513
32543
  self._Statistics.append(obj)
32544
+ self._StartTime = params.get("StartTime")
32545
+ self._EndTime = params.get("EndTime")
32514
32546
  memeber_set = set(params.keys())
32515
32547
  for name, value in vars(self).items():
32516
32548
  property_name = name[1:]
@@ -32729,7 +32761,12 @@ class KubeJarvisStateStatistic(AbstractModel):
32729
32761
 
32730
32762
  def __init__(self):
32731
32763
  r"""
32732
- :param _HealthyLevel: 诊断结果的健康水平
32764
+ :param _HealthyLevel: 诊断结果的健康水平,健康水平取值:
32765
+ serious:高风险
32766
+ risk:中风险
32767
+ warn:低风险
32768
+ good:健康
32769
+ failed:诊断流程异常
32733
32770
  :type HealthyLevel: str
32734
32771
  :param _Count: 诊断结果的统计
32735
32772
  :type Count: int
@@ -32739,7 +32776,12 @@ class KubeJarvisStateStatistic(AbstractModel):
32739
32776
 
32740
32777
  @property
32741
32778
  def HealthyLevel(self):
32742
- r"""诊断结果的健康水平
32779
+ r"""诊断结果的健康水平,健康水平取值:
32780
+ serious:高风险
32781
+ risk:中风险
32782
+ warn:低风险
32783
+ good:健康
32784
+ failed:诊断流程异常
32743
32785
  :rtype: str
32744
32786
  """
32745
32787
  return self._HealthyLevel
@@ -32832,6 +32874,9 @@ class ListClusterInspectionResultsItemsRequest(AbstractModel):
32832
32874
  def __init__(self):
32833
32875
  r"""
32834
32876
  :param _ClusterId: 目标集群ID
32877
+
32878
+ 取值可参考:
32879
+ [查询TKE集群列表](https://cloud.tencent.com/document/api/457/31862)
32835
32880
  :type ClusterId: str
32836
32881
  :param _StartTime: 查询历史结果的开始时间,Unix时间戳
32837
32882
  :type StartTime: str
@@ -32845,6 +32890,9 @@ class ListClusterInspectionResultsItemsRequest(AbstractModel):
32845
32890
  @property
32846
32891
  def ClusterId(self):
32847
32892
  r"""目标集群ID
32893
+
32894
+ 取值可参考:
32895
+ [查询TKE集群列表](https://cloud.tencent.com/document/api/457/31862)
32848
32896
  :rtype: str
32849
32897
  """
32850
32898
  return self._ClusterId
@@ -33475,11 +33523,11 @@ class ModifyClusterAttributeRequest(AbstractModel):
33475
33523
  :type ClusterId: str
33476
33524
  :param _ProjectId: 集群所属项目
33477
33525
  :type ProjectId: int
33478
- :param _ClusterName: 集群名称
33526
+ :param _ClusterName: 集群名称,字符长度50
33479
33527
  :type ClusterName: str
33480
33528
  :param _ClusterDesc: 集群描述
33481
33529
  :type ClusterDesc: str
33482
- :param _ClusterLevel: 集群等级
33530
+ :param _ClusterLevel: 集群等级,等级类型:L20、L50、L100、L200、L500、L1000、L3000、L5000
33483
33531
  :type ClusterLevel: str
33484
33532
  :param _AutoUpgradeClusterLevel: 自动变配集群等级
33485
33533
  :type AutoUpgradeClusterLevel: :class:`tencentcloud.tke.v20180525.models.AutoUpgradeClusterLevel`
@@ -33521,7 +33569,7 @@ class ModifyClusterAttributeRequest(AbstractModel):
33521
33569
 
33522
33570
  @property
33523
33571
  def ClusterName(self):
33524
- r"""集群名称
33572
+ r"""集群名称,字符长度50
33525
33573
  :rtype: str
33526
33574
  """
33527
33575
  return self._ClusterName
@@ -33543,7 +33591,7 @@ class ModifyClusterAttributeRequest(AbstractModel):
33543
33591
 
33544
33592
  @property
33545
33593
  def ClusterLevel(self):
33546
- r"""集群等级
33594
+ r"""集群等级,等级类型:L20、L50、L100、L200、L500、L1000、L3000、L5000
33547
33595
  :rtype: str
33548
33596
  """
33549
33597
  return self._ClusterLevel
@@ -34028,7 +34076,7 @@ class ModifyClusterNodePoolRequest(AbstractModel):
34028
34076
  :type ClusterId: str
34029
34077
  :param _NodePoolId: 节点池ID
34030
34078
  :type NodePoolId: str
34031
- :param _Name: 名称
34079
+ :param _Name: 名称,最长63个字符,只能包含小写字母、数字及分隔符“_”,且必须以小写字母开头,数字或小写字母结尾
34032
34080
  :type Name: str
34033
34081
  :param _MaxNodesNum: 最大节点数
34034
34082
  :type MaxNodesNum: int
@@ -34110,7 +34158,7 @@ class ModifyClusterNodePoolRequest(AbstractModel):
34110
34158
 
34111
34159
  @property
34112
34160
  def Name(self):
34113
- r"""名称
34161
+ r"""名称,最长63个字符,只能包含小写字母、数字及分隔符“_”,且必须以小写字母开头,数字或小写字母结尾
34114
34162
  :rtype: str
34115
34163
  """
34116
34164
  return self._Name
@@ -34399,11 +34447,11 @@ class ModifyClusterRuntimeConfigRequest(AbstractModel):
34399
34447
  r"""
34400
34448
  :param _ClusterId: 集群ID,必填
34401
34449
  :type ClusterId: str
34402
- :param _DstK8SVersion: 当需要修改运行时版本是根据另外的K8S版本获取时,需填写。例如升级校验有冲突后修改场景
34450
+ :param _DstK8SVersion: 运行时版本需依据指定的Kubernetes版本进行设置。典型情况为,在升级过程中因版本冲突而需要调整运行时版本时。
34403
34451
  :type DstK8SVersion: str
34404
- :param _ClusterRuntimeConfig: 需要修改集群运行时时填写
34452
+ :param _ClusterRuntimeConfig: 需要修改集群运行时填写
34405
34453
  :type ClusterRuntimeConfig: :class:`tencentcloud.tke.v20180525.models.RuntimeConfig`
34406
- :param _NodePoolRuntimeConfig: 需要修改节点池运行时时,填需要修改的部分
34454
+ :param _NodePoolRuntimeConfig: 需要修改节点池运行时,填需要修改的部分
34407
34455
  :type NodePoolRuntimeConfig: list of NodePoolRuntime
34408
34456
  """
34409
34457
  self._ClusterId = None
@@ -34424,7 +34472,7 @@ class ModifyClusterRuntimeConfigRequest(AbstractModel):
34424
34472
 
34425
34473
  @property
34426
34474
  def DstK8SVersion(self):
34427
- r"""当需要修改运行时版本是根据另外的K8S版本获取时,需填写。例如升级校验有冲突后修改场景
34475
+ r"""运行时版本需依据指定的Kubernetes版本进行设置。典型情况为,在升级过程中因版本冲突而需要调整运行时版本时。
34428
34476
  :rtype: str
34429
34477
  """
34430
34478
  return self._DstK8SVersion
@@ -34435,7 +34483,7 @@ class ModifyClusterRuntimeConfigRequest(AbstractModel):
34435
34483
 
34436
34484
  @property
34437
34485
  def ClusterRuntimeConfig(self):
34438
- r"""需要修改集群运行时时填写
34486
+ r"""需要修改集群运行时填写
34439
34487
  :rtype: :class:`tencentcloud.tke.v20180525.models.RuntimeConfig`
34440
34488
  """
34441
34489
  return self._ClusterRuntimeConfig
@@ -34446,7 +34494,7 @@ class ModifyClusterRuntimeConfigRequest(AbstractModel):
34446
34494
 
34447
34495
  @property
34448
34496
  def NodePoolRuntimeConfig(self):
34449
- r"""需要修改节点池运行时时,填需要修改的部分
34497
+ r"""需要修改节点池运行时,填需要修改的部分
34450
34498
  :rtype: list of NodePoolRuntime
34451
34499
  """
34452
34500
  return self._NodePoolRuntimeConfig
@@ -34515,7 +34563,8 @@ class ModifyClusterTagsRequest(AbstractModel):
34515
34563
  r"""
34516
34564
  :param _ClusterId: 集群ID
34517
34565
  :type ClusterId: str
34518
- :param _Tags: 集群标签
34566
+ :param _Tags: 集群标签:
34567
+ [{"TagKey":"env","TagValue":"dev"}]}]
34519
34568
  :type Tags: list of Tag
34520
34569
  :param _SyncSubresource: 是否同步集群内子资源标签
34521
34570
  :type SyncSubresource: bool
@@ -34537,7 +34586,8 @@ class ModifyClusterTagsRequest(AbstractModel):
34537
34586
 
34538
34587
  @property
34539
34588
  def Tags(self):
34540
- r"""集群标签
34589
+ r"""集群标签:
34590
+ [{"TagKey":"env","TagValue":"dev"}]}]
34541
34591
  :rtype: list of Tag
34542
34592
  """
34543
34593
  return self._Tags
@@ -35005,7 +35055,7 @@ class ModifyNodePoolInstanceTypesRequest(AbstractModel):
35005
35055
  :type ClusterId: str
35006
35056
  :param _NodePoolId: 节点池id
35007
35057
  :type NodePoolId: str
35008
- :param _InstanceTypes: 机型列表,主实例机型不支持修改
35058
+ :param _InstanceTypes: 机型列表,参考 https://cloud.tencent.com/document/product/213/11518,主实例机型不支持修改
35009
35059
  :type InstanceTypes: list of str
35010
35060
  """
35011
35061
  self._ClusterId = None
@@ -35036,7 +35086,7 @@ class ModifyNodePoolInstanceTypesRequest(AbstractModel):
35036
35086
 
35037
35087
  @property
35038
35088
  def InstanceTypes(self):
35039
- r"""机型列表,主实例机型不支持修改
35089
+ r"""机型列表,参考 https://cloud.tencent.com/document/product/213/11518,主实例机型不支持修改
35040
35090
  :rtype: list of str
35041
35091
  """
35042
35092
  return self._InstanceTypes
@@ -36735,11 +36785,11 @@ class NodePoolRuntime(AbstractModel):
36735
36785
  r"""
36736
36786
  :param _NodePoolId: 节点池ID
36737
36787
  :type NodePoolId: str
36738
- :param _RuntimeType: 运行时类型
36788
+ :param _RuntimeType: 运行时类型,参考:https://cloud.tencent.com/document/api/457/105241
36739
36789
  :type RuntimeType: str
36740
- :param _RuntimeVersion: 运行时版本
36790
+ :param _RuntimeVersion: 运行时版本,参考:https://cloud.tencent.com/document/api/457/105241
36741
36791
  :type RuntimeVersion: str
36742
- :param _NodePoolName: 节点池名称
36792
+ :param _NodePoolName: 节点池名称,限制 255 字符
36743
36793
  :type NodePoolName: str
36744
36794
  """
36745
36795
  self._NodePoolId = None
@@ -36760,7 +36810,7 @@ class NodePoolRuntime(AbstractModel):
36760
36810
 
36761
36811
  @property
36762
36812
  def RuntimeType(self):
36763
- r"""运行时类型
36813
+ r"""运行时类型,参考:https://cloud.tencent.com/document/api/457/105241
36764
36814
  :rtype: str
36765
36815
  """
36766
36816
  return self._RuntimeType
@@ -36771,7 +36821,7 @@ class NodePoolRuntime(AbstractModel):
36771
36821
 
36772
36822
  @property
36773
36823
  def RuntimeVersion(self):
36774
- r"""运行时版本
36824
+ r"""运行时版本,参考:https://cloud.tencent.com/document/api/457/105241
36775
36825
  :rtype: str
36776
36826
  """
36777
36827
  return self._RuntimeVersion
@@ -36782,7 +36832,7 @@ class NodePoolRuntime(AbstractModel):
36782
36832
 
36783
36833
  @property
36784
36834
  def NodePoolName(self):
36785
- r"""节点池名称
36835
+ r"""节点池名称,限制 255 字符
36786
36836
  :rtype: str
36787
36837
  """
36788
36838
  return self._NodePoolName
@@ -43794,9 +43844,9 @@ class ResourceUsage(AbstractModel):
43794
43844
 
43795
43845
  def __init__(self):
43796
43846
  r"""
43797
- :param _Name: 资源类型
43847
+ :param _Name: 资源类型,参考k8s 官方资源
43798
43848
  :type Name: str
43799
- :param _Usage: 资源使用量
43849
+ :param _Usage: 资源使用量,单位:个数
43800
43850
  :type Usage: int
43801
43851
  :param _Details: 资源使用详情
43802
43852
  :type Details: list of ResourceUsageDetail
@@ -43807,7 +43857,7 @@ class ResourceUsage(AbstractModel):
43807
43857
 
43808
43858
  @property
43809
43859
  def Name(self):
43810
- r"""资源类型
43860
+ r"""资源类型,参考k8s 官方资源
43811
43861
  :rtype: str
43812
43862
  """
43813
43863
  return self._Name
@@ -43818,7 +43868,7 @@ class ResourceUsage(AbstractModel):
43818
43868
 
43819
43869
  @property
43820
43870
  def Usage(self):
43821
- r"""资源使用量
43871
+ r"""资源使用量,单位:个数
43822
43872
  :rtype: int
43823
43873
  """
43824
43874
  return self._Usage
@@ -44594,9 +44644,9 @@ class RuntimeConfig(AbstractModel):
44594
44644
 
44595
44645
  def __init__(self):
44596
44646
  r"""
44597
- :param _RuntimeType: 运行时类型
44647
+ :param _RuntimeType: 运行时类型,支持的类型有 docker、containerd
44598
44648
  :type RuntimeType: str
44599
- :param _RuntimeVersion: 运行时版本
44649
+ :param _RuntimeVersion: 运行时版本,参考:https://cloud.tencent.com/document/api/457/105241
44600
44650
  :type RuntimeVersion: str
44601
44651
  """
44602
44652
  self._RuntimeType = None
@@ -44604,7 +44654,7 @@ class RuntimeConfig(AbstractModel):
44604
44654
 
44605
44655
  @property
44606
44656
  def RuntimeType(self):
44607
- r"""运行时类型
44657
+ r"""运行时类型,支持的类型有 docker、containerd
44608
44658
  :rtype: str
44609
44659
  """
44610
44660
  return self._RuntimeType
@@ -44615,7 +44665,7 @@ class RuntimeConfig(AbstractModel):
44615
44665
 
44616
44666
  @property
44617
44667
  def RuntimeVersion(self):
44618
- r"""运行时版本
44668
+ r"""运行时版本,参考:https://cloud.tencent.com/document/api/457/105241
44619
44669
  :rtype: str
44620
44670
  """
44621
44671
  return self._RuntimeVersion
@@ -46889,9 +46939,9 @@ class UpdateClusterVersionRequest(AbstractModel):
46889
46939
  :type DstVersion: str
46890
46940
  :param _ExtraArgs: 集群自定义参数
46891
46941
  :type ExtraArgs: :class:`tencentcloud.tke.v20180525.models.ClusterExtraArgs`
46892
- :param _MaxNotReadyPercent: 可容忍的最大不可用pod数目
46942
+ :param _MaxNotReadyPercent: 可容忍的最大不可用pod数目。默认0
46893
46943
  :type MaxNotReadyPercent: float
46894
- :param _SkipPreCheck: 是否跳过预检查阶段
46944
+ :param _SkipPreCheck: 是否跳过预检查阶段,默认false
46895
46945
  :type SkipPreCheck: bool
46896
46946
  """
46897
46947
  self._ClusterId = None
@@ -46935,7 +46985,7 @@ class UpdateClusterVersionRequest(AbstractModel):
46935
46985
 
46936
46986
  @property
46937
46987
  def MaxNotReadyPercent(self):
46938
- r"""可容忍的最大不可用pod数目
46988
+ r"""可容忍的最大不可用pod数目。默认0
46939
46989
  :rtype: float
46940
46990
  """
46941
46991
  return self._MaxNotReadyPercent
@@ -46946,7 +46996,7 @@ class UpdateClusterVersionRequest(AbstractModel):
46946
46996
 
46947
46997
  @property
46948
46998
  def SkipPreCheck(self):
46949
- r"""是否跳过预检查阶段
46999
+ r"""是否跳过预检查阶段,默认false
46950
47000
  :rtype: bool
46951
47001
  """
46952
47002
  return self._SkipPreCheck
@@ -4305,7 +4305,7 @@ class TkeClient(AbstractClient):
4305
4305
 
4306
4306
 
4307
4307
  def ModifyClusterAttribute(self, request):
4308
- r"""修改集群属性
4308
+ r"""修改集群属性,至少选择一个参数更新
4309
4309
 
4310
4310
  :param request: Request instance for ModifyClusterAttribute.
4311
4311
  :type request: :class:`tencentcloud.tke.v20180525.models.ModifyClusterAttributeRequest`
@@ -4420,7 +4420,7 @@ class TkeClient(AbstractClient):
4420
4420
 
4421
4421
 
4422
4422
  def ModifyClusterRuntimeConfig(self, request):
4423
- r"""修改集群及节点池纬度运行时配置
4423
+ r"""修改集群及节点池维度运行时配置
4424
4424
 
4425
4425
  :param request: Request instance for ModifyClusterRuntimeConfig.
4426
4426
  :type request: :class:`tencentcloud.tke.v20180525.models.ModifyClusterRuntimeConfigRequest`
@@ -20,6 +20,9 @@ FAILEDOPERATION = 'FailedOperation'
20
20
  # 内部错误。
21
21
  INTERNALERROR = 'InternalError'
22
22
 
23
+ # 没有权限。
24
+ INTERNALERROR_CAMNOAUTH = 'InternalError.CamNoAuth'
25
+
23
26
  # db错误。
24
27
  INTERNALERROR_DB = 'InternalError.Db'
25
28
 
@@ -35,9 +38,15 @@ INTERNALERROR_INITMASTERFAILED = 'InternalError.InitMasterFailed'
35
38
  # 参数错误。
36
39
  INTERNALERROR_PARAM = 'InternalError.Param'
37
40
 
38
- # 公共集群不支持扩展节点。
41
+ # 集群不支持当前操作。
39
42
  INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = 'InternalError.PublicClusterOpNotSupport'
40
43
 
44
+ # 超过配额限制。
45
+ INTERNALERROR_QUOTAMAXCLSLIMIT = 'InternalError.QuotaMaxClsLimit'
46
+
47
+ # 超过配额限制。
48
+ INTERNALERROR_QUOTAMAXNODLIMIT = 'InternalError.QuotaMaxNodLimit'
49
+
41
50
  # 内部错误。
42
51
  INTERNALERROR_UNEXCEPTEDINTERNAL = 'InternalError.UnexceptedInternal'
43
52
 
@@ -56,6 +65,9 @@ INVALIDPARAMETER_PARAM = 'InvalidParameter.Param'
56
65
  # 参数取值错误。
57
66
  INVALIDPARAMETERVALUE = 'InvalidParameterValue'
58
67
 
68
+ # 超过配额限制。
69
+ LIMITEXCEEDED = 'LimitExceeded'
70
+
59
71
  # 操作被拒绝。
60
72
  OPERATIONDENIED = 'OperationDenied'
61
73
 
@@ -71,5 +83,8 @@ RESOURCENOTFOUND_CLUSTERNOTFOUND = 'ResourceNotFound.ClusterNotFound'
71
83
  # 集群状态不支持该操作。
72
84
  RESOURCEUNAVAILABLE_CLUSTERSTATE = 'ResourceUnavailable.ClusterState'
73
85
 
86
+ # 无该接口CAM权限。
87
+ UNAUTHORIZEDOPERATION_CAMNOAUTH = 'UnauthorizedOperation.CamNoAuth'
88
+
74
89
  # 操作不支持。
75
90
  UNSUPPORTEDOPERATION = 'UnsupportedOperation'
@@ -222,6 +222,192 @@ class AutoscalingAdded(AbstractModel):
222
222
 
223
223
 
224
224
 
225
+ class Cluster(AbstractModel):
226
+ r"""集群信息结构体
227
+
228
+ """
229
+
230
+ def __init__(self):
231
+ r"""
232
+ :param _ClusterId: 集群ID
233
+ :type ClusterId: str
234
+ :param _ClusterName: 集群名称
235
+ :type ClusterName: str
236
+ :param _ClusterDescription: 集群描述
237
+ :type ClusterDescription: str
238
+ :param _ClusterVersion: 集群版本(默认值为1.10.5)
239
+ :type ClusterVersion: str
240
+ :param _ClusterType: 集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。
241
+ :type ClusterType: str
242
+ :param _TagSpecification: 标签描述列表。
243
+ 注意:此字段可能返回 null,表示取不到有效值。
244
+ :type TagSpecification: list of TagSpecification
245
+ :param _ClusterStatus: 集群状态 (Trading 集群开通中,Creating 创建中,Running 运行中,Deleting 删除中,Idling 闲置中,Recovering 唤醒中,Upgrading 升级中,NodeUpgrading 节点升级中,RuntimeUpgrading 节点运行时升级中,MasterScaling Master扩缩容中,ClusterLevelUpgrading 调整规格中,ResourceIsolate 欠费隔离中,ResourceIsolated 欠费已隔离,ResourceReverse 冲正恢复中,Abnormal 异常)
246
+ :type ClusterStatus: str
247
+ :param _CreatedTime: 创建时间
248
+ 注意:此字段可能返回 null,表示取不到有效值。
249
+ :type CreatedTime: str
250
+ :param _ClusterLevel: 集群等级,针对托管集群生效
251
+ 注意:此字段可能返回 null,表示取不到有效值。
252
+ 注意:此字段可能返回 null,表示取不到有效值。
253
+ :type ClusterLevel: str
254
+ :param _VpcId: 集群所在vpc的id
255
+ 注意:此字段可能返回 null,表示取不到有效值。
256
+ :type VpcId: str
257
+ """
258
+ self._ClusterId = None
259
+ self._ClusterName = None
260
+ self._ClusterDescription = None
261
+ self._ClusterVersion = None
262
+ self._ClusterType = None
263
+ self._TagSpecification = None
264
+ self._ClusterStatus = None
265
+ self._CreatedTime = None
266
+ self._ClusterLevel = None
267
+ self._VpcId = None
268
+
269
+ @property
270
+ def ClusterId(self):
271
+ r"""集群ID
272
+ :rtype: str
273
+ """
274
+ return self._ClusterId
275
+
276
+ @ClusterId.setter
277
+ def ClusterId(self, ClusterId):
278
+ self._ClusterId = ClusterId
279
+
280
+ @property
281
+ def ClusterName(self):
282
+ r"""集群名称
283
+ :rtype: str
284
+ """
285
+ return self._ClusterName
286
+
287
+ @ClusterName.setter
288
+ def ClusterName(self, ClusterName):
289
+ self._ClusterName = ClusterName
290
+
291
+ @property
292
+ def ClusterDescription(self):
293
+ r"""集群描述
294
+ :rtype: str
295
+ """
296
+ return self._ClusterDescription
297
+
298
+ @ClusterDescription.setter
299
+ def ClusterDescription(self, ClusterDescription):
300
+ self._ClusterDescription = ClusterDescription
301
+
302
+ @property
303
+ def ClusterVersion(self):
304
+ r"""集群版本(默认值为1.10.5)
305
+ :rtype: str
306
+ """
307
+ return self._ClusterVersion
308
+
309
+ @ClusterVersion.setter
310
+ def ClusterVersion(self, ClusterVersion):
311
+ self._ClusterVersion = ClusterVersion
312
+
313
+ @property
314
+ def ClusterType(self):
315
+ r"""集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。
316
+ :rtype: str
317
+ """
318
+ return self._ClusterType
319
+
320
+ @ClusterType.setter
321
+ def ClusterType(self, ClusterType):
322
+ self._ClusterType = ClusterType
323
+
324
+ @property
325
+ def TagSpecification(self):
326
+ r"""标签描述列表。
327
+ 注意:此字段可能返回 null,表示取不到有效值。
328
+ :rtype: list of TagSpecification
329
+ """
330
+ return self._TagSpecification
331
+
332
+ @TagSpecification.setter
333
+ def TagSpecification(self, TagSpecification):
334
+ self._TagSpecification = TagSpecification
335
+
336
+ @property
337
+ def ClusterStatus(self):
338
+ r"""集群状态 (Trading 集群开通中,Creating 创建中,Running 运行中,Deleting 删除中,Idling 闲置中,Recovering 唤醒中,Upgrading 升级中,NodeUpgrading 节点升级中,RuntimeUpgrading 节点运行时升级中,MasterScaling Master扩缩容中,ClusterLevelUpgrading 调整规格中,ResourceIsolate 欠费隔离中,ResourceIsolated 欠费已隔离,ResourceReverse 冲正恢复中,Abnormal 异常)
339
+ :rtype: str
340
+ """
341
+ return self._ClusterStatus
342
+
343
+ @ClusterStatus.setter
344
+ def ClusterStatus(self, ClusterStatus):
345
+ self._ClusterStatus = ClusterStatus
346
+
347
+ @property
348
+ def CreatedTime(self):
349
+ r"""创建时间
350
+ 注意:此字段可能返回 null,表示取不到有效值。
351
+ :rtype: str
352
+ """
353
+ return self._CreatedTime
354
+
355
+ @CreatedTime.setter
356
+ def CreatedTime(self, CreatedTime):
357
+ self._CreatedTime = CreatedTime
358
+
359
+ @property
360
+ def ClusterLevel(self):
361
+ r"""集群等级,针对托管集群生效
362
+ 注意:此字段可能返回 null,表示取不到有效值。
363
+ 注意:此字段可能返回 null,表示取不到有效值。
364
+ :rtype: str
365
+ """
366
+ return self._ClusterLevel
367
+
368
+ @ClusterLevel.setter
369
+ def ClusterLevel(self, ClusterLevel):
370
+ self._ClusterLevel = ClusterLevel
371
+
372
+ @property
373
+ def VpcId(self):
374
+ r"""集群所在vpc的id
375
+ 注意:此字段可能返回 null,表示取不到有效值。
376
+ :rtype: str
377
+ """
378
+ return self._VpcId
379
+
380
+ @VpcId.setter
381
+ def VpcId(self, VpcId):
382
+ self._VpcId = VpcId
383
+
384
+
385
+ def _deserialize(self, params):
386
+ self._ClusterId = params.get("ClusterId")
387
+ self._ClusterName = params.get("ClusterName")
388
+ self._ClusterDescription = params.get("ClusterDescription")
389
+ self._ClusterVersion = params.get("ClusterVersion")
390
+ self._ClusterType = params.get("ClusterType")
391
+ if params.get("TagSpecification") is not None:
392
+ self._TagSpecification = []
393
+ for item in params.get("TagSpecification"):
394
+ obj = TagSpecification()
395
+ obj._deserialize(item)
396
+ self._TagSpecification.append(obj)
397
+ self._ClusterStatus = params.get("ClusterStatus")
398
+ self._CreatedTime = params.get("CreatedTime")
399
+ self._ClusterLevel = params.get("ClusterLevel")
400
+ self._VpcId = params.get("VpcId")
401
+ memeber_set = set(params.keys())
402
+ for name, value in vars(self).items():
403
+ property_name = name[1:]
404
+ if property_name in memeber_set:
405
+ memeber_set.remove(property_name)
406
+ if len(memeber_set) > 0:
407
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
408
+
409
+
410
+
225
411
  class CreateHealthCheckPolicyRequest(AbstractModel):
226
412
  r"""CreateHealthCheckPolicy请求参数结构体
227
413
 
@@ -1580,6 +1766,263 @@ class DescribeClusterInstancesResponse(AbstractModel):
1580
1766
  self._RequestId = params.get("RequestId")
1581
1767
 
1582
1768
 
1769
+ class DescribeClustersRequest(AbstractModel):
1770
+ r"""DescribeClusters请求参数结构体
1771
+
1772
+ """
1773
+
1774
+ def __init__(self):
1775
+ r"""
1776
+ :param _ClusterIds: 集群ID列表(为空时,
1777
+ 表示获取账号下所有集群)
1778
+ :type ClusterIds: list of str
1779
+ :param _Offset: 偏移量,默认0
1780
+ :type Offset: int
1781
+ :param _Limit: 最大输出条数,默认20,最大为100
1782
+ :type Limit: int
1783
+ :param _Filters: · ClusterName
1784
+ 按照【集群名】进行过滤。
1785
+ 类型:String
1786
+ 必选:否
1787
+
1788
+ · ClusterType
1789
+ 按照【集群类型】进行过滤。
1790
+ 类型:String
1791
+ 必选:否
1792
+
1793
+ · ClusterStatus
1794
+ 按照【集群状态】进行过滤。
1795
+ 类型:String
1796
+ 必选:否
1797
+
1798
+ · Tags
1799
+ 按照【标签键值对】进行过滤。
1800
+ 类型:String
1801
+ 必选:否
1802
+
1803
+ · vpc-id
1804
+ 按照【VPC】进行过滤。
1805
+ 类型:String
1806
+ 必选:否
1807
+
1808
+ · tag-key
1809
+ 按照【标签键】进行过滤。
1810
+ 类型:String
1811
+ 必选:否
1812
+
1813
+ · tag-value
1814
+ 按照【标签值】进行过滤。
1815
+ 类型:String
1816
+ 必选:否
1817
+
1818
+ · tag:tag-key
1819
+ 按照【标签键值对】进行过滤。
1820
+ 类型:String
1821
+ 必选:否
1822
+ :type Filters: list of Filter
1823
+ :param _ClusterType: 集群类型,例如:MANAGED_CLUSTER
1824
+ :type ClusterType: str
1825
+ """
1826
+ self._ClusterIds = None
1827
+ self._Offset = None
1828
+ self._Limit = None
1829
+ self._Filters = None
1830
+ self._ClusterType = None
1831
+
1832
+ @property
1833
+ def ClusterIds(self):
1834
+ r"""集群ID列表(为空时,
1835
+ 表示获取账号下所有集群)
1836
+ :rtype: list of str
1837
+ """
1838
+ return self._ClusterIds
1839
+
1840
+ @ClusterIds.setter
1841
+ def ClusterIds(self, ClusterIds):
1842
+ self._ClusterIds = ClusterIds
1843
+
1844
+ @property
1845
+ def Offset(self):
1846
+ r"""偏移量,默认0
1847
+ :rtype: int
1848
+ """
1849
+ return self._Offset
1850
+
1851
+ @Offset.setter
1852
+ def Offset(self, Offset):
1853
+ self._Offset = Offset
1854
+
1855
+ @property
1856
+ def Limit(self):
1857
+ r"""最大输出条数,默认20,最大为100
1858
+ :rtype: int
1859
+ """
1860
+ return self._Limit
1861
+
1862
+ @Limit.setter
1863
+ def Limit(self, Limit):
1864
+ self._Limit = Limit
1865
+
1866
+ @property
1867
+ def Filters(self):
1868
+ r"""· ClusterName
1869
+ 按照【集群名】进行过滤。
1870
+ 类型:String
1871
+ 必选:否
1872
+
1873
+ · ClusterType
1874
+ 按照【集群类型】进行过滤。
1875
+ 类型:String
1876
+ 必选:否
1877
+
1878
+ · ClusterStatus
1879
+ 按照【集群状态】进行过滤。
1880
+ 类型:String
1881
+ 必选:否
1882
+
1883
+ · Tags
1884
+ 按照【标签键值对】进行过滤。
1885
+ 类型:String
1886
+ 必选:否
1887
+
1888
+ · vpc-id
1889
+ 按照【VPC】进行过滤。
1890
+ 类型:String
1891
+ 必选:否
1892
+
1893
+ · tag-key
1894
+ 按照【标签键】进行过滤。
1895
+ 类型:String
1896
+ 必选:否
1897
+
1898
+ · tag-value
1899
+ 按照【标签值】进行过滤。
1900
+ 类型:String
1901
+ 必选:否
1902
+
1903
+ · tag:tag-key
1904
+ 按照【标签键值对】进行过滤。
1905
+ 类型:String
1906
+ 必选:否
1907
+ :rtype: list of Filter
1908
+ """
1909
+ return self._Filters
1910
+
1911
+ @Filters.setter
1912
+ def Filters(self, Filters):
1913
+ self._Filters = Filters
1914
+
1915
+ @property
1916
+ def ClusterType(self):
1917
+ r"""集群类型,例如:MANAGED_CLUSTER
1918
+ :rtype: str
1919
+ """
1920
+ return self._ClusterType
1921
+
1922
+ @ClusterType.setter
1923
+ def ClusterType(self, ClusterType):
1924
+ self._ClusterType = ClusterType
1925
+
1926
+
1927
+ def _deserialize(self, params):
1928
+ self._ClusterIds = params.get("ClusterIds")
1929
+ self._Offset = params.get("Offset")
1930
+ self._Limit = params.get("Limit")
1931
+ if params.get("Filters") is not None:
1932
+ self._Filters = []
1933
+ for item in params.get("Filters"):
1934
+ obj = Filter()
1935
+ obj._deserialize(item)
1936
+ self._Filters.append(obj)
1937
+ self._ClusterType = params.get("ClusterType")
1938
+ memeber_set = set(params.keys())
1939
+ for name, value in vars(self).items():
1940
+ property_name = name[1:]
1941
+ if property_name in memeber_set:
1942
+ memeber_set.remove(property_name)
1943
+ if len(memeber_set) > 0:
1944
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1945
+
1946
+
1947
+
1948
+ class DescribeClustersResponse(AbstractModel):
1949
+ r"""DescribeClusters返回参数结构体
1950
+
1951
+ """
1952
+
1953
+ def __init__(self):
1954
+ r"""
1955
+ :param _TotalCount: 集群总个数
1956
+ :type TotalCount: int
1957
+ :param _Clusters: 集群信息列表
1958
+ :type Clusters: list of Cluster
1959
+ :param _Errors: 错误信息集合
1960
+ :type Errors: list of str
1961
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1962
+ :type RequestId: str
1963
+ """
1964
+ self._TotalCount = None
1965
+ self._Clusters = None
1966
+ self._Errors = None
1967
+ self._RequestId = None
1968
+
1969
+ @property
1970
+ def TotalCount(self):
1971
+ r"""集群总个数
1972
+ :rtype: int
1973
+ """
1974
+ return self._TotalCount
1975
+
1976
+ @TotalCount.setter
1977
+ def TotalCount(self, TotalCount):
1978
+ self._TotalCount = TotalCount
1979
+
1980
+ @property
1981
+ def Clusters(self):
1982
+ r"""集群信息列表
1983
+ :rtype: list of Cluster
1984
+ """
1985
+ return self._Clusters
1986
+
1987
+ @Clusters.setter
1988
+ def Clusters(self, Clusters):
1989
+ self._Clusters = Clusters
1990
+
1991
+ @property
1992
+ def Errors(self):
1993
+ r"""错误信息集合
1994
+ :rtype: list of str
1995
+ """
1996
+ return self._Errors
1997
+
1998
+ @Errors.setter
1999
+ def Errors(self, Errors):
2000
+ self._Errors = Errors
2001
+
2002
+ @property
2003
+ def RequestId(self):
2004
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2005
+ :rtype: str
2006
+ """
2007
+ return self._RequestId
2008
+
2009
+ @RequestId.setter
2010
+ def RequestId(self, RequestId):
2011
+ self._RequestId = RequestId
2012
+
2013
+
2014
+ def _deserialize(self, params):
2015
+ self._TotalCount = params.get("TotalCount")
2016
+ if params.get("Clusters") is not None:
2017
+ self._Clusters = []
2018
+ for item in params.get("Clusters"):
2019
+ obj = Cluster()
2020
+ obj._deserialize(item)
2021
+ self._Clusters.append(obj)
2022
+ self._Errors = params.get("Errors")
2023
+ self._RequestId = params.get("RequestId")
2024
+
2025
+
1583
2026
  class DescribeHealthCheckPoliciesRequest(AbstractModel):
1584
2027
  r"""DescribeHealthCheckPolicies请求参数结构体
1585
2028
 
@@ -164,6 +164,29 @@ class TkeClient(AbstractClient):
164
164
  raise TencentCloudSDKException(type(e).__name__, str(e))
165
165
 
166
166
 
167
+ def DescribeClusters(self, request):
168
+ r"""查询集群列表
169
+
170
+ :param request: Request instance for DescribeClusters.
171
+ :type request: :class:`tencentcloud.tke.v20220501.models.DescribeClustersRequest`
172
+ :rtype: :class:`tencentcloud.tke.v20220501.models.DescribeClustersResponse`
173
+
174
+ """
175
+ try:
176
+ params = request._serialize()
177
+ headers = request.headers
178
+ body = self.call("DescribeClusters", params, headers=headers)
179
+ response = json.loads(body)
180
+ model = models.DescribeClustersResponse()
181
+ model._deserialize(response["Response"])
182
+ return model
183
+ except Exception as e:
184
+ if isinstance(e, TencentCloudSDKException):
185
+ raise
186
+ else:
187
+ raise TencentCloudSDKException(type(e).__name__, str(e))
188
+
189
+
167
190
  def DescribeHealthCheckPolicies(self, request):
168
191
  r"""查询健康检测策略
169
192
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tke
3
- Version: 3.0.1481
3
+ Version: 3.0.1482
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.0.1481
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1482
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.0.1482
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1481