tencentcloud-sdk-python-ckafka 3.1.132__tar.gz → 3.1.161__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 (17) hide show
  1. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/setup.py +1 -1
  3. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/tencentcloud/ckafka/v20190819/ckafka_client.py +161 -0
  5. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/tencentcloud/ckafka/v20190819/ckafka_client_async.py +126 -0
  6. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/tencentcloud/ckafka/v20190819/models.py +1924 -229
  7. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/tencentcloud_sdk_python_ckafka.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_ckafka-3.1.161/tencentcloud_sdk_python_ckafka.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_ckafka-3.1.132/tencentcloud_sdk_python_ckafka.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/README.rst +0 -0
  11. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/tencentcloud/ckafka/__init__.py +0 -0
  13. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/tencentcloud/ckafka/v20190819/__init__.py +0 -0
  14. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/tencentcloud/ckafka/v20190819/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/tencentcloud_sdk_python_ckafka.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/tencentcloud_sdk_python_ckafka.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_ckafka-3.1.132 → tencentcloud_sdk_python_ckafka-3.1.161}/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.132
3
+ Version: 3.1.161
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.132
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.161
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.132,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.161,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Ckafka SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.132'
17
+ __version__ = '3.1.161'
@@ -26,6 +26,29 @@ class CkafkaClient(AbstractClient):
26
26
  _service = 'ckafka'
27
27
 
28
28
 
29
+ def AssociateRoutesSecurityGroup(self, request):
30
+ r"""绑定路由安全组
31
+
32
+ :param request: Request instance for AssociateRoutesSecurityGroup.
33
+ :type request: :class:`tencentcloud.ckafka.v20190819.models.AssociateRoutesSecurityGroupRequest`
34
+ :rtype: :class:`tencentcloud.ckafka.v20190819.models.AssociateRoutesSecurityGroupResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("AssociateRoutesSecurityGroup", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.AssociateRoutesSecurityGroupResponse()
43
+ model._deserialize(response["Response"])
44
+ return model
45
+ except Exception as e:
46
+ if isinstance(e, TencentCloudSDKException):
47
+ raise
48
+ else:
49
+ raise TencentCloudSDKException(type(e).__name__, str(e))
50
+
51
+
29
52
  def AuthorizeToken(self, request):
30
53
  r"""给实例授权token
31
54
 
@@ -509,6 +532,29 @@ class CkafkaClient(AbstractClient):
509
532
  raise TencentCloudSDKException(type(e).__name__, str(e))
510
533
 
511
534
 
535
+ def CreateThrottleRule(self, request):
536
+ r"""实例限流规则相关接口
537
+
538
+ :param request: Request instance for CreateThrottleRule.
539
+ :type request: :class:`tencentcloud.ckafka.v20190819.models.CreateThrottleRuleRequest`
540
+ :rtype: :class:`tencentcloud.ckafka.v20190819.models.CreateThrottleRuleResponse`
541
+
542
+ """
543
+ try:
544
+ params = request._serialize()
545
+ headers = request.headers
546
+ body = self.call("CreateThrottleRule", params, headers=headers)
547
+ response = json.loads(body)
548
+ model = models.CreateThrottleRuleResponse()
549
+ model._deserialize(response["Response"])
550
+ return model
551
+ except Exception as e:
552
+ if isinstance(e, TencentCloudSDKException):
553
+ raise
554
+ else:
555
+ raise TencentCloudSDKException(type(e).__name__, str(e))
556
+
557
+
512
558
  def CreateToken(self, request):
513
559
  r"""创建最高权限的token
514
560
 
@@ -854,6 +900,29 @@ class CkafkaClient(AbstractClient):
854
900
  raise TencentCloudSDKException(type(e).__name__, str(e))
855
901
 
856
902
 
903
+ def DeleteThrottleRule(self, request):
904
+ r"""删除实例限流规则
905
+
906
+ :param request: Request instance for DeleteThrottleRule.
907
+ :type request: :class:`tencentcloud.ckafka.v20190819.models.DeleteThrottleRuleRequest`
908
+ :rtype: :class:`tencentcloud.ckafka.v20190819.models.DeleteThrottleRuleResponse`
909
+
910
+ """
911
+ try:
912
+ params = request._serialize()
913
+ headers = request.headers
914
+ body = self.call("DeleteThrottleRule", params, headers=headers)
915
+ response = json.loads(body)
916
+ model = models.DeleteThrottleRuleResponse()
917
+ model._deserialize(response["Response"])
918
+ return model
919
+ except Exception as e:
920
+ if isinstance(e, TencentCloudSDKException):
921
+ raise
922
+ else:
923
+ raise TencentCloudSDKException(type(e).__name__, str(e))
924
+
925
+
857
926
  def DeleteTopic(self, request):
858
927
  r"""删除ckafka主题
