tencentcloud-sdk-python-intl-en 3.0.1074__py2.py3-none-any.whl → 3.0.1076__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.

Potentially problematic release.


This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.

Files changed (126) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/advisor/v20200721/models.py +120 -0
  3. tencentcloud/aiart/v20221229/models.py +95 -0
  4. tencentcloud/ams/v20201229/models.py +432 -0
  5. tencentcloud/antiddos/v20200309/models.py +2806 -0
  6. tencentcloud/apigateway/v20180808/models.py +3945 -0
  7. tencentcloud/autoscaling/v20180419/models.py +2449 -5
  8. tencentcloud/batch/v20170312/models.py +1566 -0
  9. tencentcloud/billing/v20180709/models.py +2418 -0
  10. tencentcloud/cam/v20190116/models.py +1697 -0
  11. tencentcloud/captcha/v20190722/models.py +70 -0
  12. tencentcloud/car/v20220110/models.py +803 -0
  13. tencentcloud/cbs/v20170312/models.py +1245 -0
  14. tencentcloud/ccc/v20200210/models.py +1949 -1
  15. tencentcloud/cdb/v20170320/models.py +4821 -0
  16. tencentcloud/cdn/v20180606/models.py +4870 -8
  17. tencentcloud/cdwdoris/v20211228/models.py +3337 -0
  18. tencentcloud/cfg/v20210820/models.py +1194 -0
  19. tencentcloud/cfs/v20190719/models.py +1178 -0
  20. tencentcloud/cfw/v20190904/models.py +2378 -0
  21. tencentcloud/chdfs/v20201112/models.py +513 -0
  22. tencentcloud/ciam/v20210420/models.py +49 -0
  23. tencentcloud/ciam/v20220331/models.py +789 -0
  24. tencentcloud/ckafka/v20190819/models.py +2576 -0
  25. tencentcloud/clb/v20180317/models.py +3220 -1
  26. tencentcloud/cloudaudit/v20190319/models.py +519 -0
  27. tencentcloud/cls/v20201016/models.py +3652 -1
  28. tencentcloud/cmq/v20190304/models.py +571 -0
  29. tencentcloud/controlcenter/v20230110/models.py +15 -0
  30. tencentcloud/csip/v20221121/models.py +2881 -2
  31. tencentcloud/cvm/v20170312/models.py +2827 -0
  32. tencentcloud/cwp/v20180228/models.py +16412 -0
  33. tencentcloud/cynosdb/v20190107/models.py +4267 -4
  34. tencentcloud/dataintegration/v20220613/models.py +18 -0
  35. tencentcloud/dayu/v20180709/models.py +3541 -12
  36. tencentcloud/dbbrain/v20191016/models.py +1056 -0
  37. tencentcloud/dbbrain/v20210527/models.py +1763 -0
  38. tencentcloud/dc/v20180410/models.py +767 -0
  39. tencentcloud/dcdb/v20180411/models.py +2335 -0
  40. tencentcloud/dlc/v20210125/models.py +3985 -5
  41. tencentcloud/dms/v20200819/models.py +51 -0
  42. tencentcloud/dnspod/v20210323/models.py +1286 -0
  43. tencentcloud/domain/v20180808/models.py +855 -0
  44. tencentcloud/dts/v20180330/models.py +791 -0
  45. tencentcloud/dts/v20211206/models.py +2317 -1
  46. tencentcloud/eb/v20210416/models.py +858 -0
  47. tencentcloud/ecdn/v20191012/models.py +811 -0
  48. tencentcloud/ecm/v20190719/models.py +3972 -1
  49. tencentcloud/eiam/v20210420/models.py +1265 -0
  50. tencentcloud/emr/v20190103/models.py +2926 -7
  51. tencentcloud/es/v20180416/errorcodes.py +48 -0
  52. tencentcloud/es/v20180416/models.py +1525 -2
  53. tencentcloud/facefusion/v20220927/errorcodes.py +18 -0
  54. tencentcloud/facefusion/v20220927/facefusion_client.py +46 -0
  55. tencentcloud/facefusion/v20220927/models.py +818 -0
  56. tencentcloud/faceid/v20180301/models.py +2071 -0
  57. tencentcloud/gaap/v20180529/models.py +3103 -8
  58. tencentcloud/gme/v20180711/models.py +388 -0
  59. tencentcloud/gpm/v20200820/models.py +674 -0
  60. tencentcloud/gse/v20191112/models.py +972 -0
  61. tencentcloud/iai/v20200303/models.py +1430 -0
  62. tencentcloud/ims/v20201229/models.py +329 -0
  63. tencentcloud/intlpartnersmgt/v20220928/models.py +988 -0
  64. tencentcloud/iotcloud/v20210408/models.py +585 -0
  65. tencentcloud/ip/v20210409/models.py +178 -0
  66. tencentcloud/kms/v20190118/models.py +869 -0
  67. tencentcloud/lcic/v20220817/models.py +1658 -0
  68. tencentcloud/lighthouse/v20200324/models.py +2088 -0
  69. tencentcloud/live/v20180801/models.py +4287 -0
  70. tencentcloud/mariadb/v20170312/models.py +1905 -0
  71. tencentcloud/mdc/v20200828/models.py +1104 -0
  72. tencentcloud/mdl/v20200326/models.py +1911 -1
  73. tencentcloud/mdp/v20200527/models.py +452 -0
  74. tencentcloud/mongodb/v20190725/models.py +1234 -0
  75. tencentcloud/monitor/v20180724/models.py +5798 -2
  76. tencentcloud/mps/v20190612/models.py +8699 -105
  77. tencentcloud/msp/v20180319/models.py +183 -0
  78. tencentcloud/ocr/v20181119/models.py +3160 -1
  79. tencentcloud/omics/v20221128/models.py +1086 -0
  80. tencentcloud/organization/v20181225/models.py +285 -0
  81. tencentcloud/organization/v20210331/models.py +2267 -0
  82. tencentcloud/postgres/v20170312/models.py +3248 -0
  83. tencentcloud/privatedns/v20201028/errorcodes.py +34 -1
  84. tencentcloud/privatedns/v20201028/models.py +1700 -0
  85. tencentcloud/privatedns/v20201028/privatedns_client.py +115 -0
  86. tencentcloud/redis/v20180412/models.py +3298 -3
  87. tencentcloud/rum/v20210622/models.py +2114 -0
  88. tencentcloud/scf/v20180416/models.py +1561 -0
  89. tencentcloud/ses/v20201002/models.py +649 -0
  90. tencentcloud/sms/v20190711/models.py +575 -0
  91. tencentcloud/sms/v20210111/models.py +593 -0
  92. tencentcloud/sqlserver/v20180328/models.py +2921 -2
  93. tencentcloud/ssl/v20191205/models.py +2267 -0
  94. tencentcloud/ssm/v20190923/models.py +678 -0
  95. tencentcloud/sts/v20180813/models.py +161 -0
  96. tencentcloud/tag/v20180813/models.py +784 -0
  97. tencentcloud/tat/v20201028/models.py +806 -0
  98. tencentcloud/tcaplusdb/v20190823/models.py +1860 -0
  99. tencentcloud/tchd/v20230306/models.py +41 -0
  100. tencentcloud/tcmpp/v20240801/models.py +3761 -1
  101. tencentcloud/tcr/v20190924/models.py +1851 -0
  102. tencentcloud/tcss/v20201101/models.py +12523 -0
  103. tencentcloud/tdid/v20210519/models.py +1258 -0
  104. tencentcloud/tdmq/v20200217/models.py +3495 -0
  105. tencentcloud/tem/v20201221/models.py +803 -0
  106. tencentcloud/tem/v20210701/models.py +2551 -1
  107. tencentcloud/teo/v20220106/models.py +4731 -0
  108. tencentcloud/teo/v20220901/models.py +6066 -0
  109. tencentcloud/tiw/v20190919/models.py +1678 -1
  110. tencentcloud/tke/v20180525/models.py +3662 -0
  111. tencentcloud/tms/v20201229/models.py +176 -0
  112. tencentcloud/tmt/v20180321/models.py +65 -0
  113. tencentcloud/trtc/v20190722/models.py +1698 -8
  114. tencentcloud/tts/v20190823/models.py +72 -0
  115. tencentcloud/vm/v20201229/models.py +568 -0
  116. tencentcloud/vm/v20210922/models.py +636 -0
  117. tencentcloud/vod/v20180717/models.py +14078 -1
  118. tencentcloud/vod/v20180717/vod_client.py +33 -0
  119. tencentcloud/vpc/v20170312/models.py +6543 -1
  120. tencentcloud/waf/v20180125/models.py +4814 -0
  121. tencentcloud/wedata/v20210820/models.py +12594 -0
  122. tencentcloud/yunjing/v20180228/models.py +1867 -0
  123. {tencentcloud_sdk_python_intl_en-3.0.1074.dist-info → tencentcloud_sdk_python_intl_en-3.0.1076.dist-info}/METADATA +1 -1
  124. {tencentcloud_sdk_python_intl_en-3.0.1074.dist-info → tencentcloud_sdk_python_intl_en-3.0.1076.dist-info}/RECORD +126 -126
  125. {tencentcloud_sdk_python_intl_en-3.0.1074.dist-info → tencentcloud_sdk_python_intl_en-3.0.1076.dist-info}/WHEEL +0 -0
  126. {tencentcloud_sdk_python_intl_en-3.0.1074.dist-info → tencentcloud_sdk_python_intl_en-3.0.1076.dist-info}/top_level.txt +0 -0
