tencentcloud-sdk-python 3.0.1162__py2.py3-none-any.whl → 3.0.1164__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 (44) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/aiart/v20221229/aiart_client.py +4 -2
  3. tencentcloud/asr/v20190614/models.py +4 -2
  4. tencentcloud/ccc/v20200210/ccc_client.py +23 -0
  5. tencentcloud/ccc/v20200210/models.py +135 -0
  6. tencentcloud/cfw/v20190904/cfw_client.py +4 -2
  7. tencentcloud/common/credential.py +1 -1
  8. tencentcloud/cynosdb/v20190107/models.py +26 -0
  9. tencentcloud/dlc/v20210125/dlc_client.py +230 -0
  10. tencentcloud/dlc/v20210125/models.py +1298 -22
  11. tencentcloud/dts/v20180330/models.py +13 -13
  12. tencentcloud/dts/v20211206/models.py +12 -0
  13. tencentcloud/eb/v20210416/models.py +10 -1
  14. tencentcloud/ess/v20201111/models.py +2 -2
  15. tencentcloud/essbasic/v20210526/models.py +2 -2
  16. tencentcloud/facefusion/v20220927/errorcodes.py +12 -0
  17. tencentcloud/facefusion/v20220927/facefusion_client.py +24 -0
  18. tencentcloud/facefusion/v20220927/models.py +276 -0
  19. tencentcloud/hunyuan/v20230901/hunyuan_client.py +1 -1
  20. tencentcloud/hunyuan/v20230901/models.py +3 -3
  21. tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +23 -0
  22. tencentcloud/iotexplorer/v20190423/models.py +218 -0
  23. tencentcloud/mongodb/v20190725/models.py +4 -4
  24. tencentcloud/mps/v20190612/models.py +3 -7
  25. tencentcloud/ocr/v20181119/ocr_client.py +3 -2
  26. tencentcloud/postgres/v20170312/models.py +249 -86
  27. tencentcloud/postgres/v20170312/postgres_client.py +25 -2
  28. tencentcloud/rum/v20210622/models.py +1 -1
  29. tencentcloud/sqlserver/v20180328/models.py +26 -2
  30. tencentcloud/teo/v20220901/models.py +5 -3
  31. tencentcloud/tione/v20211111/errorcodes.py +15 -0
  32. tencentcloud/tione/v20211111/models.py +119 -13
  33. tencentcloud/trp/v20210515/models.py +187 -0
  34. tencentcloud/trp/v20210515/trp_client.py +23 -0
  35. tencentcloud/vcg/v20240404/models.py +2 -2
  36. tencentcloud/vtc/v20240223/errorcodes.py +3 -0
  37. tencentcloud/vtc/v20240223/models.py +24 -0
  38. tencentcloud/waf/v20180125/models.py +12 -0
  39. tencentcloud/wedata/v20210820/models.py +65 -0
  40. {tencentcloud_sdk_python-3.0.1162.dist-info → tencentcloud_sdk_python-3.0.1164.dist-info}/METADATA +1 -1
  41. {tencentcloud_sdk_python-3.0.1162.dist-info → tencentcloud_sdk_python-3.0.1164.dist-info}/RECORD +44 -44
  42. {tencentcloud_sdk_python-3.0.1162.dist-info → tencentcloud_sdk_python-3.0.1164.dist-info}/LICENSE +0 -0
  43. {tencentcloud_sdk_python-3.0.1162.dist-info → tencentcloud_sdk_python-3.0.1164.dist-info}/WHEEL +0 -0
  44. {tencentcloud_sdk_python-3.0.1162.dist-info → tencentcloud_sdk_python-3.0.1164.dist-info}/top_level.txt +0 -0
@@ -3731,6 +3731,9 @@ class SubscribeInfo(AbstractModel):
3731
3731
  :type OfflineTime: str
3732
3732
  :param _ConsumeStartTime: 最近一次修改的消费时间起点,如果从未修改则为零值
3733
3733
  :type ConsumeStartTime: str
3734
+ :param _AutoRenewFlag: 自动续费标识。0-不自动续费,1-自动续费
3735
+ 注意:此字段可能返回 null,表示取不到有效值。
3736
+ :type AutoRenewFlag: int
3734
3737
  :param _Region: 数据订阅实例所属地域
3735
3738
  :type Region: str
3736
3739
  :param _PayType: 计费方式,0 - 包年包月,1 - 按量计费
@@ -3750,9 +3753,6 @@ class SubscribeInfo(AbstractModel):
3750
3753
  :param _Tags: 标签
