tencentcloud-sdk-python-tke 3.1.103__tar.gz → 3.1.106__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.
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/setup.py +1 -1
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud/tke/v20180525/errorcodes.py +6 -0
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud/tke/v20180525/models.py +225 -38
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud/tke/v20220501/models.py +214 -236
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud_sdk_python_tke.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tke-3.1.106/tencentcloud_sdk_python_tke.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_tke-3.1.103/tencentcloud_sdk_python_tke.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/README.rst +0 -0
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud/tke/__init__.py +0 -0
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud/tke/v20180525/__init__.py +0 -0
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud/tke/v20180525/tke_client.py +0 -0
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud/tke/v20180525/tke_client_async.py +0 -0
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud/tke/v20220501/__init__.py +0 -0
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud/tke/v20220501/errorcodes.py +0 -0
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud/tke/v20220501/tke_client.py +0 -0
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud/tke/v20220501/tke_client_async.py +0 -0
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud_sdk_python_tke.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/tencentcloud_sdk_python_tke.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tke-3.1.103 → tencentcloud_sdk_python_tke-3.1.106}/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.
|
|
3
|
+
Version: 3.1.106
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.106
|
|
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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.106,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Tke SDK for Python',
|
|
@@ -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
|
|
|
@@ -7662,26 +7802,28 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
7662
7802
|
|
|
7663
7803
|
def __init__(self):
|
|
7664
7804
|
r"""
|
|
7665
|
-
:param _ClusterId:
|
|
7805
|
+
:param _ClusterId: <p>集群ID,通过DescribeClusters接口获取</p>
|
|
7666
7806
|
:type ClusterId: str
|
|
7667
|
-
:param _Name:
|
|
7807
|
+
:param _Name: <p>节点池名称</p>
|
|
7668
7808
|
:type Name: str
|
|
7669
|
-
:param _SecurityGroupIds:
|
|
7809
|
+
:param _SecurityGroupIds: <p>安全组ID列表</p>
|
|
7670
7810
|
:type SecurityGroupIds: list of str
|
|
7671
|
-
:param _SubnetIds:
|
|
7811
|
+
:param _SubnetIds: <p>子网ID列表</p>
|
|
7672
7812
|
:type SubnetIds: list of str
|
|
7673
|
-
:param _Labels:
|
|
7813
|
+
:param _Labels: <p>虚拟节点label</p>
|
|
7674
7814
|
:type Labels: list of Label
|
|
7675
|
-
:param _Taints:
|
|
7815
|
+
:param _Taints: <p>虚拟节点taint</p>
|
|
7676
7816
|
:type Taints: list of Taint
|
|
7677
|
-
:param _VirtualNodes:
|
|
7817
|
+
:param _VirtualNodes: <p>节点列表</p>
|
|
7678
7818
|
:type VirtualNodes: list of VirtualNodeSpec
|
|
7679
|
-
:param _DeletionProtection:
|
|
7819
|
+
:param _DeletionProtection: <p>删除保护开关,默认关闭</p>
|
|
7680
7820
|
:type DeletionProtection: bool
|
|
7681
|
-
:param _OS:
|
|
7682
|
-
- linux(默认)
|
|
7683
|
-
- windows
|
|
7821
|
+
:param _OS: <p>节点池操作系统:</p><ul><li>linux(默认)</li><li>windows</li></ul>
|
|
7684
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`
|
|
7685
7827
|
"""
|
|
7686
7828
|
self._ClusterId = None
|
|
7687
7829
|
self._Name = None
|
|
@@ -7692,10 +7834,12 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
7692
7834
|
self._VirtualNodes = None
|
|
7693
7835
|
self._DeletionProtection = None
|
|
7694
7836
|
self._OS = None
|
|
7837
|
+
self._SubnetAllocationPolicy = None
|
|
7838
|
+
self._AgentPlugin = None
|
|
7695
7839
|
|
|
7696
7840
|
@property
|
|
7697
7841
|
def ClusterId(self):
|
|
7698
|
-
r"""
|
|
7842
|
+
r"""<p>集群ID,通过DescribeClusters接口获取</p>
|
|
7699
7843
|
:rtype: str
|
|
7700
7844
|
"""
|
|
7701
7845
|
return self._ClusterId
|
|
@@ -7706,7 +7850,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
7706
7850
|
|
|
7707
7851
|
@property
|
|
7708
7852
|
def Name(self):
|
|
7709
|
-
r"""
|
|
7853
|
+
r"""<p>节点池名称</p>
|
|
7710
7854
|
:rtype: str
|
|
7711
7855
|
"""
|
|
7712
7856
|
return self._Name
|
|
@@ -7717,7 +7861,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
7717
7861
|
|
|
7718
7862
|
@property
|
|
7719
7863
|
def SecurityGroupIds(self):
|
|
7720
|
-
r"""
|
|
7864
|
+
r"""<p>安全组ID列表</p>
|
|
7721
7865
|
:rtype: list of str
|
|
7722
7866
|
"""
|
|
7723
7867
|
return self._SecurityGroupIds
|
|
@@ -7728,7 +7872,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
7728
7872
|
|
|
7729
7873
|
@property
|
|
7730
7874
|
def SubnetIds(self):
|
|
7731
|
-
r"""
|
|
7875
|
+
r"""<p>子网ID列表</p>
|
|
7732
7876
|
:rtype: list of str
|
|
7733
7877
|
"""
|
|
7734
7878
|
return self._SubnetIds
|
|
@@ -7739,7 +7883,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
7739
7883
|
|
|
7740
7884
|
@property
|
|
7741
7885
|
def Labels(self):
|
|
7742
|
-
r"""
|
|
7886
|
+
r"""<p>虚拟节点label</p>
|
|
7743
7887
|
:rtype: list of Label
|
|
7744
7888
|
"""
|
|
7745
7889
|
return self._Labels
|
|
@@ -7750,7 +7894,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
7750
7894
|
|
|
7751
7895
|
@property
|
|
7752
7896
|
def Taints(self):
|
|
7753
|
-
r"""
|
|
7897
|
+
r"""<p>虚拟节点taint</p>
|
|
7754
7898
|
:rtype: list of Taint
|
|
7755
7899
|
"""
|
|
7756
7900
|
return self._Taints
|
|
@@ -7761,7 +7905,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
7761
7905
|
|
|
7762
7906
|
@property
|
|
7763
7907
|
def VirtualNodes(self):
|
|
7764
|
-
r"""
|
|
7908
|
+
r"""<p>节点列表</p>
|
|
7765
7909
|
:rtype: list of VirtualNodeSpec
|
|
7766
7910
|
"""
|
|
7767
7911
|
return self._VirtualNodes
|
|
@@ -7772,7 +7916,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
7772
7916
|
|
|
7773
7917
|
@property
|
|
7774
7918
|
def DeletionProtection(self):
|
|
7775
|
-
r"""
|
|
7919
|
+
r"""<p>删除保护开关,默认关闭</p>
|
|
7776
7920
|
:rtype: bool
|
|
7777
7921
|
"""
|
|
7778
7922
|
return self._DeletionProtection
|
|
@@ -7783,9 +7927,7 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
7783
7927
|
|
|
7784
7928
|
@property
|
|
7785
7929
|
def OS(self):
|
|
7786
|
-
r"""
|
|
7787
|
-
- linux(默认)
|
|
7788
|
-
- windows
|
|
7930
|
+
r"""<p>节点池操作系统:</p><ul><li>linux(默认)</li><li>windows</li></ul>
|
|
7789
7931
|
:rtype: str
|
|
7790
7932
|
"""
|
|
7791
7933
|
return self._OS
|
|
@@ -7794,6 +7936,28 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
7794
7936
|
def OS(self, OS):
|
|
7795
7937
|
self._OS = OS
|
|
7796
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
|
+
|
|
7797
7961
|
|
|
7798
7962
|
def _deserialize(self, params):
|
|
7799
7963
|
self._ClusterId = params.get("ClusterId")
|
|
@@ -7820,6 +7984,12 @@ class CreateClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
7820
7984
|
self._VirtualNodes.append(obj)
|
|
7821
7985
|
self._DeletionProtection = params.get("DeletionProtection")
|
|
7822
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"))
|
|
7823
7993
|
memeber_set = set(params.keys())
|
|
7824
7994
|
for name, value in vars(self).items():
|
|
7825
7995
|
property_name = name[1:]
|
|
@@ -7837,7 +8007,7 @@ class CreateClusterVirtualNodePoolResponse(AbstractModel):
|
|
|
7837
8007
|
|
|
7838
8008
|
def __init__(self):
|
|
7839
8009
|
r"""
|
|
7840
|
-
:param _NodePoolId:
|
|
8010
|
+
:param _NodePoolId: <p>节点池ID</p>
|
|
7841
8011
|
:type NodePoolId: str
|
|
7842
8012
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7843
8013
|
:type RequestId: str
|
|
@@ -7847,7 +8017,7 @@ class CreateClusterVirtualNodePoolResponse(AbstractModel):
|
|
|
7847
8017
|
|
|
7848
8018
|
@property
|
|
7849
8019
|
def NodePoolId(self):
|
|
7850
|
-
r"""
|
|
8020
|
+
r"""<p>节点池ID</p>
|
|
7851
8021
|
:rtype: str
|
|
7852
8022
|
"""
|
|
7853
8023
|
return self._NodePoolId
|
|
@@ -40452,20 +40622,22 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
40452
40622
|
|
|
40453
40623
|
def __init__(self):
|
|
40454
40624
|
r"""
|
|
40455
|
-
:param _ClusterId:
|
|
40625
|
+
:param _ClusterId: <p>集群ID,通过DescribeClusters接口获取</p>
|
|
40456
40626
|
:type ClusterId: str
|
|
40457
|
-
:param _NodePoolId:
|
|
40627
|
+
:param _NodePoolId: <p>节点池ID,通过DescribeNodePools接口获取</p>
|
|
40458
40628
|
:type NodePoolId: str
|
|
40459
|
-
:param _Name:
|
|
40629
|
+
:param _Name: <p>节点池名称,必须修改至少一个参数</p>
|
|
40460
40630
|
:type Name: str
|
|
40461
|
-
:param _SecurityGroupIds:
|
|
40631
|
+
:param _SecurityGroupIds: <p>安全组ID列表,必须修改至少一个参数</p>
|
|
40462
40632
|
:type SecurityGroupIds: list of str
|
|
40463
|
-
:param _Labels:
|
|
40633
|
+
:param _Labels: <p>虚拟节点label,必须修改至少一个参数</p>
|
|
40464
40634
|
:type Labels: list of Label
|
|
40465
|
-
:param _Taints:
|
|
40635
|
+
:param _Taints: <p>虚拟节点taint,必须修改至少一个参数</p>
|
|
40466
40636
|
:type Taints: list of Taint
|
|
40467
|
-
:param _DeletionProtection:
|
|
40637
|
+
:param _DeletionProtection: <p>删除保护开关,必须修改至少一个参数</p>
|
|
40468
40638
|
:type DeletionProtection: bool
|
|
40639
|
+
:param _SubnetAllocationPolicy: <p>子网分配策略</p>
|
|
40640
|
+
:type SubnetAllocationPolicy: :class:`tencentcloud.tke.v20180525.models.SubnetAllocationPolicy`
|
|
40469
40641
|
"""
|
|
40470
40642
|
self._ClusterId = None
|
|
40471
40643
|
self._NodePoolId = None
|
|
@@ -40474,10 +40646,11 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
40474
40646
|
self._Labels = None
|
|
40475
40647
|
self._Taints = None
|
|
40476
40648
|
self._DeletionProtection = None
|
|
40649
|
+
self._SubnetAllocationPolicy = None
|
|
40477
40650
|
|
|
40478
40651
|
@property
|
|
40479
40652
|
def ClusterId(self):
|
|
40480
|
-
r"""
|
|
40653
|
+
r"""<p>集群ID,通过DescribeClusters接口获取</p>
|
|
40481
40654
|
:rtype: str
|
|
40482
40655
|
"""
|
|
40483
40656
|
return self._ClusterId
|
|
@@ -40488,7 +40661,7 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
40488
40661
|
|
|
40489
40662
|
@property
|
|
40490
40663
|
def NodePoolId(self):
|
|
40491
|
-
r"""
|
|
40664
|
+
r"""<p>节点池ID,通过DescribeNodePools接口获取</p>
|
|
40492
40665
|
:rtype: str
|
|
40493
40666
|
"""
|
|
40494
40667
|
return self._NodePoolId
|
|
@@ -40499,7 +40672,7 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
40499
40672
|
|
|
40500
40673
|
@property
|
|
40501
40674
|
def Name(self):
|
|
40502
|
-
r"""
|
|
40675
|
+
r"""<p>节点池名称,必须修改至少一个参数</p>
|
|
40503
40676
|
:rtype: str
|
|
40504
40677
|
"""
|
|
40505
40678
|
return self._Name
|
|
@@ -40510,7 +40683,7 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
40510
40683
|
|
|
40511
40684
|
@property
|
|
40512
40685
|
def SecurityGroupIds(self):
|
|
40513
|
-
r"""
|
|
40686
|
+
r"""<p>安全组ID列表,必须修改至少一个参数</p>
|
|
40514
40687
|
:rtype: list of str
|
|
40515
40688
|
"""
|
|
40516
40689
|
return self._SecurityGroupIds
|
|
@@ -40521,7 +40694,7 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
40521
40694
|
|
|
40522
40695
|
@property
|
|
40523
40696
|
def Labels(self):
|
|
40524
|
-
r"""
|
|
40697
|
+
r"""<p>虚拟节点label,必须修改至少一个参数</p>
|
|
40525
40698
|
:rtype: list of Label
|
|
40526
40699
|
"""
|
|
40527
40700
|
return self._Labels
|
|
@@ -40532,7 +40705,7 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
40532
40705
|
|
|
40533
40706
|
@property
|
|
40534
40707
|
def Taints(self):
|
|
40535
|
-
r"""
|
|
40708
|
+
r"""<p>虚拟节点taint,必须修改至少一个参数</p>
|
|
40536
40709
|
:rtype: list of Taint
|
|
40537
40710
|
"""
|
|
40538
40711
|
return self._Taints
|
|
@@ -40543,7 +40716,7 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
40543
40716
|
|
|
40544
40717
|
@property
|
|
40545
40718
|
def DeletionProtection(self):
|
|
40546
|
-
r"""
|
|
40719
|
+
r"""<p>删除保护开关,必须修改至少一个参数</p>
|
|
40547
40720
|
:rtype: bool
|
|
40548
40721
|
"""
|
|
40549
40722
|
return self._DeletionProtection
|
|
@@ -40552,6 +40725,17 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
40552
40725
|
def DeletionProtection(self, DeletionProtection):
|
|
40553
40726
|
self._DeletionProtection = DeletionProtection
|
|
40554
40727
|
|
|
40728
|
+
@property
|
|
40729
|
+
def SubnetAllocationPolicy(self):
|
|
40730
|
+
r"""<p>子网分配策略</p>
|
|
40731
|
+
:rtype: :class:`tencentcloud.tke.v20180525.models.SubnetAllocationPolicy`
|
|
40732
|
+
"""
|
|
40733
|
+
return self._SubnetAllocationPolicy
|
|
40734
|
+
|
|
40735
|
+
@SubnetAllocationPolicy.setter
|
|
40736
|
+
def SubnetAllocationPolicy(self, SubnetAllocationPolicy):
|
|
40737
|
+
self._SubnetAllocationPolicy = SubnetAllocationPolicy
|
|
40738
|
+
|
|
40555
40739
|
|
|
40556
40740
|
def _deserialize(self, params):
|
|
40557
40741
|
self._ClusterId = params.get("ClusterId")
|
|
@@ -40571,6 +40755,9 @@ class ModifyClusterVirtualNodePoolRequest(AbstractModel):
|
|
|
40571
40755
|
obj._deserialize(item)
|
|
40572
40756
|
self._Taints.append(obj)
|
|
40573
40757
|
self._DeletionProtection = params.get("DeletionProtection")
|
|
40758
|
+
if params.get("SubnetAllocationPolicy") is not None:
|
|
40759
|
+
self._SubnetAllocationPolicy = SubnetAllocationPolicy()
|
|
40760
|
+
self._SubnetAllocationPolicy._deserialize(params.get("SubnetAllocationPolicy"))
|
|
40574
40761
|
memeber_set = set(params.keys())
|
|
40575
40762
|
for name, value in vars(self).items():
|
|
40576
40763
|
property_name = name[1:]
|