@@ -41,6 +41,9 @@ class FaceRect(AbstractModel):
41
41
 
42
42
  @property
43
43
  def X(self):
44
+ """Top-left X-axis coordinate of the face box
45
+ :rtype: int
46
+ """
44
47
  return self._X
45
48
 
46
49
  @X.setter
@@ -49,6 +52,9 @@ class FaceRect(AbstractModel):
49
52
 
50
53
  @property
51
54
  def Y(self):
55
+ """Top-left Y-axis coordinate of the face box
56
+ :rtype: int
57
+ """
52
58
  return self._Y
53
59
 
54
60
  @Y.setter
@@ -57,6 +63,9 @@ class FaceRect(AbstractModel):
57
63
 
58
64
  @property
59
65
  def Width(self):
66
+ """Face box width
67
+ :rtype: int
68
+ """
60
69
  return self._Width
61
70
 
62
71
  @Width.setter
@@ -65,6 +74,9 @@ class FaceRect(AbstractModel):
65
74
 
66
75
  @property
67
76
  def Height(self):
77
+ """Face box height
78
+ :rtype: int
79
+ """
68
80
  return self._Height
69
81
 
70
82
  @Height.setter
@@ -124,6 +136,9 @@ By default, the text "Synthesized by AI" is added to the bottom right corner of
124
136
 
125
137
  @property
126
138
  def ProjectId(self):
139
+ """Activity ID. Check the ID in the <a href="https://console.cloud.tencent.com/facefusion" target="_blank"> Face Fusion console</a>.
140
+ :rtype: str
141
+ """
127
142
  return self._ProjectId
128
143
 
129
144
  @ProjectId.setter
@@ -132,6 +147,9 @@ By default, the text "Synthesized by AI" is added to the bottom right corner of
132
147
 
133
148
  @property
134
149
  def ModelId(self):
150
+ """Material ID. Check the ID in the <a href="https://console.cloud.tencent.com/facefusion" target="_blank"> Face Fusion console</a>.
151
+ :rtype: str
152
+ """
135
153
  return self._ModelId
136
154
 
137
155
  @ModelId.setter
@@ -140,6 +158,9 @@ By default, the text "Synthesized by AI" is added to the bottom right corner of
140
158
 
