tencentcloud-sdk-python-ckafka 3.1.132__tar.gz → 3.1.158__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_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/setup.py +1 -1
- {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/tencentcloud/ckafka/v20190819/ckafka_client.py +92 -0
- {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/tencentcloud/ckafka/v20190819/ckafka_client_async.py +72 -0
- {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/tencentcloud/ckafka/v20190819/models.py +1503 -210
- {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/tencentcloud_sdk_python_ckafka.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_ckafka-3.1.158/tencentcloud_sdk_python_ckafka.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ckafka-3.1.132/tencentcloud_sdk_python_ckafka.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/README.rst +0 -0
- {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/tencentcloud/ckafka/__init__.py +0 -0
- {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/tencentcloud/ckafka/v20190819/__init__.py +0 -0
- {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/tencentcloud/ckafka/v20190819/errorcodes.py +0 -0
- {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/tencentcloud_sdk_python_ckafka.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/tencentcloud_sdk_python_ckafka.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.158}/tencentcloud_sdk_python_ckafka.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ckafka
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.158
|
|
4
4
|
Summary: Tencent Cloud Ckafka 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.158
|
|
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-ckafka',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.158,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Ckafka SDK for Python',
|
|
@@ -509,6 +509,29 @@ class CkafkaClient(AbstractClient):
|
|
|
509
509
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
510
510
|
|
|
511
511
|
|
|
512
|
+
def CreateThrottleRule(self, request):
|
|
513
|
+
r"""实例限流规则相关接口
|
|
514
|
+
|
|
515
|
+
:param request: Request instance for CreateThrottleRule.
|
|
516
|
+
:type request: :class:`tencentcloud.ckafka.v20190819.models.CreateThrottleRuleRequest`
|
|
517
|
+
:rtype: :class:`tencentcloud.ckafka.v20190819.models.CreateThrottleRuleResponse`
|
|
518
|
+
|
|
519
|
+
"""
|
|
520
|
+
try:
|
|
521
|
+
params = request._serialize()
|
|
522
|
+
headers = request.headers
|
|
523
|
+
body = self.call("CreateThrottleRule", params, headers=headers)
|
|
524
|
+
response = json.loads(body)
|
|
525
|
+
model = models.CreateThrottleRuleResponse()
|
|
526
|
+
model._deserialize(response["Response"])
|
|
527
|
+
return model
|
|
528
|
+
except Exception as e:
|
|
529
|
+
if isinstance(e, TencentCloudSDKException):
|
|
530
|
+
raise
|
|
531
|
+
else:
|
|
532
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
533
|
+
|
|
534
|
+
|
|
512
535
|
def CreateToken(self, request):
|
|
513
536
|
r"""创建最高权限的token
|
|
514
537
|
|
|
@@ -854,6 +877,29 @@ class CkafkaClient(AbstractClient):
|
|
|
854
877
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
855
878
|
|
|
856
879
|
|
|
880
|
+
def DeleteThrottleRule(self, request):
|
|
881
|
+
r"""删除实例限流规则
|
|
882
|
+
|
|
883
|
+
:param request: Request instance for DeleteThrottleRule.
|
|
884
|
+
:type request: :class:`tencentcloud.ckafka.v20190819.models.DeleteThrottleRuleRequest`
|
|
885
|
+
:rtype: :class:`tencentcloud.ckafka.v20190819.models.DeleteThrottleRuleResponse`
|
|
886
|
+
|
|
887
|
+
"""
|
|
888
|
+
try:
|
|
889
|
+
params = request._serialize()
|
|
890
|
+
headers = request.headers
|
|
891
|
+
body = self.call("DeleteThrottleRule", params, headers=headers)
|
|
892
|
+
response = json.loads(body)
|
|
893
|
+
model = models.DeleteThrottleRuleResponse()
|
|
894
|
+
model._deserialize(response["Response"])
|
|
895
|
+
return model
|
|
896
|
+
except Exception as e:
|
|
897
|
+
if isinstance(e, TencentCloudSDKException):
|
|
898
|
+
raise
|
|
899
|
+
else:
|
|
900
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
901
|
+
|
|
902
|
+
|
|
857
903
|
def DeleteTopic(self, request):
|
|
858
904
|
r"""删除ckafka主题
|
|
859
905
|
|
|
@@ -1498,6 +1544,29 @@ class CkafkaClient(AbstractClient):
|
|
|
1498
1544
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1499
1545
|
|
|
1500
1546
|
|
|
1547
|
+
def DescribeThrottleRules(self, request):
|
|
1548
|
+
r"""获取实例限流规则列表
|
|
1549
|
+
|
|
1550
|
+
:param request: Request instance for DescribeThrottleRules.
|
|
1551
|
+
:type request: :class:`tencentcloud.ckafka.v20190819.models.DescribeThrottleRulesRequest`
|
|
1552
|
+
:rtype: :class:`tencentcloud.ckafka.v20190819.models.DescribeThrottleRulesResponse`
|
|
1553
|
+
|
|
1554
|
+
"""
|
|
1555
|
+
try:
|
|
1556
|
+
params = request._serialize()
|
|
1557
|
+
headers = request.headers
|
|
1558
|
+
body = self.call("DescribeThrottleRules", params, headers=headers)
|
|
1559
|
+
response = json.loads(body)
|
|
1560
|
+
model = models.DescribeThrottleRulesResponse()
|
|
1561
|
+
model._deserialize(response["Response"])
|
|
1562
|
+
return model
|
|
1563
|
+
except Exception as e:
|
|
1564
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1565
|
+
raise
|
|
1566
|
+
else:
|
|
1567
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1568
|
+
|
|
1569
|
+
|
|
1501
1570
|
def DescribeTopic(self, request):
|
|
1502
1571
|
r"""接口请求域名:https://ckafka.tencentcloudapi.com
|
|
1503
1572
|
本接口(DescribeTopic)用于在用户获取消息队列 CKafka 实例的主题列表
|
|
@@ -2120,6 +2189,29 @@ class CkafkaClient(AbstractClient):
|
|
|
2120
2189
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2121
2190
|
|
|
2122
2191
|
|
|
2192
|
+
def ModifyThrottleRule(self, request):
|
|
2193
|
+
r"""修改限流规则接口
|
|
2194
|
+
|
|
2195
|
+
:param request: Request instance for ModifyThrottleRule.
|
|
2196
|
+
:type request: :class:`tencentcloud.ckafka.v20190819.models.ModifyThrottleRuleRequest`
|
|
2197
|
+
:rtype: :class:`tencentcloud.ckafka.v20190819.models.ModifyThrottleRuleResponse`
|
|
2198
|
+
|
|
2199
|
+
"""
|
|
2200
|
+
try:
|
|
2201
|
+
params = request._serialize()
|
|
2202
|
+
headers = request.headers
|
|
2203
|
+
body = self.call("ModifyThrottleRule", params, headers=headers)
|
|
2204
|
+
response = json.loads(body)
|
|
2205
|
+
model = models.ModifyThrottleRuleResponse()
|
|
2206
|
+
model._deserialize(response["Response"])
|
|
2207
|
+
return model
|
|
2208
|
+
except Exception as e:
|
|
2209
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2210
|
+
raise
|
|
2211
|
+
else:
|
|
2212
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2213
|
+
|
|
2214
|
+
|
|
2123
2215
|
def ModifyTopicAttributes(self, request):
|
|
2124
2216
|
r"""本接口用于修改主题属性。
|
|
2125
2217
|
|
|
@@ -403,6 +403,24 @@ class CkafkaClient(AbstractClient):
|
|
|
403
403
|
|
|
404
404
|
return await self.call_and_deserialize(**kwargs)
|
|
405
405
|
|
|
406
|
+
async def CreateThrottleRule(
|
|
407
|
+
self,
|
|
408
|
+
request: models.CreateThrottleRuleRequest,
|
|
409
|
+
opts: Dict = None,
|
|
410
|
+
) -> models.CreateThrottleRuleResponse:
|
|
411
|
+
"""
|
|
412
|
+
实例限流规则相关接口
|
|
413
|
+
"""
|
|
414
|
+
|
|
415
|
+
kwargs = {}
|
|
416
|
+
kwargs["action"] = "CreateThrottleRule"
|
|
417
|
+
kwargs["params"] = request._serialize()
|
|
418
|
+
kwargs["resp_cls"] = models.CreateThrottleRuleResponse
|
|
419
|
+
kwargs["headers"] = request.headers
|
|
420
|
+
kwargs["opts"] = opts or {}
|
|
421
|
+
|
|
422
|
+
return await self.call_and_deserialize(**kwargs)
|
|
423
|
+
|
|
406
424
|
async def CreateToken(
|
|
407
425
|
self,
|
|
408
426
|
request: models.CreateTokenRequest,
|
|
@@ -673,6 +691,24 @@ class CkafkaClient(AbstractClient):
|
|
|
673
691
|
|
|
674
692
|
return await self.call_and_deserialize(**kwargs)
|
|
675
693
|
|
|
694
|
+
async def DeleteThrottleRule(
|
|
695
|
+
self,
|
|
696
|
+
request: models.DeleteThrottleRuleRequest,
|
|
697
|
+
opts: Dict = None,
|
|
698
|
+
) -> models.DeleteThrottleRuleResponse:
|
|
699
|
+
"""
|
|
700
|
+
删除实例限流规则
|
|
701
|
+
"""
|
|
702
|
+
|
|
703
|
+
kwargs = {}
|
|
704
|
+
kwargs["action"] = "DeleteThrottleRule"
|
|
705
|
+
kwargs["params"] = request._serialize()
|
|
706
|
+
kwargs["resp_cls"] = models.DeleteThrottleRuleResponse
|
|
707
|
+
kwargs["headers"] = request.headers
|
|
708
|
+
kwargs["opts"] = opts or {}
|
|
709
|
+
|
|
710
|
+
return await self.call_and_deserialize(**kwargs)
|
|
711
|
+
|
|
676
712
|
async def DeleteTopic(
|
|
677
713
|
self,
|
|
678
714
|
request: models.DeleteTopicRequest,
|
|
@@ -1177,6 +1213,24 @@ class CkafkaClient(AbstractClient):
|
|
|
1177
1213
|
|
|
1178
1214
|
return await self.call_and_deserialize(**kwargs)
|
|
1179
1215
|
|
|
1216
|
+
async def DescribeThrottleRules(
|
|
1217
|
+
self,
|
|
1218
|
+
request: models.DescribeThrottleRulesRequest,
|
|
1219
|
+
opts: Dict = None,
|
|
1220
|
+
) -> models.DescribeThrottleRulesResponse:
|
|
1221
|
+
"""
|
|
1222
|
+
获取实例限流规则列表
|
|
1223
|
+
"""
|
|
1224
|
+
|
|
1225
|
+
kwargs = {}
|
|
1226
|
+
kwargs["action"] = "DescribeThrottleRules"
|
|
1227
|
+
kwargs["params"] = request._serialize()
|
|
1228
|
+
kwargs["resp_cls"] = models.DescribeThrottleRulesResponse
|
|
1229
|
+
kwargs["headers"] = request.headers
|
|
1230
|
+
kwargs["opts"] = opts or {}
|
|
1231
|
+
|
|
1232
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1233
|
+
|
|
1180
1234
|
async def DescribeTopic(
|
|
1181
1235
|
self,
|
|
1182
1236
|
request: models.DescribeTopicRequest,
|
|
@@ -1664,6 +1718,24 @@ class CkafkaClient(AbstractClient):
|
|
|
1664
1718
|
|
|
1665
1719
|
return await self.call_and_deserialize(**kwargs)
|
|
1666
1720
|
|
|
1721
|
+
async def ModifyThrottleRule(
|
|
1722
|
+
self,
|
|
1723
|
+
request: models.ModifyThrottleRuleRequest,
|
|
1724
|
+
opts: Dict = None,
|
|
1725
|
+
) -> models.ModifyThrottleRuleResponse:
|
|
1726
|
+
"""
|
|
1727
|
+
修改限流规则接口
|
|
1728
|
+
"""
|
|
1729
|
+
|
|
1730
|
+
kwargs = {}
|
|
1731
|
+
kwargs["action"] = "ModifyThrottleRule"
|
|
1732
|
+
kwargs["params"] = request._serialize()
|
|
1733
|
+
kwargs["resp_cls"] = models.ModifyThrottleRuleResponse
|
|
1734
|
+
kwargs["headers"] = request.headers
|
|
1735
|
+
kwargs["opts"] = opts or {}
|
|
1736
|
+
|
|
1737
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1738
|
+
|
|
1667
1739
|
async def ModifyTopicAttributes(
|
|
1668
1740
|
self,
|
|
1669
1741
|
request: models.ModifyTopicAttributesRequest,
|