tencentcloud-sdk-python-tke 3.1.85__tar.gz → 3.1.103__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.85 → tencentcloud_sdk_python_tke-3.1.103}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud/tke/v20180525/models.py +138 -18
  5. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud/tke/v20180525/tke_client.py +1 -1
  6. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud/tke/v20180525/tke_client_async.py +1 -1
  7. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud_sdk_python_tke.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_tke-3.1.103/tencentcloud_sdk_python_tke.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_tke-3.1.85/tencentcloud_sdk_python_tke.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/README.rst +0 -0
  11. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud/tke/__init__.py +0 -0
  13. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud/tke/v20180525/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud/tke/v20180525/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud/tke/v20220501/__init__.py +0 -0
  16. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud/tke/v20220501/errorcodes.py +0 -0
  17. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud/tke/v20220501/models.py +0 -0
  18. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud/tke/v20220501/tke_client.py +0 -0
  19. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud/tke/v20220501/tke_client_async.py +0 -0
  20. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud_sdk_python_tke.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/tencentcloud_sdk_python_tke.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_tke-3.1.85 → tencentcloud_sdk_python_tke-3.1.103}/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.85
3
+ Version: 3.1.103
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.85
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.103
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.85,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.103,<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.85'
17
+ __version__ = '3.1.103'
@@ -2249,6 +2249,9 @@ class Cluster(AbstractModel):
2249
2249
  :type CdcId: str
2250
2250
  :param _IsHighAvailability: <p>集群是否启用高可用模式。用于指导跨可用区资源打散等高可用策略的执行</p>
2251
2251
  :type IsHighAvailability: bool
2252
+ :param _ClusterCategory: <p>集群分类:tke=标准TKE集群,agent=Agent集群</p><p>默认值:tke</p>
2253
+ 注意:此字段可能返回 null,表示取不到有效值。
2254
+ :type ClusterCategory: str
2252
2255
  :param _SecurityModeConfig: <p>开启后会下发Gatekeeper和网络策略</p>
2253
2256
  :type SecurityModeConfig: :class:`tencentcloud.tke.v20180525.models.SecurityModeConfig`
2254
2257
  """
@@ -2278,6 +2281,7 @@ class Cluster(AbstractModel):
2278
2281
  self._ClusterEtcdNodeNum = None
2279
2282
  self._CdcId = None
2280
2283
  self._IsHighAvailability = None
2284
+ self._ClusterCategory = None
2281
2285
  self._SecurityModeConfig = None
2282
2286
 
2283
2287
  @property
@@ -2567,6 +2571,18 @@ class Cluster(AbstractModel):
2567
2571
  def IsHighAvailability(self, IsHighAvailability):
2568
2572
  self._IsHighAvailability = IsHighAvailability
2569
2573
 
2574
+ @property
2575
+ def ClusterCategory(self):
2576
+ r"""<p>集群分类:tke=标准TKE集群,agent=Agent集群</p><p>默认值:tke</p>
2577
+ 注意:此字段可能返回 null,表示取不到有效值。
2578
+ :rtype: str
2579
+ """
2580
+ return self._ClusterCategory
2581
+
2582
+ @ClusterCategory.setter
2583
+ def ClusterCategory(self, ClusterCategory):
2584
+ self._ClusterCategory = ClusterCategory
2585
+
2570
2586
  @property
2571
2587
  def SecurityModeConfig(self):
2572
2588
  r"""<p>开启后会下发Gatekeeper和网络策略</p>
@@ -2613,6 +2629,7 @@ class Cluster(AbstractModel):
2613
2629
  self._ClusterEtcdNodeNum = params.get("ClusterEtcdNodeNum")
2614
2630
  self._CdcId = params.get("CdcId")
2615
2631
  self._IsHighAvailability = params.get("IsHighAvailability")
2632
+ self._ClusterCategory = params.get("ClusterCategory")
2616
2633
  if params.get("SecurityModeConfig") is not None:
2617
2634
  self._SecurityModeConfig = SecurityModeConfig()
2618
2635
  self._SecurityModeConfig._deserialize(params.get("SecurityModeConfig"))
@@ -52410,6 +52427,98 @@ class Step(AbstractModel):
52410
52427
 
52411
52428
 
52412
52429
 
