tencentcloud-sdk-python-tke 3.1.102__tar.gz → 3.1.105__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.102 → tencentcloud_sdk_python_tke-3.1.105}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud/tke/v20180525/errorcodes.py +6 -0
  5. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud/tke/v20180525/models.py +332 -42
  6. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud/tke/v20220501/models.py +12 -12
  7. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud_sdk_python_tke.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_tke-3.1.105/tencentcloud_sdk_python_tke.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_tke-3.1.102/tencentcloud_sdk_python_tke.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/README.rst +0 -0
  11. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud/tke/__init__.py +0 -0
  13. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud/tke/v20180525/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud/tke/v20180525/tke_client.py +0 -0
  15. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud/tke/v20180525/tke_client_async.py +0 -0
  16. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud/tke/v20220501/__init__.py +0 -0
  17. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud/tke/v20220501/errorcodes.py +0 -0
  18. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud/tke/v20220501/tke_client.py +0 -0
  19. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud/tke/v20220501/tke_client_async.py +0 -0
  20. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud_sdk_python_tke.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/tencentcloud_sdk_python_tke.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_tke-3.1.102 → tencentcloud_sdk_python_tke-3.1.105}/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.102
3
+ Version: 3.1.105
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.102
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.105
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.102,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.105,<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.102'
17
+ __version__ = '3.1.105'
@@ -554,6 +554,12 @@ INVALIDPARAMETER_RESOURCENOTFOUND = 'InvalidParameter.ResourceNotFound'
554
554
  # 路由表非空。
555
555
  INVALIDPARAMETER_ROUTETABLENOTEMPTY = 'InvalidParameter.RouteTableNotEmpty'
556
556
 
557
+ # SubnetAllocationPolicy 与 SubnetIds/VirtualNodes 互斥,不可同时传入。
558
+ INVALIDPARAMETER_SUBNETALLOCATIONPOLICYCONFLICT = 'InvalidParameter.SubnetAllocationPolicyConflict'
559
+
560
+ # SubnetAllocationPolicy 参数校验失败,请确保 Allocations 非空、SubnetId 不重复、Ratio 为正整数且总和等于 100。
561
+ INVALIDPARAMETER_SUBNETALLOCATIONPOLICYINVALID = 'InvalidParameter.SubnetAllocationPolicyInvalid'
562
+
557
563
  # 子网不合法。
558
564
  INVALIDPARAMETER_SUBNETINVALIDERROR = 'InvalidParameter.SubnetInvalidError'
559
565
 
@@ -847,6 +847,146 @@ class Addon(AbstractModel):
847
847
 
848
848
 
849
849
 
