tencentcloud-sdk-python-cngw 3.1.134__tar.gz → 3.1.149__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_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/tencentcloud/cngw/v20230418/cngw_client.py +47 -1
  5. {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/tencentcloud/cngw/v20230418/cngw_client_async.py +37 -1
  6. {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/tencentcloud/cngw/v20230418/errorcodes.py +3 -0
  7. {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/tencentcloud/cngw/v20230418/models.py +936 -263
  8. {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/tencentcloud_sdk_python_cngw.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_cngw-3.1.149/tencentcloud_sdk_python_cngw.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_cngw-3.1.134/tencentcloud_sdk_python_cngw.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/README.rst +0 -0
  12. {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/tencentcloud/cngw/__init__.py +0 -0
  14. {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/tencentcloud/cngw/v20230418/__init__.py +0 -0
  15. {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/tencentcloud_sdk_python_cngw.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/tencentcloud_sdk_python_cngw.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_cngw-3.1.134 → tencentcloud_sdk_python_cngw-3.1.149}/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.134
3
+ Version: 3.1.149
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.134
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.149
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.134,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.149,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Cngw SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.134'
17
+ __version__ = '3.1.149'
@@ -487,7 +487,7 @@ class CngwClient(AbstractClient):
487
487
 
488
488
 
489
489
  def DescribeCloudNativeAPIGatewayLLMModelAPIs(self, request):
490
- r"""查询 LLM 模型 API 列表。
490
+ r"""查询指定网关实例下的所有 LLM 模型 API 列表。支持按名称关键词模糊搜索、按过滤器筛选,以及分页查询。用于绑定场景时,可通过 ConsumerGroupId 和 UseToBind 参数筛选可绑定的模型 API。
491
491
 
492
492
  :param request: Request instance for DescribeCloudNativeAPIGatewayLLMModelAPIs.
493
493
  :type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayLLMModelAPIsRequest`
@@ -762,6 +762,29 @@ class CngwClient(AbstractClient):
762
762
  raise TencentCloudSDKException(type(e).__name__, str(e))
763
763
 
764
764
 
765
+ def DescribeCloudNativeAPIGatewayMCPToolsFromFile(self, request):
766
+ r"""从OpenAPI文件中解析出可导入的MCP tools
767
+
768
+ :param request: Request instance for DescribeCloudNativeAPIGatewayMCPToolsFromFile.
769
+ :type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPToolsFromFileRequest`
770
+ :rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPToolsFromFileResponse`
771
+
772
+ """
773
+ try:
774
+ params = request._serialize()
775
+ headers = request.headers
776
+ body = self.call("DescribeCloudNativeAPIGatewayMCPToolsFromFile", params, headers=headers)
777
+ response = json.loads(body)
778
+ model = models.DescribeCloudNativeAPIGatewayMCPToolsFromFileResponse()
779
+ model._deserialize(response["Response"])
780
+ return model
781
+ except Exception as e:
782
+ if isinstance(e, TencentCloudSDKException):
783
+ raise
784
+ else:
785
+ raise TencentCloudSDKException(type(e).__name__, str(e))
786
+
787
+
765
788
  def DescribeCloudNativeAPIGatewaySecretKey(self, request):
766
789
  r"""查询密钥详情(SecretValue 字段会被掩码)。
767
790
 
@@ -1146,6 +1169,29 @@ class CngwClient(AbstractClient):
1146
1169
  model = models.UnbindCloudNativeAPIGatewaySecretKeyResponse()
1147
1170
  model._deserialize(response["Response"])
1148
1171
  return model
1172
+ except Exception as e:
1173
+ if isinstance(e, TencentCloudSDKException):
1174
+ raise
1175
+ else:
1176
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1177
+
1178
+
1179
+ def UpdateCloudNativeAPIGatewayMCPTools(self, request):
1180
+ r"""批量导入从OpenAPI文件中解析的MCP Tools
1181
+
1182
+ :param request: Request instance for UpdateCloudNativeAPIGatewayMCPTools.
1183
+ :type request: :class:`tencentcloud.cngw.v20230418.models.UpdateCloudNativeAPIGatewayMCPToolsRequest`
1184
+ :rtype: :class:`tencentcloud.cngw.v20230418.models.UpdateCloudNativeAPIGatewayMCPToolsResponse`
1185
+
1186
+ """
1187
+ try:
1188
+ params = request._serialize()
1189
+ headers = request.headers
1190
+ body = self.call("UpdateCloudNativeAPIGatewayMCPTools", params, headers=headers)
1191
+ response = json.loads(body)
1192
+ model = models.UpdateCloudNativeAPIGatewayMCPToolsResponse()
1193
+ model._deserialize(response["Response"])
1194
+ return model
1149
1195
  except Exception as e:
1150
1196
  if isinstance(e, TencentCloudSDKException):
1151
1197
  raise
@@ -391,7 +391,7 @@ class CngwClient(AbstractClient):
391
391
  opts: Dict = None,
392
392
  ) -> models.DescribeCloudNativeAPIGatewayLLMModelAPIsResponse:
393
393
  """
394
- 查询 LLM 模型 API 列表。
394
+ 查询指定网关实例下的所有 LLM 模型 API 列表。支持按名称关键词模糊搜索、按过滤器筛选,以及分页查询。用于绑定场景时,可通过 ConsumerGroupId 和 UseToBind 参数筛选可绑定的模型 API。
395
395
  """
396
396
 
397
397
  kwargs = {}
@@ -601,6 +601,24 @@ class CngwClient(AbstractClient):
601
601
 
602
602
  return await self.call_and_deserialize(**kwargs)
603
603
 
604
+ async def DescribeCloudNativeAPIGatewayMCPToolsFromFile(
605
+ self,
606
+ request: models.DescribeCloudNativeAPIGatewayMCPToolsFromFileRequest,
607
+ opts: Dict = None,
608
+ ) -> models.DescribeCloudNativeAPIGatewayMCPToolsFromFileResponse:
609
+ """
610
+ 从OpenAPI文件中解析出可导入的MCP tools
611
+ """
612
+
613
+ kwargs = {}
614
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayMCPToolsFromFile"
615
+ kwargs["params"] = request._serialize()
616
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayMCPToolsFromFileResponse
617
+ kwargs["headers"] = request.headers
618
+ kwargs["opts"] = opts or {}
619
+
620
+ return await self.call_and_deserialize(**kwargs)
621
+
604
622
  async def DescribeCloudNativeAPIGatewaySecretKey(
605
623
  self,
606
624
  request: models.DescribeCloudNativeAPIGatewaySecretKeyRequest,
@@ -905,4 +923,22 @@ class CngwClient(AbstractClient):
905
923
  kwargs["headers"] = request.headers
906
924
  kwargs["opts"] = opts or {}
907
925
 
926
+ return await self.call_and_deserialize(**kwargs)
927
+
928
+ async def UpdateCloudNativeAPIGatewayMCPTools(
929
+ self,
930
+ request: models.UpdateCloudNativeAPIGatewayMCPToolsRequest,
931
+ opts: Dict = None,
932
+ ) -> models.UpdateCloudNativeAPIGatewayMCPToolsResponse:
933
+ """
934
+ 批量导入从OpenAPI文件中解析的MCP Tools
935
+ """
936
+
937
+ kwargs = {}
938
+ kwargs["action"] = "UpdateCloudNativeAPIGatewayMCPTools"
939
+ kwargs["params"] = request._serialize()
940
+ kwargs["resp_cls"] = models.UpdateCloudNativeAPIGatewayMCPToolsResponse
941
+ kwargs["headers"] = request.headers
942
+ kwargs["opts"] = opts or {}
943
+
908
944
  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