tencentcloud-sdk-python-tke 3.0.1035__tar.gz → 3.0.1048__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.1035 → tencentcloud-sdk-python-tke-3.0.1048}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-tke-3.0.1035 → tencentcloud-sdk-python-tke-3.0.1048}/setup.py +1 -1
- {tencentcloud-sdk-python-tke-3.0.1035 → tencentcloud-sdk-python-tke-3.0.1048}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-tke-3.0.1035 → tencentcloud-sdk-python-tke-3.0.1048}/tencentcloud/tke/v20180525/errorcodes.py +3 -0
- {tencentcloud-sdk-python-tke-3.0.1035 → tencentcloud-sdk-python-tke-3.0.1048}/tencentcloud/tke/v20180525/models.py +280 -0
- {tencentcloud-sdk-python-tke-3.0.1035 → tencentcloud-sdk-python-tke-3.0.1048}/tencentcloud/tke/v20180525/tke_client.py +23 -0
- {tencentcloud-sdk-python-tke-3.0.1035 → tencentcloud-sdk-python-tke-3.0.1048}/tencentcloud_sdk_python_tke.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-tke-3.0.1048/tencentcloud_sdk_python_tke.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-tke-3.0.1035/tencentcloud_sdk_python_tke.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-tke-3.0.1035 → tencentcloud-sdk-python-tke-3.0.1048}/README.rst +0 -0
- {tencentcloud-sdk-python-tke-3.0.1035 → tencentcloud-sdk-python-tke-3.0.1048}/setup.cfg +0 -0
- {tencentcloud-sdk-python-tke-3.0.1035 → tencentcloud-sdk-python-tke-3.0.1048}/tencentcloud/tke/__init__.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1035 → tencentcloud-sdk-python-tke-3.0.1048}/tencentcloud/tke/v20180525/__init__.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1035 → tencentcloud-sdk-python-tke-3.0.1048}/tencentcloud_sdk_python_tke.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-tke-3.0.1035 → tencentcloud-sdk-python-tke-3.0.1048}/tencentcloud_sdk_python_tke.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-tke-3.0.1035 → tencentcloud-sdk-python-tke-3.0.1048}/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.1048"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Tke SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -185,6 +185,9 @@ FAILEDOPERATION_RBACFORBIDDEN = 'FailedOperation.RBACForbidden'
|
|
|
185
185
|
# 记录没有发现。
|
|
186
186
|
FAILEDOPERATION_RECORDNOTFOUND = 'FailedOperation.RecordNotFound'
|
|
187
187
|
|
|
188
|
+
# tag错误
|
|
189
|
+
FAILEDOPERATION_TAGCOMMON = 'FailedOperation.TagCommon'
|
|
190
|
+
|
|
188
191
|
# 已有相同任务执行中。
|
|
189
192
|
FAILEDOPERATION_TASKALREADYRUNNING = 'FailedOperation.TaskAlreadyRunning'
|
|
190
193
|
|
|
@@ -16461,6 +16461,94 @@ class DescribeImagesResponse(AbstractModel):
|
|
|
16461
16461
|
self._RequestId = params.get("RequestId")
|
|
16462
16462
|
|
|
16463
16463
|
|
|
16464
|
+
class DescribeLogSwitchesRequest(AbstractModel):
|
|
16465
|
+
"""DescribeLogSwitches请求参数结构体
|
|
16466
|
+
|
|
16467
|
+
"""
|
|
16468
|
+
|
|
16469
|
+
def __init__(self):
|
|
16470
|
+
r"""
|
|
16471
|
+
:param _ClusterIds: 集群ID列表
|
|
16472
|
+
:type ClusterIds: list of str
|
|
16473
|
+
:param _ClusterType: 集群类型,tke 或eks
|
|
16474
|
+
:type ClusterType: str
|
|
16475
|
+
"""
|
|
16476
|
+
self._ClusterIds = None
|
|
16477
|
+
self._ClusterType = None
|
|
16478
|
+
|
|
16479
|
+
@property
|
|
16480
|
+
def ClusterIds(self):
|
|
16481
|
+
return self._ClusterIds
|
|
16482
|
+
|
|
16483
|
+
@ClusterIds.setter
|
|
16484
|
+
def ClusterIds(self, ClusterIds):
|
|
16485
|
+
self._ClusterIds = ClusterIds
|
|
16486
|
+
|
|
16487
|
+
@property
|
|
16488
|
+
def ClusterType(self):
|
|
16489
|
+
return self._ClusterType
|
|
16490
|
+
|
|
16491
|
+
@ClusterType.setter
|
|
16492
|
+
def ClusterType(self, ClusterType):
|
|
16493
|
+
self._ClusterType = ClusterType
|
|
16494
|
+
|
|
16495
|
+
|
|
16496
|
+
def _deserialize(self, params):
|
|
16497
|
+
self._ClusterIds = params.get("ClusterIds")
|
|
16498
|
+
self._ClusterType = params.get("ClusterType")
|
|
16499
|
+
memeber_set = set(params.keys())
|
|
16500
|
+
for name, value in vars(self).items():
|
|
16501
|
+
property_name = name[1:]
|
|
16502
|
+
if property_name in memeber_set:
|
|
16503
|
+
memeber_set.remove(property_name)
|
|
16504
|
+
if len(memeber_set) > 0:
|
|
16505
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16506
|
+
|
|
16507
|
+
|
|
16508
|
+
|
|
16509
|
+
class DescribeLogSwitchesResponse(AbstractModel):
|
|
16510
|
+
"""DescribeLogSwitches返回参数结构体
|
|
16511
|
+
|
|
16512
|
+
"""
|
|
16513
|
+
|
|
16514
|
+
def __init__(self):
|
|
16515
|
+
r"""
|
|
16516
|
+
:param _SwitchSet: 集群日志开关集合
|
|
16517
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16518
|
+
:type SwitchSet: list of Switch
|
|
16519
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
16520
|
+
:type RequestId: str
|
|
16521
|
+
"""
|
|
16522
|
+
self._SwitchSet = None
|
|
16523
|
+
self._RequestId = None
|
|
16524
|
+
|
|
16525
|
+
@property
|
|
16526
|
+
def SwitchSet(self):
|
|
16527
|
+
return self._SwitchSet
|
|
16528
|
+
|
|
16529
|
+
@SwitchSet.setter
|
|
16530
|
+
def SwitchSet(self, SwitchSet):
|
|
16531
|
+
self._SwitchSet = SwitchSet
|
|
16532
|
+
|
|
16533
|
+
@property
|
|
16534
|
+
def RequestId(self):
|
|
16535
|
+
return self._RequestId
|
|
16536
|
+
|
|
16537
|
+
@RequestId.setter
|
|
16538
|
+
def RequestId(self, RequestId):
|
|
16539
|
+
self._RequestId = RequestId
|
|
16540
|
+
|
|
16541
|
+
|
|
16542
|
+
def _deserialize(self, params):
|
|
16543
|
+
if params.get("SwitchSet") is not None:
|
|
16544
|
+
self._SwitchSet = []
|
|
16545
|
+
for item in params.get("SwitchSet"):
|
|
16546
|
+
obj = Switch()
|
|
16547
|
+
obj._deserialize(item)
|
|
16548
|
+
self._SwitchSet.append(obj)
|
|
16549
|
+
self._RequestId = params.get("RequestId")
|
|
16550
|
+
|
|
16551
|
+
|
|
16464
16552
|
class DescribePodDeductionRateRequest(AbstractModel):
|
|
16465
16553
|
"""DescribePodDeductionRate请求参数结构体
|
|
16466
16554
|
|
|
@@ -35839,6 +35927,198 @@ class SuperNodeResource(AbstractModel):
|
|
|
35839
35927
|
|
|
35840
35928
|
|
|
35841
35929
|
|
|
35930
|
+
class Switch(AbstractModel):
|
|
35931
|
+
"""集群日志开关集合
|
|
35932
|
+
|
|
35933
|
+
"""
|
|
35934
|
+
|
|
35935
|
+
def __init__(self):
|
|
35936
|
+
r"""
|
|
35937
|
+
:param _ClusterId: 集群ID
|
|
35938
|
+
:type ClusterId: str
|
|
35939
|
+
:param _Audit: 审计开关的详细信息
|
|
35940
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35941
|
+
:type Audit: :class:`tencentcloud.tke.v20180525.models.SwitchInfo`
|
|
35942
|
+
:param _Event: 事件开关的详细信息
|
|
35943
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35944
|
+
:type Event: :class:`tencentcloud.tke.v20180525.models.SwitchInfo`
|
|
35945
|
+
:param _Log: 普通日志的详细信息
|
|
35946
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35947
|
+
:type Log: :class:`tencentcloud.tke.v20180525.models.SwitchInfo`
|
|
35948
|
+
:param _MasterLog: master 日志详细信息
|
|
35949
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35950
|
+
:type MasterLog: :class:`tencentcloud.tke.v20180525.models.SwitchInfo`
|
|
35951
|
+
"""
|
|
35952
|
+
self._ClusterId = None
|
|
35953
|
+
self._Audit = None
|
|
35954
|
+
self._Event = None
|
|
35955
|
+
self._Log = None
|
|
35956
|
+
self._MasterLog = None
|
|
35957
|
+
|
|
35958
|
+
@property
|
|
35959
|
+
def ClusterId(self):
|
|
35960
|
+
return self._ClusterId
|
|
35961
|
+
|
|
35962
|
+
@ClusterId.setter
|
|
35963
|
+
def ClusterId(self, ClusterId):
|
|
35964
|
+
self._ClusterId = ClusterId
|
|
35965
|
+
|
|
35966
|
+
@property
|
|
35967
|
+
def Audit(self):
|
|
35968
|
+
return self._Audit
|
|
35969
|
+
|
|
35970
|
+
@Audit.setter
|
|
35971
|
+
def Audit(self, Audit):
|
|
35972
|
+
self._Audit = Audit
|
|
35973
|
+
|
|
35974
|
+
@property
|
|
35975
|
+
def Event(self):
|
|
35976
|
+
return self._Event
|
|
35977
|
+
|
|
35978
|
+
@Event.setter
|
|
35979
|
+
def Event(self, Event):
|
|
35980
|
+
self._Event = Event
|
|
35981
|
+
|
|
35982
|
+
@property
|
|
35983
|
+
def Log(self):
|
|
35984
|
+
return self._Log
|
|
35985
|
+
|
|
35986
|
+
@Log.setter
|
|
35987
|
+
def Log(self, Log):
|
|
35988
|
+
self._Log = Log
|
|
35989
|
+
|
|
35990
|
+
@property
|
|
35991
|
+
def MasterLog(self):
|
|
35992
|
+
return self._MasterLog
|
|
35993
|
+
|
|
35994
|
+
@MasterLog.setter
|
|
35995
|
+
def MasterLog(self, MasterLog):
|
|
35996
|
+
self._MasterLog = MasterLog
|
|
35997
|
+
|
|
35998
|
+
|
|
35999
|
+
def _deserialize(self, params):
|
|
36000
|
+
self._ClusterId = params.get("ClusterId")
|
|
36001
|
+
if params.get("Audit") is not None:
|
|
36002
|
+
self._Audit = SwitchInfo()
|
|
36003
|
+
self._Audit._deserialize(params.get("Audit"))
|
|
36004
|
+
if params.get("Event") is not None:
|
|
36005
|
+
self._Event = SwitchInfo()
|
|
36006
|
+
self._Event._deserialize(params.get("Event"))
|
|
36007
|
+
if params.get("Log") is not None:
|
|
36008
|
+
self._Log = SwitchInfo()
|
|
36009
|
+
self._Log._deserialize(params.get("Log"))
|
|
36010
|
+
if params.get("MasterLog") is not None:
|
|
36011
|
+
self._MasterLog = SwitchInfo()
|
|
36012
|
+
self._MasterLog._deserialize(params.get("MasterLog"))
|
|
36013
|
+
memeber_set = set(params.keys())
|
|
36014
|
+
for name, value in vars(self).items():
|
|
36015
|
+
property_name = name[1:]
|
|
36016
|
+
if property_name in memeber_set:
|
|
36017
|
+
memeber_set.remove(property_name)
|
|
36018
|
+
if len(memeber_set) > 0:
|
|
36019
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
36020
|
+
|
|
36021
|
+
|
|
36022
|
+
|
|
36023
|
+
class SwitchInfo(AbstractModel):
|
|
36024
|
+
"""日志开关详细信息
|
|
36025
|
+
|
|
36026
|
+
"""
|
|
36027
|
+
|
|
36028
|
+
def __init__(self):
|
|
36029
|
+
r"""
|
|
36030
|
+
:param _Enable: 开启标识符 true代表开启
|
|
36031
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
36032
|
+
:type Enable: bool
|
|
36033
|
+
:param _LogsetId: CLS日志集ID
|
|
36034
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
36035
|
+
:type LogsetId: str
|
|
36036
|
+
:param _TopicId: CLS日志主题ID
|
|
36037
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
36038
|
+
:type TopicId: str
|
|
36039
|
+
:param _Version: 当前log-agent版本
|
|
36040
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
36041
|
+
:type Version: str
|
|
36042
|
+
:param _UpgradeAble: 是否可升级
|
|
36043
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
36044
|
+
:type UpgradeAble: bool
|
|
36045
|
+
:param _TopicRegion: CLS日志主题所属region
|
|
36046
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
36047
|
+
:type TopicRegion: str
|
|
36048
|
+
"""
|
|
36049
|
+
self._Enable = None
|
|
36050
|
+
self._LogsetId = None
|
|
36051
|
+
self._TopicId = None
|
|
36052
|
+
self._Version = None
|
|
36053
|
+
self._UpgradeAble = None
|
|
36054
|
+
self._TopicRegion = None
|
|
36055
|
+
|
|
36056
|
+
@property
|
|
36057
|
+
def Enable(self):
|
|
36058
|
+
return self._Enable
|
|
36059
|
+
|
|
36060
|
+
@Enable.setter
|
|
36061
|
+
def Enable(self, Enable):
|
|
36062
|
+
self._Enable = Enable
|
|
36063
|
+
|
|
36064
|
+
@property
|
|
36065
|
+
def LogsetId(self):
|
|
36066
|
+
return self._LogsetId
|
|
36067
|
+
|
|
36068
|
+
@LogsetId.setter
|
|
36069
|
+
def LogsetId(self, LogsetId):
|
|
36070
|
+
self._LogsetId = LogsetId
|
|
36071
|
+
|
|
36072
|
+
@property
|
|
36073
|
+
def TopicId(self):
|
|
36074
|
+
return self._TopicId
|
|
36075
|
+
|
|
36076
|
+
@TopicId.setter
|
|
36077
|
+
def TopicId(self, TopicId):
|
|
36078
|
+
self._TopicId = TopicId
|
|
36079
|
+
|
|
36080
|
+
@property
|
|
36081
|
+
def Version(self):
|
|
36082
|
+
return self._Version
|
|
36083
|
+
|
|
36084
|
+
@Version.setter
|
|
36085
|
+
def Version(self, Version):
|
|
36086
|
+
self._Version = Version
|
|
36087
|
+
|
|
36088
|
+
@property
|
|
36089
|
+
def UpgradeAble(self):
|
|
36090
|
+
return self._UpgradeAble
|
|
36091
|
+
|
|
36092
|
+
@UpgradeAble.setter
|
|
36093
|
+
def UpgradeAble(self, UpgradeAble):
|
|
36094
|
+
self._UpgradeAble = UpgradeAble
|
|
36095
|
+
|
|
36096
|
+
@property
|
|
36097
|
+
def TopicRegion(self):
|
|
36098
|
+
return self._TopicRegion
|
|
36099
|
+
|
|
36100
|
+
@TopicRegion.setter
|
|
36101
|
+
def TopicRegion(self, TopicRegion):
|
|
36102
|
+
self._TopicRegion = TopicRegion
|
|
36103
|
+
|
|
36104
|
+
|
|
36105
|
+
def _deserialize(self, params):
|
|
36106
|
+
self._Enable = params.get("Enable")
|
|
36107
|
+
self._LogsetId = params.get("LogsetId")
|
|
36108
|
+
self._TopicId = params.get("TopicId")
|
|
36109
|
+
self._Version = params.get("Version")
|
|
36110
|
+
self._UpgradeAble = params.get("UpgradeAble")
|
|
36111
|
+
self._TopicRegion = params.get("TopicRegion")
|
|
36112
|
+
memeber_set = set(params.keys())
|
|
36113
|
+
for name, value in vars(self).items():
|
|
36114
|
+
property_name = name[1:]
|
|
36115
|
+
if property_name in memeber_set:
|
|
36116
|
+
memeber_set.remove(property_name)
|
|
36117
|
+
if len(memeber_set) > 0:
|
|
36118
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
36119
|
+
|
|
36120
|
+
|
|
36121
|
+
|
|
35842
36122
|
class SyncPrometheusTempRequest(AbstractModel):
|
|
35843
36123
|
"""SyncPrometheusTemp请求参数结构体
|
|
35844
36124
|
|
|
@@ -2740,6 +2740,29 @@ class TkeClient(AbstractClient):
|
|
|
2740
2740
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2741
2741
|
|
|
2742
2742
|
|
|
2743
|
+
def DescribeLogSwitches(self, request):
|
|
2744
|
+
"""查询集群日志(审计、事件、普通日志)开关列表
|
|
2745
|
+
|
|
2746
|
+
:param request: Request instance for DescribeLogSwitches.
|
|
2747
|
+
:type request: :class:`tencentcloud.tke.v20180525.models.DescribeLogSwitchesRequest`
|
|
2748
|
+
:rtype: :class:`tencentcloud.tke.v20180525.models.DescribeLogSwitchesResponse`
|
|
2749
|
+
|
|
2750
|
+
"""
|
|
2751
|
+
try:
|
|
2752
|
+
params = request._serialize()
|
|
2753
|
+
headers = request.headers
|
|
2754
|
+
body = self.call("DescribeLogSwitches", params, headers=headers)
|
|
2755
|
+
response = json.loads(body)
|
|
2756
|
+
model = models.DescribeLogSwitchesResponse()
|
|
2757
|
+
model._deserialize(response["Response"])
|
|
2758
|
+
return model
|
|
2759
|
+
except Exception as e:
|
|
2760
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2761
|
+
raise
|
|
2762
|
+
else:
|
|
2763
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2764
|
+
|
|
2765
|
+
|
|
2743
2766
|
def DescribePodDeductionRate(self, request):
|
|
2744
2767
|
"""查询各个规格的 Pod 的抵扣率
|
|
2745
2768
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1048
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1035
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|