850
+ class AgentPluginConfig(AbstractModel):
851
+ r"""AgentPlugin 安装配置,包含域名、Chart 版本和外部 PostgreSQL 连接信息
852
+
853
+ """
854
+
855
+ def __init__(self):
856
+ r"""
857
+ :param _ChartVersion: Helm Chart 版本,一般无需指定
858
+ 注意:此字段可能返回 null,表示取不到有效值。
859
+ :type ChartVersion: str
860
+ :param _Host: 外部 PostgreSQL 内网地址;配置后跳过内置 PostgreSQL
861
+ 注意:此字段可能返回 null,表示取不到有效值。
862
+ :type Host: str
863
+ :param _Password: 外部 PostgreSQL 密码,配置 Host 时必填
864
+ 注意:此字段可能返回 null,表示取不到有效值。
865
+ :type Password: str
866
+ :param _Port: 外部 PostgreSQL 端口
867
+ 注意:此字段可能返回 null,表示取不到有效值。
868
+ :type Port: int
869
+ :param _SSLMode: SSL 模式,取值:disable / require / verify-full
870
+ 注意:此字段可能返回 null,表示取不到有效值。
871
+ :type SSLMode: str
872
+ :param _ServiceDomain: Agent 实例访问域名,不填则不创建域名路由
873
+ 注意:此字段可能返回 null,表示取不到有效值。
874
+ :type ServiceDomain: str
875
+ :param _Username: 外部 PostgreSQL 用户名,配置 Host 时必填
876
+ 注意:此字段可能返回 null,表示取不到有效值。
877
+ :type Username: str
878
+ """
879
+ self._ChartVersion = None
880
+ self._Host = None
881
+ self._Password = None
882
+ self._Port = None
883
+ self._SSLMode = None
884
+ self._ServiceDomain = None
885
+ self._Username = None
886
+
887
+ @property
888
+ def ChartVersion(self):
889
+ r"""Helm Chart 版本,一般无需指定
890
+ 注意:此字段可能返回 null,表示取不到有效值。
891
+ :rtype: str
892
+ """
893
+ return self._ChartVersion
894
+
895
+ @ChartVersion.setter
896
+ def ChartVersion(self, ChartVersion):
897
+ self._ChartVersion = ChartVersion
898
+
899
+ @property
900
+ def Host(self):
901
+ r"""外部 PostgreSQL 内网地址;配置后跳过内置 PostgreSQL
902
+ 注意:此字段可能返回 null,表示取不到有效值。
903
+ :rtype: str
904
+ """
905
+ return self._Host
906
+
907
+ @Host.setter
908
+ def Host(self, Host):
909
+ self._Host = Host
910
+
911
+ @property
912
+ def Password(self):
913
+ r"""外部 PostgreSQL 密码,配置 Host 时必填
914
+ 注意:此字段可能返回 null,表示取不到有效值。
915
+ :rtype: str
916
+ """
917
+ return self._Password
918
+
919
+ @Password.setter
920
+ def Password(self, Password):
921
+ self._Password = Password
922
+
923
+ @property
924
+ def Port(self):
925
+ r"""外部 PostgreSQL 端口
926
+ 注意:此字段可能返回 null,表示取不到有效值。
927
+ :rtype: int
928
+ """
929
+ return self._Port
930
+
931
+ @Port.setter
932
+ def Port(self, Port):
933
+ self._Port = Port
934
+
935
+ @property
936
+ def SSLMode(self):
937
+ r"""SSL 模式,取值:disable / require / verify-full
938
+ 注意:此字段可能返回 null,表示取不到有效值。
939
+ :rtype: str
940
+ """
941
+ return self._SSLMode
942
+
943
+ @SSLMode.setter
944
+ def SSLMode(self, SSLMode):
945
+ self._SSLMode = SSLMode
946
+
947
+ @property
948
+ def ServiceDomain(self):
949
+ r"""Agent 实例访问域名,不填则不创建域名路由
950
+ 注意:此字段可能返回 null,表示取不到有效值。
951
+ :rtype: str
952
+ """
953
+ return self._ServiceDomain
954
+
955
+ @ServiceDomain.setter
956
+ def ServiceDomain(self, ServiceDomain):
957
+ self._ServiceDomain = ServiceDomain
958
+
959
+ @property
960
+ def Username(self):
961
+ r"""外部 PostgreSQL 用户名,配置 Host 时必填
962
+ 注意:此字段可能返回 null,表示取不到有效值。
963
+ :rtype: str
964
+ """
965
+ return self._Username
966
+
967
+ @Username.setter
968
+ def Username(self, Username):
969
+ self._Username = Username
970
+
971
+
972
+ def _deserialize(self, params):
973
+ self._ChartVersion = params.get("ChartVersion")
974
+ self._Host = params.get("Host")
975
+ self._Password = params.get("Password")
976
+ self._Port = params.get("Port")
977
+ self._SSLMode = params.get("SSLMode")
978
+ self._ServiceDomain = params.get("ServiceDomain")
979
+ self._Username = params.get("Username")
980
+ memeber_set = set(params.keys())
981
+ for name, value in vars(self).items():
982
+ property_name = name[1:]
983
+ if property_name in memeber_set:
984
+ memeber_set.remove(property_name)
985
+ if len(memeber_set) > 0:
986
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
987
+
988
+
989
+
850
990
  class AnnotationValue(AbstractModel):