141
159
  @property
142
160
  def RspImgType(self):
161
+ """Image return method (url or base64). You cannot use both methods at the same time. The URL is valid for 7 days.
162
+ :rtype: str
163
+ """
143
164
  return self._RspImgType
144
165
 
145
166
  @RspImgType.setter
@@ -148,6 +169,9 @@ By default, the text "Synthesized by AI" is added to the bottom right corner of
148
169
 
149
170
  @property
150
171
  def MergeInfos(self):
172
+ """Face position information on the user face image and material template image. No more than 6 entries.
173
+ :rtype: list of MergeInfo
174
+ """
151
175
  return self._MergeInfos
152
176
 
153
177
  @MergeInfos.setter
@@ -156,6 +180,13 @@ By default, the text "Synthesized by AI" is added to the bottom right corner of
156
180
 
157
181
  @property
158
182
  def LogoAdd(self):
183
+ """Switch indicating whether to add a synthesis logo to the fusion result image. Default value: 1.
184
+ 1: add logo
185
+ 0: do not add logo
186
+ Other values: add logo
187
+ It is recommended to use an obvious logo to indicate that the result image uses face fusion technology and is synthesized by AI.
188
+ :rtype: int
189
+ """
159
190
  return self._LogoAdd
160
191
 
161
192
  @LogoAdd.setter
@@ -164,6 +195,10 @@ By default, the text "Synthesized by AI" is added to the bottom right corner of
164
195
 
165
196
  @property
166
197
  def LogoParam(self):
198
+ """Logo content settings
199
+ By default, the text "Synthesized by AI" is added to the bottom right corner of the fusion result image. You can also use other texts.
200
+ :rtype: :class:`tencentcloud.facefusion.v20220927.models.LogoParam`
201
+ """
167
202
  return self._LogoParam
168
203
 
169
204
  @LogoParam.setter
@@ -172,6 +207,9 @@ By default, the text "Synthesized by AI" is added to the bottom right corner of
172
207
 
173
208
  @property
174
209
  def FuseParam(self):
210
+ """Fusion parameter.
211
+ :rtype: :class:`tencentcloud.facefusion.v20220927.models.FuseParam`
212
+ """
175
213
  return self._FuseParam
176
214
 
177
215
  @FuseParam.setter
@@ -223,6 +261,9 @@ class FuseFaceResponse(AbstractModel):
223
261
 
224
262
  @property
225
263
  def FusedImage(self):
264
+ """When RspImgType is set to url, return the URL (valid for 7 days). When RspImgType is set to base64, return the Base64 code.
265
+ :rtype: str
266
+ """
226
267
  return self._FusedImage
227
268
 
228
269
  @FusedImage.setter
@@ -231,6 +272,9 @@ class FuseFaceResponse(AbstractModel):
231
272
 
232
273
  @property
233
274
  def RequestId(self):
275
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
276
+ :rtype: str
277
+ """
234
278
  return self._RequestId
235
279
 
236
280
  @RequestId.setter
@@ -243,6 +287,203 @@ class FuseFaceResponse(AbstractModel):
243
287
  self._RequestId = params.get("RequestId")
244
288
 
245
289
 
290
+ class FuseFaceReviewDetail(AbstractModel):
291
+ """
292
+
293
+ """
294
+
295
+ def __init__(self):
296
+ r"""
297
+ :param _Field:
298
+ :type Field: str
299
+ :param _Label:
300
+ :type Label: str
301
+ :param _Confidence:
302
+ :type Confidence: float
303
+ :param _Suggestion:
304
+ :type Suggestion: str
305
+ """
306
+ self._Field = None
307
+ self._Label = None
308
+ self._Confidence = None
309
+ self._Suggestion = None
310
+
311
+ @property
312
+ def Field(self):
313
+ """
314
+ :rtype: str
315
+ """
316
+ return self._Field
317
+
318
+ @Field.setter
319
+ def Field(self, Field):
320
+ self._Field = Field
321
+
322
+ @property
323
+ def Label(self):
324
+ """
325
+ :rtype: str
326
+ """
327
+ return self._Label
328
+
329
+ @Label.setter
330
+ def Label(self, Label):
331
+ self._Label = Label
332
+
333
+ @property
334
+ def Confidence(self):
335
+ """
336
+ :rtype: float
337
+ """
338
+ return self._Confidence
339
+
340
+ @Confidence.setter
341
+ def Confidence(self, Confidence):
342
+ self._Confidence = Confidence
343
+
344
+ @property
345
+ def Suggestion(self):
346
+ """
347
+ :rtype: str
348
+ """
349
+ return self._Suggestion
350
+
351
+ @Suggestion.setter
352
+ def Suggestion(self, Suggestion):
353
+ self._Suggestion = Suggestion
354
+
355
+
356
+ def _deserialize(self, params):
357
+ self._Field = params.get("Field")
358
+ self._Label = params.get("Label")
359
+ self._Confidence = params.get("Confidence")
360
+ self._Suggestion = params.get("Suggestion")
361
+ memeber_set = set(params.keys())
362
+ for name, value in vars(self).items():
363
+ property_name = name[1:]
364
+ if property_name in memeber_set:
365
+ memeber_set.remove(property_name)
366
+ if len(memeber_set) > 0:
367
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
368
+
369
+
370
+
371
+ class FuseFaceReviewResult(AbstractModel):
372
+ """
373
+
374
+ """
375
+
376
+ def __init__(self):
377
+ r"""
378
+ :param _Category:
379
+ :type Category: str
380
+ :param _Code:
381
+ :type Code: str
382
+ :param _CodeDescription:
383
+ :type CodeDescription: str
384
+ :param _Confidence:
385
+ :type Confidence: float
386
+ :param _Suggestion:
387
+ :type Suggestion: str
388
+ :param _DetailSet:
389
+ :type DetailSet: list of FuseFaceReviewDetail
390
+ """
391
+ self._Category = None
392
+ self._Code = None
393
+ self._CodeDescription = None
394
+ self._Confidence = None
395
+ self._Suggestion = None
396
+ self._DetailSet = None
397
+
398
+ @property
399
+ def Category(self):
400
+ """
401
+ :rtype: str
402
+ """
403
+ return self._Category
404
+
405
+ @Category.setter
406
+ def Category(self, Category):
407
+ self._Category = Category
408
+
409
+ @property
410
+ def Code(self):
411
+ """
412
+ :rtype: str
413
+ """
414
+ return self._Code
415
+
416
+ @Code.setter
417
+ def Code(self, Code):
418
+ self._Code = Code
419
+
420
+ @property
421
+ def CodeDescription(self):
422
+ """
423
+ :rtype: str
424
+ """
425
+ return self._CodeDescription
426
+
427
+ @CodeDescription.setter
428
+ def CodeDescription(self, CodeDescription):
429
+ self._CodeDescription = CodeDescription
430
+
431
+ @property
432
+ def Confidence(self):
433
+ """
434
+ :rtype: float
435
+ """
436
+ return self._Confidence
437
+
438
+ @Confidence.setter
439
+ def Confidence(self, Confidence):
440
+ self._Confidence = Confidence
441
+
442
+ @property
443
+ def Suggestion(self):
444
+ """
445
+ :rtype: str
446
+ """
447
+ return self._Suggestion
448
+
449
+ @Suggestion.setter
450
+ def Suggestion(self, Suggestion):
451
+ self._Suggestion = Suggestion
452
+
453
+ @property
454
+ def DetailSet(self):
455
+ """
456
+ :rtype: list of FuseFaceReviewDetail
457
+ """
458
+ return self._DetailSet
459
+
460
+ @DetailSet.setter
461
+ def DetailSet(self, DetailSet):
462
+ self._DetailSet = DetailSet
463
+
464
+
465
+ def _deserialize(self, params):
466
+ self._Category = params.get("Category")
467
+ self._Code = params.get("Code")
468
+ self._CodeDescription = params.get("CodeDescription")
469
+ self._Confidence = params.get("Confidence")
470
+ self._Suggestion = params.get("Suggestion")
471
+ if params.get("DetailSet") is not None:
472
+ self._DetailSet = []
473
+ for item in params.get("DetailSet"):
474
+ obj = FuseFaceReviewDetail()
475
+ obj._deserialize(item)
476
+ self._DetailSet.append(obj)
477
+ memeber_set = set(params.keys())
478
+ for name, value in vars(self).items():
479
+ property_name = name[1:]
480
+ if property_name in memeber_set:
481
+ memeber_set.remove(property_name)
482
+ if len(memeber_set) > 0:
483
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
484
+
485
+
486
+
246
487
  class FuseParam(AbstractModel):
247
488
  """Fusion parameter