3751
3754
  注意:此字段可能返回 null,表示取不到有效值。
3752
3755
  :type Tags: list of TagItem
3753
- :param _AutoRenewFlag: 自动续费标识。0-不自动续费,1-自动续费
3754
- 注意:此字段可能返回 null,表示取不到有效值。
3755
- :type AutoRenewFlag: int
3756
3756
  :param _SubscribeVersion: 订阅实例版本;txdts-旧版数据订阅,kafka-kafka版本数据订阅
3757
3757
  注意:此字段可能返回 null,表示取不到有效值。
3758
3758
  :type SubscribeVersion: str
@@ -3770,6 +3770,7 @@ class SubscribeInfo(AbstractModel):
3770
3770
  self._ExpireTime = None
3771
3771
  self._OfflineTime = None
3772
3772
  self._ConsumeStartTime = None
3773
+ self._AutoRenewFlag = None
3773
3774
  self._Region = None
3774
3775
  self._PayType = None
3775
3776
  self._Vip = None
@@ -3779,7 +3780,6 @@ class SubscribeInfo(AbstractModel):
3779
3780
  self._Status = None
3780
3781
  self._SdkConsumedTime = None
3781
3782
  self._Tags = None
3782
- self._AutoRenewFlag = None
3783
3783
  self._SubscribeVersion = None
3784
3784
 
3785
3785
  @property
@@ -3886,6 +3886,14 @@ class SubscribeInfo(AbstractModel):
3886
3886
  def ConsumeStartTime(self, ConsumeStartTime):
3887
3887
  self._ConsumeStartTime = ConsumeStartTime
3888
3888
 
3889
+ @property
3890
+ def AutoRenewFlag(self):
3891
+ return self._AutoRenewFlag
3892
+
3893
+ @AutoRenewFlag.setter
3894
+ def AutoRenewFlag(self, AutoRenewFlag):
3895
+ self._AutoRenewFlag = AutoRenewFlag
3896
+
3889
3897
  @property
3890
3898
  def Region(self):
3891
3899
  return self._Region
@@ -3958,14 +3966,6 @@ class SubscribeInfo(AbstractModel):
3958
3966
  def Tags(self, Tags):
3959
3967
  self._Tags = Tags
3960
3968
 
3961
- @property
3962
- def AutoRenewFlag(self):
3963
- return self._AutoRenewFlag
3964
-
3965
- @AutoRenewFlag.setter
3966
- def AutoRenewFlag(self, AutoRenewFlag):
3967
- self._AutoRenewFlag = AutoRenewFlag
3968
-
3969
3969
  @property
3970
3970
  def SubscribeVersion(self):
3971
3971
  return self._SubscribeVersion
@@ -3989,6 +3989,7 @@ class SubscribeInfo(AbstractModel):
3989
3989
  self._ExpireTime = params.get("ExpireTime")
3990
3990
  self._OfflineTime = params.get("OfflineTime")
3991
3991
  self._ConsumeStartTime = params.get("ConsumeStartTime")
3992
+ self._AutoRenewFlag = params.get("AutoRenewFlag")
3992
3993
  self._Region = params.get("Region")
3993
3994
  self._PayType = params.get("PayType")
3994
3995
  self._Vip = params.get("Vip")
@@ -4003,7 +4004,6 @@ class SubscribeInfo(AbstractModel):
4003
4004
  obj = TagItem()
4004
4005
  obj._deserialize(item)
4005
4006
  self._Tags.append(obj)
4006
- self._AutoRenewFlag = params.get("AutoRenewFlag")
4007
4007
  self._SubscribeVersion = params.get("SubscribeVersion")
4008
4008
  memeber_set = set(params.keys())
4009
4009
  for name, value in vars(self).items():
@@ -6579,6 +6579,8 @@ class DescribeSubscribeJobsRequest(AbstractModel):
6579
6579
  :type SubscribeName: str
6580
6580
  :param _InstanceId: 订阅的云上数据库实例的 ID,精确匹配
6581
6581
  :type InstanceId: str
6582
+ :param _Topic: 订阅的topicName
6583
+ :type Topic: str
6582
6584
  :param _PayType: 计费模式筛选,可能的值:0-包年包月,1-按量计费
6583
6585
  :type PayType: int
6584
6586
  :param _Product: 订阅的数据库产品,目前支持 cynosdbmysql,mariadb,mongodb,mysql,percona,tdpg,tdsqlpercona(tdsqlmysql)