859
928
 
@@ -1498,6 +1567,29 @@ class CkafkaClient(AbstractClient):
1498
1567
  raise TencentCloudSDKException(type(e).__name__, str(e))
1499
1568
 
1500
1569
 
1570
+ def DescribeThrottleRules(self, request):
1571
+ r"""获取实例限流规则列表
1572
+
1573
+ :param request: Request instance for DescribeThrottleRules.
1574
+ :type request: :class:`tencentcloud.ckafka.v20190819.models.DescribeThrottleRulesRequest`
1575
+ :rtype: :class:`tencentcloud.ckafka.v20190819.models.DescribeThrottleRulesResponse`
1576
+
1577
+ """
1578
+ try:
1579
+ params = request._serialize()
1580
+ headers = request.headers
1581
+ body = self.call("DescribeThrottleRules", params, headers=headers)
1582
+ response = json.loads(body)
1583
+ model = models.DescribeThrottleRulesResponse()
1584
+ model._deserialize(response["Response"])
1585
+ return model
1586
+ except Exception as e:
1587
+ if isinstance(e, TencentCloudSDKException):
1588
+ raise
1589
+ else:
1590
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1591
+
1592
+
1501
1593
  def DescribeTopic(self, request):
1502
1594
  r"""接口请求域名:https://ckafka.tencentcloudapi.com
1503
1595
  本接口(DescribeTopic)用于在用户获取消息队列 CKafka 实例的主题列表
@@ -1706,6 +1798,29 @@ class CkafkaClient(AbstractClient):
1706
1798
  raise TencentCloudSDKException(type(e).__name__, str(e))
1707
1799
 
1708
1800
 
1801
+ def DisassociateRoutesSecurityGroup(self, request):
1802
+ r"""解绑路由安全组
1803
+
1804
+ :param request: Request instance for DisassociateRoutesSecurityGroup.
1805
+ :type request: :class:`tencentcloud.ckafka.v20190819.models.DisassociateRoutesSecurityGroupRequest`
1806
+ :rtype: :class:`tencentcloud.ckafka.v20190819.models.DisassociateRoutesSecurityGroupResponse`
1807
+
1808
+ """
1809
+ try:
1810
+ params = request._serialize()
1811
+ headers = request.headers
1812
+ body = self.call("DisassociateRoutesSecurityGroup", params, headers=headers)
1813
+ response = json.loads(body)
1814
+ model = models.DisassociateRoutesSecurityGroupResponse()
1815
+ model._deserialize(response["Response"])
1816
+ return model
1817
+ except Exception as e:
1818
+ if isinstance(e, TencentCloudSDKException):
1819
+ raise
1820
+ else:
1821
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1822
+
1823
+
1709
1824
  def FetchDatahubMessageByOffset(self, request):
1710
1825
  r"""根据指定offset位置的消息
1711
1826
 
@@ -2097,6 +2212,29 @@ class CkafkaClient(AbstractClient):
2097
2212
  raise TencentCloudSDKException(type(e).__name__, str(e))
2098
2213
 
2099
2214
 
2215
+ def ModifyRouteSecurityGroups(self, request):
2216
+ r"""修改路由安全组关联
2217
+
2218
+ :param request: Request instance for ModifyRouteSecurityGroups.
2219
+ :type request: :class:`tencentcloud.ckafka.v20190819.models.ModifyRouteSecurityGroupsRequest`
2220
+ :rtype: :class:`tencentcloud.ckafka.v20190819.models.ModifyRouteSecurityGroupsResponse`
2221
+
2222
+ """
2223
+ try:
2224
+ params = request._serialize()
2225
+ headers = request.headers
2226
+ body = self.call("ModifyRouteSecurityGroups", params, headers=headers)
2227
+ response = json.loads(body)
2228
+ model = models.ModifyRouteSecurityGroupsResponse()
2229
+ model._deserialize(response["Response"])
2230
+ return model
2231
+ except Exception as e:
2232
+ if isinstance(e, TencentCloudSDKException):
2233
+ raise
2234
+ else:
2235
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2236
+
2237
+
2100
2238
  def ModifyRoutineMaintenanceTask(self, request):