248
489
 
@@ -257,6 +498,9 @@ class FuseParam(AbstractModel):
257
498
 
258
499
  @property
259
500
  def ImageCodecParam(self):
501
+ """Image encoding parameter
502
+ :rtype: :class:`tencentcloud.facefusion.v20220927.models.ImageCodecParam`
503
+ """
260
504
  return self._ImageCodecParam
261
505
 
262
506
  @ImageCodecParam.setter
@@ -292,6 +536,9 @@ class ImageCodecParam(AbstractModel):
292
536
 
293
537
  @property
294
538
  def MetaData(self):
539
+ """Metadata. The number of metadata entries cannot exceed 1.
540
+ :rtype: list of MetaData
541
+ """
295
542
  return self._MetaData
296
543
 
297
544
  @MetaData.setter
@@ -340,6 +587,9 @@ class LogoParam(AbstractModel):
340
587
 
341
588
  @property
342
589
  def LogoRect(self):
590
+ """Coordinates of the logo image in the fusion result image. The logo image will be stretched according to the coordinates.
591
+ :rtype: :class:`tencentcloud.facefusion.v20220927.models.FaceRect`
592
+ """
343
593
  return self._LogoRect
344
594
 
345
595
  @LogoRect.setter
@@ -348,6 +598,11 @@ class LogoParam(AbstractModel):
348
598
 
349
599
  @property
350
600
  def LogoUrl(self):
601
+ """Logo image URL
602
+ ●Either the Base64 code or URL must be provided. If both are provided, URL prevails.
603
+ ●Supported image format: JPG or PNG
604
+ :rtype: str
605
+ """
351
606
  return self._LogoUrl
352
607
 
353
608
  @LogoUrl.setter
@@ -356,6 +611,11 @@ class LogoParam(AbstractModel):
356
611
 
357
612
  @property
358
613
  def LogoImage(self):
614
+ """Logo image Base64 code
615
+ ●Either the Base64 code or URL must be provided. If both are provided, URL prevails.
616
+ ●Supported image format: JPG or PNG
617
+ :rtype: str
618
+ """
359
619
  return self._LogoImage
360
620
 
361
621
  @LogoImage.setter
@@ -413,6 +673,12 @@ Width and height are no less than 30.
413
673
 
414
674
  @property
415
675
  def Image(self):
676
+ """Enter the image Base64 code.
677
+ ●Either the Base64 code or URL must be provided. If both are provided, URL prevails.
678
+ ●Material image limitation: face size in the image greater than 34×34 pixels; image size greater than 64×64 pixels. (After encoding, the image size may increase by about 30%. It is recommended to control the image size reasonably.)
679
+ ●Supported image format: JPG or PNG
680
+ :rtype: str
681
+ """
416
682
  return self._Image
417
683
 
418
684
  @Image.setter
@@ -421,6 +687,12 @@ Width and height are no less than 30.
421
687
 
422
688
  @property
423
689
  def Url(self):
