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.
@@ -0,0 +1,836 @@
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
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.cngw.v20230418 import models
20
+ from typing import Dict
21
+
22
+
23
+ class CngwClient(AbstractClient):
24
+ _apiVersion = '2023-04-18'
25
+ _endpoint = 'cngw.tencentcloudapi.com'
26
+ _service = 'cngw'
27
+
28
+ async def AddCloudNativeAPIGatewayConsumerGroupAuth(
29
+ self,
30
+ request: models.AddCloudNativeAPIGatewayConsumerGroupAuthRequest,
31
+ opts: Dict = None,
32
+ ) -> models.AddCloudNativeAPIGatewayConsumerGroupAuthResponse:
33
+ """
34
+ 为资源(模型 API / MCP Server)添加消费者组授权。
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "AddCloudNativeAPIGatewayConsumerGroupAuth"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.AddCloudNativeAPIGatewayConsumerGroupAuthResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def CreateCloudNativeAPIGatewayConsumer(
47
+ self,
48
+ request: models.CreateCloudNativeAPIGatewayConsumerRequest,
49
+ opts: Dict = None,
50
+ ) -> models.CreateCloudNativeAPIGatewayConsumerResponse:
51
+ """
52
+ 创建AI网关消费者。
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "CreateCloudNativeAPIGatewayConsumer"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.CreateCloudNativeAPIGatewayConsumerResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
64
+ async def CreateCloudNativeAPIGatewayConsumerGroup(
65
+ self,
66
+ request: models.CreateCloudNativeAPIGatewayConsumerGroupRequest,
67
+ opts: Dict = None,
68
+ ) -> models.CreateCloudNativeAPIGatewayConsumerGroupResponse:
69
+ """
70
+ 创建AI 网关消费者组
71
+ """
72
+
73
+ kwargs = {}
74
+ kwargs["action"] = "CreateCloudNativeAPIGatewayConsumerGroup"
75
+ kwargs["params"] = request._serialize()
76
+ kwargs["resp_cls"] = models.CreateCloudNativeAPIGatewayConsumerGroupResponse
77
+ kwargs["headers"] = request.headers
78
+ kwargs["opts"] = opts or {}
79
+
80
+ return await self.call_and_deserialize(**kwargs)
81
+
82
+ async def CreateCloudNativeAPIGatewayLLMModelAPI(
83
+ self,
84
+ request: models.CreateCloudNativeAPIGatewayLLMModelAPIRequest,
85
+ opts: Dict = None,
86
+ ) -> models.CreateCloudNativeAPIGatewayLLMModelAPIResponse:
87
+ """
88
+ 创建 LLM 模型 API。
89
+ """
90
+
91
+ kwargs = {}
92
+ kwargs["action"] = "CreateCloudNativeAPIGatewayLLMModelAPI"
93
+ kwargs["params"] = request._serialize()
94
+ kwargs["resp_cls"] = models.CreateCloudNativeAPIGatewayLLMModelAPIResponse
95
+ kwargs["headers"] = request.headers
96
+ kwargs["opts"] = opts or {}
97
+
98
+ return await self.call_and_deserialize(**kwargs)
99
+
100
+ async def CreateCloudNativeAPIGatewayLLMModelService(
101
+ self,
102
+ request: models.CreateCloudNativeAPIGatewayLLMModelServiceRequest,
103
+ opts: Dict = None,
104
+ ) -> models.CreateCloudNativeAPIGatewayLLMModelServiceResponse:
105
+ """
106
+ 创建 LLM 模型服务。同一网关下 Name 唯一。
107
+ """
108
+
109
+ kwargs = {}
110
+ kwargs["action"] = "CreateCloudNativeAPIGatewayLLMModelService"
111
+ kwargs["params"] = request._serialize()
112
+ kwargs["resp_cls"] = models.CreateCloudNativeAPIGatewayLLMModelServiceResponse
113
+ kwargs["headers"] = request.headers
114
+ kwargs["opts"] = opts or {}
115
+
116
+ return await self.call_and_deserialize(**kwargs)
117
+
118
+ async def CreateCloudNativeAPIGatewayMCPServer(
119
+ self,
120
+ request: models.CreateCloudNativeAPIGatewayMCPServerRequest,
121
+ opts: Dict = None,
122
+ ) -> models.CreateCloudNativeAPIGatewayMCPServerResponse:
123
+ """
124
+ 创建AI网关MCP Server
125
+ """
126
+
127
+ kwargs = {}
128
+ kwargs["action"] = "CreateCloudNativeAPIGatewayMCPServer"
129
+ kwargs["params"] = request._serialize()
130
+ kwargs["resp_cls"] = models.CreateCloudNativeAPIGatewayMCPServerResponse
131
+ kwargs["headers"] = request.headers
132
+ kwargs["opts"] = opts or {}
133
+
134
+ return await self.call_and_deserialize(**kwargs)
135
+
136
+ async def CreateCloudNativeAPIGatewayMCPTool(
137
+ self,
138
+ request: models.CreateCloudNativeAPIGatewayMCPToolRequest,
139
+ opts: Dict = None,
140
+ ) -> models.CreateCloudNativeAPIGatewayMCPToolResponse:
141
+ """
142
+ 创建AI网关MCP Tool
143
+ """
144
+
145
+ kwargs = {}
146
+ kwargs["action"] = "CreateCloudNativeAPIGatewayMCPTool"
147
+ kwargs["params"] = request._serialize()
148
+ kwargs["resp_cls"] = models.CreateCloudNativeAPIGatewayMCPToolResponse
149
+ kwargs["headers"] = request.headers
150
+ kwargs["opts"] = opts or {}
151
+
152
+ return await self.call_and_deserialize(**kwargs)
153
+
154
+ async def CreateCloudNativeAPIGatewaySecretKey(
155
+ self,
156
+ request: models.CreateCloudNativeAPIGatewaySecretKeyRequest,
157
+ opts: Dict = None,
158
+ ) -> models.CreateCloudNativeAPIGatewaySecretKeyResponse:
159
+ """
160
+ 创建消费者密钥。
161
+ """
162
+
163
+ kwargs = {}
164
+ kwargs["action"] = "CreateCloudNativeAPIGatewaySecretKey"
165
+ kwargs["params"] = request._serialize()
166
+ kwargs["resp_cls"] = models.CreateCloudNativeAPIGatewaySecretKeyResponse
167
+ kwargs["headers"] = request.headers
168
+ kwargs["opts"] = opts or {}
169
+
170
+ return await self.call_and_deserialize(**kwargs)
171
+
172
+ async def DeleteCloudNativeAPIGatewayConsumer(
173
+ self,
174
+ request: models.DeleteCloudNativeAPIGatewayConsumerRequest,
175
+ opts: Dict = None,
176
+ ) -> models.DeleteCloudNativeAPIGatewayConsumerResponse:
177
+ """
178
+ 删除AI 网关消费者(被绑定到消费者组/密钥时需先解绑)。
179
+ """
180
+
181
+ kwargs = {}
182
+ kwargs["action"] = "DeleteCloudNativeAPIGatewayConsumer"
183
+ kwargs["params"] = request._serialize()
184
+ kwargs["resp_cls"] = models.DeleteCloudNativeAPIGatewayConsumerResponse
185
+ kwargs["headers"] = request.headers
186
+ kwargs["opts"] = opts or {}
187
+
188
+ return await self.call_and_deserialize(**kwargs)
189
+
190
+ async def DeleteCloudNativeAPIGatewayConsumerGroup(
191
+ self,
192
+ request: models.DeleteCloudNativeAPIGatewayConsumerGroupRequest,
193
+ opts: Dict = None,
194
+ ) -> models.DeleteCloudNativeAPIGatewayConsumerGroupResponse:
195
+ """
196
+ 删除AI网关消费者组
197
+ """
198
+
199
+ kwargs = {}
200
+ kwargs["action"] = "DeleteCloudNativeAPIGatewayConsumerGroup"
201
+ kwargs["params"] = request._serialize()
202
+ kwargs["resp_cls"] = models.DeleteCloudNativeAPIGatewayConsumerGroupResponse
203
+ kwargs["headers"] = request.headers
204
+ kwargs["opts"] = opts or {}
205
+
206
+ return await self.call_and_deserialize(**kwargs)
207
+
208
+ async def DeleteCloudNativeAPIGatewayLLMModelAPI(
209
+ self,
210
+ request: models.DeleteCloudNativeAPIGatewayLLMModelAPIRequest,
211
+ opts: Dict = None,
212
+ ) -> models.DeleteCloudNativeAPIGatewayLLMModelAPIResponse:
213
+ """
214
+ 删除 LLM 模型 API。
215
+ """
216
+
217
+ kwargs = {}
218
+ kwargs["action"] = "DeleteCloudNativeAPIGatewayLLMModelAPI"
219
+ kwargs["params"] = request._serialize()
220
+ kwargs["resp_cls"] = models.DeleteCloudNativeAPIGatewayLLMModelAPIResponse
221
+ kwargs["headers"] = request.headers
222
+ kwargs["opts"] = opts or {}
223
+
224
+ return await self.call_and_deserialize(**kwargs)
225
+
226
+ async def DeleteCloudNativeAPIGatewayLLMModelService(
227
+ self,
228
+ request: models.DeleteCloudNativeAPIGatewayLLMModelServiceRequest,
229
+ opts: Dict = None,
230
+ ) -> models.DeleteCloudNativeAPIGatewayLLMModelServiceResponse:
231
+ """
232
+ 删除 LLM 模型服务(被模型 API 绑定时需先解绑)。
233
+ """
234
+
235
+ kwargs = {}
236
+ kwargs["action"] = "DeleteCloudNativeAPIGatewayLLMModelService"
237
+ kwargs["params"] = request._serialize()
238
+ kwargs["resp_cls"] = models.DeleteCloudNativeAPIGatewayLLMModelServiceResponse
239
+ kwargs["headers"] = request.headers
240
+ kwargs["opts"] = opts or {}
241
+
242
+ return await self.call_and_deserialize(**kwargs)
243
+
244
+ async def DeleteCloudNativeAPIGatewayMCPServer(
245
+ self,
246
+ request: models.DeleteCloudNativeAPIGatewayMCPServerRequest,
247
+ opts: Dict = None,
248
+ ) -> models.DeleteCloudNativeAPIGatewayMCPServerResponse:
249
+ """
250
+ 删除AI网关MCP服务
251
+ """
252
+
253
+ kwargs = {}
254
+ kwargs["action"] = "DeleteCloudNativeAPIGatewayMCPServer"
255
+ kwargs["params"] = request._serialize()
256
+ kwargs["resp_cls"] = models.DeleteCloudNativeAPIGatewayMCPServerResponse
257
+ kwargs["headers"] = request.headers
258
+ kwargs["opts"] = opts or {}
259
+
260
+ return await self.call_and_deserialize(**kwargs)
261
+
262
+ async def DeleteCloudNativeAPIGatewayMCPTool(
263
+ self,
264
+ request: models.DeleteCloudNativeAPIGatewayMCPToolRequest,
265
+ opts: Dict = None,
266
+ ) -> models.DeleteCloudNativeAPIGatewayMCPToolResponse:
267
+ """
268
+ 删除AI网关MCP Tool
269
+ """
270
+
271
+ kwargs = {}
272
+ kwargs["action"] = "DeleteCloudNativeAPIGatewayMCPTool"
273
+ kwargs["params"] = request._serialize()
274
+ kwargs["resp_cls"] = models.DeleteCloudNativeAPIGatewayMCPToolResponse
275
+ kwargs["headers"] = request.headers
276
+ kwargs["opts"] = opts or {}
277
+
278
+ return await self.call_and_deserialize(**kwargs)
279
+
280
+ async def DeleteCloudNativeAPIGatewaySecretKey(
281
+ self,
282
+ request: models.DeleteCloudNativeAPIGatewaySecretKeyRequest,
283
+ opts: Dict = None,
284
+ ) -> models.DeleteCloudNativeAPIGatewaySecretKeyResponse:
285
+ """
286
+ 删除消费者密钥(被绑定时需先解绑)。
287
+ """
288
+
289
+ kwargs = {}
290
+ kwargs["action"] = "DeleteCloudNativeAPIGatewaySecretKey"
291
+ kwargs["params"] = request._serialize()
292
+ kwargs["resp_cls"] = models.DeleteCloudNativeAPIGatewaySecretKeyResponse
293
+ kwargs["headers"] = request.headers
294
+ kwargs["opts"] = opts or {}
295
+
296
+ return await self.call_and_deserialize(**kwargs)
297
+
298
+ async def DescribeCloudNativeAPIGatewayConsumer(
299
+ self,
300
+ request: models.DescribeCloudNativeAPIGatewayConsumerRequest,
301
+ opts: Dict = None,
302
+ ) -> models.DescribeCloudNativeAPIGatewayConsumerResponse:
303
+ """
304
+ 查询云原生消费者详情
305
+ """
306
+
307
+ kwargs = {}
308
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayConsumer"
309
+ kwargs["params"] = request._serialize()
310
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayConsumerResponse
311
+ kwargs["headers"] = request.headers
312
+ kwargs["opts"] = opts or {}
313
+
314
+ return await self.call_and_deserialize(**kwargs)
315
+
316
+ async def DescribeCloudNativeAPIGatewayConsumerGroup(
317
+ self,
318
+ request: models.DescribeCloudNativeAPIGatewayConsumerGroupRequest,
319
+ opts: Dict = None,
320
+ ) -> models.DescribeCloudNativeAPIGatewayConsumerGroupResponse:
321
+ """
322
+ 查询消费者组详情。
323
+ """
324
+
325
+ kwargs = {}
326
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayConsumerGroup"
327
+ kwargs["params"] = request._serialize()
328
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayConsumerGroupResponse
329
+ kwargs["headers"] = request.headers
330
+ kwargs["opts"] = opts or {}
331
+
332
+ return await self.call_and_deserialize(**kwargs)
333
+
334
+ async def DescribeCloudNativeAPIGatewayLLMModelAPI(
335
+ self,
336
+ request: models.DescribeCloudNativeAPIGatewayLLMModelAPIRequest,
337
+ opts: Dict = None,
338
+ ) -> models.DescribeCloudNativeAPIGatewayLLMModelAPIResponse:
339
+ """
340
+ 查询单个 LLM 模型 API 详情。
341
+ """
342
+
343
+ kwargs = {}
344
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayLLMModelAPI"
345
+ kwargs["params"] = request._serialize()
346
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayLLMModelAPIResponse
347
+ kwargs["headers"] = request.headers
348
+ kwargs["opts"] = opts or {}
349
+
350
+ return await self.call_and_deserialize(**kwargs)
351
+
352
+ async def DescribeCloudNativeAPIGatewayLLMModelAPIs(
353
+ self,
354
+ request: models.DescribeCloudNativeAPIGatewayLLMModelAPIsRequest,
355
+ opts: Dict = None,
356
+ ) -> models.DescribeCloudNativeAPIGatewayLLMModelAPIsResponse:
357
+ """
358
+ 查询 LLM 模型 API 列表。
359
+ """
360
+
361
+ kwargs = {}
362
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayLLMModelAPIs"
363
+ kwargs["params"] = request._serialize()
364
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayLLMModelAPIsResponse
365
+ kwargs["headers"] = request.headers
366
+ kwargs["opts"] = opts or {}
367
+
368
+ return await self.call_and_deserialize(**kwargs)
369
+
370
+ async def DescribeCloudNativeAPIGatewayLLMModelService(
371
+ self,
372
+ request: models.DescribeCloudNativeAPIGatewayLLMModelServiceRequest,
373
+ opts: Dict = None,
374
+ ) -> models.DescribeCloudNativeAPIGatewayLLMModelServiceResponse:
375
+ """
376
+ 查询单个 LLM 模型服务详情。
377
+ """
378
+
379
+ kwargs = {}
380
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayLLMModelService"
381
+ kwargs["params"] = request._serialize()
382
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayLLMModelServiceResponse
383
+ kwargs["headers"] = request.headers
384
+ kwargs["opts"] = opts or {}
385
+
386
+ return await self.call_and_deserialize(**kwargs)
387
+
388
+ async def DescribeCloudNativeAPIGatewayLLMModelServices(
389
+ self,
390
+ request: models.DescribeCloudNativeAPIGatewayLLMModelServicesRequest,
391
+ opts: Dict = None,
392
+ ) -> models.DescribeCloudNativeAPIGatewayLLMModelServicesResponse:
393
+ """
394
+ 查询 LLM 模型服务列表。
395
+ """
396
+
397
+ kwargs = {}
398
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayLLMModelServices"
399
+ kwargs["params"] = request._serialize()
400
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayLLMModelServicesResponse
401
+ kwargs["headers"] = request.headers
402
+ kwargs["opts"] = opts or {}
403
+
404
+ return await self.call_and_deserialize(**kwargs)
405
+
406
+ async def DescribeCloudNativeAPIGatewayLLMTokenUsageList(
407
+ self,
408
+ request: models.DescribeCloudNativeAPIGatewayLLMTokenUsageListRequest,
409
+ opts: Dict = None,
410
+ ) -> models.DescribeCloudNativeAPIGatewayLLMTokenUsageListResponse:
411
+ """
412
+ 查询 AI 网关Token 消耗统计
413
+ """
414
+
415
+ kwargs = {}
416
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayLLMTokenUsageList"
417
+ kwargs["params"] = request._serialize()
418
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayLLMTokenUsageListResponse
419
+ kwargs["headers"] = request.headers
420
+ kwargs["opts"] = opts or {}
421
+
422
+ return await self.call_and_deserialize(**kwargs)
423
+
424
+ async def DescribeCloudNativeAPIGatewayLLMTokenUsageStatistics(
425
+ self,
426
+ request: models.DescribeCloudNativeAPIGatewayLLMTokenUsageStatisticsRequest,
427
+ opts: Dict = None,
428
+ ) -> models.DescribeCloudNativeAPIGatewayLLMTokenUsageStatisticsResponse:
429
+ """
430
+ 查询 AI 网关Token 消耗统计汇总
431
+ """
432
+
433
+ kwargs = {}
434
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayLLMTokenUsageStatistics"
435
+ kwargs["params"] = request._serialize()
436
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayLLMTokenUsageStatisticsResponse
437
+ kwargs["headers"] = request.headers
438
+ kwargs["opts"] = opts or {}
439
+
440
+ return await self.call_and_deserialize(**kwargs)
441
+
442
+ async def DescribeCloudNativeAPIGatewayMCPServer(
443
+ self,
444
+ request: models.DescribeCloudNativeAPIGatewayMCPServerRequest,
445
+ opts: Dict = None,
446
+ ) -> models.DescribeCloudNativeAPIGatewayMCPServerResponse:
447
+ """
448
+ 查询AI 网关MCP服务信息
449
+ """
450
+
451
+ kwargs = {}
452
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayMCPServer"
453
+ kwargs["params"] = request._serialize()
454
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayMCPServerResponse
455
+ kwargs["headers"] = request.headers
456
+ kwargs["opts"] = opts or {}
457
+
458
+ return await self.call_and_deserialize(**kwargs)
459
+
460
+ async def DescribeCloudNativeAPIGatewayMCPServerACL(
461
+ self,
462
+ request: models.DescribeCloudNativeAPIGatewayMCPServerACLRequest,
463
+ opts: Dict = None,
464
+ ) -> models.DescribeCloudNativeAPIGatewayMCPServerACLResponse:
465
+ """
466
+ 查看 MCP Server ACL
467
+ """
468
+
469
+ kwargs = {}
470
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayMCPServerACL"
471
+ kwargs["params"] = request._serialize()
472
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayMCPServerACLResponse
473
+ kwargs["headers"] = request.headers
474
+ kwargs["opts"] = opts or {}
475
+
476
+ return await self.call_and_deserialize(**kwargs)
477
+
478
+ async def DescribeCloudNativeAPIGatewayMCPServerAuth(
479
+ self,
480
+ request: models.DescribeCloudNativeAPIGatewayMCPServerAuthRequest,
481
+ opts: Dict = None,
482
+ ) -> models.DescribeCloudNativeAPIGatewayMCPServerAuthResponse:
483
+ """
484
+ 查询 MCP Server 的认证配置
485
+ """
486
+
487
+ kwargs = {}
488
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayMCPServerAuth"
489
+ kwargs["params"] = request._serialize()
490
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayMCPServerAuthResponse
491
+ kwargs["headers"] = request.headers
492
+ kwargs["opts"] = opts or {}
493
+
494
+ return await self.call_and_deserialize(**kwargs)
495
+
496
+ async def DescribeCloudNativeAPIGatewayMCPServerList(
497
+ self,
498
+ request: models.DescribeCloudNativeAPIGatewayMCPServerListRequest,
499
+ opts: Dict = None,
500
+ ) -> models.DescribeCloudNativeAPIGatewayMCPServerListResponse:
501
+ """
502
+ AI网关查询MCP服务列表
503
+ """
504
+
505
+ kwargs = {}
506
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayMCPServerList"
507
+ kwargs["params"] = request._serialize()
508
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayMCPServerListResponse
509
+ kwargs["headers"] = request.headers
510
+ kwargs["opts"] = opts or {}
511
+
512
+ return await self.call_and_deserialize(**kwargs)
513
+
514
+ async def DescribeCloudNativeAPIGatewayMCPTool(
515
+ self,
516
+ request: models.DescribeCloudNativeAPIGatewayMCPToolRequest,
517
+ opts: Dict = None,
518
+ ) -> models.DescribeCloudNativeAPIGatewayMCPToolResponse:
519
+ """
520
+ 查看AI网关MCP Tool
521
+ """
522
+
523
+ kwargs = {}
524
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayMCPTool"
525
+ kwargs["params"] = request._serialize()
526
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayMCPToolResponse
527
+ kwargs["headers"] = request.headers
528
+ kwargs["opts"] = opts or {}
529
+
530
+ return await self.call_and_deserialize(**kwargs)
531
+
532
+ async def DescribeCloudNativeAPIGatewayMCPToolACLList(
533
+ self,
534
+ request: models.DescribeCloudNativeAPIGatewayMCPToolACLListRequest,
535
+ opts: Dict = None,
536
+ ) -> models.DescribeCloudNativeAPIGatewayMCPToolACLListResponse:
537
+ """
538
+ 查询云原生网关 MCP Server 下所有 Tool 的 ACL 状态一览(含 Server ACLType 回显)。
539
+ """
540
+
541
+ kwargs = {}
542
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayMCPToolACLList"
543
+ kwargs["params"] = request._serialize()
544
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayMCPToolACLListResponse
545
+ kwargs["headers"] = request.headers
546
+ kwargs["opts"] = opts or {}
547
+
548
+ return await self.call_and_deserialize(**kwargs)
549
+
550
+ async def DescribeCloudNativeAPIGatewayMCPToolList(
551
+ self,
552
+ request: models.DescribeCloudNativeAPIGatewayMCPToolListRequest,
553
+ opts: Dict = None,
554
+ ) -> models.DescribeCloudNativeAPIGatewayMCPToolListResponse:
555
+ """
556
+ 查询 AI 网关MCP Tool 列表
557
+ """
558
+
559
+ kwargs = {}
560
+ kwargs["action"] = "DescribeCloudNativeAPIGatewayMCPToolList"
561
+ kwargs["params"] = request._serialize()
562
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewayMCPToolListResponse
563
+ kwargs["headers"] = request.headers
564
+ kwargs["opts"] = opts or {}
565
+
566
+ return await self.call_and_deserialize(**kwargs)
567
+
568
+ async def DescribeCloudNativeAPIGatewaySecretKey(
569
+ self,
570
+ request: models.DescribeCloudNativeAPIGatewaySecretKeyRequest,
571
+ opts: Dict = None,
572
+ ) -> models.DescribeCloudNativeAPIGatewaySecretKeyResponse:
573
+ """
574
+ 查询密钥详情(SecretValue 字段会被掩码)。
575
+ """
576
+
577
+ kwargs = {}
578
+ kwargs["action"] = "DescribeCloudNativeAPIGatewaySecretKey"
579
+ kwargs["params"] = request._serialize()
580
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewaySecretKeyResponse
581
+ kwargs["headers"] = request.headers
582
+ kwargs["opts"] = opts or {}
583
+
584
+ return await self.call_and_deserialize(**kwargs)
585
+
586
+ async def DescribeCloudNativeAPIGatewaySecretKeyValue(
587
+ self,
588
+ request: models.DescribeCloudNativeAPIGatewaySecretKeyValueRequest,
589
+ opts: Dict = None,
590
+ ) -> models.DescribeCloudNativeAPIGatewaySecretKeyValueResponse:
591
+ """
592
+ 查询密钥明文值(KMS 类型密钥不可获取)。
593
+ """
594
+
595
+ kwargs = {}
596
+ kwargs["action"] = "DescribeCloudNativeAPIGatewaySecretKeyValue"
597
+ kwargs["params"] = request._serialize()
598
+ kwargs["resp_cls"] = models.DescribeCloudNativeAPIGatewaySecretKeyValueResponse
599
+ kwargs["headers"] = request.headers
600
+ kwargs["opts"] = opts or {}
601
+
602
+ return await self.call_and_deserialize(**kwargs)
603
+
604
+ async def ModifyCloudNativeAPIGatewayConsumer(
605
+ self,
606
+ request: models.ModifyCloudNativeAPIGatewayConsumerRequest,
607
+ opts: Dict = None,
608
+ ) -> models.ModifyCloudNativeAPIGatewayConsumerResponse:
609
+ """
610
+ 修改AI网关消费者
611
+ """
612
+
613
+ kwargs = {}
614
+ kwargs["action"] = "ModifyCloudNativeAPIGatewayConsumer"
615
+ kwargs["params"] = request._serialize()
616
+ kwargs["resp_cls"] = models.ModifyCloudNativeAPIGatewayConsumerResponse
617
+ kwargs["headers"] = request.headers
618
+ kwargs["opts"] = opts or {}
619
+
620
+ return await self.call_and_deserialize(**kwargs)
621
+
622
+ async def ModifyCloudNativeAPIGatewayConsumerGroup(
623
+ self,
624
+ request: models.ModifyCloudNativeAPIGatewayConsumerGroupRequest,
625
+ opts: Dict = None,
626
+ ) -> models.ModifyCloudNativeAPIGatewayConsumerGroupResponse:
627
+ """
628
+ 修改消费者组。
629
+ """
630
+
631
+ kwargs = {}
632
+ kwargs["action"] = "ModifyCloudNativeAPIGatewayConsumerGroup"
633
+ kwargs["params"] = request._serialize()
634
+ kwargs["resp_cls"] = models.ModifyCloudNativeAPIGatewayConsumerGroupResponse
635
+ kwargs["headers"] = request.headers
636
+ kwargs["opts"] = opts or {}
637
+
638
+ return await self.call_and_deserialize(**kwargs)
639
+
640
+ async def ModifyCloudNativeAPIGatewayLLMModelAPI(
641
+ self,
642
+ request: models.ModifyCloudNativeAPIGatewayLLMModelAPIRequest,
643
+ opts: Dict = None,
644
+ ) -> models.ModifyCloudNativeAPIGatewayLLMModelAPIResponse:
645
+ """
646
+ 修改 LLM 模型 API。
647
+ """
648
+
649
+ kwargs = {}
650
+ kwargs["action"] = "ModifyCloudNativeAPIGatewayLLMModelAPI"
651
+ kwargs["params"] = request._serialize()
652
+ kwargs["resp_cls"] = models.ModifyCloudNativeAPIGatewayLLMModelAPIResponse
653
+ kwargs["headers"] = request.headers
654
+ kwargs["opts"] = opts or {}
655
+
656
+ return await self.call_and_deserialize(**kwargs)
657
+
658
+ async def ModifyCloudNativeAPIGatewayLLMModelService(
659
+ self,
660
+ request: models.ModifyCloudNativeAPIGatewayLLMModelServiceRequest,
661
+ opts: Dict = None,
662
+ ) -> models.ModifyCloudNativeAPIGatewayLLMModelServiceResponse:
663
+ """
664
+ 修改 LLM 模型服务。
665
+ """
666
+
667
+ kwargs = {}
668
+ kwargs["action"] = "ModifyCloudNativeAPIGatewayLLMModelService"
669
+ kwargs["params"] = request._serialize()
670
+ kwargs["resp_cls"] = models.ModifyCloudNativeAPIGatewayLLMModelServiceResponse
671
+ kwargs["headers"] = request.headers
672
+ kwargs["opts"] = opts or {}
673
+
674
+ return await self.call_and_deserialize(**kwargs)
675
+
676
+ async def ModifyCloudNativeAPIGatewayMCPServer(
677
+ self,
678
+ request: models.ModifyCloudNativeAPIGatewayMCPServerRequest,
679
+ opts: Dict = None,
680
+ ) -> models.ModifyCloudNativeAPIGatewayMCPServerResponse:
681
+ """
682
+ 修改MCP服务配置
683
+ """
684
+
685
+ kwargs = {}
686
+ kwargs["action"] = "ModifyCloudNativeAPIGatewayMCPServer"
687
+ kwargs["params"] = request._serialize()
688
+ kwargs["resp_cls"] = models.ModifyCloudNativeAPIGatewayMCPServerResponse
689
+ kwargs["headers"] = request.headers
690
+ kwargs["opts"] = opts or {}
691
+
692
+ return await self.call_and_deserialize(**kwargs)
693
+
694
+ async def ModifyCloudNativeAPIGatewayMCPServerACL(
695
+ self,
696
+ request: models.ModifyCloudNativeAPIGatewayMCPServerACLRequest,
697
+ opts: Dict = None,
698
+ ) -> models.ModifyCloudNativeAPIGatewayMCPServerACLResponse:
699
+ """
700
+ 修改 MCP Server ACL
701
+ """
702
+
703
+ kwargs = {}
704
+ kwargs["action"] = "ModifyCloudNativeAPIGatewayMCPServerACL"
705
+ kwargs["params"] = request._serialize()
706
+ kwargs["resp_cls"] = models.ModifyCloudNativeAPIGatewayMCPServerACLResponse
707
+ kwargs["headers"] = request.headers
708
+ kwargs["opts"] = opts or {}
709
+
710
+ return await self.call_and_deserialize(**kwargs)
711
+
712
+ async def ModifyCloudNativeAPIGatewayMCPServerAuth(
713
+ self,
714
+ request: models.ModifyCloudNativeAPIGatewayMCPServerAuthRequest,
715
+ opts: Dict = None,
716
+ ) -> models.ModifyCloudNativeAPIGatewayMCPServerAuthResponse:
717
+ """
718
+ 修改 MCP Server 的认证配置
719
+ """
720
+
721
+ kwargs = {}
722
+ kwargs["action"] = "ModifyCloudNativeAPIGatewayMCPServerAuth"
723
+ kwargs["params"] = request._serialize()
724
+ kwargs["resp_cls"] = models.ModifyCloudNativeAPIGatewayMCPServerAuthResponse
725
+ kwargs["headers"] = request.headers
726
+ kwargs["opts"] = opts or {}
727
+
728
+ return await self.call_and_deserialize(**kwargs)
729
+
730
+ async def ModifyCloudNativeAPIGatewayMCPServerStatus(
731
+ self,
732
+ request: models.ModifyCloudNativeAPIGatewayMCPServerStatusRequest,
733
+ opts: Dict = None,
734
+ ) -> models.ModifyCloudNativeAPIGatewayMCPServerStatusResponse:
735
+ """
736
+ 创建AI 网关MCP Server
737
+ """
738
+
739
+ kwargs = {}
740
+ kwargs["action"] = "ModifyCloudNativeAPIGatewayMCPServerStatus"
741
+ kwargs["params"] = request._serialize()
742
+ kwargs["resp_cls"] = models.ModifyCloudNativeAPIGatewayMCPServerStatusResponse
743
+ kwargs["headers"] = request.headers
744
+ kwargs["opts"] = opts or {}
745
+
746
+ return await self.call_and_deserialize(**kwargs)
747
+
748
+ async def ModifyCloudNativeAPIGatewayMCPTool(
749
+ self,
750
+ request: models.ModifyCloudNativeAPIGatewayMCPToolRequest,
751
+ opts: Dict = None,
752
+ ) -> models.ModifyCloudNativeAPIGatewayMCPToolResponse:
753
+ """
754
+ 修改AI网关MCP Tool
755
+ """
756
+
757
+ kwargs = {}
758
+ kwargs["action"] = "ModifyCloudNativeAPIGatewayMCPTool"
759
+ kwargs["params"] = request._serialize()
760
+ kwargs["resp_cls"] = models.ModifyCloudNativeAPIGatewayMCPToolResponse
761
+ kwargs["headers"] = request.headers
762
+ kwargs["opts"] = opts or {}
763
+
764
+ return await self.call_and_deserialize(**kwargs)
765
+
766
+ async def ModifyCloudNativeAPIGatewayMCPToolACL(
767
+ self,
768
+ request: models.ModifyCloudNativeAPIGatewayMCPToolACLRequest,
769
+ opts: Dict = None,
770
+ ) -> models.ModifyCloudNativeAPIGatewayMCPToolACLResponse:
771
+ """
772
+ 修改 MCP Server Tool ACL
773
+ """
774
+
775
+ kwargs = {}
776
+ kwargs["action"] = "ModifyCloudNativeAPIGatewayMCPToolACL"
777
+ kwargs["params"] = request._serialize()
778
+ kwargs["resp_cls"] = models.ModifyCloudNativeAPIGatewayMCPToolACLResponse
779
+ kwargs["headers"] = request.headers
780
+ kwargs["opts"] = opts or {}
781
+
782
+ return await self.call_and_deserialize(**kwargs)
783
+
784
+ async def ModifyCloudNativeAPIGatewayMCPToolStatus(
785
+ self,
786
+ request: models.ModifyCloudNativeAPIGatewayMCPToolStatusRequest,
787
+ opts: Dict = None,
788
+ ) -> models.ModifyCloudNativeAPIGatewayMCPToolStatusResponse:
789
+ """
790
+ AI网关修改MCP Tool上下线状态
791
+ """
792
+
793
+ kwargs = {}
794
+ kwargs["action"] = "ModifyCloudNativeAPIGatewayMCPToolStatus"
795
+ kwargs["params"] = request._serialize()
796
+ kwargs["resp_cls"] = models.ModifyCloudNativeAPIGatewayMCPToolStatusResponse
797
+ kwargs["headers"] = request.headers
798
+ kwargs["opts"] = opts or {}
799
+
800
+ return await self.call_and_deserialize(**kwargs)
801
+
802
+ async def ModifyCloudNativeAPIGatewaySecretKey(
803
+ self,
804
+ request: models.ModifyCloudNativeAPIGatewaySecretKeyRequest,
805
+ opts: Dict = None,
806
+ ) -> models.ModifyCloudNativeAPIGatewaySecretKeyResponse:
807
+ """
808
+ 修改AI网关密钥
809
+ """
810
+
811
+ kwargs = {}
812
+ kwargs["action"] = "ModifyCloudNativeAPIGatewaySecretKey"
813
+ kwargs["params"] = request._serialize()
814
+ kwargs["resp_cls"] = models.ModifyCloudNativeAPIGatewaySecretKeyResponse
815
+ kwargs["headers"] = request.headers
816
+ kwargs["opts"] = opts or {}
817
+
818
+ return await self.call_and_deserialize(**kwargs)
819
+
820
+ async def RemoveCloudNativeAPIGatewayConsumerGroupAuth(
821
+ self,
822
+ request: models.RemoveCloudNativeAPIGatewayConsumerGroupAuthRequest,
823
+ opts: Dict = None,
824
+ ) -> models.RemoveCloudNativeAPIGatewayConsumerGroupAuthResponse:
825
+ """
826
+ 从资源(模型 API / MCP Server)移除消费者组授权。
827
+ """
828
+
829
+ kwargs = {}
830
+ kwargs["action"] = "RemoveCloudNativeAPIGatewayConsumerGroupAuth"
831
+ kwargs["params"] = request._serialize()
832
+ kwargs["resp_cls"] = models.RemoveCloudNativeAPIGatewayConsumerGroupAuthResponse
833
+ kwargs["headers"] = request.headers
834
+ kwargs["opts"] = opts or {}
835
+
836
+ return await self.call_and_deserialize(**kwargs)