52430
+ class SubnetAllocation(AbstractModel):
52431
+ r"""子网资源分配
52432
+
52433
+ """
52434
+
52435
+ def __init__(self):
52436
+ r"""
52437
+ :param _SubnetId: <p>子网 ID</p>
52438
+ :type SubnetId: str
52439
+ :param _Ratio: <p>分配比例(百分比),所有 Ratio 之和必须等于 100</p>
52440
+ :type Ratio: int
52441
+ """
52442
+ self._SubnetId = None
52443
+ self._Ratio = None
52444
+
52445
+ @property
52446
+ def SubnetId(self):
52447
+ r"""<p>子网 ID</p>
52448
+ :rtype: str
52449
+ """
52450
+ return self._SubnetId
52451
+
52452
+ @SubnetId.setter
52453
+ def SubnetId(self, SubnetId):
52454
+ self._SubnetId = SubnetId
52455
+
52456
+ @property
52457
+ def Ratio(self):
52458
+ r"""<p>分配比例(百分比),所有 Ratio 之和必须等于 100</p>
52459
+ :rtype: int
52460
+ """
52461
+ return self._Ratio
52462
+
52463
+ @Ratio.setter
52464
+ def Ratio(self, Ratio):
52465
+ self._Ratio = Ratio
52466
+
52467
+
52468
+ def _deserialize(self, params):
52469
+ self._SubnetId = params.get("SubnetId")
52470
+ self._Ratio = params.get("Ratio")
52471
+ memeber_set = set(params.keys())
52472
+ for name, value in vars(self).items():
52473
+ property_name = name[1:]
52474
+ if property_name in memeber_set:
52475
+ memeber_set.remove(property_name)
52476
+ if len(memeber_set) > 0:
52477
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
52478
+
52479
+
52480
+
52481
+ class SubnetAllocationPolicy(AbstractModel):
52482
+ r"""子网资源分配策略,精确控制各子网之间的资源分配比例。
52483
+
52484
+ """
52485
+
52486
+ def __init__(self):
52487
+ r"""
52488
+ :param _Allocations: <p>子网分配列表</p>
52489
+ :type Allocations: list of SubnetAllocation
52490
+ """
52491
+ self._Allocations = None
52492
+
52493
+ @property
52494
+ def Allocations(self):
52495
+ r"""<p>子网分配列表</p>
52496
+ :rtype: list of SubnetAllocation
52497
+ """
52498
+ return self._Allocations
52499
+
52500
+ @Allocations.setter
52501
+ def Allocations(self, Allocations):
52502
+ self._Allocations = Allocations
52503
+
52504
+
52505
+ def _deserialize(self, params):
52506
+ if params.get("Allocations") is not None:
52507
+ self._Allocations = []
52508
+ for item in params.get("Allocations"):
52509
+ obj = SubnetAllocation()
52510
+ obj._deserialize(item)
52511
+ self._Allocations.append(obj)
52512
+ memeber_set = set(params.keys())
52513
+ for name, value in vars(self).items():
52514
+ property_name = name[1:]
52515
+ if property_name in memeber_set:
52516
+ memeber_set.remove(property_name)
52517
+ if len(memeber_set) > 0:
52518
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
52519
+
52520
+
52521
+
52413
52522
  class SubnetInfos(AbstractModel):
52414
52523
  r"""子网信息
52415
52524
 
@@ -56442,24 +56551,23 @@ class VirtualNodePool(AbstractModel):
56442
56551
 
56443
56552
  def __init__(self):
56444
56553
  r"""
56445
- :param _NodePoolId: 节点池ID
56554
+ :param _NodePoolId: <p>节点池ID</p>
56446
56555
  :type NodePoolId: str
56447
- :param _SubnetIds: 子网列表
56556
+ :param _SubnetIds: <p>子网列表</p>
56448
56557
  注意:此字段可能返回 null,表示取不到有效值。
56449
56558
  :type SubnetIds: list of str
56450
- :param _Name: 节点池名称
56559
+ :param _Name: <p>节点池名称</p>
56451
56560
  :type Name: str
56452
- :param _LifeState: 节点池生命周期
56453
- - creating:创建中
56454
- - normal:正常
56455
- - updating:更新中
56561
+ :param _LifeState: <p>节点池生命周期</p><ul><li>creating:创建中</li><li>normal:正常</li><li>updating:更新中</li></ul>
56456
56562
  :type LifeState: str
56457
- :param _Labels: 虚拟节点label
56563
+ :param _Labels: <p>虚拟节点label</p>
56458
56564
  注意:此字段可能返回 null,表示取不到有效值。
56459
56565
  :type Labels: list of Label
56460
- :param _Taints: 虚拟节点taint
56566
+ :param _Taints: <p>虚拟节点taint</p>
56461
56567
  注意:此字段可能返回 null,表示取不到有效值。
56462
56568
  :type Taints: list of Taint
56569
+ :param _SubnetAllocationPolicy: <p>子网分配策略</p>
56570
+ :type SubnetAllocationPolicy: :class:`tencentcloud.tke.v20180525.models.SubnetAllocationPolicy`
56463
56571
  """
56464
56572
  self._NodePoolId = None
56465
56573
  self._SubnetIds = None
@@ -56467,10 +56575,11 @@ class VirtualNodePool(AbstractModel):
56467
56575
  self._LifeState = None
56468
56576
  self._Labels = None
56469
56577
  self._Taints = None
56578
+ self._SubnetAllocationPolicy = None
56470
56579
 
56471
56580
  @property
56472
56581
  def NodePoolId(self):
56473
- r"""节点池ID
56582
+ r"""<p>节点池ID</p>
56474
56583
  :rtype: str
56475
56584
  """