851
991
  r"""注释
852
992
 
@@ -2249,6 +2389,9 @@ class Cluster(AbstractModel):
2249
2389
  :type CdcId: str
2250
2390
  :param _IsHighAvailability: <p>集群是否启用高可用模式。用于指导跨可用区资源打散等高可用策略的执行</p>
2251
2391
  :type IsHighAvailability: bool
2392
+ :param _ClusterCategory: <p>集群分类:tke=标准TKE集群,agent=Agent集群</p><p>默认值:tke</p>
2393
+ 注意:此字段可能返回 null,表示取不到有效值。
2394
+ :type ClusterCategory: str
2252
2395
  :param _SecurityModeConfig: <p>开启后会下发Gatekeeper和网络策略</p>
2253
2396
  :type SecurityModeConfig: :class:`tencentcloud.tke.v20180525.models.SecurityModeConfig`
2254
2397
  """
@@ -2278,6 +2421,7 @@ class Cluster(AbstractModel):
2278
2421
  self._ClusterEtcdNodeNum = None
2279
2422
  self._CdcId = None
2280
2423
  self._IsHighAvailability = None
2424
+ self._ClusterCategory = None
2281
2425
  self._SecurityModeConfig = None
2282
2426
 
2283
2427
  @property
@@ -2567,6 +2711,18 @@ class Cluster(AbstractModel):
2567
2711
  def IsHighAvailability(self, IsHighAvailability):
2568
2712
  self._IsHighAvailability = IsHighAvailability
2569
2713
 
2714
+ @property
2715
+ def ClusterCategory(self):
2716
+ r"""<p>集群分类:tke=标准TKE集群,agent=Agent集群</p><p>默认值:tke</p>
2717
+ 注意:此字段可能返回 null,表示取不到有效值。
2718
+ :rtype: str
2719
+ """
2720
+ return self._ClusterCategory
2721
+
2722
+ @ClusterCategory.setter
2723
+ def ClusterCategory(self, ClusterCategory):
2724
+ self._ClusterCategory = ClusterCategory
2725
+
2570
2726
  @property
2571
2727
  def SecurityModeConfig(self):
2572
2728
  r"""<p>开启后会下发Gatekeeper和网络策略</p>
@@ -2613,6 +2769,7 @@ class Cluster(AbstractModel):
2613
2769
  self._ClusterEtcdNodeNum = params.get("ClusterEtcdNodeNum")
2614
2770
  self._CdcId = params.get("CdcId")
2615
2771
  self._IsHighAvailability = params.get("IsHighAvailability")
2772
+ self._ClusterCategory = params.get("ClusterCategory")
2616
2773
  if params.get("SecurityModeConfig") is not None:
2617
2774
  self._SecurityModeConfig = SecurityModeConfig()
2618
2775
  self._SecurityModeConfig._deserialize(params.get("SecurityModeConfig"))
@@ -7645,26 +7802,28 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
7645
7802
 
7646
7803
  def __init__(self):
7647
7804
  r"""
7648
- :param _ClusterId: 集群ID,通过DescribeClusters接口获取
7805
+ :param _ClusterId: <p>集群ID,通过DescribeClusters接口获取</p>
7649
7806
  :type ClusterId: str
7650
- :param _Name: 节点池名称
7807
+ :param _Name: <p>节点池名称</p>
7651
7808
  :type Name: str
7652
- :param _SecurityGroupIds: 安全组ID列表
7809
+ :param _SecurityGroupIds: <p>安全组ID列表</p>
7653
7810
  :type SecurityGroupIds: list of str
7654
- :param _SubnetIds: 子网ID列表
7811
+ :param _SubnetIds: <p>子网ID列表</p>
7655
7812
  :type SubnetIds: list of str
7656
- :param _Labels: 虚拟节点label
7813
+ :param _Labels: <p>虚拟节点label</p>
7657
7814
  :type Labels: list of Label
7658
- :param _Taints: 虚拟节点taint
7815
+ :param _Taints: <p>虚拟节点taint</p>
7659
7816
  :type Taints: list of Taint
7660
- :param _VirtualNodes: 节点列表
7817
+ :param _VirtualNodes: <p>节点列表</p>
7661
7818
  :type VirtualNodes: list of VirtualNodeSpec
7662
- :param _DeletionProtection: 删除保护开关,默认关闭
7819
+ :param _DeletionProtection: <p>删除保护开关,默认关闭</p>
7663
7820
  :type DeletionProtection: bool