@@ -6599,6 +6601,7 @@ class DescribeSubscribeJobsRequest(AbstractModel):
6599
6601
  self._SubscribeId = None
6600
6602
  self._SubscribeName = None
6601
6603
  self._InstanceId = None
6604
+ self._Topic = None
6602
6605
  self._PayType = None
6603
6606
  self._Product = None
6604
6607
  self._Status = None
@@ -6632,6 +6635,14 @@ class DescribeSubscribeJobsRequest(AbstractModel):
6632
6635
  def InstanceId(self, InstanceId):
6633
6636
  self._InstanceId = InstanceId
6634
6637
 
6638
+ @property
6639
+ def Topic(self):
6640
+ return self._Topic
6641
+
6642
+ @Topic.setter
6643
+ def Topic(self, Topic):
6644
+ self._Topic = Topic
6645
+
6635
6646
  @property
6636
6647
  def PayType(self):
6637
6648
  return self._PayType
@@ -6701,6 +6712,7 @@ class DescribeSubscribeJobsRequest(AbstractModel):
6701
6712
  self._SubscribeId = params.get("SubscribeId")
6702
6713
  self._SubscribeName = params.get("SubscribeName")
6703
6714
  self._InstanceId = params.get("InstanceId")
6715
+ self._Topic = params.get("Topic")
6704
6716
  self._PayType = params.get("PayType")
6705
6717
  self._Product = params.get("Product")
6706
6718
  self._Status = params.get("Status")
@@ -1836,16 +1836,22 @@ class ESTargetParams(AbstractModel):
1836
1836
  def __init__(self):
1837
1837
  r"""
1838
1838
  :param _NetMode: 网络连接类型
1839
+ 注意:此字段可能返回 null,表示取不到有效值。
1839
1840
  :type NetMode: str
1840
1841
  :param _IndexPrefix: 索引前缀
1842
+ 注意:此字段可能返回 null,表示取不到有效值。
1841
1843
  :type IndexPrefix: str
1842
1844
  :param _RotationInterval: es日志轮换粒度
1845
+ 注意:此字段可能返回 null,表示取不到有效值。
1843
1846
  :type RotationInterval: str
1844
1847
  :param _OutputMode: DTS事件配置
1848
+ 注意:此字段可能返回 null,表示取不到有效值。
1845
1849
  :type OutputMode: str
1846
1850
  :param _IndexSuffixMode: DTS索引配置
1851
+ 注意:此字段可能返回 null,表示取不到有效值。
1847
1852
  :type IndexSuffixMode: str
1848
1853
  :param _IndexTemplateType: es模版类型
1854
+ 注意:此字段可能返回 null,表示取不到有效值。
1849
1855
  :type IndexTemplateType: str
1850
1856
  """
1851
1857
  self._NetMode = None
@@ -3385,7 +3391,7 @@ class ListRulesRequest(AbstractModel):
3385
3391
  r"""
3386
3392
  :param _EventBusId: 事件集ID
3387
3393
  :type EventBusId: str
3388
- :param _OrderBy: 根据哪个字段进行返回结果排序,支持以下字段:AddTime(创建时间), ModTime(修改时间)
3394
+ :param _OrderBy: 根据哪个字段进行返回结果排序,支持以下字段:AddTime(创建时间), ModTime(修改时间),name(规则名称)
3389
3395
  :type OrderBy: str
3390
3396
  :param _Limit: 返回数量,默认为20,最大值为100。
3391
3397
  :type Limit: int
@@ -4352,10 +4358,13 @@ class SCFParams(AbstractModel):
4352
4358
  def __init__(self):
4353
4359
  r"""
4354
4360
  :param _BatchTimeout: 批量投递最长等待时间
4361
+ 注意:此字段可能返回 null,表示取不到有效值。
4355
4362
  :type BatchTimeout: int
4356
4363
  :param _BatchEventCount: 批量投递最大事件条数
4364
+ 注意:此字段可能返回 null,表示取不到有效值。
4357
4365
  :type BatchEventCount: int
4358
4366
  :param _EnableBatchDelivery: 开启批量投递使能
4367
+ 注意:此字段可能返回 null,表示取不到有效值。
4359
4368
  :type EnableBatchDelivery: bool