2101
2239
  r"""设置自动化运维属性
2102
2240
 
@@ -2120,6 +2258,29 @@ class CkafkaClient(AbstractClient):
2120
2258
  raise TencentCloudSDKException(type(e).__name__, str(e))
2121
2259
 
2122
2260
 
2261
+ def ModifyThrottleRule(self, request):
2262
+ r"""修改限流规则接口
2263
+
2264
+ :param request: Request instance for ModifyThrottleRule.
2265
+ :type request: :class:`tencentcloud.ckafka.v20190819.models.ModifyThrottleRuleRequest`
2266
+ :rtype: :class:`tencentcloud.ckafka.v20190819.models.ModifyThrottleRuleResponse`
2267
+
2268
+ """
2269
+ try:
2270
+ params = request._serialize()
2271
+ headers = request.headers
2272
+ body = self.call("ModifyThrottleRule", params, headers=headers)
2273
+ response = json.loads(body)
2274
+ model = models.ModifyThrottleRuleResponse()
2275
+ model._deserialize(response["Response"])
2276
+ return model
2277
+ except Exception as e:
2278
+ if isinstance(e, TencentCloudSDKException):
2279
+ raise
2280
+ else:
2281
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2282
+
2283
+
2123
2284
  def ModifyTopicAttributes(self, request):
2124
2285
  r"""本接口用于修改主题属性。
2125
2286
 
@@ -25,6 +25,24 @@ class CkafkaClient(AbstractClient):
25
25
  _endpoint = 'ckafka.tencentcloudapi.com'
26
26
  _service = 'ckafka'
27
27
 