7664
- :param _OS: 节点池操作系统:
7665
- - linux(默认)
7666
- - windows
7821
+ :param _OS: <p>节点池操作系统:</p><ul><li>linux(默认)</li><li>windows</li></ul>
7667
7822
  :type OS: str
7823
+ :param _SubnetAllocationPolicy: <p>子网资源分配策略,精确控制各子网之间的资源分配比例。</p>
7824
+ :type SubnetAllocationPolicy: :class:`tencentcloud.tke.v20180525.models.SubnetAllocationPolicy`
7825
+ :param _AgentPlugin: <p>AgentPlugin 安装配置。传入即表示需要安装(即使是空对象 {})</p>
7826
+ :type AgentPlugin: :class:`tencentcloud.tke.v20180525.models.AgentPluginConfig`
7668
7827
  """
7669
7828
  self._ClusterId = None
7670
7829
  self._Name = None
@@ -7675,10 +7834,12 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
7675
7834
  self._VirtualNodes = None
7676
7835
  self._DeletionProtection = None
7677
7836
  self._OS = None
7837
+ self._SubnetAllocationPolicy = None
7838
+ self._AgentPlugin = None
7678
7839
 
7679
7840
  @property
7680
7841
  def ClusterId(self):
7681
- r"""集群ID,通过DescribeClusters接口获取
7842
+ r"""<p>集群ID,通过DescribeClusters接口获取</p>
7682
7843
  :rtype: str
7683
7844
  """
7684
7845
  return self._ClusterId
@@ -7689,7 +7850,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
7689
7850
 
7690
7851
  @property
7691
7852
  def Name(self):
7692
- r"""节点池名称
7853
+ r"""<p>节点池名称</p>
7693
7854
  :rtype: str
7694
7855
  """
7695
7856
  return self._Name
@@ -7700,7 +7861,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
7700
7861
 
7701
7862
  @property
7702
7863
  def SecurityGroupIds(self):
7703
- r"""安全组ID列表
7864
+ r"""<p>安全组ID列表</p>
7704
7865
  :rtype: list of str
7705
7866
  """
7706
7867
  return self._SecurityGroupIds
@@ -7711,7 +7872,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
7711
7872
 
7712
7873
  @property
7713
7874
  def SubnetIds(self):
7714
- r"""子网ID列表
7875
+ r"""<p>子网ID列表</p>
7715
7876
  :rtype: list of str
7716
7877
  """
7717
7878
  return self._SubnetIds
@@ -7722,7 +7883,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
7722
7883
 
7723
7884
  @property
7724
7885
  def Labels(self):
7725
- r"""虚拟节点label
7886
+ r"""<p>虚拟节点label</p>
7726
7887
  :rtype: list of Label
7727
7888
  """
7728
7889
  return self._Labels
@@ -7733,7 +7894,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
7733
7894
 
7734
7895
  @property
7735
7896
  def Taints(self):
7736
- r"""虚拟节点taint
7897
+ r"""<p>虚拟节点taint</p>
7737
7898
  :rtype: list of Taint
7738
7899
  """
7739
7900
  return self._Taints
@@ -7744,7 +7905,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
7744
7905
 
7745
7906
  @property
7746
7907
  def VirtualNodes(self):
7747
- r"""节点列表
7908
+ r"""<p>节点列表</p>
7748
7909
  :rtype: list of VirtualNodeSpec
7749
7910
  """
7750
7911
  return self._VirtualNodes
@@ -7755,7 +7916,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
7755
7916
 
7756
7917
  @property
7757
7918
  def DeletionProtection(self):
7758
- r"""删除保护开关,默认关闭
7919
+ r"""<p>删除保护开关,默认关闭</p>
7759
7920
  :rtype: bool
7760
7921
  """
7761
7922
  return self._DeletionProtection
@@ -7766,9 +7927,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
7766
7927
 
7767
7928
  @property
7768
7929
  def OS(self):
7769
- r"""节点池操作系统:
7770
- - linux(默认)
7771
- - windows
7930
+ r"""<p>节点池操作系统:</p><ul><li>linux(默认)</li><li>windows</li></ul>
7772
7931
  :rtype: str
7773
7932
  """
7774
7933
  return self._OS
