tencentcloud-sdk-python-tke 3.0.1398__tar.gz → 3.0.1406__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.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/setup.py +1 -1
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/tencentcloud/tke/v20180525/errorcodes.py +1 -1
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/tencentcloud/tke/v20180525/models.py +218 -0
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/tencentcloud/tke/v20180525/tke_client.py +46 -0
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/tencentcloud/tke/v20220501/errorcodes.py +1 -1
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/tencentcloud_sdk_python_tke.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-tke-3.0.1406/tencentcloud_sdk_python_tke.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-tke-3.0.1398/tencentcloud_sdk_python_tke.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/README.rst +0 -0
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/setup.cfg +0 -0
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/tencentcloud/tke/__init__.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/tencentcloud/tke/v20180525/__init__.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/tencentcloud/tke/v20220501/__init__.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/tencentcloud/tke/v20220501/models.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/tencentcloud/tke/v20220501/tke_client.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/tencentcloud_sdk_python_tke.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/tencentcloud_sdk_python_tke.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-tke-3.0.1398 → tencentcloud-sdk-python-tke-3.0.1406}/tencentcloud_sdk_python_tke.egg-info/top_level.txt +0 -0
|
@@ -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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1406"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Tke SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -20010,6 +20010,115 @@ class DescribeLogSwitchesResponse(AbstractModel):
|
|
|
20010
20010
|
self._RequestId = params.get("RequestId")
|
|
20011
20011
|
|
|
20012
20012
|
|
|
20013
|
+
class DescribeMasterComponentRequest(AbstractModel):
|
|
20014
|
+
"""DescribeMasterComponent请求参数结构体
|
|
20015
|
+
|
|
20016
|
+
"""
|
|
20017
|
+
|
|
20018
|
+
def __init__(self):
|
|
20019
|
+
r"""
|
|
20020
|
+
:param _ClusterId: 集群ID
|
|
20021
|
+
:type ClusterId: str
|
|
20022
|
+
:param _Component: master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager
|
|
20023
|
+
:type Component: str
|
|
20024
|
+
"""
|
|
20025
|
+
self._ClusterId = None
|
|
20026
|
+
self._Component = None
|
|
20027
|
+
|
|
20028
|
+
@property
|
|
20029
|
+
def ClusterId(self):
|
|
20030
|
+
"""集群ID
|
|
20031
|
+
:rtype: str
|
|
20032
|
+
"""
|
|
20033
|
+
return self._ClusterId
|
|
20034
|
+
|
|
20035
|
+
@ClusterId.setter
|
|
20036
|
+
def ClusterId(self, ClusterId):
|
|
20037
|
+
self._ClusterId = ClusterId
|
|
20038
|
+
|
|
20039
|
+
@property
|
|
20040
|
+
def Component(self):
|
|
20041
|
+
"""master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager
|
|
20042
|
+
:rtype: str
|
|
20043
|
+
"""
|
|
20044
|
+
return self._Component
|
|
20045
|
+
|
|
20046
|
+
@Component.setter
|
|
20047
|
+
def Component(self, Component):
|
|
20048
|
+
self._Component = Component
|
|
20049
|
+
|
|
20050
|
+
|
|
20051
|
+
def _deserialize(self, params):
|
|
20052
|
+
self._ClusterId = params.get("ClusterId")
|
|
20053
|
+
self._Component = params.get("Component")
|
|
20054
|
+
memeber_set = set(params.keys())
|
|
20055
|
+
for name, value in vars(self).items():
|
|
20056
|
+
property_name = name[1:]
|
|
20057
|
+
if property_name in memeber_set:
|
|
20058
|
+
memeber_set.remove(property_name)
|
|
20059
|
+
if len(memeber_set) > 0:
|
|
20060
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
20061
|
+
|
|
20062
|
+
|
|
20063
|
+
|
|
20064
|
+
class DescribeMasterComponentResponse(AbstractModel):
|
|
20065
|
+
"""DescribeMasterComponent返回参数结构体
|
|
20066
|
+
|
|
20067
|
+
"""
|
|
20068
|
+
|
|
20069
|
+
def __init__(self):
|
|
20070
|
+
r"""
|
|
20071
|
+
:param _Component: master组件名称
|
|
20072
|
+
:type Component: str
|
|
20073
|
+
:param _Status: master组件状态,三种状态:running、updating、shutdown
|
|
20074
|
+
:type Status: str
|
|
20075
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
20076
|
+
:type RequestId: str
|
|
20077
|
+
"""
|
|
20078
|
+
self._Component = None
|
|
20079
|
+
self._Status = None
|
|
20080
|
+
self._RequestId = None
|
|
20081
|
+
|
|
20082
|
+
@property
|
|
20083
|
+
def Component(self):
|
|
20084
|
+
"""master组件名称
|
|
20085
|
+
:rtype: str
|
|
20086
|
+
"""
|
|
20087
|
+
return self._Component
|
|
20088
|
+
|
|
20089
|
+
@Component.setter
|
|
20090
|
+
def Component(self, Component):
|
|
20091
|
+
self._Component = Component
|
|
20092
|
+
|
|
20093
|
+
@property
|
|
20094
|
+
def Status(self):
|
|
20095
|
+
"""master组件状态,三种状态:running、updating、shutdown
|
|
20096
|
+
:rtype: str
|
|
20097
|
+
"""
|
|
20098
|
+
return self._Status
|
|
20099
|
+
|
|
20100
|
+
@Status.setter
|
|
20101
|
+
def Status(self, Status):
|
|
20102
|
+
self._Status = Status
|
|
20103
|
+
|
|
20104
|
+
@property
|
|
20105
|
+
def RequestId(self):
|
|
20106
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
20107
|
+
:rtype: str
|
|
20108
|
+
"""
|
|
20109
|
+
return self._RequestId
|
|
20110
|
+
|
|
20111
|
+
@RequestId.setter
|
|
20112
|
+
def RequestId(self, RequestId):
|
|
20113
|
+
self._RequestId = RequestId
|
|
20114
|
+
|
|
20115
|
+
|
|
20116
|
+
def _deserialize(self, params):
|
|
20117
|
+
self._Component = params.get("Component")
|
|
20118
|
+
self._Status = params.get("Status")
|
|
20119
|
+
self._RequestId = params.get("RequestId")
|
|
20120
|
+
|
|
20121
|
+
|
|
20013
20122
|
class DescribeOSImagesRequest(AbstractModel):
|
|
20014
20123
|
"""DescribeOSImages请求参数结构体
|
|
20015
20124
|
|
|
@@ -34492,6 +34601,115 @@ class ModifyClusterVirtualNodePoolResponse(AbstractModel):
|
|
|
34492
34601
|
self._RequestId = params.get("RequestId")
|
|
34493
34602
|
|
|
34494
34603
|
|
|
34604
|
+
class ModifyMasterComponentRequest(AbstractModel):
|
|
34605
|
+
"""ModifyMasterComponent请求参数结构体
|
|
34606
|
+
|
|
34607
|
+
"""
|
|
34608
|
+
|
|
34609
|
+
def __init__(self):
|
|
34610
|
+
r"""
|
|
34611
|
+
:param _ClusterId: 集群ID
|
|
34612
|
+
:type ClusterId: str
|
|
34613
|
+
:param _Component: master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager
|
|
34614
|
+
:type Component: str
|
|
34615
|
+
:param _Operation: 停机或恢复,值只能为:shutdown或restore
|
|
34616
|
+
:type Operation: str
|
|
34617
|
+
:param _DryRun: 为true时,不真正执行停机或恢复操作
|
|
34618
|
+
:type DryRun: bool
|
|
34619
|
+
"""
|
|
34620
|
+
self._ClusterId = None
|
|
34621
|
+
self._Component = None
|
|
34622
|
+
self._Operation = None
|
|
34623
|
+
self._DryRun = None
|
|
34624
|
+
|
|
34625
|
+
@property
|
|
34626
|
+
def ClusterId(self):
|
|
34627
|
+
"""集群ID
|
|
34628
|
+
:rtype: str
|
|
34629
|
+
"""
|
|
34630
|
+
return self._ClusterId
|
|
34631
|
+
|
|
34632
|
+
@ClusterId.setter
|
|
34633
|
+
def ClusterId(self, ClusterId):
|
|
34634
|
+
self._ClusterId = ClusterId
|
|
34635
|
+
|
|
34636
|
+
@property
|
|
34637
|
+
def Component(self):
|
|
34638
|
+
"""master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager
|
|
34639
|
+
:rtype: str
|
|
34640
|
+
"""
|
|
34641
|
+
return self._Component
|
|
34642
|
+
|
|
34643
|
+
@Component.setter
|
|
34644
|
+
def Component(self, Component):
|
|
34645
|
+
self._Component = Component
|
|
34646
|
+
|
|
34647
|
+
@property
|
|
34648
|
+
def Operation(self):
|
|
34649
|
+
"""停机或恢复,值只能为:shutdown或restore
|
|
34650
|
+
:rtype: str
|
|
34651
|
+
"""
|
|
34652
|
+
return self._Operation
|
|
34653
|
+
|
|
34654
|
+
@Operation.setter
|
|
34655
|
+
def Operation(self, Operation):
|
|
34656
|
+
self._Operation = Operation
|
|
34657
|
+
|
|
34658
|
+
@property
|
|
34659
|
+
def DryRun(self):
|
|
34660
|
+
"""为true时,不真正执行停机或恢复操作
|
|
34661
|
+
:rtype: bool
|
|
34662
|
+
"""
|
|
34663
|
+
return self._DryRun
|
|
34664
|
+
|
|
34665
|
+
@DryRun.setter
|
|
34666
|
+
def DryRun(self, DryRun):
|
|
34667
|
+
self._DryRun = DryRun
|
|
34668
|
+
|
|
34669
|
+
|
|
34670
|
+
def _deserialize(self, params):
|
|
34671
|
+
self._ClusterId = params.get("ClusterId")
|
|
34672
|
+
self._Component = params.get("Component")
|
|
34673
|
+
self._Operation = params.get("Operation")
|
|
34674
|
+
self._DryRun = params.get("DryRun")
|
|
34675
|
+
memeber_set = set(params.keys())
|
|
34676
|
+
for name, value in vars(self).items():
|
|
34677
|
+
property_name = name[1:]
|
|
34678
|
+
if property_name in memeber_set:
|
|
34679
|
+
memeber_set.remove(property_name)
|
|
34680
|
+
if len(memeber_set) > 0:
|
|
34681
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
34682
|
+
|
|
34683
|
+
|
|
34684
|
+
|
|
34685
|
+
class ModifyMasterComponentResponse(AbstractModel):
|
|
34686
|
+
"""ModifyMasterComponent返回参数结构体
|
|
34687
|
+
|
|
34688
|
+
"""
|
|
34689
|
+
|
|
34690
|
+
def __init__(self):
|
|
34691
|
+
r"""
|
|
34692
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
34693
|
+
:type RequestId: str
|
|
34694
|
+
"""
|
|
34695
|
+
self._RequestId = None
|
|
34696
|
+
|
|
34697
|
+
@property
|
|
34698
|
+
def RequestId(self):
|
|
34699
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
34700
|
+
:rtype: str
|
|
34701
|
+
"""
|
|
34702
|
+
return self._RequestId
|
|
34703
|
+
|
|
34704
|
+
@RequestId.setter
|
|
34705
|
+
def RequestId(self, RequestId):
|
|
34706
|
+
self._RequestId = RequestId
|
|
34707
|
+
|
|
34708
|
+
|
|
34709
|
+
def _deserialize(self, params):
|
|
34710
|
+
self._RequestId = params.get("RequestId")
|
|
34711
|
+
|
|
34712
|
+
|
|
34495
34713
|
class ModifyNodePoolDesiredCapacityAboutAsgRequest(AbstractModel):
|
|
34496
34714
|
"""ModifyNodePoolDesiredCapacityAboutAsg请求参数结构体
|
|
34497
34715
|
|
|
@@ -2855,6 +2855,29 @@ class TkeClient(AbstractClient):
|
|
|
2855
2855
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2856
2856
|
|
|
2857
2857
|
|
|
2858
|
+
def DescribeMasterComponent(self, request):
|
|
2859
|
+
"""进行master组件停机故障演练时,获取master组件运行状态,支持kube-apiserver、kube-scheduler、kube-controller-manager
|
|
2860
|
+
|
|
2861
|
+
:param request: Request instance for DescribeMasterComponent.
|
|
2862
|
+
:type request: :class:`tencentcloud.tke.v20180525.models.DescribeMasterComponentRequest`
|
|
2863
|
+
:rtype: :class:`tencentcloud.tke.v20180525.models.DescribeMasterComponentResponse`
|
|
2864
|
+
|
|
2865
|
+
"""
|
|
2866
|
+
try:
|
|
2867
|
+
params = request._serialize()
|
|
2868
|
+
headers = request.headers
|
|
2869
|
+
body = self.call("DescribeMasterComponent", params, headers=headers)
|
|
2870
|
+
response = json.loads(body)
|
|
2871
|
+
model = models.DescribeMasterComponentResponse()
|
|
2872
|
+
model._deserialize(response["Response"])
|
|
2873
|
+
return model
|
|
2874
|
+
except Exception as e:
|
|
2875
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2876
|
+
raise
|
|
2877
|
+
else:
|
|
2878
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2879
|
+
|
|
2880
|
+
|
|
2858
2881
|
def DescribeOSImages(self, request):
|
|
2859
2882
|
"""获取OS聚合信息
|
|
2860
2883
|
|
|
@@ -4465,6 +4488,29 @@ class TkeClient(AbstractClient):
|
|
|
4465
4488
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4466
4489
|
|
|
4467
4490
|
|
|
4491
|
+
def ModifyMasterComponent(self, request):
|
|
4492
|
+
"""修改master组件,支持kube-apiserver、kube-scheduler、kube-controller-manager副本数调整为0和恢复
|
|
4493
|
+
|
|
4494
|
+
:param request: Request instance for ModifyMasterComponent.
|
|
4495
|
+
:type request: :class:`tencentcloud.tke.v20180525.models.ModifyMasterComponentRequest`
|
|
4496
|
+
:rtype: :class:`tencentcloud.tke.v20180525.models.ModifyMasterComponentResponse`
|
|
4497
|
+
|
|
4498
|
+
"""
|
|
4499
|
+
try:
|
|
4500
|
+
params = request._serialize()
|
|
4501
|
+
headers = request.headers
|
|
4502
|
+
body = self.call("ModifyMasterComponent", params, headers=headers)
|
|
4503
|
+
response = json.loads(body)
|
|
4504
|
+
model = models.ModifyMasterComponentResponse()
|
|
4505
|
+
model._deserialize(response["Response"])
|
|
4506
|
+
return model
|
|
4507
|
+
except Exception as e:
|
|
4508
|
+
if isinstance(e, TencentCloudSDKException):
|
|
4509
|
+
raise
|
|
4510
|
+
else:
|
|
4511
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4512
|
+
|
|
4513
|
+
|
|
4468
4514
|
def ModifyNodePoolDesiredCapacityAboutAsg(self, request):
|
|
4469
4515
|
"""修改节点池关联伸缩组的期望实例数
|
|
4470
4516
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1406
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1398
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|