28
+ async def AssociateRoutesSecurityGroup(
29
+ self,
30
+ request: models.AssociateRoutesSecurityGroupRequest,
31
+ opts: Dict = None,
32
+ ) -> models.AssociateRoutesSecurityGroupResponse:
33
+ """
34
+ 绑定路由安全组
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "AssociateRoutesSecurityGroup"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.AssociateRoutesSecurityGroupResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
28
46
  async def AuthorizeToken(
29
47
  self,
30
48
  request: models.AuthorizeTokenRequest,
@@ -403,6 +421,24 @@ class CkafkaClient(AbstractClient):
403
421
 
404
422
  return await self.call_and_deserialize(**kwargs)
405
423
 
424
+ async def CreateThrottleRule(
425
+ self,
426
+ request: models.CreateThrottleRuleRequest,
427
+ opts: Dict = None,
428
+ ) -> models.CreateThrottleRuleResponse:
429
+ """
430
+ 实例限流规则相关接口
431
+ """
432
+
433
+ kwargs = {}
434
+ kwargs["action"] = "CreateThrottleRule"
435
+ kwargs["params"] = request._serialize()
436
+ kwargs["resp_cls"] = models.CreateThrottleRuleResponse
437
+ kwargs["headers"] = request.headers
438
+ kwargs["opts"] = opts or {}
439
+
440
+ return await self.call_and_deserialize(**kwargs)
441
+
406
442
  async def CreateToken(
407
443
  self,
408
444
  request: models.CreateTokenRequest,
@@ -673,6 +709,24 @@ class CkafkaClient(AbstractClient):
673
709
 
674
710
  return await self.call_and_deserialize(**kwargs)
675
711
 
712
+ async def DeleteThrottleRule(
713
+ self,
714
+ request: models.DeleteThrottleRuleRequest,
715
+ opts: Dict = None,
716
+ ) -> models.DeleteThrottleRuleResponse:
717
+ """
718
+ 删除实例限流规则
719
+ """
720
+
721
+ kwargs = {}
722
+ kwargs["action"] = "DeleteThrottleRule"
723
+ kwargs["params"] = request._serialize()
724
+ kwargs["resp_cls"] = models.DeleteThrottleRuleResponse
725
+ kwargs["headers"] = request.headers
726
+ kwargs["opts"] = opts or {}
727
+
728
+ return await self.call_and_deserialize(**kwargs)
729
+
676
730
  async def DeleteTopic(
677
731
  self,
678
732
  request: models.DeleteTopicRequest,
@@ -1177,6 +1231,24 @@ class CkafkaClient(AbstractClient):
1177
1231
 
1178
1232
  return await self.call_and_deserialize(**kwargs)
1179
1233
 
1234
+ async def DescribeThrottleRules(
1235
+ self,
1236
+ request: models.DescribeThrottleRulesRequest,
1237
+ opts: Dict = None,
1238
+ ) -> models.DescribeThrottleRulesResponse:
1239
+ """
1240
+ 获取实例限流规则列表
1241
+ """
1242
+
1243
+ kwargs = {}
1244
+ kwargs["action"] = "DescribeThrottleRules"
1245
+ kwargs["params"] = request._serialize()
1246
+ kwargs["resp_cls"] = models.DescribeThrottleRulesResponse
1247
+ kwargs["headers"] = request.headers
1248
+ kwargs["opts"] = opts or {}
1249
+
1250
+ return await self.call_and_deserialize(**kwargs)
1251
+
1180
1252
  async def DescribeTopic(
1181
1253
  self,
1182
1254
  request: models.DescribeTopicRequest,
@@ -1340,6 +1412,24 @@ class CkafkaClient(AbstractClient):
1340
1412
 
1341
1413
  return await self.call_and_deserialize(**kwargs)
1342
1414
 
1415
+ async def DisassociateRoutesSecurityGroup(
1416
+ self,
1417
+ request: models.DisassociateRoutesSecurityGroupRequest,
1418
+ opts: Dict = None,
1419
+ ) -> models.DisassociateRoutesSecurityGroupResponse:
1420
+ """
1421
+ 解绑路由安全组
1422
+ """
1423
+
1424
+ kwargs = {}
1425
+ kwargs["action"] = "DisassociateRoutesSecurityGroup"
1426
+ kwargs["params"] = request._serialize()
1427
+ kwargs["resp_cls"] = models.DisassociateRoutesSecurityGroupResponse
1428
+ kwargs["headers"] = request.headers
1429
+ kwargs["opts"] = opts or {}
1430
+
1431
+ return await self.call_and_deserialize(**kwargs)
1432
+
1343
1433
  async def FetchDatahubMessageByOffset(
1344
1434
  self,
1345
1435
  request: models.FetchDatahubMessageByOffsetRequest,
@@ -1646,6 +1736,24 @@ class CkafkaClient(AbstractClient):
1646
1736
 
1647
1737
  return await self.call_and_deserialize(**kwargs)
1648
1738
 
1739
+ async def ModifyRouteSecurityGroups(
1740
+ self,
1741
+ request: models.ModifyRouteSecurityGroupsRequest,
1742
+ opts: Dict = None,
1743
+ ) -> models.ModifyRouteSecurityGroupsResponse:
1744
+ """
1745
+ 修改路由安全组关联
1746
+ """
1747
+
1748
+ kwargs = {}
1749
+ kwargs["action"] = "ModifyRouteSecurityGroups"
1750
+ kwargs["params"] = request._serialize()
1751
+ kwargs["resp_cls"] = models.ModifyRouteSecurityGroupsResponse
1752
+ kwargs["headers"] = request.headers
1753
+ kwargs["opts"] = opts or {}
1754
+
1755
+ return await self.call_and_deserialize(**kwargs)
1756
+
1649
1757
  async def ModifyRoutineMaintenanceTask(
1650
1758
  self,
1651
1759
  request: models.ModifyRoutineMaintenanceTaskRequest,
@@ -1664,6 +1772,24 @@ class CkafkaClient(AbstractClient):
1664
1772
 
1665
1773
  return await self.call_and_deserialize(**kwargs)
1666
1774
 
1775
+ async def ModifyThrottleRule(
1776
+ self,
1777
+ request: models.ModifyThrottleRuleRequest,
1778
+ opts: Dict = None,
1779
+ ) -> models.ModifyThrottleRuleResponse:
1780
+ """
1781
+ 修改限流规则接口
1782
+ """
1783
+
1784
+ kwargs = {}
1785
+ kwargs["action"] = "ModifyThrottleRule"
1786
+ kwargs["params"] = request._serialize()
1787
+ kwargs["resp_cls"] = models.ModifyThrottleRuleResponse
1788
+ kwargs["headers"] = request.headers
1789
+ kwargs["opts"] = opts or {}
1790
+
1791
+ return await self.call_and_deserialize(**kwargs)
1792
+
1667
1793
  async def ModifyTopicAttributes(
1668
1794
  self,
1669
1795
  request: models.ModifyTopicAttributesRequest,