@@ -7777,6 +7936,28 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
7777
7936
  def OS(self, OS):
7778
7937
  self._OS = OS
7779
7938
 
7939
+ @property
7940
+ def SubnetAllocationPolicy(self):
7941
+ r"""<p>子网资源分配策略,精确控制各子网之间的资源分配比例。</p>
7942
+ :rtype: :class:`tencentcloud.tke.v20180525.models.SubnetAllocationPolicy`
7943
+ """
7944
+ return self._SubnetAllocationPolicy
7945
+
7946
+ @SubnetAllocationPolicy.setter
7947
+ def SubnetAllocationPolicy(self, SubnetAllocationPolicy):
7948
+ self._SubnetAllocationPolicy = SubnetAllocationPolicy
7949
+
7950
+ @property
7951
+ def AgentPlugin(self):
7952
+ r"""<p>AgentPlugin 安装配置。传入即表示需要安装(即使是空对象 {})</p>
7953
+ :rtype: :class:`tencentcloud.tke.v20180525.models.AgentPluginConfig`
7954
+ """
7955
+ return self._AgentPlugin
7956
+
7957
+ @AgentPlugin.setter
7958
+ def AgentPlugin(self, AgentPlugin):
7959
+ self._AgentPlugin = AgentPlugin
7960
+
7780
7961
 
7781
7962
  def _deserialize(self, params):
7782
7963
  self._ClusterId = params.get("ClusterId")
@@ -7803,6 +7984,12 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
7803
7984
  self._VirtualNodes.append(obj)
7804
7985
  self._DeletionProtection = params.get("DeletionProtection")
7805
7986
  self._OS = params.get("OS")
7987
+ if params.get("SubnetAllocationPolicy") is not None:
7988
+ self._SubnetAllocationPolicy = SubnetAllocationPolicy()
7989
+ self._SubnetAllocationPolicy._deserialize(params.get("SubnetAllocationPolicy"))
7990
+ if params.get("AgentPlugin") is not None:
7991
+ self._AgentPlugin = AgentPluginConfig()
7992
+ self._AgentPlugin._deserialize(params.get("AgentPlugin"))
7806
7993
  memeber_set = set(params.keys())
7807
7994
  for name, value in vars(self).items():
7808
7995
  property_name = name[1:]
@@ -7820,7 +8007,7 @@ class CreateClusterVirtualNodePoolResponse(AbstractModel):
7820
8007
 
7821
8008
  def __init__(self):
7822
8009
  r"""
7823
- :param _NodePoolId: 节点池ID
8010
+ :param _NodePoolId: <p>节点池ID</p>
7824
8011
  :type NodePoolId: str
7825
8012
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7826
8013
  :type RequestId: str
@@ -7830,7 +8017,7 @@ class CreateClusterVirtualNodePoolResponse(AbstractModel):
7830
8017
 
7831
8018
  @property
7832
8019
  def NodePoolId(self):
7833
- r"""节点池ID
8020
+ r"""<p>节点池ID</p>
7834
8021
  :rtype: str
7835
8022
  """
7836
8023
  return self._NodePoolId
@@ -52410,6 +52597,98 @@ class Step(AbstractModel):
52410
52597
 
52411
52598
 
52412
52599
 