4360
4369
  """
4361
4370
  self._BatchTimeout = None
@@ -2193,8 +2193,8 @@ class Component(AbstractModel):
2193
2193
  <ul><li> <b>Middle</b> :居中</li>
2194
2194
  <li> <b>Below</b> :正下方</li>
2195
2195
  <li> <b>Right</b> :正右方</li>
2196
- <li> <b>LowerRight</b> :右上角</li>
2197
- <li> <b>UpperRight</b> :右下角。</li></ul>
2196
+ <li> <b>LowerRight</b> :右下角</li>
2197
+ <li> <b>UpperRight</b> :右上角。</li></ul>
2198
2198
  示例:如果设置Middle的关键字盖章,则印章的中心会和关键字的中心重合,如果设置Below,则印章在关键字的正下方
2199
2199
  :type RelativeLocation: str
2200
2200
  :param _KeywordIndexes: **如果控件是关键字定位方式**,关键字索引是指在PDF文件中存在多个相同的关键字时,通过索引指定使用哪一个关键字作为最后的结果。可以通过指定多个索引来同时使用多个关键字。例如,[0,2]表示使用PDF文件内第1个和第3个关键字位置作为最后的结果。
@@ -9179,8 +9179,8 @@ class Component(AbstractModel):
9179
9179
  <ul><li> <b>Middle</b> :居中</li>
9180
9180
  <li> <b>Below</b> :正下方</li>
9181
9181
  <li> <b>Right</b> :正右方</li>
9182
- <li> <b>LowerRight</b> :右上角</li>
9183
- <li> <b>UpperRight</b> :右下角。</li></ul>
9182
+ <li> <b>LowerRight</b> :右下角</li>
9183
+ <li> <b>UpperRight</b> :右上角。</li></ul>
9184
9184
  示例:如果设置Middle的关键字盖章,则印章的中心会和关键字的中心重合,如果设置Below,则印章在关键字的正下方
9185
9185
  :type RelativeLocation: str
9186
9186
  :param _KeywordIndexes: **如果控件是关键字定位方式**,关键字索引是指在PDF文件中存在多个相同的关键字时,通过索引指定使用哪一个关键字作为最后的结果。可以通过指定多个索引来同时使用多个关键字。例如,[0,2]表示使用PDF文件内第1个和第3个关键字位置作为最后的结果。
@@ -62,6 +62,9 @@ FAILEDOPERATION_IMAGEDOWNLOADERROR = 'FailedOperation.ImageDownloadError'
62
62
  # 素材尺寸超过1080*1080像素。
63
63
  FAILEDOPERATION_IMAGEPIXELEXCEED = 'FailedOperation.ImagePixelExceed'
64
64
 
65
+ # 素材尺寸超过8000*8000像素。
66
+ FAILEDOPERATION_IMAGEPIXELEXCEED8000 = 'FailedOperation.ImagePixelExceed8000'
67
+
65
68
  # 图片分辨率过大。建议您resize压缩到3k*3k以内。
66
69
  FAILEDOPERATION_IMAGERESOLUTIONEXCEED = 'FailedOperation.ImageResolutionExceed'
67
70
 
@@ -71,6 +74,9 @@ FAILEDOPERATION_IMAGERESOLUTIONTOOSMALL = 'FailedOperation.ImageResolutionTooSma
71
74
  # 输入图片base64数据大小超过5M。
72
75
  FAILEDOPERATION_IMAGESIZEEXCEED = 'FailedOperation.ImageSizeExceed'
73
76
 
77
+ # 输入图片base64数据大小超过10M。
78
+ FAILEDOPERATION_IMAGESIZEEXCEED10M = 'FailedOperation.ImageSizeExceed10M'
79
+
74
80
  # 图片尺寸过大或者过小;不满足算法要求。
75
81
  FAILEDOPERATION_IMAGESIZEINVALID = 'FailedOperation.ImageSizeInvalid'
76
82
 
@@ -101,6 +107,9 @@ FAILEDOPERATION_SERVERERROR = 'FailedOperation.ServerError'
101
107
  # 素材人脸ID不存在。
102
108
  FAILEDOPERATION_TEMPLATEFACEIDNOTEXIST = 'FailedOperation.TemplateFaceIDNotExist'
103
109
 
110
+ # 内部错误。
111
+ FAILEDOPERATION_UNKNOWERROR = 'FailedOperation.UnKnowError'
112
+
104
113
  # 未知错误。
105
114
  FAILEDOPERATION_UNKNOWN = 'FailedOperation.Unknown'
106
115
 
@@ -113,6 +122,9 @@ INVALIDPARAMETERVALUE_FACERECTPARAMETERVALUEERROR = 'InvalidParameterValue.FaceR
113
122
  # 人脸检测-图片为空。
114
123
  INVALIDPARAMETERVALUE_IMAGEEMPTY = 'InvalidParameterValue.ImageEmpty'
115
124
 
125
+ # 图片包含违法违规信息,审核不通过。
126
+ INVALIDPARAMETERVALUE_IMAGEILLEGALDETECTED = 'InvalidParameterValue.ImageIllegalDetected'
127
+
116
128
  # 未查找到素材Id。
117
129
  INVALIDPARAMETERVALUE_MATERIALIDNOTFOUND = 'InvalidParameterValue.MaterialIdNotFound'
118
130
 
@@ -69,6 +69,30 @@ class FacefusionClient(AbstractClient):
69
69
  model = models.FuseFaceResponse()
70
70
  model._deserialize(response["Response"])
71
71
  return model
72
+ except Exception as e:
73
+ if isinstance(e, TencentCloudSDKException):
74
+ raise
75
+ else:
76
+ raise TencentCloudSDKException(type(e).__name__, str(e))
77
+
78
+
79
+ def FuseFaceUltra(self, request):
80
+ """图片人脸融合(专业版)为同步接口,支持自定义美颜、人脸增强、牙齿增强、拉脸等参数,最高支持8K分辨率,有多个模型类型供选择。查看 <a href="https://cloud.tencent.com/document/product/670/38247" target="_blank">融合接入指引</a>。
81
+ 请求频率限制为2次/秒。
82
+
83
+ :param request: Request instance for FuseFaceUltra.
84
+ :type request: :class:`tencentcloud.facefusion.v20220927.models.FuseFaceUltraRequest`
85
+ :rtype: :class:`tencentcloud.facefusion.v20220927.models.FuseFaceUltraResponse`
86
+
87
+ """
88
+ try:
89
+ params = request._serialize()
90
+ headers = request.headers
91
+ body = self.call("FuseFaceUltra", params, headers=headers)
92
+ response = json.loads(body)
93
+ model = models.FuseFaceUltraResponse()
94
+ model._deserialize(response["Response"])
95
+ return model
72
96
  except Exception as e:
73
97
  if isinstance(e, TencentCloudSDKException):
74
98
  raise
@@ -461,6 +461,189 @@ class FuseFaceResponse(AbstractModel):
461
461
  self._RequestId = params.get("RequestId")
462
462
 
463
463
 
464
+ class FuseFaceUltraRequest(AbstractModel):
465
+ """FuseFaceUltra请求参数结构体
466
+
467
+ """
468
+
469
+ def __init__(self):
470
+ r"""
471
+ :param _RspImgType: 返回融合结果图片方式(url 或 base64) ,二选一。url有效期为1天。
472
+ :type RspImgType: str
473
+ :param _MergeInfos: 用户人脸图片、素材模板图的人脸位置信息。主要用于素材模版中人脸以及用作融合的用户人脸相关信息,两种人脸都需要提供人脸图片,可选择提供人脸框位置,具体见MergeInfo说明
474
+ 目前最多支持融合模板图片中的6张人脸。
475
+ :type MergeInfos: list of MergeInfo
476
+ :param _ModelUrl: 素材模版图片的url地址。
477
+ ●base64 和 url 必须提供一个,如果都提供以 base64 为准。
478
+ ●素材图片限制:图片中面部尺寸大于34 * 34;图片尺寸大于64 * 64,小于8000 * 8000(单边限制)。图片url或者图片 base64 数据,base64 编码后大小不可超过10M(图片编码之后可能会大30%左右,建议合理控制图片大小)
479
+ ●图片格式:支持jpg或png
480
+ :type ModelUrl: str
481
+ :param _ModelImage: 素材模版图片base64数据。
482
+ ●base64 和 url 必须提供一个,如果都提供以 base64 为准。
483
+ ●素材图片限制:图片中面部尺寸大于34 * 34;图片尺寸大于64 * 64,小于8000*8000(单边限制)。图片url或者图片 base64 数据,base64 编码后大小不可超过10M(图片编码之后可能会大30%左右,建议合理控制图片大小)
484
+ ●支持图片格式:支持jpg或png
485
+ :type ModelImage: str
486
+ :param _FusionUltraParam: 图片人脸融合(专业版)效果参数。
487
+ 可用于设置拉脸、人脸增强、磨皮、牙齿增强等融合效果参数,生成理想的融合效果。不传默认使用接口推荐值。具体见FusionUltraParam说明
488
+
489
+ :type FusionUltraParam: :class:`tencentcloud.facefusion.v20220927.models.FusionUltraParam`
490
+ :param _LogoAdd: 为融合结果图添加合成标识的开关,默认为1。
491
+ 1:添加标识。
492
+ 0:不添加标识。
493
+ 其他数值:默认按1处理。
494
+ 建议您使用显著标识来提示结果图使用了人脸融合技术,是AI合成的图片。
495
+ :type LogoAdd: int
496
+ :param _LogoParam: 标识内容设置。
497
+ 默认在融合结果图右下角添加“本图片为AI合成图片”字样,您可根据自身需要替换为其他的Logo图片。
498
+ :type LogoParam: :class:`tencentcloud.facefusion.v20220927.models.LogoParam`
499
+ :param _SwapModelType: 融合模型类型参数:默认为1。
500
+ 图片人脸融合(专业版)针对不同场景,提供多种模型供选择。如您的产品是泛娱乐场景,推荐使用1;如您主要用于影像场景,推荐使用5。其他模型类型也可以结合您的产品使用场景进行选择,也许会有意想不到的效果
501
+ 1:默认泛娱乐场景,画面偏锐。
502
+ 2:影视级场景,画面偏自然。
503
+ 3:影视级场景,高分辨率,画面偏自然。
504
+ 4:影视级场景,高分辨率,画面偏自然。
505
+ 5:影视级场景,高分辨率,对闭眼和遮挡更友好。
506
+ :type SwapModelType: int
507
+ """
508
+ self._RspImgType = None
509
+ self._MergeInfos = None
510
+ self._ModelUrl = None
511
+ self._ModelImage = None
512
+ self._FusionUltraParam = None
513
+ self._LogoAdd = None
514
+ self._LogoParam = None
515
+ self._SwapModelType = None
516
+
517
+ @property
518
+ def RspImgType(self):
519
+ return self._RspImgType
520
+
521
+ @RspImgType.setter
522
+ def RspImgType(self, RspImgType):
523
+ self._RspImgType = RspImgType
524
+
525
+ @property
526
+ def MergeInfos(self):
527
+ return self._MergeInfos
528
+
529
+ @MergeInfos.setter
530
+ def MergeInfos(self, MergeInfos):
531
+ self._MergeInfos = MergeInfos
532
+
533
+ @property
534
+ def ModelUrl(self):
535
+ return self._ModelUrl
536
+
537
+ @ModelUrl.setter
538
+ def ModelUrl(self, ModelUrl):
539
+ self._ModelUrl = ModelUrl
540
+
541
+ @property
542
+ def ModelImage(self):
543
+ return self._ModelImage
544
+
545
+ @ModelImage.setter
546
+ def ModelImage(self, ModelImage):
547
+ self._ModelImage = ModelImage
548
+
549
+ @property
550
+ def FusionUltraParam(self):
551
+ return self._FusionUltraParam
552
+
553
+ @FusionUltraParam.setter
554
+ def FusionUltraParam(self, FusionUltraParam):
555
+ self._FusionUltraParam = FusionUltraParam
556
+
557
+ @property
558
+ def LogoAdd(self):
559
+ return self._LogoAdd
560
+
561
+ @LogoAdd.setter
562
+ def LogoAdd(self, LogoAdd):
563
+ self._LogoAdd = LogoAdd
564
+
565
+ @property
566
+ def LogoParam(self):
567
+ return self._LogoParam
568
+
569
+ @LogoParam.setter
570
+ def LogoParam(self, LogoParam):
571
+ self._LogoParam = LogoParam
572
+
573
+ @property
574
+ def SwapModelType(self):
575
+ return self._SwapModelType
576
+
577
+ @SwapModelType.setter
578
+ def SwapModelType(self, SwapModelType):
579
+ self._SwapModelType = SwapModelType
580
+
581
+
582
+ def _deserialize(self, params):
583
+ self._RspImgType = params.get("RspImgType")
584
+ if params.get("MergeInfos") is not None:
585
+ self._MergeInfos = []
586
+ for item in params.get("MergeInfos"):
587
+ obj = MergeInfo()
588
+ obj._deserialize(item)
589
+ self._MergeInfos.append(obj)
590
+ self._ModelUrl = params.get("ModelUrl")
591
+ self._ModelImage = params.get("ModelImage")
592
+ if params.get("FusionUltraParam") is not None:
593
+ self._FusionUltraParam = FusionUltraParam()
594
+ self._FusionUltraParam._deserialize(params.get("FusionUltraParam"))
595
+ self._LogoAdd = params.get("LogoAdd")
596
+ if params.get("LogoParam") is not None:
597
+ self._LogoParam = LogoParam()
598
+ self._LogoParam._deserialize(params.get("LogoParam"))
599
+ self._SwapModelType = params.get("SwapModelType")
600
+ memeber_set = set(params.keys())
601
+ for name, value in vars(self).items():
602
+ property_name = name[1:]
603
+ if property_name in memeber_set:
604
+ memeber_set.remove(property_name)
605
+ if len(memeber_set) > 0:
606
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
607
+
608
+
609
+
610
+ class FuseFaceUltraResponse(AbstractModel):
611
+ """FuseFaceUltra返回参数结构体
612
+
613
+ """
614
+
615
+ def __init__(self):
616
+ r"""
617
+ :param _FusedImage: RspImgType 为 url 时,返回结果的 url, RspImgType 为 base64 时返回 base64 数据。url有效期为1天。
618
+ :type FusedImage: str
619
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
620
+ :type RequestId: str
621
+ """
622
+ self._FusedImage = None
623
+ self._RequestId = None
624
+
625
+ @property
626
+ def FusedImage(self):
627
+ return self._FusedImage
628
+
629
+ @FusedImage.setter
630
+ def FusedImage(self, FusedImage):
631
+ self._FusedImage = FusedImage
632
+
633
+ @property
634
+ def RequestId(self):
635
+ return self._RequestId
636
+
637
+ @RequestId.setter
638
+ def RequestId(self, RequestId):
639
+ self._RequestId = RequestId
640
+
641
+
642
+ def _deserialize(self, params):
643
+ self._FusedImage = params.get("FusedImage")
644
+ self._RequestId = params.get("RequestId")
645
+
646
+
464
647
  class FuseParam(AbstractModel):
465
648
  """融合参数
