tencentcloud-sdk-python-cngw 3.1.134__tar.gz → 3.1.152__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.134 → tencentcloud_sdk_python_cngw-3.1.152}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.152}/setup.py +1 -1
- {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.152}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.152}/tencentcloud/cngw/v20230418/cngw_client.py +70 -1
- {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.152}/tencentcloud/cngw/v20230418/cngw_client_async.py +55 -1
- {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.152}/tencentcloud/cngw/v20230418/errorcodes.py +3 -0
- {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.152}/tencentcloud/cngw/v20230418/models.py +3904 -1837
- {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.152}/tencentcloud_sdk_python_cngw.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cngw-3.1.152/tencentcloud_sdk_python_cngw.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_cngw-3.1.134/tencentcloud_sdk_python_cngw.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.152}/README.rst +0 -0
- {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.152}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.152}/tencentcloud/cngw/__init__.py +0 -0
- {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.152}/tencentcloud/cngw/v20230418/__init__.py +0 -0
- {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.152}/tencentcloud_sdk_python_cngw.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.152}/tencentcloud_sdk_python_cngw.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.152}/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.152
|
|
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.152
|
|
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.152,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Cngw SDK for Python',
|
|
@@ -417,6 +417,29 @@ class CngwClient(AbstractClient):
|
|
|
417
417
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
418
418
|
|
|
419
419
|
|
|
420
|
+
def DescribeCNGWServicesWithRoutes(self, request):
|
|
421
|
+
r"""查询云原生网关服务和路由列表
|
|
422
|
+
|
|
423
|
+
:param request: Request instance for DescribeCNGWServicesWithRoutes.
|
|
424
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCNGWServicesWithRoutesRequest`
|
|
425
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCNGWServicesWithRoutesResponse`
|
|
426
|
+
|
|
427
|
+
"""
|
|
428
|
+
try:
|
|
429
|
+
params = request._serialize()
|
|
430
|
+
headers = request.headers
|
|
431
|
+
body = self.call("DescribeCNGWServicesWithRoutes", params, headers=headers)
|
|
432
|
+
response = json.loads(body)
|
|
433
|
+
model = models.DescribeCNGWServicesWithRoutesResponse()
|
|
434
|
+
model._deserialize(response["Response"])
|
|
435
|
+
return model
|
|
436
|
+
except Exception as e:
|
|
437
|
+
if isinstance(e, TencentCloudSDKException):
|
|
438
|
+
raise
|
|
439
|
+
else:
|
|
440
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
441
|
+
|
|
442
|
+
|
|
420
443
|
def DescribeCloudNativeAPIGatewayConsumer(self, request):
|
|
421
444
|
r"""查询云原生消费者详情
|
|
422
445
|
|
|
@@ -487,7 +510,7 @@ class CngwClient(AbstractClient):
|
|
|
487
510
|
|
|
488
511
|
|
|
489
512
|
def DescribeCloudNativeAPIGatewayLLMModelAPIs(self, request):
|
|
490
|
-
r"""
|
|
513
|
+
r"""查询指定网关实例下的所有 LLM 模型 API 列表。支持按名称关键词模糊搜索、按过滤器筛选,以及分页查询。用于绑定场景时,可通过 ConsumerGroupId 和 UseToBind 参数筛选可绑定的模型 API。
|
|
491
514
|
|
|
492
515
|
:param request: Request instance for DescribeCloudNativeAPIGatewayLLMModelAPIs.
|
|
493
516
|
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayLLMModelAPIsRequest`
|
|
@@ -762,6 +785,29 @@ class CngwClient(AbstractClient):
|
|
|
762
785
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
763
786
|
|
|
764
787
|
|
|
788
|
+
def DescribeCloudNativeAPIGatewayMCPToolsFromFile(self, request):
|
|
789
|
+
r"""从OpenAPI文件中解析出可导入的MCP tools
|
|
790
|
+
|
|
791
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayMCPToolsFromFile.
|
|
792
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPToolsFromFileRequest`
|
|
793
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPToolsFromFileResponse`
|
|
794
|
+
|
|
795
|
+
"""
|
|
796
|
+
try:
|
|
797
|
+
params = request._serialize()
|
|
798
|
+
headers = request.headers
|
|
799
|
+
body = self.call("DescribeCloudNativeAPIGatewayMCPToolsFromFile", params, headers=headers)
|
|
800
|
+
response = json.loads(body)
|
|
801
|
+
model = models.DescribeCloudNativeAPIGatewayMCPToolsFromFileResponse()
|
|
802
|
+
model._deserialize(response["Response"])
|
|
803
|
+
return model
|
|
804
|
+
except Exception as e:
|
|
805
|
+
if isinstance(e, TencentCloudSDKException):
|
|
806
|
+
raise
|
|
807
|
+
else:
|
|
808
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
809
|
+
|
|
810
|
+
|
|
765
811
|
def DescribeCloudNativeAPIGatewaySecretKey(self, request):
|
|
766
812
|
r"""查询密钥详情(SecretValue 字段会被掩码)。
|
|
767
813
|
|
|
@@ -1146,6 +1192,29 @@ class CngwClient(AbstractClient):
|
|
|
1146
1192
|
model = models.UnbindCloudNativeAPIGatewaySecretKeyResponse()
|
|
1147
1193
|
model._deserialize(response["Response"])
|
|
1148
1194
|
return model
|
|
1195
|
+
except Exception as e:
|
|
1196
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1197
|
+
raise
|
|
1198
|
+
else:
|
|
1199
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
def UpdateCloudNativeAPIGatewayMCPTools(self, request):
|
|
1203
|
+
r"""批量导入从OpenAPI文件中解析的MCP Tools
|
|
1204
|
+
|
|
1205
|
+
:param request: Request instance for UpdateCloudNativeAPIGatewayMCPTools.
|
|
1206
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.UpdateCloudNativeAPIGatewayMCPToolsRequest`
|
|
1207
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.UpdateCloudNativeAPIGatewayMCPToolsResponse`
|
|
1208
|
+
|
|
1209
|
+
"""
|
|
1210
|
+
try:
|
|
1211
|
+
params = request._serialize()
|
|
1212
|
+
headers = request.headers
|
|
1213
|
+
body = self.call("UpdateCloudNativeAPIGatewayMCPTools", params, headers=headers)
|
|
1214
|
+
response = json.loads(body)
|
|
1215
|
+
model = models.UpdateCloudNativeAPIGatewayMCPToolsResponse()
|
|
1216
|
+
model._deserialize(response["Response"])
|
|
1217
|
+
return model
|
|
1149
1218
|
except Exception as e:
|
|
1150
1219
|
if isinstance(e, TencentCloudSDKException):
|
|
1151
1220
|
raise
|
|
@@ -331,6 +331,24 @@ class CngwClient(AbstractClient):
|
|
|
331
331
|
|
|
332
332
|
return await self.call_and_deserialize(**kwargs)
|
|
333
333
|
|
|
334
|
+
async def DescribeCNGWServicesWithRoutes(
|
|
335
|
+
self,
|
|
336
|
+
request: models.DescribeCNGWServicesWithRoutesRequest,
|
|
337
|
+
opts: Dict = None,
|
|
338
|
+
) -> models.DescribeCNGWServicesWithRoutesResponse:
|
|
339
|
+
"""
|
|
340
|
+
查询云原生网关服务和路由列表
|
|
341
|
+
"""
|
|
342
|
+
|
|
343
|
+
kwargs = {}
|
|
344
|
+
kwargs["action"] = "DescribeCNGWServicesWithRoutes"
|
|
345
|
+
kwargs["params"] = request._serialize()
|
|
346
|
+
kwargs["resp_cls"] = models.DescribeCNGWServicesWithRoutesResponse
|
|
347
|
+
kwargs["headers"] = request.headers
|
|
348
|
+
kwargs["opts"] = opts or {}
|
|
349
|
+
|
|
350
|
+
return await self.call_and_deserialize(**kwargs)
|
|
351
|
+
|
|
334
352
|
async def DescribeCloudNativeAPIGatewayConsumer(
|
|
335
353
|
self,
|
|
336
354
|
request: models.DescribeCloudNativeAPIGatewayConsumerRequest,
|
|
@@ -391,7 +409,7 @@ class CngwClient(AbstractClient):
|
|
|
391
409
|
opts: Dict = None,
|
|
392
410
|
) -> models.DescribeCloudNativeAPIGatewayLLMModelAPIsResponse:
|
|
393
411
|
"""
|
|
394
|
-
|
|
412
|
+
查询指定网关实例下的所有 LLM 模型 API 列表。支持按名称关键词模糊搜索、按过滤器筛选,以及分页查询。用于绑定场景时,可通过 ConsumerGroupId 和 UseToBind 参数筛选可绑定的模型 API。
|
|
395
413
|
"""
|
|
396
414
|
|
|
397
415
|
kwargs = {}
|
|
@@ -601,6 +619,24 @@ class CngwClient(AbstractClient):
|
|
|
601
619
|
|
|
602
620
|
return await self.call_and_deserialize(**kwargs)
|
|
603
621
|
|
|
622
|
+
async def DescribeCloudNativeAPIGatewayMCPToolsFromFile(
|
|
623
|
+
self,
|
|
624
|
+
request: models.DescribeCloudNativeAPIGatewayMCPToolsFromFileRequest,
|
|
625
|
+
opts: Dict = None,
|
|
626
|
+
) -> models.DescribeCloudNativeAPIGatewayMCPToolsFromFileResponse:
|
|
627
|
+
"""
|
|
628
|
+
从OpenAPI文件中解析出可导入的MCP tools
|
|
629
|
+
"""
|
|
630
|
+
|
|
631
|
+
kwargs = {}
|
|
632
|
+
kwargs["action"] = "DescribeCloudNativeAPIGatewayMCPToolsFromFile"
|
|
633
|
+
kwargs["params"] = request._serialize()
|
|
634
|
+
kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayMCPToolsFromFileResponse
|
|
635
|
+
kwargs["headers"] = request.headers
|
|
636
|
+
kwargs["opts"] = opts or {}
|
|
637
|
+
|
|
638
|
+
return await self.call_and_deserialize(**kwargs)
|
|
639
|
+
|
|
604
640
|
async def DescribeCloudNativeAPIGatewaySecretKey(
|
|
605
641
|
self,
|
|
606
642
|
request: models.DescribeCloudNativeAPIGatewaySecretKeyRequest,
|
|
@@ -905,4 +941,22 @@ class CngwClient(AbstractClient):
|
|
|
905
941
|
kwargs["headers"] = request.headers
|
|
906
942
|
kwargs["opts"] = opts or {}
|
|
907
943
|
|
|
944
|
+
return await self.call_and_deserialize(**kwargs)
|
|
945
|
+
|
|
946
|
+
async def UpdateCloudNativeAPIGatewayMCPTools(
|
|
947
|
+
self,
|
|
948
|
+
request: models.UpdateCloudNativeAPIGatewayMCPToolsRequest,
|
|
949
|
+
opts: Dict = None,
|
|
950
|
+
) -> models.UpdateCloudNativeAPIGatewayMCPToolsResponse:
|
|
951
|
+
"""
|
|
952
|
+
批量导入从OpenAPI文件中解析的MCP Tools
|
|
953
|
+
"""
|
|
954
|
+
|
|
955
|
+
kwargs = {}
|
|
956
|
+
kwargs["action"] = "UpdateCloudNativeAPIGatewayMCPTools"
|
|
957
|
+
kwargs["params"] = request._serialize()
|
|
958
|
+
kwargs["resp_cls"] = models.UpdateCloudNativeAPIGatewayMCPToolsResponse
|
|
959
|
+
kwargs["headers"] = request.headers
|
|
960
|
+
kwargs["opts"] = opts or {}
|
|
961
|
+
|
|
908
962
|
return await self.call_and_deserialize(**kwargs)
|
|
@@ -275,6 +275,9 @@ RESOURCENOTFOUND_RESOURCENOTFOUND = 'ResourceNotFound.ResourceNotFound'
|
|
|
275
275
|
# 资源不可用。
|
|
276
276
|
RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|
|
277
277
|
|
|
278
|
+
# ResourceUnavailable.NotPurchased
|
|
279
|
+
RESOURCEUNAVAILABLE_NOTPURCHASED = 'ResourceUnavailable.NotPurchased'
|
|
280
|
+
|
|
278
281
|
# 资源售罄。
|
|
279
282
|
RESOURCESSOLDOUT = 'ResourcesSoldOut'
|
|
280
283
|
|