52600
+ class SubnetAllocation(AbstractModel):
52601
+ r"""子网资源分配
52602
+
52603
+ """
52604
+
52605
+ def __init__(self):
52606
+ r"""
52607
+ :param _SubnetId: <p>子网 ID</p>
52608
+ :type SubnetId: str
52609
+ :param _Ratio: <p>分配比例(百分比),所有 Ratio 之和必须等于 100</p>
52610
+ :type Ratio: int
52611
+ """
52612
+ self._SubnetId = None
52613
+ self._Ratio = None
52614
+
52615
+ @property
52616
+ def SubnetId(self):
52617
+ r"""<p>子网 ID</p>
52618
+ :rtype: str
52619
+ """
52620
+ return self._SubnetId
52621
+
52622
+ @SubnetId.setter
52623
+ def SubnetId(self, SubnetId):
52624
+ self._SubnetId = SubnetId
52625
+
52626
+ @property
52627
+ def Ratio(self):
52628
+ r"""<p>分配比例(百分比),所有 Ratio 之和必须等于 100</p>
52629
+ :rtype: int
52630
+ """
52631
+ return self._Ratio
52632
+
52633
+ @Ratio.setter
52634
+ def Ratio(self, Ratio):
52635
+ self._Ratio = Ratio
52636
+
52637
+
52638
+ def _deserialize(self, params):
52639
+ self._SubnetId = params.get("SubnetId")
52640
+ self._Ratio = params.get("Ratio")
52641
+ memeber_set = set(params.keys())
52642
+ for name, value in vars(self).items():
52643
+ property_name = name[1:]
52644
+ if property_name in memeber_set:
52645
+ memeber_set.remove(property_name)
52646
+ if len(memeber_set) > 0:
52647
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
52648
+
52649
+
52650
+
52651
+ class SubnetAllocationPolicy(AbstractModel):
52652
+ r"""子网资源分配策略,精确控制各子网之间的资源分配比例。
52653
+
52654
+ """
52655
+
52656
+ def __init__(self):
52657
+ r"""
52658
+ :param _Allocations: <p>子网分配列表</p>
52659
+ :type Allocations: list of SubnetAllocation
52660
+ """
52661
+ self._Allocations = None
52662
+
52663
+ @property
52664
+ def Allocations(self):
52665
+ r"""<p>子网分配列表</p>
52666
+ :rtype: list of SubnetAllocation
52667
+ """
52668
+ return self._Allocations
52669
+
52670
+ @Allocations.setter
52671
+ def Allocations(self, Allocations):
52672
+ self._Allocations = Allocations
52673
+
52674
+
52675
+ def _deserialize(self, params):
52676
+ if params.get("Allocations") is not None:
52677
+ self._Allocations = []
52678
+ for item in params.get("Allocations"):
52679
+ obj = SubnetAllocation()
52680
+ obj._deserialize(item)
52681
+ self._Allocations.append(obj)
52682
+ memeber_set = set(params.keys())
52683
+ for name, value in vars(self).items():
52684
+ property_name = name[1:]
52685
+ if property_name in memeber_set:
52686
+ memeber_set.remove(property_name)
52687
+ if len(memeber_set) > 0:
52688
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
52689
+
52690
+
52691
+
52413
52692
  class SubnetInfos(AbstractModel):
52414
52693
  r"""子网信息
52415
52694
 
@@ -56442,24 +56721,23 @@ class VirtualNodePool(AbstractModel):
56442
56721
 
56443
56722
  def __init__(self):
56444
56723
  r"""
56445
- :param _NodePoolId: 节点池ID
56724
+ :param _NodePoolId: <p>节点池ID</p>
56446
56725
  :type NodePoolId: str
56447
- :param _SubnetIds: 子网列表
56726
+ :param _SubnetIds: <p>子网列表</p>
56448
56727
  注意:此字段可能返回 null,表示取不到有效值。
56449
56728
  :type SubnetIds: list of str
56450
- :param _Name: 节点池名称
56729
+ :param _Name: <p>节点池名称</p>
56451
56730
  :type Name: str
56452
- :param _LifeState: 节点池生命周期
56453
- - creating:创建中
56454
- - normal:正常
56455
- - updating:更新中
56731
+ :param _LifeState: <p>节点池生命周期</p><ul><li>creating:创建中</li><li>normal:正常</li><li>updating:更新中</li></ul>
56456
56732
  :type LifeState: str
56457
- :param _Labels: 虚拟节点label
56733
+ :param _Labels: <p>虚拟节点label</p>
56458
56734
  注意:此字段可能返回 null,表示取不到有效值。
56459
56735
  :type Labels: list of Label
56460
- :param _Taints: 虚拟节点taint
56736
+ :param _Taints: <p>虚拟节点taint</p>
56461
56737
  注意:此字段可能返回 null,表示取不到有效值。
56462
56738
  :type Taints: list of Taint