466
649
 
@@ -496,6 +679,99 @@ class FuseParam(AbstractModel):
496
679
 
497
680
 
498
681
 
682
+ class FusionUltraParam(AbstractModel):
683
+ """高精度融合参数
684
+
685
+ """
686
+
687
+ def __init__(self):
688
+ r"""
689
+ :param _WarpRadio: 拉脸强度。主要用于调整生成结果人脸脸型更像素材模板还是用户人脸。取值越大越像用户人脸。
690
+ 取值范围:0-1之间。默认取值0.7。
691
+ 注意:此字段可能返回 null,表示取不到有效值。
692
+ :type WarpRadio: float
693
+ :param _EnhanceRadio: 人脸增强强度。对整个人脸进行增强,增加清晰度,改善质量。当生成的人脸不够清晰,质感不够好的时候可以设置。取值越大增强强度越大。
694
+ 取值范围:0-1之间。默认取值1。
695
+ 注意:此字段可能返回 null,表示取不到有效值。
696
+ :type EnhanceRadio: float
697
+ :param _MpRadio: 磨皮强度。当生成脸的图像面部显脏时,可进行设置。
698
+ 取值范围:0-1之间。默认取值1。
699
+ 注意:此字段可能返回 null,表示取不到有效值。
700
+ :type MpRadio: float
701
+ :param _BlurRadio: 人脸模糊开关(暂不支持)
702
+ 当生成人脸比较清晰时,将人脸模糊到接近模板的清晰度的程度
703
+ 注意:此字段可能返回 null,表示取不到有效值。
704
+ :type BlurRadio: float
705
+ :param _TeethEnhanceRadio: 牙齿增强开关,默认取值为1
706
+ 牙齿增强,修复牙齿。当生成牙齿不好(如牙齿裂开)可以打开此开关
707
+ 0:牙齿增强关闭
708
+ 1:牙齿增强打开
709
+ 注意:此字段可能返回 null,表示取不到有效值。
710
+ :type TeethEnhanceRadio: float
711
+ """
712
+ self._WarpRadio = None
713
+ self._EnhanceRadio = None
714
+ self._MpRadio = None
715
+ self._BlurRadio = None
716
+ self._TeethEnhanceRadio = None
717
+
718
+ @property
719
+ def WarpRadio(self):
720
+ return self._WarpRadio
721
+
722
+ @WarpRadio.setter
723
+ def WarpRadio(self, WarpRadio):
724
+ self._WarpRadio = WarpRadio
725
+
726
+ @property
727
+ def EnhanceRadio(self):
728
+ return self._EnhanceRadio
729
+
730
+ @EnhanceRadio.setter
731
+ def EnhanceRadio(self, EnhanceRadio):
732
+ self._EnhanceRadio = EnhanceRadio
733
+
734
+ @property
735
+ def MpRadio(self):
736
+ return self._MpRadio
737
+
738
+ @MpRadio.setter
739
+ def MpRadio(self, MpRadio):
740
+ self._MpRadio = MpRadio
741
+
742
+ @property
743
+ def BlurRadio(self):
744
+ return self._BlurRadio
745
+
746
+ @BlurRadio.setter
747
+ def BlurRadio(self, BlurRadio):
748
+ self._BlurRadio = BlurRadio
749
+
750
+ @property
751
+ def TeethEnhanceRadio(self):
752
+ return self._TeethEnhanceRadio
753
+
754
+ @TeethEnhanceRadio.setter
755
+ def TeethEnhanceRadio(self, TeethEnhanceRadio):
756
+ self._TeethEnhanceRadio = TeethEnhanceRadio
757
+
758
+
759
+ def _deserialize(self, params):
760
+ self._WarpRadio = params.get("WarpRadio")
761
+ self._EnhanceRadio = params.get("EnhanceRadio")
762
+ self._MpRadio = params.get("MpRadio")
763
+ self._BlurRadio = params.get("BlurRadio")
764
+ self._TeethEnhanceRadio = params.get("TeethEnhanceRadio")
765
+ memeber_set = set(params.keys())
766
+ for name, value in vars(self).items():
767
+ property_name = name[1:]
768
+ if property_name in memeber_set:
769
+ memeber_set.remove(property_name)
770
+ if len(memeber_set) > 0:
771
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
772
+
773
+
774
+
499
775
  class ImageCodecParam(AbstractModel):