690
+ """Enter the image URL.
691
+ ●Either the Base64 code or URL must be provided. If both are provided, URL prevails.
692
+ ●Material image limitation: face size in the image greater than 34×34 pixels; image size greater than 64×64 pixels. (After encoding, the image size may increase by about 30%. It is recommended to control the image size reasonably.)
693
+ ●Supported image format: JPG or PNG
694
+ :rtype: str
695
+ """
424
696
  return self._Url
425
697
 
426
698
  @Url.setter
@@ -429,6 +701,10 @@ Width and height are no less than 30.
429
701
 
430
702
  @property
431
703
  def InputImageFaceRect(self):
704
+ """Face position information (face box) on the uploaded image
705
+ Width and height are no less than 30.
706
+ :rtype: :class:`tencentcloud.facefusion.v20220927.models.FaceRect`
707
+ """
432
708
  return self._InputImageFaceRect
433
709
 
434
710
  @InputImageFaceRect.setter
@@ -437,6 +713,9 @@ Width and height are no less than 30.
437
713
 
438
714
  @property
439
715
  def TemplateFaceID(self):
716
+ """Material face ID. If this parameter is left blank, the largest face is used by default.
717
+ :rtype: str
718
+ """
440
719
  return self._TemplateFaceID
441
720
 
442
721
  @TemplateFaceID.setter
@@ -445,6 +724,10 @@ Width and height are no less than 30.
445
724
 
446
725
  @property
447
726
  def TemplateFaceRect(self):
727
+ """Face position information (face box) on the template. If this parameter is left blank, the largest face is used by default. This parameter applies to scenes where custom material templates are used for fusion.
728
+ Width and height are no less than 30.
729
+ :rtype: :class:`tencentcloud.facefusion.v20220927.models.FaceRect`
730
+ """
448
731
  return self._TemplateFaceRect
449
732
 
450
733
  @TemplateFaceRect.setter
@@ -489,6 +772,9 @@ class MetaData(AbstractModel):
489
772
 
490
773
  @property
491
774
  def MetaKey(self):
775
+ """Metadata key
776
+ :rtype: str
777
+ """
492
778
  return self._MetaKey
493
779
 
494
780
  @MetaKey.setter
@@ -497,6 +783,9 @@ class MetaData(AbstractModel):
497
783
 
498
784
  @property
499
785
  def MetaValue(self):
786
+ """Metadata value
787
+ :rtype: str
788
+ """
500
789
  return self._MetaValue
501
790
 
502
791
  @MetaValue.setter
@@ -514,4 +803,533 @@ class MetaData(AbstractModel):
514
803
  memeber_set.remove(property_name)
515
804
  if len(memeber_set) > 0:
516
805
  warnings.warn("%s fileds are useless." % ",".join(memeber_set))