56739
+ :param _SubnetAllocationPolicy: <p>子网分配策略</p>
56740
+ :type SubnetAllocationPolicy: :class:`tencentcloud.tke.v20180525.models.SubnetAllocationPolicy`
56463
56741
  """
56464
56742
  self._NodePoolId = None
56465
56743
  self._SubnetIds = None
@@ -56467,10 +56745,11 @@ class VirtualNodePool(AbstractModel):
56467
56745
  self._LifeState = None
56468
56746
  self._Labels = None
56469
56747
  self._Taints = None
56748
+ self._SubnetAllocationPolicy = None
56470
56749
 
56471
56750
  @property
56472
56751
  def NodePoolId(self):
56473
- r"""节点池ID
56752
+ r"""<p>节点池ID</p>
56474
56753
  :rtype: str
56475
56754
  """
56476
56755
  return self._NodePoolId
@@ -56481,7 +56760,7 @@ class VirtualNodePool(AbstractModel):
56481
56760
 
56482
56761
  @property
56483
56762
  def SubnetIds(self):
56484
- r"""子网列表
56763
+ r"""<p>子网列表</p>
56485
56764
  注意:此字段可能返回 null,表示取不到有效值。
56486
56765
  :rtype: list of str
56487
56766
  """
@@ -56493,7 +56772,7 @@ class VirtualNodePool(AbstractModel):
56493
56772
 
56494
56773
  @property
56495
56774
  def Name(self):
56496
- r"""节点池名称
56775
+ r"""<p>节点池名称</p>
56497
56776
  :rtype: str
56498
56777
  """
56499
56778
  return self._Name
@@ -56504,10 +56783,7 @@ class VirtualNodePool(AbstractModel):
56504
56783
 
56505
56784
  @property
56506
56785
  def LifeState(self):
56507
- r"""节点池生命周期
56508
- - creating:创建中
56509
- - normal:正常
56510
- - updating:更新中
56786
+ r"""<p>节点池生命周期</p><ul><li>creating:创建中</li><li>normal:正常</li><li>updating:更新中</li></ul>
56511
56787
  :rtype: str
56512
56788
  """
56513
56789
  return self._LifeState
@@ -56518,7 +56794,7 @@ class VirtualNodePool(AbstractModel):
56518
56794
 
56519
56795
  @property
56520
56796
  def Labels(self):
56521
- r"""虚拟节点label
56797
+ r"""<p>虚拟节点label</p>
56522
56798
  注意:此字段可能返回 null,表示取不到有效值。
56523
56799
  :rtype: list of Label
56524
56800
  """
@@ -56530,7 +56806,7 @@ class VirtualNodePool(AbstractModel):
56530
56806
 
56531
56807
  @property
56532
56808
  def Taints(self):
56533
- r"""虚拟节点taint
56809
+ r"""<p>虚拟节点taint</p>
56534
56810
  注意:此字段可能返回 null,表示取不到有效值。
56535
56811
  :rtype: list of Taint
56536
56812
  """
@@ -56540,6 +56816,17 @@ class VirtualNodePool(AbstractModel):
56540
56816
  def Taints(self, Taints):
56541
56817
  self._Taints = Taints
56542
56818
 
56819
+ @property
56820
+ def SubnetAllocationPolicy(self):
56821
+ r"""<p>子网分配策略</p>
56822
+ :rtype: :class:`tencentcloud.tke.v20180525.models.SubnetAllocationPolicy`
56823
+ """
56824
+ return self._SubnetAllocationPolicy
56825
+
56826
+ @SubnetAllocationPolicy.setter
56827
+ def SubnetAllocationPolicy(self, SubnetAllocationPolicy):
56828
+ self._SubnetAllocationPolicy = SubnetAllocationPolicy
56829
+
56543
56830
 
56544
56831
  def _deserialize(self, params):
56545
56832
  self._NodePoolId = params.get("NodePoolId")
@@ -56558,6 +56845,9 @@ class VirtualNodePool(AbstractModel):
56558
56845
  obj = Taint()
56559
56846
  obj._deserialize(item)
56560
56847
  self._Taints.append(obj)
56848
+ if params.get("SubnetAllocationPolicy") is not None:
56849
+ self._SubnetAllocationPolicy = SubnetAllocationPolicy()
56850
+ self._SubnetAllocationPolicy._deserialize(params.get("SubnetAllocationPolicy"))
56561
56851
  memeber_set = set(params.keys())
56562
56852
  for name, value in vars(self).items():
56563
56853
  property_name = name[1:]
@@ -5173,17 +5173,17 @@ class ModifyClusterMachineRequest(AbstractModel):
5173
5173
 
5174
5174
  def __init__(self):
5175
5175
  r"""