500
776
  """图片编码参数
501
777
 
@@ -76,7 +76,7 @@ class HunyuanClient(AbstractClient):
76
76
  def ChatStd(self, request):
77
77
  """<span style="font-size:1.5em;">注意:本接口将于 5 月 15 日下线;下线后将不再提供文档指引,接口本身可继续调用,建议使用 [hunyuan](https://cloud.tencent.com/document/api/1729/105701) 接入。</span>
78
78
 
79
- 腾讯混元大模型标准版是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
79
+ 腾讯混元大模型(hunyuan-standard)是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
80
80
 
81
81
  1. 本接口暂不支持返回图片内容。
82
82
  2. 默认单账号限制并发数为 5 路,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
@@ -835,13 +835,13 @@ class EmbeddingData(AbstractModel):
835
835
 
836
836
  def __init__(self):
837
837
  r"""
838
- :param _Embedding: embedding 信息。
838
+ :param _Embedding: Embedding 信息,目前为 1024 维浮点数。
839
839
  注意:此字段可能返回 null,表示取不到有效值。
840
840
  :type Embedding: list of float
841
- :param _Index: 下标。
841
+ :param _Index: 下标,目前不支持批量,因此固定为 0。
842
842
  注意:此字段可能返回 null,表示取不到有效值。
843
843
  :type Index: int
844
- :param _Object: embedding
844
+ :param _Object: 目前固定为 "embedding"。
845
845
  注意:此字段可能返回 null,表示取不到有效值。
846
846
  :type Object: str
847
847
  """
@@ -2349,6 +2349,29 @@ class IotexplorerClient(AbstractClient):
2349
2349
  raise TencentCloudSDKException(type(e).__name__, str(e))
2350
2350
 
2351
2351
 
2352
+ def GetWechatDeviceTicket(self, request):
2353
+ """查询微信设备授权票据
2354
+
2355
+ :param request: Request instance for GetWechatDeviceTicket.
2356
+ :type request: :class:`tencentcloud.iotexplorer.v20190423.models.GetWechatDeviceTicketRequest`
2357
+ :rtype: :class:`tencentcloud.iotexplorer.v20190423.models.GetWechatDeviceTicketResponse`
2358
+
2359
+ """
2360
+ try:
2361
+ params = request._serialize()
2362
+ headers = request.headers
2363
+ body = self.call("GetWechatDeviceTicket", params, headers=headers)
2364
+ response = json.loads(body)
2365
+ model = models.GetWechatDeviceTicketResponse()
2366
+ model._deserialize(response["Response"])
2367
+ return model
2368
+ except Exception as e:
2369
+ if isinstance(e, TencentCloudSDKException):
2370
+ raise
2371
+ else:
2372
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2373
+
2374
+
2352
2375
  def InheritCloudStorageUser(self, request):
2353
2376
  """继承云存用户
2354
2377