806
+
807
+
808
+
809
+ class QueryVideoFaceFusionJobRequest(AbstractModel):
810
+ """QueryVideoFaceFusionJob request structure.
811
+
812
+ """
813
+
814
+ def __init__(self):
815
+ r"""
816
+ :param _JobId: Job ID of the video face fusion task
817
+ :type JobId: str
818
+ """
819
+ self._JobId = None
820
+
821
+ @property
822
+ def JobId(self):
823
+ """Job ID of the video face fusion task
824
+ :rtype: str
825
+ """
826
+ return self._JobId
827
+
828
+ @JobId.setter
829
+ def JobId(self, JobId):
830
+ self._JobId = JobId
831
+
832
+
833
+ def _deserialize(self, params):
834
+ self._JobId = params.get("JobId")
835
+ memeber_set = set(params.keys())
836
+ for name, value in vars(self).items():
837
+ property_name = name[1:]
838
+ if property_name in memeber_set:
839
+ memeber_set.remove(property_name)
840
+ if len(memeber_set) > 0:
841
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
842
+
843
+
844
+
845
+ class QueryVideoFaceFusionJobResponse(AbstractModel):
846
+ """QueryVideoFaceFusionJob response structure.
847
+
848
+ """
849
+
850
+ def __init__(self):
851
+ r"""
852
+ :param _JobStatus: Current task status: queuing, processing, processing failed, or processing completed
853
+ :type JobStatus: str
854
+ :param _VideoFaceFusionOutput: Video face fusion result
855
+ Note: This field may return null, indicating that no valid values can be obtained.
856
+ :type VideoFaceFusionOutput: :class:`tencentcloud.facefusion.v20220927.models.VideoFaceFusionOutput`
857
+ :param _JobStatusCode: Task status code. 1: queuing; 3: processing; 5: processing failed; 7: processing completed.
858
+ Note: This field may return null, indicating that no valid values can be obtained.
859
+ :type JobStatusCode: int
860
+ :param _JobErrorCode: Task failure error code
861
+ Note: This field may return null, indicating that no valid values can be obtained.
862
+ :type JobErrorCode: str
863
+ :param _JobErrorMsg: Task failure error message
864
+ Note: This field may return null, indicating that no valid values can be obtained.
865
+ :type JobErrorMsg: str
866
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
867
+ :type RequestId: str
868
+ """
869
+ self._JobStatus = None
870
+ self._VideoFaceFusionOutput = None
871
+ self._JobStatusCode = None
872
+ self._JobErrorCode = None
873
+ self._JobErrorMsg = None
874
+ self._RequestId = None
875
+
876
+ @property
877
+ def JobStatus(self):
878
+ """Current task status: queuing, processing, processing failed, or processing completed
879
+ :rtype: str
880
+ """
881
+ return self._JobStatus
882
+
883
+ @JobStatus.setter
884
+ def JobStatus(self, JobStatus):
885
+ self._JobStatus = JobStatus
886
+
887
+ @property
888
+ def VideoFaceFusionOutput(self):
889
+ """Video face fusion result
890
+ Note: This field may return null, indicating that no valid values can be obtained.
891
+ :rtype: :class:`tencentcloud.facefusion.v20220927.models.VideoFaceFusionOutput`
892
+ """
893
+ return self._VideoFaceFusionOutput
894
+
895
+ @VideoFaceFusionOutput.setter
896
+ def VideoFaceFusionOutput(self, VideoFaceFusionOutput):
897
+ self._VideoFaceFusionOutput = VideoFaceFusionOutput
898
+
899
+ @property
900
+ def JobStatusCode(self):
901
+ """Task status code. 1: queuing; 3: processing; 5: processing failed; 7: processing completed.
902
+ Note: This field may return null, indicating that no valid values can be obtained.
903
+ :rtype: int
904
+ """
905
+ return self._JobStatusCode
906
+
907
+ @JobStatusCode.setter
908
+ def JobStatusCode(self, JobStatusCode):
909
+ self._JobStatusCode = JobStatusCode
910
+
911
+ @property
912
+ def JobErrorCode(self):
913
+ """Task failure error code
914
+ Note: This field may return null, indicating that no valid values can be obtained.
915
+ :rtype: str
916
+ """
917
+ return self._JobErrorCode
918
+
919
+ @JobErrorCode.setter
920
+ def JobErrorCode(self, JobErrorCode):
921
+ self._JobErrorCode = JobErrorCode
922
+
923
+ @property
924
+ def JobErrorMsg(self):
925
+ """Task failure error message
926
+ Note: This field may return null, indicating that no valid values can be obtained.
927
+ :rtype: str
928
+ """
929
+ return self._JobErrorMsg
930
+
931
+ @JobErrorMsg.setter
932
+ def JobErrorMsg(self, JobErrorMsg):
933
+ self._JobErrorMsg = JobErrorMsg
934
+
935
+ @property
936
+ def RequestId(self):
937
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
938
+ :rtype: str
939
+ """
940
+ return self._RequestId
941
+
942
+ @RequestId.setter
943
+ def RequestId(self, RequestId):
944
+ self._RequestId = RequestId
945
+
946
+
947
+ def _deserialize(self, params):
948
+ self._JobStatus = params.get("JobStatus")
949
+ if params.get("VideoFaceFusionOutput") is not None:
950
+ self._VideoFaceFusionOutput = VideoFaceFusionOutput()
951
+ self._VideoFaceFusionOutput._deserialize(params.get("VideoFaceFusionOutput"))
952
+ self._JobStatusCode = params.get("JobStatusCode")
953
+ self._JobErrorCode = params.get("JobErrorCode")
954
+ self._JobErrorMsg = params.get("JobErrorMsg")
955
+ self._RequestId = params.get("RequestId")
956
+
957
+
958
+ class SubmitVideoFaceFusionJobRequest(AbstractModel):
959
+ """SubmitVideoFaceFusionJob request structure.
960
+
961
+ """
962
+
963
+ def __init__(self):
964
+ r"""
965
+ :param _ProjectId: Activity ID. Check it in the video face fusion console.
966
+ :type ProjectId: str
967
+ :param _ModelId: Material ID. Check it in the video face fusion console.
968
+ :type ModelId: str
969
+ :param _MergeInfos: Face position information on the user face image and material template image. Only one entry is allowed.
970
+ :type MergeInfos: list of MergeInfo
971
+ :param _CelebrityIdentify: 0: inappropriate content recognition not required; 1: inappropriate content recognition required. Default value: 0.
972
+ Note: Once the inappropriate content recognition service is enabled, you need to decide whether to adjust your business logic based on the returned results. For example, you need to replace the image if the system informs you that the image does not meet the requirements.
973
+ **<font color=#1E90FF>Note: This field will be deprecated later due to business adjustments. It is not recommended for use.</font>**
974
+ :type CelebrityIdentify: int
975
+ :param _LogoParam: Video watermark logo parameter
976
+ :type LogoParam: :class:`tencentcloud.facefusion.v20220927.models.LogoParam`
977
+ :param _UserDesignatedUrl: COS pre-signed URL (PUT method). If this parameter is specified, the video after fusion will be uploaded to this URL.
978
+ **<font color=#1E90FF>Note: If upload to this URL fails, the video will be uploaded to the default address of Tencent Cloud.</font>**
979
+ :type UserDesignatedUrl: str
980
+ :param _UserIp: User IP address
981
+ :type UserIp: str
982
+ :param _MetaData: Video metadata field
983
+ :type MetaData: list of MetaData
984
+ """
985
+ self._ProjectId = None
986
+ self._ModelId = None
987
+ self._MergeInfos = None
988
+ self._CelebrityIdentify = None
989
+ self._LogoParam = None
990
+ self._UserDesignatedUrl = None
991
+ self._UserIp = None
992
+ self._MetaData = None
993
+
994
+ @property
995
+ def ProjectId(self):
996
+ """Activity ID. Check it in the video face fusion console.
997
+ :rtype: str
998
+ """
999
+ return self._ProjectId
1000
+
1001
+ @ProjectId.setter
1002
+ def ProjectId(self, ProjectId):
1003
+ self._ProjectId = ProjectId
1004
+
1005
+ @property
1006
+ def ModelId(self):
1007
+ """Material ID. Check it in the video face fusion console.
1008
+ :rtype: str
1009
+ """
1010
+ return self._ModelId
1011
+
1012
+ @ModelId.setter
1013
+ def ModelId(self, ModelId):
1014
+ self._ModelId = ModelId
1015
+
1016
+ @property
1017
+ def MergeInfos(self):
1018
+ """Face position information on the user face image and material template image. Only one entry is allowed.
1019
+ :rtype: list of MergeInfo
1020
+ """
1021
+ return self._MergeInfos
1022
+
1023
+ @MergeInfos.setter
1024
+ def MergeInfos(self, MergeInfos):
1025
+ self._MergeInfos = MergeInfos
1026
+
1027
+ @property
1028
+ def CelebrityIdentify(self):
1029
+ """0: inappropriate content recognition not required; 1: inappropriate content recognition required. Default value: 0.
1030
+ Note: Once the inappropriate content recognition service is enabled, you need to decide whether to adjust your business logic based on the returned results. For example, you need to replace the image if the system informs you that the image does not meet the requirements.
1031
+ **<font color=#1E90FF>Note: This field will be deprecated later due to business adjustments. It is not recommended for use.</font>**
1032
+ :rtype: int
1033
+ """
1034
+ return self._CelebrityIdentify
1035
+
1036
+ @CelebrityIdentify.setter
1037
+ def CelebrityIdentify(self, CelebrityIdentify):
1038
+ self._CelebrityIdentify = CelebrityIdentify
1039
+
1040
+ @property
1041
+ def LogoParam(self):
1042
+ """Video watermark logo parameter
1043
+ :rtype: :class:`tencentcloud.facefusion.v20220927.models.LogoParam`
1044
+ """
1045
+ return self._LogoParam
1046
+
1047
+ @LogoParam.setter
1048
+ def LogoParam(self, LogoParam):
1049
+ self._LogoParam = LogoParam
1050
+
1051
+ @property
1052
+ def UserDesignatedUrl(self):
1053
+ """COS pre-signed URL (PUT method). If this parameter is specified, the video after fusion will be uploaded to this URL.
1054
+ **<font color=#1E90FF>Note: If upload to this URL fails, the video will be uploaded to the default address of Tencent Cloud.</font>**
1055
+ :rtype: str
1056
+ """
1057
+ return self._UserDesignatedUrl
1058
+
1059
+ @UserDesignatedUrl.setter
1060
+ def UserDesignatedUrl(self, UserDesignatedUrl):
1061
+ self._UserDesignatedUrl = UserDesignatedUrl
1062
+
1063
+ @property
1064
+ def UserIp(self):
1065
+ """User IP address
1066
+ :rtype: str
1067
+ """
1068
+ return self._UserIp
1069
+
1070
+ @UserIp.setter
1071
+ def UserIp(self, UserIp):
1072
+ self._UserIp = UserIp
1073
+
1074
+ @property
1075
+ def MetaData(self):
1076
+ """Video metadata field
1077
+ :rtype: list of MetaData
1078
+ """
1079
+ return self._MetaData
1080
+
1081
+ @MetaData.setter
1082
+ def MetaData(self, MetaData):
1083
+ self._MetaData = MetaData
1084
+
1085
+
1086
+ def _deserialize(self, params):
1087
+ self._ProjectId = params.get("ProjectId")
1088
+ self._ModelId = params.get("ModelId")
1089
+ if params.get("MergeInfos") is not None:
1090
+ self._MergeInfos = []
1091
+ for item in params.get("MergeInfos"):
1092
+ obj = MergeInfo()
1093
+ obj._deserialize(item)
1094
+ self._MergeInfos.append(obj)
1095
+ self._CelebrityIdentify = params.get("CelebrityIdentify")
1096
+ if params.get("LogoParam") is not None:
1097
+ self._LogoParam = LogoParam()
1098
+ self._LogoParam._deserialize(params.get("LogoParam"))
1099
+ self._UserDesignatedUrl = params.get("UserDesignatedUrl")
1100
+ self._UserIp = params.get("UserIp")
1101
+ if params.get("MetaData") is not None:
1102
+ self._MetaData = []
1103
+ for item in params.get("MetaData"):
1104
+ obj = MetaData()
1105
+ obj._deserialize(item)
1106
+ self._MetaData.append(obj)
1107
+ memeber_set = set(params.keys())
1108
+ for name, value in vars(self).items():
1109
+ property_name = name[1:]
1110
+ if property_name in memeber_set:
1111
+ memeber_set.remove(property_name)
1112
+ if len(memeber_set) > 0:
1113
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1114
+
1115
+
1116
+
1117
+ class SubmitVideoFaceFusionJobResponse(AbstractModel):
1118
+ """SubmitVideoFaceFusionJob response structure.
1119
+
1120
+ """
1121
+
1122
+ def __init__(self):
1123
+ r"""
1124
+ :param _JobId: Job ID of the video face fusion task
1125
+ :type JobId: str
1126
+ :param _EstimatedProcessTime: Estimated processing time of the video face fusion task, in seconds
1127
+ :type EstimatedProcessTime: float
1128
+ :param _JobQueueLength: Estimated processing time of the video face fusion task, in seconds
1129
+ :type JobQueueLength: int
1130
+ :param _ReviewResultSet: Inappropriate content recognition result. The element order of this array is the same as that of mergeinfo in the request, with a one-to-one relationship.
1131
+ Note: This field may return null, indicating that no valid values can be obtained.
1132
+ :type ReviewResultSet: list of FuseFaceReviewResult
1133
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1134
+ :type RequestId: str
1135
+ """
1136
+ self._JobId = None
1137
+ self._EstimatedProcessTime = None
1138
+ self._JobQueueLength = None
1139
+ self._ReviewResultSet = None
1140
+ self._RequestId = None
1141
+
1142
+ @property
1143
+ def JobId(self):
1144
+ """Job ID of the video face fusion task
1145
+ :rtype: str
1146
+ """
1147
+ return self._JobId
1148
+
1149
+ @JobId.setter
1150
+ def JobId(self, JobId):
1151
+ self._JobId = JobId
1152
+
1153
+ @property
1154
+ def EstimatedProcessTime(self):
1155
+ """Estimated processing time of the video face fusion task, in seconds
1156
+ :rtype: float
1157
+ """
1158
+ return self._EstimatedProcessTime
1159
+
1160
+ @EstimatedProcessTime.setter
1161
+ def EstimatedProcessTime(self, EstimatedProcessTime):
1162
+ self._EstimatedProcessTime = EstimatedProcessTime
1163
+
1164
+ @property
1165
+ def JobQueueLength(self):
1166
+ """Estimated processing time of the video face fusion task, in seconds
1167
+ :rtype: int
1168
+ """
1169
+ return self._JobQueueLength
1170
+
1171
+ @JobQueueLength.setter
1172
+ def JobQueueLength(self, JobQueueLength):
1173
+ self._JobQueueLength = JobQueueLength
1174
+
1175
+ @property
1176
+ def ReviewResultSet(self):
1177
+ """Inappropriate content recognition result. The element order of this array is the same as that of mergeinfo in the request, with a one-to-one relationship.
1178
+ Note: This field may return null, indicating that no valid values can be obtained.
1179
+ :rtype: list of FuseFaceReviewResult
1180
+ """
1181
+ return self._ReviewResultSet
1182
+
1183
+ @ReviewResultSet.setter
1184
+ def ReviewResultSet(self, ReviewResultSet):
1185
+ self._ReviewResultSet = ReviewResultSet
1186
+
1187
+ @property
1188
+ def RequestId(self):
1189
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1190
+ :rtype: str
1191
+ """
1192
+ return self._RequestId
1193
+
1194
+ @RequestId.setter
1195
+ def RequestId(self, RequestId):
1196
+ self._RequestId = RequestId
1197
+
1198
+
1199
+ def _deserialize(self, params):
1200
+ self._JobId = params.get("JobId")
1201
+ self._EstimatedProcessTime = params.get("EstimatedProcessTime")
1202
+ self._JobQueueLength = params.get("JobQueueLength")
1203
+ if params.get("ReviewResultSet") is not None:
1204
+ self._ReviewResultSet = []
1205
+ for item in params.get("ReviewResultSet"):
1206
+ obj = FuseFaceReviewResult()
1207
+ obj._deserialize(item)
1208
+ self._ReviewResultSet.append(obj)
1209
+ self._RequestId = params.get("RequestId")
1210
+
1211
+
1212
+ class VideoFaceFusionOutput(AbstractModel):
1213
+ """Returned video face fusion result
1214
+
1215
+ """
1216
+
1217
+ def __init__(self):
1218
+ r"""
1219
+ :param _VideoUrl: URL of the video output after video face fusion
1220
+ :type VideoUrl: str
1221
+ :param _VideoMD5: MD5 value of the video output after video face fusion, which is used for verification
1222
+ :type VideoMD5: str
1223
+ :param _Width: Video width
1224
+ :type Width: int
1225
+ :param _Height: Video height
1226
+ :type Height: int
1227
+ :param _FPS: Frames per second
1228
+ :type FPS: int
1229
+ :param _DurationInSec: Video duration, in seconds
1230
+ :type DurationInSec: float
1231
+ :param _Frame: Number of frames
1232
+ :type Frame: int
1233
+ """
1234
+ self._VideoUrl = None
1235
+ self._VideoMD5 = None
1236
+ self._Width = None
1237
+ self._Height = None
1238
+ self._FPS = None
1239
+ self._DurationInSec = None
1240
+ self._Frame = None
1241
+
1242
+ @property
1243
+ def VideoUrl(self):
1244
+ """URL of the video output after video face fusion
1245
+ :rtype: str
1246
+ """
1247
+ return self._VideoUrl
1248
+
1249
+ @VideoUrl.setter
1250
+ def VideoUrl(self, VideoUrl):
1251
+ self._VideoUrl = VideoUrl
1252
+
1253
+ @property
1254
+ def VideoMD5(self):
1255
+ """MD5 value of the video output after video face fusion, which is used for verification
1256
+ :rtype: str
1257
+ """
1258
+ return self._VideoMD5
1259
+
1260
+ @VideoMD5.setter
1261
+ def VideoMD5(self, VideoMD5):
1262
+ self._VideoMD5 = VideoMD5
1263
+
1264
+ @property
1265
+ def Width(self):
1266
+ """Video width
1267
+ :rtype: int
1268
+ """
1269
+ return self._Width
1270
+
1271
+ @Width.setter
1272
+ def Width(self, Width):
1273
+ self._Width = Width
1274
+
1275
+ @property
1276
+ def Height(self):
1277
+ """Video height
1278
+ :rtype: int
1279
+ """
1280
+ return self._Height
1281
+
1282
+ @Height.setter
1283
+ def Height(self, Height):
1284
+ self._Height = Height
1285
+
1286
+ @property
1287
+ def FPS(self):
1288
+ """Frames per second
1289
+ :rtype: int
1290
+ """
1291
+ return self._FPS
1292
+
1293
+ @FPS.setter
1294
+ def FPS(self, FPS):
1295
+ self._FPS = FPS
1296
+
1297
+ @property
1298
+ def DurationInSec(self):
1299
+ """Video duration, in seconds
1300
+ :rtype: float
1301
+ """
1302
+ return self._DurationInSec
1303
+
1304
+ @DurationInSec.setter
1305
+ def DurationInSec(self, DurationInSec):
1306
+ self._DurationInSec = DurationInSec
1307
+
1308
+ @property
1309
+ def Frame(self):
1310
+ """Number of frames
1311
+ :rtype: int
1312
+ """
1313
+ return self._Frame
1314
+
1315
+ @Frame.setter
1316
+ def Frame(self, Frame):
1317
+ self._Frame = Frame
1318
+
1319
+
1320
+ def _deserialize(self, params):
1321
+ self._VideoUrl = params.get("VideoUrl")
1322
+ self._VideoMD5 = params.get("VideoMD5")
1323
+ self._Width = params.get("Width")
1324
+ self._Height = params.get("Height")
1325
+ self._FPS = params.get("FPS")
1326
+ self._DurationInSec = params.get("DurationInSec")
1327
+ self._Frame = params.get("Frame")
1328
+ memeber_set = set(params.keys())
1329
+ for name, value in vars(self).items():
1330
+ property_name = name[1:]
1331
+ if property_name in memeber_set:
1332
+ memeber_set.remove(property_name)
1333
+ if len(memeber_set) > 0:
1334
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
517
1335