tencentcloud-sdk-python-cngw 3.1.123__tar.gz → 3.1.134__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_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/setup.py +1 -1
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/tencentcloud/cngw/v20230418/cngw_client.py +92 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/tencentcloud/cngw/v20230418/cngw_client_async.py +72 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/tencentcloud/cngw/v20230418/models.py +2230 -69
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/tencentcloud_sdk_python_cngw.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cngw-3.1.134/tencentcloud_sdk_python_cngw.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_cngw-3.1.123/tencentcloud_sdk_python_cngw.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/README.rst +0 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/tencentcloud/cngw/__init__.py +0 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/tencentcloud/cngw/v20230418/__init__.py +0 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/tencentcloud/cngw/v20230418/errorcodes.py +0 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/tencentcloud_sdk_python_cngw.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/tencentcloud_sdk_python_cngw.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.134}/tencentcloud_sdk_python_cngw.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cngw
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.134
|
|
4
4
|
Summary: Tencent Cloud Cngw 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.134
|
|
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-cngw',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.134,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Cngw SDK for Python',
|
|
@@ -49,6 +49,52 @@ class CngwClient(AbstractClient):
|
|
|
49
49
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
def AddCloudNativeAPIGatewayConsumerInGroup(self, request):
|
|
53
|
+
r"""将消费者添加到消费者组。
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for AddCloudNativeAPIGatewayConsumerInGroup.
|
|
56
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.AddCloudNativeAPIGatewayConsumerInGroupRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.AddCloudNativeAPIGatewayConsumerInGroupResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("AddCloudNativeAPIGatewayConsumerInGroup", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.AddCloudNativeAPIGatewayConsumerInGroupResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
67
|
+
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def BindCloudNativeAPIGatewaySecretKey(self, request):
|
|
76
|
+
r"""添加密钥与资源的引用关系接口
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for BindCloudNativeAPIGatewaySecretKey.
|
|
79
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.BindCloudNativeAPIGatewaySecretKeyRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.BindCloudNativeAPIGatewaySecretKeyResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("BindCloudNativeAPIGatewaySecretKey", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.BindCloudNativeAPIGatewaySecretKeyResponse()
|
|
89
|
+
model._deserialize(response["Response"])
|
|
90
|
+
return model
|
|
91
|
+
except Exception as e:
|
|
92
|
+
if isinstance(e, TencentCloudSDKException):
|
|
93
|
+
raise
|
|
94
|
+
else:
|
|
95
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
96
|
+
|
|
97
|
+
|
|
52
98
|
def CreateCloudNativeAPIGatewayConsumer(self, request):
|
|
53
99
|
r"""创建AI网关消费者。
|
|
54
100
|
|
|
@@ -1054,6 +1100,52 @@ class CngwClient(AbstractClient):
|
|
|
1054
1100
|
model = models.RemoveCloudNativeAPIGatewayConsumerGroupAuthResponse()
|
|
1055
1101
|
model._deserialize(response["Response"])
|
|
1056
1102
|
return model
|
|
1103
|
+
except Exception as e:
|
|
1104
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1105
|
+
raise
|
|
1106
|
+
else:
|
|
1107
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
def RemoveCloudNativeAPIGatewayConsumerInGroup(self, request):
|
|
1111
|
+
r"""将消费者从消费者组移除。
|
|
1112
|
+
|
|
1113
|
+
:param request: Request instance for RemoveCloudNativeAPIGatewayConsumerInGroup.
|
|
1114
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.RemoveCloudNativeAPIGatewayConsumerInGroupRequest`
|
|
1115
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.RemoveCloudNativeAPIGatewayConsumerInGroupResponse`
|
|
1116
|
+
|
|
1117
|
+
"""
|
|
1118
|
+
try:
|
|
1119
|
+
params = request._serialize()
|
|
1120
|
+
headers = request.headers
|
|
1121
|
+
body = self.call("RemoveCloudNativeAPIGatewayConsumerInGroup", params, headers=headers)
|
|
1122
|
+
response = json.loads(body)
|
|
1123
|
+
model = models.RemoveCloudNativeAPIGatewayConsumerInGroupResponse()
|
|
1124
|
+
model._deserialize(response["Response"])
|
|
1125
|
+
return model
|
|
1126
|
+
except Exception as e:
|
|
1127
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1128
|
+
raise
|
|
1129
|
+
else:
|
|
1130
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
def UnbindCloudNativeAPIGatewaySecretKey(self, request):
|
|
1134
|
+
r"""解绑密钥
|
|
1135
|
+
|
|
1136
|
+
:param request: Request instance for UnbindCloudNativeAPIGatewaySecretKey.
|
|
1137
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.UnbindCloudNativeAPIGatewaySecretKeyRequest`
|
|
1138
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.UnbindCloudNativeAPIGatewaySecretKeyResponse`
|
|
1139
|
+
|
|
1140
|
+
"""
|
|
1141
|
+
try:
|
|
1142
|
+
params = request._serialize()
|
|
1143
|
+
headers = request.headers
|
|
1144
|
+
body = self.call("UnbindCloudNativeAPIGatewaySecretKey", params, headers=headers)
|
|
1145
|
+
response = json.loads(body)
|
|
1146
|
+
model = models.UnbindCloudNativeAPIGatewaySecretKeyResponse()
|
|
1147
|
+
model._deserialize(response["Response"])
|
|
1148
|
+
return model
|
|
1057
1149
|
except Exception as e:
|
|
1058
1150
|
if isinstance(e, TencentCloudSDKException):
|
|
1059
1151
|
raise
|
|
@@ -43,6 +43,42 @@ class CngwClient(AbstractClient):
|
|
|
43
43
|
|
|
44
44
|
return await self.call_and_deserialize(**kwargs)
|
|
45
45
|
|
|
46
|
+
async def AddCloudNativeAPIGatewayConsumerInGroup(
|
|
47
|
+
self,
|
|
48
|
+
request: models.AddCloudNativeAPIGatewayConsumerInGroupRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.AddCloudNativeAPIGatewayConsumerInGroupResponse:
|
|
51
|
+
"""
|
|
52
|
+
将消费者添加到消费者组。
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "AddCloudNativeAPIGatewayConsumerInGroup"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.AddCloudNativeAPIGatewayConsumerInGroupResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
64
|
+
async def BindCloudNativeAPIGatewaySecretKey(
|
|
65
|
+
self,
|
|
66
|
+
request: models.BindCloudNativeAPIGatewaySecretKeyRequest,
|
|
67
|
+
opts: Dict = None,
|
|
68
|
+
) -> models.BindCloudNativeAPIGatewaySecretKeyResponse:
|
|
69
|
+
"""
|
|
70
|
+
添加密钥与资源的引用关系接口
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
kwargs = {}
|
|
74
|
+
kwargs["action"] = "BindCloudNativeAPIGatewaySecretKey"
|
|
75
|
+
kwargs["params"] = request._serialize()
|
|
76
|
+
kwargs["resp_cls"] = models.BindCloudNativeAPIGatewaySecretKeyResponse
|
|
77
|
+
kwargs["headers"] = request.headers
|
|
78
|
+
kwargs["opts"] = opts or {}
|
|
79
|
+
|
|
80
|
+
return await self.call_and_deserialize(**kwargs)
|
|
81
|
+
|
|
46
82
|
async def CreateCloudNativeAPIGatewayConsumer(
|
|
47
83
|
self,
|
|
48
84
|
request: models.CreateCloudNativeAPIGatewayConsumerRequest,
|
|
@@ -833,4 +869,40 @@ class CngwClient(AbstractClient):
|
|
|
833
869
|
kwargs["headers"] = request.headers
|
|
834
870
|
kwargs["opts"] = opts or {}
|
|
835
871
|
|
|
872
|
+
return await self.call_and_deserialize(**kwargs)
|
|
873
|
+
|
|
874
|
+
async def RemoveCloudNativeAPIGatewayConsumerInGroup(
|
|
875
|
+
self,
|
|
876
|
+
request: models.RemoveCloudNativeAPIGatewayConsumerInGroupRequest,
|
|
877
|
+
opts: Dict = None,
|
|
878
|
+
) -> models.RemoveCloudNativeAPIGatewayConsumerInGroupResponse:
|
|
879
|
+
"""
|
|
880
|
+
将消费者从消费者组移除。
|
|
881
|
+
"""
|
|
882
|
+
|
|
883
|
+
kwargs = {}
|
|
884
|
+
kwargs["action"] = "RemoveCloudNativeAPIGatewayConsumerInGroup"
|
|
885
|
+
kwargs["params"] = request._serialize()
|
|
886
|
+
kwargs["resp_cls"] = models.RemoveCloudNativeAPIGatewayConsumerInGroupResponse
|
|
887
|
+
kwargs["headers"] = request.headers
|
|
888
|
+
kwargs["opts"] = opts or {}
|
|
889
|
+
|
|
890
|
+
return await self.call_and_deserialize(**kwargs)
|
|
891
|
+
|
|
892
|
+
async def UnbindCloudNativeAPIGatewaySecretKey(
|
|
893
|
+
self,
|
|
894
|
+
request: models.UnbindCloudNativeAPIGatewaySecretKeyRequest,
|
|
895
|
+
opts: Dict = None,
|
|
896
|
+
) -> models.UnbindCloudNativeAPIGatewaySecretKeyResponse:
|
|
897
|
+
"""
|
|
898
|
+
解绑密钥
|
|
899
|
+
"""
|
|
900
|
+
|
|
901
|
+
kwargs = {}
|
|
902
|
+
kwargs["action"] = "UnbindCloudNativeAPIGatewaySecretKey"
|
|
903
|
+
kwargs["params"] = request._serialize()
|
|
904
|
+
kwargs["resp_cls"] = models.UnbindCloudNativeAPIGatewaySecretKeyResponse
|
|
905
|
+
kwargs["headers"] = request.headers
|
|
906
|
+
kwargs["opts"] = opts or {}
|
|
907
|
+
|
|
836
908
|
return await self.call_and_deserialize(**kwargs)
|