tencentcloud-sdk-python 3.1.178__py2.py3-none-any.whl → 3.1.180__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.
Files changed (65) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/aiart/v20221229/aiart_client.py +0 -120
  3. tencentcloud/aiart/v20221229/aiart_client_async.py +0 -95
  4. tencentcloud/aiart/v20221229/errorcodes.py +0 -3
  5. tencentcloud/aiart/v20221229/models.py +59 -1141
  6. tencentcloud/apm/v20210622/apm_client.py +23 -0
  7. tencentcloud/apm/v20210622/apm_client_async.py +18 -0
  8. tencentcloud/apm/v20210622/models.py +34 -0
  9. tencentcloud/cfw/v20190904/models.py +27 -12
  10. tencentcloud/clb/v20180317/models.py +447 -33
  11. tencentcloud/cls/v20201016/models.py +893 -0
  12. tencentcloud/csip/v20221121/models.py +71 -26
  13. tencentcloud/cynosdb/v20190107/models.py +45 -0
  14. tencentcloud/databuddy/v20260715/databuddy_client.py +138 -0
  15. tencentcloud/databuddy/v20260715/databuddy_client_async.py +108 -0
  16. tencentcloud/databuddy/v20260715/errorcodes.py +29 -20
  17. tencentcloud/databuddy/v20260715/models.py +1899 -316
  18. tencentcloud/dbbrain/v20210527/dbbrain_client.py +23 -0
  19. tencentcloud/dbbrain/v20210527/dbbrain_client_async.py +18 -0
  20. tencentcloud/dbbrain/v20210527/models.py +1082 -117
  21. tencentcloud/dlc/v20210125/errorcodes.py +3 -0
  22. tencentcloud/dlc/v20210125/models.py +119 -84
  23. tencentcloud/ess/v20201111/models.py +83 -90
  24. tencentcloud/faceid/v20180301/models.py +2 -2
  25. tencentcloud/fwm/v20250611/models.py +12 -12
  26. tencentcloud/hai/v20230812/errorcodes.py +15 -0
  27. tencentcloud/hai/v20230812/hai_client.py +23 -0
  28. tencentcloud/hai/v20230812/hai_client_async.py +18 -0
  29. tencentcloud/hai/v20230812/models.py +109 -0
  30. tencentcloud/hunyuan/v20230901/hunyuan_client.py +63 -21
  31. tencentcloud/hunyuan/v20230901/hunyuan_client_async.py +42 -0
  32. tencentcloud/iss/v20230517/models.py +312 -158
  33. tencentcloud/live/v20180801/errorcodes.py +12 -0
  34. tencentcloud/live/v20180801/live_client.py +207 -0
  35. tencentcloud/live/v20180801/live_client_async.py +162 -0
  36. tencentcloud/live/v20180801/models.py +1380 -0
  37. tencentcloud/mps/v20190612/models.py +82 -36
  38. tencentcloud/ocr/v20181119/models.py +0 -30
  39. tencentcloud/tcb/v20180608/models.py +488 -0
  40. tencentcloud/tcb/v20180608/tcb_client.py +69 -0
  41. tencentcloud/tcb/v20180608/tcb_client_async.py +54 -0
  42. tencentcloud/tdai/v20250717/models.py +30 -0
  43. tencentcloud/teo/v20220901/models.py +541 -69
  44. tencentcloud/teo/v20220901/teo_client.py +50 -0
  45. tencentcloud/teo/v20220901/teo_client_async.py +40 -0
  46. tencentcloud/thpc/v20230321/models.py +2 -2
  47. tencentcloud/tione/v20211111/models.py +112 -78
  48. tencentcloud/trocket/v20230308/models.py +1864 -104
  49. tencentcloud/trocket/v20230308/trocket_client.py +161 -0
  50. tencentcloud/trocket/v20230308/trocket_client_async.py +126 -0
  51. tencentcloud/vpc/v20170312/errorcodes.py +36 -0
  52. tencentcloud/vpc/v20170312/models.py +590 -302
  53. tencentcloud/waf/v20180125/errorcodes.py +4 -4
  54. tencentcloud/waf/v20180125/models.py +48 -50
  55. tencentcloud/workbuddyenterprise/__init__.py +0 -0
  56. tencentcloud/workbuddyenterprise/v20260709/__init__.py +0 -0
  57. tencentcloud/workbuddyenterprise/v20260709/errorcodes.py +231 -0
  58. tencentcloud/workbuddyenterprise/v20260709/models.py +7823 -0
  59. tencentcloud/workbuddyenterprise/v20260709/workbuddyenterprise_client.py +601 -0
  60. tencentcloud/workbuddyenterprise/v20260709/workbuddyenterprise_client_async.py +476 -0
  61. {tencentcloud_sdk_python-3.1.178.dist-info → tencentcloud_sdk_python-3.1.180.dist-info}/METADATA +1 -1
  62. {tencentcloud_sdk_python-3.1.178.dist-info → tencentcloud_sdk_python-3.1.180.dist-info}/RECORD +65 -59
  63. {tencentcloud_sdk_python-3.1.178.dist-info → tencentcloud_sdk_python-3.1.180.dist-info}/LICENSE +0 -0
  64. {tencentcloud_sdk_python-3.1.178.dist-info → tencentcloud_sdk_python-3.1.180.dist-info}/WHEEL +0 -0
  65. {tencentcloud_sdk_python-3.1.178.dist-info → tencentcloud_sdk_python-3.1.180.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.178'
17
+ __version__ = '3.1.180'
@@ -123,30 +123,6 @@ class AiartClient(AbstractClient):
123
123
  raise TencentCloudSDKException(type(e).__name__, str(e))
124
124
 
125
125
 
126
- def ImageToImage(self, request):
127
- r"""图像风格化(图生图)接口提供生成式的图生图风格转化能力,将根据输入的图像及文本描述,智能生成风格转化后的图像。建议避免输入人像过小、姿势复杂、人数较多的人像图片。
128
- 图像风格化(图生图)默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
129
-
130
- :param request: Request instance for ImageToImage.
131
- :type request: :class:`tencentcloud.aiart.v20221229.models.ImageToImageRequest`
132
- :rtype: :class:`tencentcloud.aiart.v20221229.models.ImageToImageResponse`
133
-
134
- """
135
- try:
136
- params = request._serialize()
137
- headers = request.headers
138
- body = self.call("ImageToImage", params, headers=headers)
139
- response = json.loads(body)
140
- model = models.ImageToImageResponse()
141
- model._deserialize(response["Response"])
142
- return model
143
- except Exception as e:
144
- if isinstance(e, TencentCloudSDKException):
145
- raise
146
- else:
147
- raise TencentCloudSDKException(type(e).__name__, str(e))
148
-
149
-
150
126
  def QueryDrawPortraitJob(self, request):
151
127
  r"""AI 写真分为上传训练图片、训练写真模型(可选跳过)、生成写真图片3个环节,需要依次调用对应接口。
152
128
  生成图片分为提交任务和查询任务2个接口:
@@ -230,30 +206,6 @@ class AiartClient(AbstractClient):
230
206
  raise TencentCloudSDKException(type(e).__name__, str(e))
231
207
 
232
208
 
233
- def QueryTextToImageJob(self, request):
234
- r"""混元生图接口,基于混元大模型,根据输入的文本描述快速生成图片。
235
- 默认提供0个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
236
-
237
- :param request: Request instance for QueryTextToImageJob.
238
- :type request: :class:`tencentcloud.aiart.v20221229.models.QueryTextToImageJobRequest`
239
- :rtype: :class:`tencentcloud.aiart.v20221229.models.QueryTextToImageJobResponse`
240
-
241
- """
242
- try:
243
- params = request._serialize()
244
- headers = request.headers
245
- body = self.call("QueryTextToImageJob", params, headers=headers)
246
- response = json.loads(body)
247
- model = models.QueryTextToImageJobResponse()
248
- model._deserialize(response["Response"])
249
- return model
250
- except Exception as e:
251
- if isinstance(e, TencentCloudSDKException):
252
- raise
253
- else:
254
- raise TencentCloudSDKException(type(e).__name__, str(e))
255
-
256
-
257
209
  def QueryTextToImageProJob(self, request):
258
210
  r"""本接口已迁移至腾讯混元大模型-混元生图,即将停止此处维护,可切换至 [混元生图 API](https://cloud.tencent.com/document/product/1729/105970) 继续使用。
259
211
  文生图(高级版)接口基于高级版文生图大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
@@ -469,30 +421,6 @@ class AiartClient(AbstractClient):
469
421
  raise TencentCloudSDKException(type(e).__name__, str(e))
470
422
 
471
423
 
472
- def SubmitTextToImageJob(self, request):
473
- r"""混元生图接口,基于混元大模型,根据输入的文本描述快速生成图片。
474
- 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
475
-
476
- :param request: Request instance for SubmitTextToImageJob.
477
- :type request: :class:`tencentcloud.aiart.v20221229.models.SubmitTextToImageJobRequest`
478
- :rtype: :class:`tencentcloud.aiart.v20221229.models.SubmitTextToImageJobResponse`
479
-
480
- """
481
- try:
482
- params = request._serialize()
483
- headers = request.headers
484
- body = self.call("SubmitTextToImageJob", params, headers=headers)
485
- response = json.loads(body)
486
- model = models.SubmitTextToImageJobResponse()
487
- model._deserialize(response["Response"])
488
- return model
489
- except Exception as e:
490
- if isinstance(e, TencentCloudSDKException):
491
- raise
492
- else:
493
- raise TencentCloudSDKException(type(e).__name__, str(e))
494
-
495
-
496
424
  def SubmitTextToImageProJob(self, request):
497
425
  r"""本接口已迁移至腾讯混元大模型-混元生图,即将停止此处维护,可切换至 [混元生图 API](https://cloud.tencent.com/document/product/1729/105969) 继续使用。
498
426
  文生图(高级版)接口基于高级版文生图大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
@@ -550,54 +478,6 @@ class AiartClient(AbstractClient):
550
478
  raise TencentCloudSDKException(type(e).__name__, str(e))
551
479
 
552
480
 
553
- def TextToImageLite(self, request):
554
- r"""混元文生图接口,基于混元大模型,根据输入的文本描述智能生成图片
555
- 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
556
-
557
- :param request: Request instance for TextToImageLite.
558
- :type request: :class:`tencentcloud.aiart.v20221229.models.TextToImageLiteRequest`
559
- :rtype: :class:`tencentcloud.aiart.v20221229.models.TextToImageLiteResponse`
560
-
561
- """
562
- try:
563
- params = request._serialize()
564
- headers = request.headers
565
- body = self.call("TextToImageLite", params, headers=headers)
566
- response = json.loads(body)
567
- model = models.TextToImageLiteResponse()
568
- model._deserialize(response["Response"])
569
- return model
570
- except Exception as e:
571
- if isinstance(e, TencentCloudSDKException):
572
- raise
573
- else:
574
- raise TencentCloudSDKException(type(e).__name__, str(e))
575
-
576
-
577
- def TextToImageRapid(self, request):
578
- r"""混元文生图接口,基于混元大模型,根据输入的文本描述智能生成图片
579
- 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
580
-
581
- :param request: Request instance for TextToImageRapid.
582
- :type request: :class:`tencentcloud.aiart.v20221229.models.TextToImageRapidRequest`
583
- :rtype: :class:`tencentcloud.aiart.v20221229.models.TextToImageRapidResponse`
584
-
585
- """
586
- try:
587
- params = request._serialize()
588
- headers = request.headers
589
- body = self.call("TextToImageRapid", params, headers=headers)
590
- response = json.loads(body)
591
- model = models.TextToImageRapidResponse()
592
- model._deserialize(response["Response"])
593
- return model
594
- except Exception as e:
595
- if isinstance(e, TencentCloudSDKException):
596
- raise
597
- else:
598
- raise TencentCloudSDKException(type(e).__name__, str(e))
599
-
600
-
601
481
  def UploadTrainPortraitImages(self, request):
602
482
  r"""AI 写真分为上传训练图片、训练写真模型(可选跳过)、生成写真图片3个环节,需要依次调用对应接口。
603
483
  本接口用于上传人像图片并指定对应的写真模型 ID。上传的图片要求是同一个人,建议上传单人、正脸、脸部区域占比较大、脸部清晰无遮挡、无大角度偏转、无夸张表情的图片。
@@ -102,25 +102,6 @@ class AiartClient(AbstractClient):
102
102
 
103
103
  return await self.call_and_deserialize(**kwargs)
104
104
 
105
- async def ImageToImage(
106
- self,
107
- request: models.ImageToImageRequest,
108
- opts: Dict = None,
109
- ) -> models.ImageToImageResponse:
110
- """
111
- 图像风格化(图生图)接口提供生成式的图生图风格转化能力,将根据输入的图像及文本描述,智能生成风格转化后的图像。建议避免输入人像过小、姿势复杂、人数较多的人像图片。
112
- 图像风格化(图生图)默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
113
- """
114
-
115
- kwargs = {}
116
- kwargs["action"] = "ImageToImage"
117
- kwargs["params"] = request._serialize()
118
- kwargs["resp_cls"] = models.ImageToImageResponse
119
- kwargs["headers"] = request.headers
120
- kwargs["opts"] = opts or {}
121
-
122
- return await self.call_and_deserialize(**kwargs)
123
-
124
105
  async def QueryDrawPortraitJob(
125
106
  self,
126
107
  request: models.QueryDrawPortraitJobRequest,
@@ -189,25 +170,6 @@ class AiartClient(AbstractClient):
189
170
 
190
171
  return await self.call_and_deserialize(**kwargs)
191
172
 
192
- async def QueryTextToImageJob(
193
- self,
194
- request: models.QueryTextToImageJobRequest,
195
- opts: Dict = None,
196
- ) -> models.QueryTextToImageJobResponse:
197
- """
198
- 混元生图接口,基于混元大模型,根据输入的文本描述快速生成图片。
199
- 默认提供0个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
200
- """
201
-
202
- kwargs = {}
203
- kwargs["action"] = "QueryTextToImageJob"
204
- kwargs["params"] = request._serialize()
205
- kwargs["resp_cls"] = models.QueryTextToImageJobResponse
206
- kwargs["headers"] = request.headers
207
- kwargs["opts"] = opts or {}
208
-
209
- return await self.call_and_deserialize(**kwargs)
210
-
211
173
  async def QueryTextToImageProJob(
212
174
  self,
213
175
  request: models.QueryTextToImageProJobRequest,
@@ -383,25 +345,6 @@ class AiartClient(AbstractClient):
383
345
 
384
346
  return await self.call_and_deserialize(**kwargs)
385
347
 
386
- async def SubmitTextToImageJob(
387
- self,
388
- request: models.SubmitTextToImageJobRequest,
389
- opts: Dict = None,
390
- ) -> models.SubmitTextToImageJobResponse:
391
- """
392
- 混元生图接口,基于混元大模型,根据输入的文本描述快速生成图片。
393
- 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
394
- """
395
-
396
- kwargs = {}
397
- kwargs["action"] = "SubmitTextToImageJob"
398
- kwargs["params"] = request._serialize()
399
- kwargs["resp_cls"] = models.SubmitTextToImageJobResponse
400
- kwargs["headers"] = request.headers
401
- kwargs["opts"] = opts or {}
402
-
403
- return await self.call_and_deserialize(**kwargs)
404
-
405
348
  async def SubmitTextToImageProJob(
406
349
  self,
407
350
  request: models.SubmitTextToImageProJobRequest,
@@ -449,44 +392,6 @@ class AiartClient(AbstractClient):
449
392
 
450
393
  return await self.call_and_deserialize(**kwargs)
451
394
 
452
- async def TextToImageLite(
453
- self,
454
- request: models.TextToImageLiteRequest,
455
- opts: Dict = None,
456
- ) -> models.TextToImageLiteResponse:
457
- """
458
- 混元文生图接口,基于混元大模型,根据输入的文本描述智能生成图片
459
- 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
460
- """
461
-
462
- kwargs = {}
463
- kwargs["action"] = "TextToImageLite"
464
- kwargs["params"] = request._serialize()
465
- kwargs["resp_cls"] = models.TextToImageLiteResponse
466
- kwargs["headers"] = request.headers
467
- kwargs["opts"] = opts or {}
468
-
469
- return await self.call_and_deserialize(**kwargs)
470
-
471
- async def TextToImageRapid(
472
- self,
473
- request: models.TextToImageRapidRequest,
474
- opts: Dict = None,
475
- ) -> models.TextToImageRapidResponse:
476
- """
477
- 混元文生图接口,基于混元大模型,根据输入的文本描述智能生成图片
478
- 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
479
- """
480
-
481
- kwargs = {}
482
- kwargs["action"] = "TextToImageRapid"
483
- kwargs["params"] = request._serialize()
484
- kwargs["resp_cls"] = models.TextToImageRapidResponse
485
- kwargs["headers"] = request.headers
486
- kwargs["opts"] = opts or {}
487
-
488
- return await self.call_and_deserialize(**kwargs)
489
-
490
395
  async def UploadTrainPortraitImages(
491
396
  self,
492
397
  request: models.UploadTrainPortraitImagesRequest,
@@ -41,9 +41,6 @@ FAILEDOPERATION_INNERERROR = 'FailedOperation.InnerError'
41
41
  # 任务不存在。
42
42
  FAILEDOPERATION_JOBNOTEXIST = 'FailedOperation.JobNotExist'
43
43
 
44
- # 审核失败
45
- FAILEDOPERATION_MODERATIONFAILED = 'FailedOperation.ModerationFailed'
46
-
47
44
  # 整个请求体太大(通常主要是图片)。
48
45
  FAILEDOPERATION_REQUESTENTITYTOOLARGE = 'FailedOperation.RequestEntityTooLarge'
49
46