tencentcloud-sdk-python-cngw 3.1.123__py2.py3-none-any.whl
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/__init__.py +17 -0
- tencentcloud/cngw/__init__.py +0 -0
- tencentcloud/cngw/v20230418/__init__.py +0 -0
- tencentcloud/cngw/v20230418/cngw_client.py +1061 -0
- tencentcloud/cngw/v20230418/cngw_client_async.py +836 -0
- tencentcloud/cngw/v20230418/errorcodes.py +306 -0
- tencentcloud/cngw/v20230418/models.py +11440 -0
- tencentcloud_sdk_python_cngw-3.1.123.dist-info/METADATA +46 -0
- tencentcloud_sdk_python_cngw-3.1.123.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_cngw-3.1.123.dist-info/WHEEL +6 -0
- tencentcloud_sdk_python_cngw-3.1.123.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1061 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
import json
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
|
19
|
+
from tencentcloud.common.abstract_client import AbstractClient
|
|
20
|
+
from tencentcloud.cngw.v20230418 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CngwClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2023-04-18'
|
|
25
|
+
_endpoint = 'cngw.tencentcloudapi.com'
|
|
26
|
+
_service = 'cngw'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def AddCloudNativeAPIGatewayConsumerGroupAuth(self, request):
|
|
30
|
+
r"""为资源(模型 API / MCP Server)添加消费者组授权。
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for AddCloudNativeAPIGatewayConsumerGroupAuth.
|
|
33
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.AddCloudNativeAPIGatewayConsumerGroupAuthRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.AddCloudNativeAPIGatewayConsumerGroupAuthResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("AddCloudNativeAPIGatewayConsumerGroupAuth", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.AddCloudNativeAPIGatewayConsumerGroupAuthResponse()
|
|
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
|
+
|
|
52
|
+
def CreateCloudNativeAPIGatewayConsumer(self, request):
|
|
53
|
+
r"""创建AI网关消费者。
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for CreateCloudNativeAPIGatewayConsumer.
|
|
56
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.CreateCloudNativeAPIGatewayConsumerRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.CreateCloudNativeAPIGatewayConsumerResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("CreateCloudNativeAPIGatewayConsumer", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.CreateCloudNativeAPIGatewayConsumerResponse()
|
|
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 CreateCloudNativeAPIGatewayConsumerGroup(self, request):
|
|
76
|
+
r"""创建AI 网关消费者组
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for CreateCloudNativeAPIGatewayConsumerGroup.
|
|
79
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.CreateCloudNativeAPIGatewayConsumerGroupRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.CreateCloudNativeAPIGatewayConsumerGroupResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("CreateCloudNativeAPIGatewayConsumerGroup", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.CreateCloudNativeAPIGatewayConsumerGroupResponse()
|
|
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
|
+
|
|
98
|
+
def CreateCloudNativeAPIGatewayLLMModelAPI(self, request):
|
|
99
|
+
r"""创建 LLM 模型 API。
|
|
100
|
+
|
|
101
|
+
:param request: Request instance for CreateCloudNativeAPIGatewayLLMModelAPI.
|
|
102
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.CreateCloudNativeAPIGatewayLLMModelAPIRequest`
|
|
103
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.CreateCloudNativeAPIGatewayLLMModelAPIResponse`
|
|
104
|
+
|
|
105
|
+
"""
|
|
106
|
+
try:
|
|
107
|
+
params = request._serialize()
|
|
108
|
+
headers = request.headers
|
|
109
|
+
body = self.call("CreateCloudNativeAPIGatewayLLMModelAPI", params, headers=headers)
|
|
110
|
+
response = json.loads(body)
|
|
111
|
+
model = models.CreateCloudNativeAPIGatewayLLMModelAPIResponse()
|
|
112
|
+
model._deserialize(response["Response"])
|
|
113
|
+
return model
|
|
114
|
+
except Exception as e:
|
|
115
|
+
if isinstance(e, TencentCloudSDKException):
|
|
116
|
+
raise
|
|
117
|
+
else:
|
|
118
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def CreateCloudNativeAPIGatewayLLMModelService(self, request):
|
|
122
|
+
r"""创建 LLM 模型服务。同一网关下 Name 唯一。
|
|
123
|
+
|
|
124
|
+
:param request: Request instance for CreateCloudNativeAPIGatewayLLMModelService.
|
|
125
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.CreateCloudNativeAPIGatewayLLMModelServiceRequest`
|
|
126
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.CreateCloudNativeAPIGatewayLLMModelServiceResponse`
|
|
127
|
+
|
|
128
|
+
"""
|
|
129
|
+
try:
|
|
130
|
+
params = request._serialize()
|
|
131
|
+
headers = request.headers
|
|
132
|
+
body = self.call("CreateCloudNativeAPIGatewayLLMModelService", params, headers=headers)
|
|
133
|
+
response = json.loads(body)
|
|
134
|
+
model = models.CreateCloudNativeAPIGatewayLLMModelServiceResponse()
|
|
135
|
+
model._deserialize(response["Response"])
|
|
136
|
+
return model
|
|
137
|
+
except Exception as e:
|
|
138
|
+
if isinstance(e, TencentCloudSDKException):
|
|
139
|
+
raise
|
|
140
|
+
else:
|
|
141
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def CreateCloudNativeAPIGatewayMCPServer(self, request):
|
|
145
|
+
r"""创建AI网关MCP Server
|
|
146
|
+
|
|
147
|
+
:param request: Request instance for CreateCloudNativeAPIGatewayMCPServer.
|
|
148
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.CreateCloudNativeAPIGatewayMCPServerRequest`
|
|
149
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.CreateCloudNativeAPIGatewayMCPServerResponse`
|
|
150
|
+
|
|
151
|
+
"""
|
|
152
|
+
try:
|
|
153
|
+
params = request._serialize()
|
|
154
|
+
headers = request.headers
|
|
155
|
+
body = self.call("CreateCloudNativeAPIGatewayMCPServer", params, headers=headers)
|
|
156
|
+
response = json.loads(body)
|
|
157
|
+
model = models.CreateCloudNativeAPIGatewayMCPServerResponse()
|
|
158
|
+
model._deserialize(response["Response"])
|
|
159
|
+
return model
|
|
160
|
+
except Exception as e:
|
|
161
|
+
if isinstance(e, TencentCloudSDKException):
|
|
162
|
+
raise
|
|
163
|
+
else:
|
|
164
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def CreateCloudNativeAPIGatewayMCPTool(self, request):
|
|
168
|
+
r"""创建AI网关MCP Tool
|
|
169
|
+
|
|
170
|
+
:param request: Request instance for CreateCloudNativeAPIGatewayMCPTool.
|
|
171
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.CreateCloudNativeAPIGatewayMCPToolRequest`
|
|
172
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.CreateCloudNativeAPIGatewayMCPToolResponse`
|
|
173
|
+
|
|
174
|
+
"""
|
|
175
|
+
try:
|
|
176
|
+
params = request._serialize()
|
|
177
|
+
headers = request.headers
|
|
178
|
+
body = self.call("CreateCloudNativeAPIGatewayMCPTool", params, headers=headers)
|
|
179
|
+
response = json.loads(body)
|
|
180
|
+
model = models.CreateCloudNativeAPIGatewayMCPToolResponse()
|
|
181
|
+
model._deserialize(response["Response"])
|
|
182
|
+
return model
|
|
183
|
+
except Exception as e:
|
|
184
|
+
if isinstance(e, TencentCloudSDKException):
|
|
185
|
+
raise
|
|
186
|
+
else:
|
|
187
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
def CreateCloudNativeAPIGatewaySecretKey(self, request):
|
|
191
|
+
r"""创建消费者密钥。
|
|
192
|
+
|
|
193
|
+
:param request: Request instance for CreateCloudNativeAPIGatewaySecretKey.
|
|
194
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.CreateCloudNativeAPIGatewaySecretKeyRequest`
|
|
195
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.CreateCloudNativeAPIGatewaySecretKeyResponse`
|
|
196
|
+
|
|
197
|
+
"""
|
|
198
|
+
try:
|
|
199
|
+
params = request._serialize()
|
|
200
|
+
headers = request.headers
|
|
201
|
+
body = self.call("CreateCloudNativeAPIGatewaySecretKey", params, headers=headers)
|
|
202
|
+
response = json.loads(body)
|
|
203
|
+
model = models.CreateCloudNativeAPIGatewaySecretKeyResponse()
|
|
204
|
+
model._deserialize(response["Response"])
|
|
205
|
+
return model
|
|
206
|
+
except Exception as e:
|
|
207
|
+
if isinstance(e, TencentCloudSDKException):
|
|
208
|
+
raise
|
|
209
|
+
else:
|
|
210
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
def DeleteCloudNativeAPIGatewayConsumer(self, request):
|
|
214
|
+
r"""删除AI 网关消费者(被绑定到消费者组/密钥时需先解绑)。
|
|
215
|
+
|
|
216
|
+
:param request: Request instance for DeleteCloudNativeAPIGatewayConsumer.
|
|
217
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DeleteCloudNativeAPIGatewayConsumerRequest`
|
|
218
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DeleteCloudNativeAPIGatewayConsumerResponse`
|
|
219
|
+
|
|
220
|
+
"""
|
|
221
|
+
try:
|
|
222
|
+
params = request._serialize()
|
|
223
|
+
headers = request.headers
|
|
224
|
+
body = self.call("DeleteCloudNativeAPIGatewayConsumer", params, headers=headers)
|
|
225
|
+
response = json.loads(body)
|
|
226
|
+
model = models.DeleteCloudNativeAPIGatewayConsumerResponse()
|
|
227
|
+
model._deserialize(response["Response"])
|
|
228
|
+
return model
|
|
229
|
+
except Exception as e:
|
|
230
|
+
if isinstance(e, TencentCloudSDKException):
|
|
231
|
+
raise
|
|
232
|
+
else:
|
|
233
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def DeleteCloudNativeAPIGatewayConsumerGroup(self, request):
|
|
237
|
+
r"""删除AI网关消费者组
|
|
238
|
+
|
|
239
|
+
:param request: Request instance for DeleteCloudNativeAPIGatewayConsumerGroup.
|
|
240
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DeleteCloudNativeAPIGatewayConsumerGroupRequest`
|
|
241
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DeleteCloudNativeAPIGatewayConsumerGroupResponse`
|
|
242
|
+
|
|
243
|
+
"""
|
|
244
|
+
try:
|
|
245
|
+
params = request._serialize()
|
|
246
|
+
headers = request.headers
|
|
247
|
+
body = self.call("DeleteCloudNativeAPIGatewayConsumerGroup", params, headers=headers)
|
|
248
|
+
response = json.loads(body)
|
|
249
|
+
model = models.DeleteCloudNativeAPIGatewayConsumerGroupResponse()
|
|
250
|
+
model._deserialize(response["Response"])
|
|
251
|
+
return model
|
|
252
|
+
except Exception as e:
|
|
253
|
+
if isinstance(e, TencentCloudSDKException):
|
|
254
|
+
raise
|
|
255
|
+
else:
|
|
256
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
def DeleteCloudNativeAPIGatewayLLMModelAPI(self, request):
|
|
260
|
+
r"""删除 LLM 模型 API。
|
|
261
|
+
|
|
262
|
+
:param request: Request instance for DeleteCloudNativeAPIGatewayLLMModelAPI.
|
|
263
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DeleteCloudNativeAPIGatewayLLMModelAPIRequest`
|
|
264
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DeleteCloudNativeAPIGatewayLLMModelAPIResponse`
|
|
265
|
+
|
|
266
|
+
"""
|
|
267
|
+
try:
|
|
268
|
+
params = request._serialize()
|
|
269
|
+
headers = request.headers
|
|
270
|
+
body = self.call("DeleteCloudNativeAPIGatewayLLMModelAPI", params, headers=headers)
|
|
271
|
+
response = json.loads(body)
|
|
272
|
+
model = models.DeleteCloudNativeAPIGatewayLLMModelAPIResponse()
|
|
273
|
+
model._deserialize(response["Response"])
|
|
274
|
+
return model
|
|
275
|
+
except Exception as e:
|
|
276
|
+
if isinstance(e, TencentCloudSDKException):
|
|
277
|
+
raise
|
|
278
|
+
else:
|
|
279
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def DeleteCloudNativeAPIGatewayLLMModelService(self, request):
|
|
283
|
+
r"""删除 LLM 模型服务(被模型 API 绑定时需先解绑)。
|
|
284
|
+
|
|
285
|
+
:param request: Request instance for DeleteCloudNativeAPIGatewayLLMModelService.
|
|
286
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DeleteCloudNativeAPIGatewayLLMModelServiceRequest`
|
|
287
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DeleteCloudNativeAPIGatewayLLMModelServiceResponse`
|
|
288
|
+
|
|
289
|
+
"""
|
|
290
|
+
try:
|
|
291
|
+
params = request._serialize()
|
|
292
|
+
headers = request.headers
|
|
293
|
+
body = self.call("DeleteCloudNativeAPIGatewayLLMModelService", params, headers=headers)
|
|
294
|
+
response = json.loads(body)
|
|
295
|
+
model = models.DeleteCloudNativeAPIGatewayLLMModelServiceResponse()
|
|
296
|
+
model._deserialize(response["Response"])
|
|
297
|
+
return model
|
|
298
|
+
except Exception as e:
|
|
299
|
+
if isinstance(e, TencentCloudSDKException):
|
|
300
|
+
raise
|
|
301
|
+
else:
|
|
302
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def DeleteCloudNativeAPIGatewayMCPServer(self, request):
|
|
306
|
+
r"""删除AI网关MCP服务
|
|
307
|
+
|
|
308
|
+
:param request: Request instance for DeleteCloudNativeAPIGatewayMCPServer.
|
|
309
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DeleteCloudNativeAPIGatewayMCPServerRequest`
|
|
310
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DeleteCloudNativeAPIGatewayMCPServerResponse`
|
|
311
|
+
|
|
312
|
+
"""
|
|
313
|
+
try:
|
|
314
|
+
params = request._serialize()
|
|
315
|
+
headers = request.headers
|
|
316
|
+
body = self.call("DeleteCloudNativeAPIGatewayMCPServer", params, headers=headers)
|
|
317
|
+
response = json.loads(body)
|
|
318
|
+
model = models.DeleteCloudNativeAPIGatewayMCPServerResponse()
|
|
319
|
+
model._deserialize(response["Response"])
|
|
320
|
+
return model
|
|
321
|
+
except Exception as e:
|
|
322
|
+
if isinstance(e, TencentCloudSDKException):
|
|
323
|
+
raise
|
|
324
|
+
else:
|
|
325
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
def DeleteCloudNativeAPIGatewayMCPTool(self, request):
|
|
329
|
+
r"""删除AI网关MCP Tool
|
|
330
|
+
|
|
331
|
+
:param request: Request instance for DeleteCloudNativeAPIGatewayMCPTool.
|
|
332
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DeleteCloudNativeAPIGatewayMCPToolRequest`
|
|
333
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DeleteCloudNativeAPIGatewayMCPToolResponse`
|
|
334
|
+
|
|
335
|
+
"""
|
|
336
|
+
try:
|
|
337
|
+
params = request._serialize()
|
|
338
|
+
headers = request.headers
|
|
339
|
+
body = self.call("DeleteCloudNativeAPIGatewayMCPTool", params, headers=headers)
|
|
340
|
+
response = json.loads(body)
|
|
341
|
+
model = models.DeleteCloudNativeAPIGatewayMCPToolResponse()
|
|
342
|
+
model._deserialize(response["Response"])
|
|
343
|
+
return model
|
|
344
|
+
except Exception as e:
|
|
345
|
+
if isinstance(e, TencentCloudSDKException):
|
|
346
|
+
raise
|
|
347
|
+
else:
|
|
348
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
def DeleteCloudNativeAPIGatewaySecretKey(self, request):
|
|
352
|
+
r"""删除消费者密钥(被绑定时需先解绑)。
|
|
353
|
+
|
|
354
|
+
:param request: Request instance for DeleteCloudNativeAPIGatewaySecretKey.
|
|
355
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DeleteCloudNativeAPIGatewaySecretKeyRequest`
|
|
356
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DeleteCloudNativeAPIGatewaySecretKeyResponse`
|
|
357
|
+
|
|
358
|
+
"""
|
|
359
|
+
try:
|
|
360
|
+
params = request._serialize()
|
|
361
|
+
headers = request.headers
|
|
362
|
+
body = self.call("DeleteCloudNativeAPIGatewaySecretKey", params, headers=headers)
|
|
363
|
+
response = json.loads(body)
|
|
364
|
+
model = models.DeleteCloudNativeAPIGatewaySecretKeyResponse()
|
|
365
|
+
model._deserialize(response["Response"])
|
|
366
|
+
return model
|
|
367
|
+
except Exception as e:
|
|
368
|
+
if isinstance(e, TencentCloudSDKException):
|
|
369
|
+
raise
|
|
370
|
+
else:
|
|
371
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
def DescribeCloudNativeAPIGatewayConsumer(self, request):
|
|
375
|
+
r"""查询云原生消费者详情
|
|
376
|
+
|
|
377
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayConsumer.
|
|
378
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayConsumerRequest`
|
|
379
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayConsumerResponse`
|
|
380
|
+
|
|
381
|
+
"""
|
|
382
|
+
try:
|
|
383
|
+
params = request._serialize()
|
|
384
|
+
headers = request.headers
|
|
385
|
+
body = self.call("DescribeCloudNativeAPIGatewayConsumer", params, headers=headers)
|
|
386
|
+
response = json.loads(body)
|
|
387
|
+
model = models.DescribeCloudNativeAPIGatewayConsumerResponse()
|
|
388
|
+
model._deserialize(response["Response"])
|
|
389
|
+
return model
|
|
390
|
+
except Exception as e:
|
|
391
|
+
if isinstance(e, TencentCloudSDKException):
|
|
392
|
+
raise
|
|
393
|
+
else:
|
|
394
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
def DescribeCloudNativeAPIGatewayConsumerGroup(self, request):
|
|
398
|
+
r"""查询消费者组详情。
|
|
399
|
+
|
|
400
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayConsumerGroup.
|
|
401
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayConsumerGroupRequest`
|
|
402
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayConsumerGroupResponse`
|
|
403
|
+
|
|
404
|
+
"""
|
|
405
|
+
try:
|
|
406
|
+
params = request._serialize()
|
|
407
|
+
headers = request.headers
|
|
408
|
+
body = self.call("DescribeCloudNativeAPIGatewayConsumerGroup", params, headers=headers)
|
|
409
|
+
response = json.loads(body)
|
|
410
|
+
model = models.DescribeCloudNativeAPIGatewayConsumerGroupResponse()
|
|
411
|
+
model._deserialize(response["Response"])
|
|
412
|
+
return model
|
|
413
|
+
except Exception as e:
|
|
414
|
+
if isinstance(e, TencentCloudSDKException):
|
|
415
|
+
raise
|
|
416
|
+
else:
|
|
417
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
def DescribeCloudNativeAPIGatewayLLMModelAPI(self, request):
|
|
421
|
+
r"""查询单个 LLM 模型 API 详情。
|
|
422
|
+
|
|
423
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayLLMModelAPI.
|
|
424
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayLLMModelAPIRequest`
|
|
425
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayLLMModelAPIResponse`
|
|
426
|
+
|
|
427
|
+
"""
|
|
428
|
+
try:
|
|
429
|
+
params = request._serialize()
|
|
430
|
+
headers = request.headers
|
|
431
|
+
body = self.call("DescribeCloudNativeAPIGatewayLLMModelAPI", params, headers=headers)
|
|
432
|
+
response = json.loads(body)
|
|
433
|
+
model = models.DescribeCloudNativeAPIGatewayLLMModelAPIResponse()
|
|
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
|
+
|
|
443
|
+
def DescribeCloudNativeAPIGatewayLLMModelAPIs(self, request):
|
|
444
|
+
r"""查询 LLM 模型 API 列表。
|
|
445
|
+
|
|
446
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayLLMModelAPIs.
|
|
447
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayLLMModelAPIsRequest`
|
|
448
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayLLMModelAPIsResponse`
|
|
449
|
+
|
|
450
|
+
"""
|
|
451
|
+
try:
|
|
452
|
+
params = request._serialize()
|
|
453
|
+
headers = request.headers
|
|
454
|
+
body = self.call("DescribeCloudNativeAPIGatewayLLMModelAPIs", params, headers=headers)
|
|
455
|
+
response = json.loads(body)
|
|
456
|
+
model = models.DescribeCloudNativeAPIGatewayLLMModelAPIsResponse()
|
|
457
|
+
model._deserialize(response["Response"])
|
|
458
|
+
return model
|
|
459
|
+
except Exception as e:
|
|
460
|
+
if isinstance(e, TencentCloudSDKException):
|
|
461
|
+
raise
|
|
462
|
+
else:
|
|
463
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
def DescribeCloudNativeAPIGatewayLLMModelService(self, request):
|
|
467
|
+
r"""查询单个 LLM 模型服务详情。
|
|
468
|
+
|
|
469
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayLLMModelService.
|
|
470
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayLLMModelServiceRequest`
|
|
471
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayLLMModelServiceResponse`
|
|
472
|
+
|
|
473
|
+
"""
|
|
474
|
+
try:
|
|
475
|
+
params = request._serialize()
|
|
476
|
+
headers = request.headers
|
|
477
|
+
body = self.call("DescribeCloudNativeAPIGatewayLLMModelService", params, headers=headers)
|
|
478
|
+
response = json.loads(body)
|
|
479
|
+
model = models.DescribeCloudNativeAPIGatewayLLMModelServiceResponse()
|
|
480
|
+
model._deserialize(response["Response"])
|
|
481
|
+
return model
|
|
482
|
+
except Exception as e:
|
|
483
|
+
if isinstance(e, TencentCloudSDKException):
|
|
484
|
+
raise
|
|
485
|
+
else:
|
|
486
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
def DescribeCloudNativeAPIGatewayLLMModelServices(self, request):
|
|
490
|
+
r"""查询 LLM 模型服务列表。
|
|
491
|
+
|
|
492
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayLLMModelServices.
|
|
493
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayLLMModelServicesRequest`
|
|
494
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayLLMModelServicesResponse`
|
|
495
|
+
|
|
496
|
+
"""
|
|
497
|
+
try:
|
|
498
|
+
params = request._serialize()
|
|
499
|
+
headers = request.headers
|
|
500
|
+
body = self.call("DescribeCloudNativeAPIGatewayLLMModelServices", params, headers=headers)
|
|
501
|
+
response = json.loads(body)
|
|
502
|
+
model = models.DescribeCloudNativeAPIGatewayLLMModelServicesResponse()
|
|
503
|
+
model._deserialize(response["Response"])
|
|
504
|
+
return model
|
|
505
|
+
except Exception as e:
|
|
506
|
+
if isinstance(e, TencentCloudSDKException):
|
|
507
|
+
raise
|
|
508
|
+
else:
|
|
509
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
def DescribeCloudNativeAPIGatewayLLMTokenUsageList(self, request):
|
|
513
|
+
r"""查询 AI 网关Token 消耗统计
|
|
514
|
+
|
|
515
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayLLMTokenUsageList.
|
|
516
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayLLMTokenUsageListRequest`
|
|
517
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayLLMTokenUsageListResponse`
|
|
518
|
+
|
|
519
|
+
"""
|
|
520
|
+
try:
|
|
521
|
+
params = request._serialize()
|
|
522
|
+
headers = request.headers
|
|
523
|
+
body = self.call("DescribeCloudNativeAPIGatewayLLMTokenUsageList", params, headers=headers)
|
|
524
|
+
response = json.loads(body)
|
|
525
|
+
model = models.DescribeCloudNativeAPIGatewayLLMTokenUsageListResponse()
|
|
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
|
+
|
|
535
|
+
def DescribeCloudNativeAPIGatewayLLMTokenUsageStatistics(self, request):
|
|
536
|
+
r"""查询 AI 网关Token 消耗统计汇总
|
|
537
|
+
|
|
538
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayLLMTokenUsageStatistics.
|
|
539
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayLLMTokenUsageStatisticsRequest`
|
|
540
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayLLMTokenUsageStatisticsResponse`
|
|
541
|
+
|
|
542
|
+
"""
|
|
543
|
+
try:
|
|
544
|
+
params = request._serialize()
|
|
545
|
+
headers = request.headers
|
|
546
|
+
body = self.call("DescribeCloudNativeAPIGatewayLLMTokenUsageStatistics", params, headers=headers)
|
|
547
|
+
response = json.loads(body)
|
|
548
|
+
model = models.DescribeCloudNativeAPIGatewayLLMTokenUsageStatisticsResponse()
|
|
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
|
+
|
|
558
|
+
def DescribeCloudNativeAPIGatewayMCPServer(self, request):
|
|
559
|
+
r"""查询AI 网关MCP服务信息
|
|
560
|
+
|
|
561
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayMCPServer.
|
|
562
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPServerRequest`
|
|
563
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPServerResponse`
|
|
564
|
+
|
|
565
|
+
"""
|
|
566
|
+
try:
|
|
567
|
+
params = request._serialize()
|
|
568
|
+
headers = request.headers
|
|
569
|
+
body = self.call("DescribeCloudNativeAPIGatewayMCPServer", params, headers=headers)
|
|
570
|
+
response = json.loads(body)
|
|
571
|
+
model = models.DescribeCloudNativeAPIGatewayMCPServerResponse()
|
|
572
|
+
model._deserialize(response["Response"])
|
|
573
|
+
return model
|
|
574
|
+
except Exception as e:
|
|
575
|
+
if isinstance(e, TencentCloudSDKException):
|
|
576
|
+
raise
|
|
577
|
+
else:
|
|
578
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
def DescribeCloudNativeAPIGatewayMCPServerACL(self, request):
|
|
582
|
+
r"""查看 MCP Server ACL
|
|
583
|
+
|
|
584
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayMCPServerACL.
|
|
585
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPServerACLRequest`
|
|
586
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPServerACLResponse`
|
|
587
|
+
|
|
588
|
+
"""
|
|
589
|
+
try:
|
|
590
|
+
params = request._serialize()
|
|
591
|
+
headers = request.headers
|
|
592
|
+
body = self.call("DescribeCloudNativeAPIGatewayMCPServerACL", params, headers=headers)
|
|
593
|
+
response = json.loads(body)
|
|
594
|
+
model = models.DescribeCloudNativeAPIGatewayMCPServerACLResponse()
|
|
595
|
+
model._deserialize(response["Response"])
|
|
596
|
+
return model
|
|
597
|
+
except Exception as e:
|
|
598
|
+
if isinstance(e, TencentCloudSDKException):
|
|
599
|
+
raise
|
|
600
|
+
else:
|
|
601
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
def DescribeCloudNativeAPIGatewayMCPServerAuth(self, request):
|
|
605
|
+
r"""查询 MCP Server 的认证配置
|
|
606
|
+
|
|
607
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayMCPServerAuth.
|
|
608
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPServerAuthRequest`
|
|
609
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPServerAuthResponse`
|
|
610
|
+
|
|
611
|
+
"""
|
|
612
|
+
try:
|
|
613
|
+
params = request._serialize()
|
|
614
|
+
headers = request.headers
|
|
615
|
+
body = self.call("DescribeCloudNativeAPIGatewayMCPServerAuth", params, headers=headers)
|
|
616
|
+
response = json.loads(body)
|
|
617
|
+
model = models.DescribeCloudNativeAPIGatewayMCPServerAuthResponse()
|
|
618
|
+
model._deserialize(response["Response"])
|
|
619
|
+
return model
|
|
620
|
+
except Exception as e:
|
|
621
|
+
if isinstance(e, TencentCloudSDKException):
|
|
622
|
+
raise
|
|
623
|
+
else:
|
|
624
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
def DescribeCloudNativeAPIGatewayMCPServerList(self, request):
|
|
628
|
+
r"""AI网关查询MCP服务列表
|
|
629
|
+
|
|
630
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayMCPServerList.
|
|
631
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPServerListRequest`
|
|
632
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPServerListResponse`
|
|
633
|
+
|
|
634
|
+
"""
|
|
635
|
+
try:
|
|
636
|
+
params = request._serialize()
|
|
637
|
+
headers = request.headers
|
|
638
|
+
body = self.call("DescribeCloudNativeAPIGatewayMCPServerList", params, headers=headers)
|
|
639
|
+
response = json.loads(body)
|
|
640
|
+
model = models.DescribeCloudNativeAPIGatewayMCPServerListResponse()
|
|
641
|
+
model._deserialize(response["Response"])
|
|
642
|
+
return model
|
|
643
|
+
except Exception as e:
|
|
644
|
+
if isinstance(e, TencentCloudSDKException):
|
|
645
|
+
raise
|
|
646
|
+
else:
|
|
647
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
def DescribeCloudNativeAPIGatewayMCPTool(self, request):
|
|
651
|
+
r"""查看AI网关MCP Tool
|
|
652
|
+
|
|
653
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayMCPTool.
|
|
654
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPToolRequest`
|
|
655
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPToolResponse`
|
|
656
|
+
|
|
657
|
+
"""
|
|
658
|
+
try:
|
|
659
|
+
params = request._serialize()
|
|
660
|
+
headers = request.headers
|
|
661
|
+
body = self.call("DescribeCloudNativeAPIGatewayMCPTool", params, headers=headers)
|
|
662
|
+
response = json.loads(body)
|
|
663
|
+
model = models.DescribeCloudNativeAPIGatewayMCPToolResponse()
|
|
664
|
+
model._deserialize(response["Response"])
|
|
665
|
+
return model
|
|
666
|
+
except Exception as e:
|
|
667
|
+
if isinstance(e, TencentCloudSDKException):
|
|
668
|
+
raise
|
|
669
|
+
else:
|
|
670
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
def DescribeCloudNativeAPIGatewayMCPToolACLList(self, request):
|
|
674
|
+
r"""查询云原生网关 MCP Server 下所有 Tool 的 ACL 状态一览(含 Server ACLType 回显)。
|
|
675
|
+
|
|
676
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayMCPToolACLList.
|
|
677
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPToolACLListRequest`
|
|
678
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPToolACLListResponse`
|
|
679
|
+
|
|
680
|
+
"""
|
|
681
|
+
try:
|
|
682
|
+
params = request._serialize()
|
|
683
|
+
headers = request.headers
|
|
684
|
+
body = self.call("DescribeCloudNativeAPIGatewayMCPToolACLList", params, headers=headers)
|
|
685
|
+
response = json.loads(body)
|
|
686
|
+
model = models.DescribeCloudNativeAPIGatewayMCPToolACLListResponse()
|
|
687
|
+
model._deserialize(response["Response"])
|
|
688
|
+
return model
|
|
689
|
+
except Exception as e:
|
|
690
|
+
if isinstance(e, TencentCloudSDKException):
|
|
691
|
+
raise
|
|
692
|
+
else:
|
|
693
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
def DescribeCloudNativeAPIGatewayMCPToolList(self, request):
|
|
697
|
+
r"""查询 AI 网关MCP Tool 列表
|
|
698
|
+
|
|
699
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewayMCPToolList.
|
|
700
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPToolListRequest`
|
|
701
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewayMCPToolListResponse`
|
|
702
|
+
|
|
703
|
+
"""
|
|
704
|
+
try:
|
|
705
|
+
params = request._serialize()
|
|
706
|
+
headers = request.headers
|
|
707
|
+
body = self.call("DescribeCloudNativeAPIGatewayMCPToolList", params, headers=headers)
|
|
708
|
+
response = json.loads(body)
|
|
709
|
+
model = models.DescribeCloudNativeAPIGatewayMCPToolListResponse()
|
|
710
|
+
model._deserialize(response["Response"])
|
|
711
|
+
return model
|
|
712
|
+
except Exception as e:
|
|
713
|
+
if isinstance(e, TencentCloudSDKException):
|
|
714
|
+
raise
|
|
715
|
+
else:
|
|
716
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
def DescribeCloudNativeAPIGatewaySecretKey(self, request):
|
|
720
|
+
r"""查询密钥详情(SecretValue 字段会被掩码)。
|
|
721
|
+
|
|
722
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewaySecretKey.
|
|
723
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewaySecretKeyRequest`
|
|
724
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewaySecretKeyResponse`
|
|
725
|
+
|
|
726
|
+
"""
|
|
727
|
+
try:
|
|
728
|
+
params = request._serialize()
|
|
729
|
+
headers = request.headers
|
|
730
|
+
body = self.call("DescribeCloudNativeAPIGatewaySecretKey", params, headers=headers)
|
|
731
|
+
response = json.loads(body)
|
|
732
|
+
model = models.DescribeCloudNativeAPIGatewaySecretKeyResponse()
|
|
733
|
+
model._deserialize(response["Response"])
|
|
734
|
+
return model
|
|
735
|
+
except Exception as e:
|
|
736
|
+
if isinstance(e, TencentCloudSDKException):
|
|
737
|
+
raise
|
|
738
|
+
else:
|
|
739
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
def DescribeCloudNativeAPIGatewaySecretKeyValue(self, request):
|
|
743
|
+
r"""查询密钥明文值(KMS 类型密钥不可获取)。
|
|
744
|
+
|
|
745
|
+
:param request: Request instance for DescribeCloudNativeAPIGatewaySecretKeyValue.
|
|
746
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewaySecretKeyValueRequest`
|
|
747
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.DescribeCloudNativeAPIGatewaySecretKeyValueResponse`
|
|
748
|
+
|
|
749
|
+
"""
|
|
750
|
+
try:
|
|
751
|
+
params = request._serialize()
|
|
752
|
+
headers = request.headers
|
|
753
|
+
body = self.call("DescribeCloudNativeAPIGatewaySecretKeyValue", params, headers=headers)
|
|
754
|
+
response = json.loads(body)
|
|
755
|
+
model = models.DescribeCloudNativeAPIGatewaySecretKeyValueResponse()
|
|
756
|
+
model._deserialize(response["Response"])
|
|
757
|
+
return model
|
|
758
|
+
except Exception as e:
|
|
759
|
+
if isinstance(e, TencentCloudSDKException):
|
|
760
|
+
raise
|
|
761
|
+
else:
|
|
762
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
def ModifyCloudNativeAPIGatewayConsumer(self, request):
|
|
766
|
+
r"""修改AI网关消费者
|
|
767
|
+
|
|
768
|
+
:param request: Request instance for ModifyCloudNativeAPIGatewayConsumer.
|
|
769
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayConsumerRequest`
|
|
770
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayConsumerResponse`
|
|
771
|
+
|
|
772
|
+
"""
|
|
773
|
+
try:
|
|
774
|
+
params = request._serialize()
|
|
775
|
+
headers = request.headers
|
|
776
|
+
body = self.call("ModifyCloudNativeAPIGatewayConsumer", params, headers=headers)
|
|
777
|
+
response = json.loads(body)
|
|
778
|
+
model = models.ModifyCloudNativeAPIGatewayConsumerResponse()
|
|
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
|
+
|
|
788
|
+
def ModifyCloudNativeAPIGatewayConsumerGroup(self, request):
|
|
789
|
+
r"""修改消费者组。
|
|
790
|
+
|
|
791
|
+
:param request: Request instance for ModifyCloudNativeAPIGatewayConsumerGroup.
|
|
792
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayConsumerGroupRequest`
|
|
793
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayConsumerGroupResponse`
|
|
794
|
+
|
|
795
|
+
"""
|
|
796
|
+
try:
|
|
797
|
+
params = request._serialize()
|
|
798
|
+
headers = request.headers
|
|
799
|
+
body = self.call("ModifyCloudNativeAPIGatewayConsumerGroup", params, headers=headers)
|
|
800
|
+
response = json.loads(body)
|
|
801
|
+
model = models.ModifyCloudNativeAPIGatewayConsumerGroupResponse()
|
|
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
|
+
|
|
811
|
+
def ModifyCloudNativeAPIGatewayLLMModelAPI(self, request):
|
|
812
|
+
r"""修改 LLM 模型 API。
|
|
813
|
+
|
|
814
|
+
:param request: Request instance for ModifyCloudNativeAPIGatewayLLMModelAPI.
|
|
815
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayLLMModelAPIRequest`
|
|
816
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayLLMModelAPIResponse`
|
|
817
|
+
|
|
818
|
+
"""
|
|
819
|
+
try:
|
|
820
|
+
params = request._serialize()
|
|
821
|
+
headers = request.headers
|
|
822
|
+
body = self.call("ModifyCloudNativeAPIGatewayLLMModelAPI", params, headers=headers)
|
|
823
|
+
response = json.loads(body)
|
|
824
|
+
model = models.ModifyCloudNativeAPIGatewayLLMModelAPIResponse()
|
|
825
|
+
model._deserialize(response["Response"])
|
|
826
|
+
return model
|
|
827
|
+
except Exception as e:
|
|
828
|
+
if isinstance(e, TencentCloudSDKException):
|
|
829
|
+
raise
|
|
830
|
+
else:
|
|
831
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
def ModifyCloudNativeAPIGatewayLLMModelService(self, request):
|
|
835
|
+
r"""修改 LLM 模型服务。
|
|
836
|
+
|
|
837
|
+
:param request: Request instance for ModifyCloudNativeAPIGatewayLLMModelService.
|
|
838
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayLLMModelServiceRequest`
|
|
839
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayLLMModelServiceResponse`
|
|
840
|
+
|
|
841
|
+
"""
|
|
842
|
+
try:
|
|
843
|
+
params = request._serialize()
|
|
844
|
+
headers = request.headers
|
|
845
|
+
body = self.call("ModifyCloudNativeAPIGatewayLLMModelService", params, headers=headers)
|
|
846
|
+
response = json.loads(body)
|
|
847
|
+
model = models.ModifyCloudNativeAPIGatewayLLMModelServiceResponse()
|
|
848
|
+
model._deserialize(response["Response"])
|
|
849
|
+
return model
|
|
850
|
+
except Exception as e:
|
|
851
|
+
if isinstance(e, TencentCloudSDKException):
|
|
852
|
+
raise
|
|
853
|
+
else:
|
|
854
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
def ModifyCloudNativeAPIGatewayMCPServer(self, request):
|
|
858
|
+
r"""修改MCP服务配置
|
|
859
|
+
|
|
860
|
+
:param request: Request instance for ModifyCloudNativeAPIGatewayMCPServer.
|
|
861
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayMCPServerRequest`
|
|
862
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayMCPServerResponse`
|
|
863
|
+
|
|
864
|
+
"""
|
|
865
|
+
try:
|
|
866
|
+
params = request._serialize()
|
|
867
|
+
headers = request.headers
|
|
868
|
+
body = self.call("ModifyCloudNativeAPIGatewayMCPServer", params, headers=headers)
|
|
869
|
+
response = json.loads(body)
|
|
870
|
+
model = models.ModifyCloudNativeAPIGatewayMCPServerResponse()
|
|
871
|
+
model._deserialize(response["Response"])
|
|
872
|
+
return model
|
|
873
|
+
except Exception as e:
|
|
874
|
+
if isinstance(e, TencentCloudSDKException):
|
|
875
|
+
raise
|
|
876
|
+
else:
|
|
877
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
def ModifyCloudNativeAPIGatewayMCPServerACL(self, request):
|
|
881
|
+
r"""修改 MCP Server ACL
|
|
882
|
+
|
|
883
|
+
:param request: Request instance for ModifyCloudNativeAPIGatewayMCPServerACL.
|
|
884
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayMCPServerACLRequest`
|
|
885
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayMCPServerACLResponse`
|
|
886
|
+
|
|
887
|
+
"""
|
|
888
|
+
try:
|
|
889
|
+
params = request._serialize()
|
|
890
|
+
headers = request.headers
|
|
891
|
+
body = self.call("ModifyCloudNativeAPIGatewayMCPServerACL", params, headers=headers)
|
|
892
|
+
response = json.loads(body)
|
|
893
|
+
model = models.ModifyCloudNativeAPIGatewayMCPServerACLResponse()
|
|
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
|
+
|
|
903
|
+
def ModifyCloudNativeAPIGatewayMCPServerAuth(self, request):
|
|
904
|
+
r"""修改 MCP Server 的认证配置
|
|
905
|
+
|
|
906
|
+
:param request: Request instance for ModifyCloudNativeAPIGatewayMCPServerAuth.
|
|
907
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayMCPServerAuthRequest`
|
|
908
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayMCPServerAuthResponse`
|
|
909
|
+
|
|
910
|
+
"""
|
|
911
|
+
try:
|
|
912
|
+
params = request._serialize()
|
|
913
|
+
headers = request.headers
|
|
914
|
+
body = self.call("ModifyCloudNativeAPIGatewayMCPServerAuth", params, headers=headers)
|
|
915
|
+
response = json.loads(body)
|
|
916
|
+
model = models.ModifyCloudNativeAPIGatewayMCPServerAuthResponse()
|
|
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
|
+
|
|
926
|
+
def ModifyCloudNativeAPIGatewayMCPServerStatus(self, request):
|
|
927
|
+
r"""创建AI 网关MCP Server
|
|
928
|
+
|
|
929
|
+
:param request: Request instance for ModifyCloudNativeAPIGatewayMCPServerStatus.
|
|
930
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayMCPServerStatusRequest`
|
|
931
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayMCPServerStatusResponse`
|
|
932
|
+
|
|
933
|
+
"""
|
|
934
|
+
try:
|
|
935
|
+
params = request._serialize()
|
|
936
|
+
headers = request.headers
|
|
937
|
+
body = self.call("ModifyCloudNativeAPIGatewayMCPServerStatus", params, headers=headers)
|
|
938
|
+
response = json.loads(body)
|
|
939
|
+
model = models.ModifyCloudNativeAPIGatewayMCPServerStatusResponse()
|
|
940
|
+
model._deserialize(response["Response"])
|
|
941
|
+
return model
|
|
942
|
+
except Exception as e:
|
|
943
|
+
if isinstance(e, TencentCloudSDKException):
|
|
944
|
+
raise
|
|
945
|
+
else:
|
|
946
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
def ModifyCloudNativeAPIGatewayMCPTool(self, request):
|
|
950
|
+
r"""修改AI网关MCP Tool
|
|
951
|
+
|
|
952
|
+
:param request: Request instance for ModifyCloudNativeAPIGatewayMCPTool.
|
|
953
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayMCPToolRequest`
|
|
954
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayMCPToolResponse`
|
|
955
|
+
|
|
956
|
+
"""
|
|
957
|
+
try:
|
|
958
|
+
params = request._serialize()
|
|
959
|
+
headers = request.headers
|
|
960
|
+
body = self.call("ModifyCloudNativeAPIGatewayMCPTool", params, headers=headers)
|
|
961
|
+
response = json.loads(body)
|
|
962
|
+
model = models.ModifyCloudNativeAPIGatewayMCPToolResponse()
|
|
963
|
+
model._deserialize(response["Response"])
|
|
964
|
+
return model
|
|
965
|
+
except Exception as e:
|
|
966
|
+
if isinstance(e, TencentCloudSDKException):
|
|
967
|
+
raise
|
|
968
|
+
else:
|
|
969
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
def ModifyCloudNativeAPIGatewayMCPToolACL(self, request):
|
|
973
|
+
r"""修改 MCP Server Tool ACL
|
|
974
|
+
|
|
975
|
+
:param request: Request instance for ModifyCloudNativeAPIGatewayMCPToolACL.
|
|
976
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayMCPToolACLRequest`
|
|
977
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayMCPToolACLResponse`
|
|
978
|
+
|
|
979
|
+
"""
|
|
980
|
+
try:
|
|
981
|
+
params = request._serialize()
|
|
982
|
+
headers = request.headers
|
|
983
|
+
body = self.call("ModifyCloudNativeAPIGatewayMCPToolACL", params, headers=headers)
|
|
984
|
+
response = json.loads(body)
|
|
985
|
+
model = models.ModifyCloudNativeAPIGatewayMCPToolACLResponse()
|
|
986
|
+
model._deserialize(response["Response"])
|
|
987
|
+
return model
|
|
988
|
+
except Exception as e:
|
|
989
|
+
if isinstance(e, TencentCloudSDKException):
|
|
990
|
+
raise
|
|
991
|
+
else:
|
|
992
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
def ModifyCloudNativeAPIGatewayMCPToolStatus(self, request):
|
|
996
|
+
r"""AI网关修改MCP Tool上下线状态
|
|
997
|
+
|
|
998
|
+
:param request: Request instance for ModifyCloudNativeAPIGatewayMCPToolStatus.
|
|
999
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayMCPToolStatusRequest`
|
|
1000
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewayMCPToolStatusResponse`
|
|
1001
|
+
|
|
1002
|
+
"""
|
|
1003
|
+
try:
|
|
1004
|
+
params = request._serialize()
|
|
1005
|
+
headers = request.headers
|
|
1006
|
+
body = self.call("ModifyCloudNativeAPIGatewayMCPToolStatus", params, headers=headers)
|
|
1007
|
+
response = json.loads(body)
|
|
1008
|
+
model = models.ModifyCloudNativeAPIGatewayMCPToolStatusResponse()
|
|
1009
|
+
model._deserialize(response["Response"])
|
|
1010
|
+
return model
|
|
1011
|
+
except Exception as e:
|
|
1012
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1013
|
+
raise
|
|
1014
|
+
else:
|
|
1015
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
def ModifyCloudNativeAPIGatewaySecretKey(self, request):
|
|
1019
|
+
r"""修改AI网关密钥
|
|
1020
|
+
|
|
1021
|
+
:param request: Request instance for ModifyCloudNativeAPIGatewaySecretKey.
|
|
1022
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewaySecretKeyRequest`
|
|
1023
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.ModifyCloudNativeAPIGatewaySecretKeyResponse`
|
|
1024
|
+
|
|
1025
|
+
"""
|
|
1026
|
+
try:
|
|
1027
|
+
params = request._serialize()
|
|
1028
|
+
headers = request.headers
|
|
1029
|
+
body = self.call("ModifyCloudNativeAPIGatewaySecretKey", params, headers=headers)
|
|
1030
|
+
response = json.loads(body)
|
|
1031
|
+
model = models.ModifyCloudNativeAPIGatewaySecretKeyResponse()
|
|
1032
|
+
model._deserialize(response["Response"])
|
|
1033
|
+
return model
|
|
1034
|
+
except Exception as e:
|
|
1035
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1036
|
+
raise
|
|
1037
|
+
else:
|
|
1038
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
def RemoveCloudNativeAPIGatewayConsumerGroupAuth(self, request):
|
|
1042
|
+
r"""从资源(模型 API / MCP Server)移除消费者组授权。
|
|
1043
|
+
|
|
1044
|
+
:param request: Request instance for RemoveCloudNativeAPIGatewayConsumerGroupAuth.
|
|
1045
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.RemoveCloudNativeAPIGatewayConsumerGroupAuthRequest`
|
|
1046
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.RemoveCloudNativeAPIGatewayConsumerGroupAuthResponse`
|
|
1047
|
+
|
|
1048
|
+
"""
|
|
1049
|
+
try:
|
|
1050
|
+
params = request._serialize()
|
|
1051
|
+
headers = request.headers
|
|
1052
|
+
body = self.call("RemoveCloudNativeAPIGatewayConsumerGroupAuth", params, headers=headers)
|
|
1053
|
+
response = json.loads(body)
|
|
1054
|
+
model = models.RemoveCloudNativeAPIGatewayConsumerGroupAuthResponse()
|
|
1055
|
+
model._deserialize(response["Response"])
|
|
1056
|
+
return model
|
|
1057
|
+
except Exception as e:
|
|
1058
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1059
|
+
raise
|
|
1060
|
+
else:
|
|
1061
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|