5176
- :param _ClusterId: 集群 ID
5176
+ :param _ClusterId: <p>集群 ID</p>
5177
5177
  :type ClusterId: str
5178
- :param _MachineNames: 节点名列表
5178
+ :param _MachineNames: <p>节点名列表</p>
5179
5179
  :type MachineNames: list of str
5180
- :param _DisplayName: machine的display name
5180
+ :param _DisplayName: <p>machine的display name</p>
5181
5181
  :type DisplayName: str
5182
- :param _SystemDisk: 系统盘的信息
5182
+ :param _SystemDisk: <p>系统盘的信息</p>
5183
5183
  :type SystemDisk: :class:`tencentcloud.tke.v20220501.models.Disk`
5184
- :param _SecurityGroupIDs: 安全组列表
5184
+ :param _SecurityGroupIDs: <p>安全组列表</p>
5185
5185
  :type SecurityGroupIDs: list of str
5186
- :param _InstanceChargePrepaid: 节点预付费信息
5186
+ :param _InstanceChargePrepaid: <p>节点预付费信息</p>
5187
5187
  :type InstanceChargePrepaid: :class:`tencentcloud.tke.v20220501.models.InstanceChargePrepaid`
5188
5188
  """
5189
5189
  self._ClusterId = None
@@ -5195,7 +5195,7 @@ class ModifyClusterMachineRequest(AbstractModel):
5195
5195
 
5196
5196
  @property
5197
5197
  def ClusterId(self):
5198
- r"""集群 ID
5198
+ r"""<p>集群 ID</p>
5199
5199
  :rtype: str
5200
5200
  """
5201
5201
  return self._ClusterId
@@ -5206,7 +5206,7 @@ class ModifyClusterMachineRequest(AbstractModel):
5206
5206
 
5207
5207
  @property
5208
5208
  def MachineNames(self):
5209
- r"""节点名列表
5209
+ r"""<p>节点名列表</p>
5210
5210
  :rtype: list of str
5211
5211
  """
5212
5212
  return self._MachineNames
@@ -5217,7 +5217,7 @@ class ModifyClusterMachineRequest(AbstractModel):
5217
5217
 
5218
5218
  @property
5219
5219
  def DisplayName(self):
5220
- r"""machine的display name
5220
+ r"""<p>machine的display name</p>
5221
5221
  :rtype: str
5222
5222
  """
5223
5223
  return self._DisplayName
@@ -5228,7 +5228,7 @@ class ModifyClusterMachineRequest(AbstractModel):
5228
5228
 
5229
5229
  @property
5230
5230
  def SystemDisk(self):
5231
- r"""系统盘的信息
5231
+ r"""<p>系统盘的信息</p>
5232
5232
  :rtype: :class:`tencentcloud.tke.v20220501.models.Disk`
5233
5233
  """
5234
5234
  return self._SystemDisk
@@ -5239,7 +5239,7 @@ class ModifyClusterMachineRequest(AbstractModel):
5239
5239
 
5240
5240
  @property
5241
5241
  def SecurityGroupIDs(self):
5242
- r"""安全组列表
5242
+ r"""<p>安全组列表</p>
5243
5243
  :rtype: list of str
5244
5244
  """
5245
5245
  return self._SecurityGroupIDs
@@ -5250,7 +5250,7 @@ class ModifyClusterMachineRequest(AbstractModel):
5250
5250
 
5251
5251
  @property
5252
5252
  def InstanceChargePrepaid(self):
5253
- r"""节点预付费信息
5253
+ r"""<p>节点预付费信息</p>
5254
5254
  :rtype: :class:`tencentcloud.tke.v20220501.models.InstanceChargePrepaid`
5255
5255
  """
5256
5256
  return self._InstanceChargePrepaid
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tke
3
- Version: 3.1.102
3
+ Version: 3.1.105
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.102
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.105
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.105
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.102