56476
56585
  return self._NodePoolId
@@ -56481,7 +56590,7 @@ class VirtualNodePool(AbstractModel):
56481
56590
 
56482
56591
  @property
56483
56592
  def SubnetIds(self):
56484
- r"""子网列表
56593
+ r"""<p>子网列表</p>
56485
56594
  注意:此字段可能返回 null,表示取不到有效值。
56486
56595
  :rtype: list of str
56487
56596
  """
@@ -56493,7 +56602,7 @@ class VirtualNodePool(AbstractModel):
56493
56602
 
56494
56603
  @property
56495
56604
  def Name(self):
56496
- r"""节点池名称
56605
+ r"""<p>节点池名称</p>
56497
56606
  :rtype: str
56498
56607
  """
56499
56608
  return self._Name
@@ -56504,10 +56613,7 @@ class VirtualNodePool(AbstractModel):
56504
56613
 
56505
56614
  @property
56506
56615
  def LifeState(self):
56507
- r"""节点池生命周期
56508
- - creating:创建中
56509
- - normal:正常
56510
- - updating:更新中
56616
+ r"""<p>节点池生命周期</p><ul><li>creating:创建中</li><li>normal:正常</li><li>updating:更新中</li></ul>
56511
56617
  :rtype: str
56512
56618
  """
56513
56619
  return self._LifeState
@@ -56518,7 +56624,7 @@ class VirtualNodePool(AbstractModel):
56518
56624
 
56519
56625
  @property
56520
56626
  def Labels(self):
56521
- r"""虚拟节点label
56627
+ r"""<p>虚拟节点label</p>
56522
56628
  注意:此字段可能返回 null,表示取不到有效值。
56523
56629
  :rtype: list of Label
56524
56630
  """
@@ -56530,7 +56636,7 @@ class VirtualNodePool(AbstractModel):
56530
56636
 
56531
56637
  @property
56532
56638
  def Taints(self):
56533
- r"""虚拟节点taint
56639
+ r"""<p>虚拟节点taint</p>
56534
56640
  注意:此字段可能返回 null,表示取不到有效值。
56535
56641
  :rtype: list of Taint
56536
56642
  """
@@ -56540,6 +56646,17 @@ class VirtualNodePool(AbstractModel):
56540
56646
  def Taints(self, Taints):
56541
56647
  self._Taints = Taints
56542
56648
 
56649
+ @property
56650
+ def SubnetAllocationPolicy(self):
56651
+ r"""<p>子网分配策略</p>
56652
+ :rtype: :class:`tencentcloud.tke.v20180525.models.SubnetAllocationPolicy`
56653
+ """
56654
+ return self._SubnetAllocationPolicy
56655
+
56656
+ @SubnetAllocationPolicy.setter
56657
+ def SubnetAllocationPolicy(self, SubnetAllocationPolicy):
56658
+ self._SubnetAllocationPolicy = SubnetAllocationPolicy
56659
+
56543
56660
 
56544
56661
  def _deserialize(self, params):
56545
56662
  self._NodePoolId = params.get("NodePoolId")
@@ -56558,6 +56675,9 @@ class VirtualNodePool(AbstractModel):
56558
56675
  obj = Taint()
56559
56676
  obj._deserialize(item)
56560
56677
  self._Taints.append(obj)
56678
+ if params.get("SubnetAllocationPolicy") is not None:
56679
+ self._SubnetAllocationPolicy = SubnetAllocationPolicy()
56680
+ self._SubnetAllocationPolicy._deserialize(params.get("SubnetAllocationPolicy"))
56561
56681
  memeber_set = set(params.keys())
56562
56682
  for name, value in vars(self).items():
56563
56683
  property_name = name[1:]
@@ -2626,7 +2626,7 @@ class TkeClient(AbstractClient):
2626
2626
 
2627
2627
 
2628
2628
  def DescribeClusterVirtualNode(self, request):
2629
- r"""查看超级节点列表
2629
+ r"""查看超级节点列表,仅支持TKE标准集群
2630
2630
 
2631
2631
  :param request: Request instance for DescribeClusterVirtualNode.
2632
2632
  :type request: :class:`tencentcloud.tke.v20180525.models.DescribeClusterVirtualNodeRequest`
@@ -2065,7 +2065,7 @@ class TkeClient(AbstractClient):
2065
2065
  opts: Dict = None,
2066
2066
  ) -> models.DescribeClusterVirtualNodeResponse:
2067
2067
  """
2068
- 查看超级节点列表
2068
+ 查看超级节点列表,仅支持TKE标准集群
2069
2069
  """
2070
2070
 
2071
2071
  kwargs = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tke
3
- Version: 3.1.85
3
+ Version: 3.1.103
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.85
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.103
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.103
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.85