tencentcloud-sdk-python 3.0.1207__py2.py3-none-any.whl → 3.0.1209__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tencentcloud/__init__.py +1 -1
- tencentcloud/aiart/v20221229/models.py +28 -0
- tencentcloud/cls/v20201016/cls_client.py +92 -0
- tencentcloud/cls/v20201016/models.py +509 -11
- tencentcloud/cwp/v20180228/cwp_client.py +26 -1
- tencentcloud/cwp/v20180228/models.py +190 -0
- tencentcloud/emr/v20190103/emr_client.py +69 -0
- tencentcloud/emr/v20190103/models.py +1362 -63
- tencentcloud/essbasic/v20210526/models.py +1 -1
- tencentcloud/hunyuan/v20230901/models.py +4 -4
- tencentcloud/ioa/v20220601/models.py +6 -5
- tencentcloud/organization/v20210331/errorcodes.py +9 -0
- tencentcloud/organization/v20210331/models.py +484 -0
- tencentcloud/organization/v20210331/organization_client.py +69 -0
- tencentcloud/smh/v20210712/errorcodes.py +69 -0
- tencentcloud/smh/v20210712/models.py +1173 -36
- tencentcloud/smh/v20210712/smh_client.py +115 -0
- tencentcloud/tcss/v20201101/models.py +140 -5
- tencentcloud/trocket/v20230308/models.py +106 -0
- tencentcloud/trocket/v20230308/trocket_client.py +23 -0
- tencentcloud/trtc/v20190722/models.py +6 -28
- tencentcloud/trtc/v20190722/trtc_client.py +0 -3
- tencentcloud/vclm/v20240523/errorcodes.py +0 -3
- tencentcloud/vod/v20180717/models.py +13 -0
- {tencentcloud_sdk_python-3.0.1207.dist-info → tencentcloud_sdk_python-3.0.1209.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1207.dist-info → tencentcloud_sdk_python-3.0.1209.dist-info}/RECORD +29 -29
- {tencentcloud_sdk_python-3.0.1207.dist-info → tencentcloud_sdk_python-3.0.1209.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1207.dist-info → tencentcloud_sdk_python-3.0.1209.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1207.dist-info → tencentcloud_sdk_python-3.0.1209.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -50,6 +50,9 @@ Dress:连衣裙
|
|
50
50
|
其他数值:默认按1处理。
|
51
51
|
建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
|
52
52
|
:type LogoAdd: int
|
53
|
+
:param _LogoParam: 标识内容设置。
|
54
|
+
默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
55
|
+
:type LogoParam: :class:`tencentcloud.aiart.v20221229.models.LogoParam`
|
53
56
|
:param _RspImgType: 返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
|
54
57
|
生成图分辨率较大时建议选择 url,使用 base64 可能因图片过大导致返回失败。
|
55
58
|
:type RspImgType: str
|
@@ -58,6 +61,7 @@ Dress:连衣裙
|
|
58
61
|
self._ClothesUrl = None
|
59
62
|
self._ClothesType = None
|
60
63
|
self._LogoAdd = None
|
64
|
+
self._LogoParam = None
|
61
65
|
self._RspImgType = None
|
62
66
|
|
63
67
|
@property
|
@@ -92,6 +96,14 @@ Dress:连衣裙
|
|
92
96
|
def LogoAdd(self, LogoAdd):
|
93
97
|
self._LogoAdd = LogoAdd
|
94
98
|
|
99
|
+
@property
|
100
|
+
def LogoParam(self):
|
101
|
+
return self._LogoParam
|
102
|
+
|
103
|
+
@LogoParam.setter
|
104
|
+
def LogoParam(self, LogoParam):
|
105
|
+
self._LogoParam = LogoParam
|
106
|
+
|
95
107
|
@property
|
96
108
|
def RspImgType(self):
|
97
109
|
return self._RspImgType
|
@@ -106,6 +118,9 @@ Dress:连衣裙
|
|
106
118
|
self._ClothesUrl = params.get("ClothesUrl")
|
107
119
|
self._ClothesType = params.get("ClothesType")
|
108
120
|
self._LogoAdd = params.get("LogoAdd")
|
121
|
+
if params.get("LogoParam") is not None:
|
122
|
+
self._LogoParam = LogoParam()
|
123
|
+
self._LogoParam._deserialize(params.get("LogoParam"))
|
109
124
|
self._RspImgType = params.get("RspImgType")
|
110
125
|
memeber_set = set(params.keys())
|
111
126
|
for name, value in vars(self).items():
|
@@ -1123,6 +1138,9 @@ class ReplaceBackgroundRequest(AbstractModel):
|
|
1123
1138
|
:param _Prompt: 对新背景的文本描述。
|
1124
1139
|
最多支持256个 utf-8 字符,支持中、英文。
|
1125
1140
|
:type Prompt: str
|
1141
|
+
:param _Product: 商品图中的商品主体名称。
|
1142
|
+
建议说明商品主体,否则影响生成效果。
|
1143
|
+
:type Product: str
|
1126
1144
|
:param _MaskUrl: 商品 Mask 图 Url,要求背景透明,保留商品主体。
|
1127
1145
|
如果不传,将自动使用内置的商品分割算法得到 Mask。
|
1128
1146
|
支持自定义上传 Mask,如果该参数不为空,则以实际上传的数据为准。
|
@@ -1147,6 +1165,7 @@ class ReplaceBackgroundRequest(AbstractModel):
|
|
1147
1165
|
"""
|
1148
1166
|
self._ProductUrl = None
|
1149
1167
|
self._Prompt = None
|
1168
|
+
self._Product = None
|
1150
1169
|
self._MaskUrl = None
|
1151
1170
|
self._Resolution = None
|
1152
1171
|
self._LogoAdd = None
|
@@ -1169,6 +1188,14 @@ class ReplaceBackgroundRequest(AbstractModel):
|
|
1169
1188
|
def Prompt(self, Prompt):
|
1170
1189
|
self._Prompt = Prompt
|
1171
1190
|
|
1191
|
+
@property
|
1192
|
+
def Product(self):
|
1193
|
+
return self._Product
|
1194
|
+
|
1195
|
+
@Product.setter
|
1196
|
+
def Product(self, Product):
|
1197
|
+
self._Product = Product
|
1198
|
+
|
1172
1199
|
@property
|
1173
1200
|
def MaskUrl(self):
|
1174
1201
|
return self._MaskUrl
|
@@ -1213,6 +1240,7 @@ class ReplaceBackgroundRequest(AbstractModel):
|
|
1213
1240
|
def _deserialize(self, params):
|
1214
1241
|
self._ProductUrl = params.get("ProductUrl")
|
1215
1242
|
self._Prompt = params.get("Prompt")
|
1243
|
+
self._Product = params.get("Product")
|
1216
1244
|
self._MaskUrl = params.get("MaskUrl")
|
1217
1245
|
self._Resolution = params.get("Resolution")
|
1218
1246
|
self._LogoAdd = params.get("LogoAdd")
|
@@ -256,6 +256,29 @@ class ClsClient(AbstractClient):
|
|
256
256
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
257
257
|
|
258
258
|
|
259
|
+
def CreateConsoleSharing(self, request):
|
260
|
+
"""创建控制台分享
|
261
|
+
|
262
|
+
:param request: Request instance for CreateConsoleSharing.
|
263
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.CreateConsoleSharingRequest`
|
264
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.CreateConsoleSharingResponse`
|
265
|
+
|
266
|
+
"""
|
267
|
+
try:
|
268
|
+
params = request._serialize()
|
269
|
+
headers = request.headers
|
270
|
+
body = self.call("CreateConsoleSharing", params, headers=headers)
|
271
|
+
response = json.loads(body)
|
272
|
+
model = models.CreateConsoleSharingResponse()
|
273
|
+
model._deserialize(response["Response"])
|
274
|
+
return model
|
275
|
+
except Exception as e:
|
276
|
+
if isinstance(e, TencentCloudSDKException):
|
277
|
+
raise
|
278
|
+
else:
|
279
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
280
|
+
|
281
|
+
|
259
282
|
def CreateConsumer(self, request):
|
260
283
|
"""本接口用于创建投递CKafka任务
|
261
284
|
|
@@ -693,6 +716,29 @@ class ClsClient(AbstractClient):
|
|
693
716
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
694
717
|
|
695
718
|
|
719
|
+
def DeleteConsoleSharing(self, request):
|
720
|
+
"""删除控制台分享
|
721
|
+
|
722
|
+
:param request: Request instance for DeleteConsoleSharing.
|
723
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.DeleteConsoleSharingRequest`
|
724
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.DeleteConsoleSharingResponse`
|
725
|
+
|
726
|
+
"""
|
727
|
+
try:
|
728
|
+
params = request._serialize()
|
729
|
+
headers = request.headers
|
730
|
+
body = self.call("DeleteConsoleSharing", params, headers=headers)
|
731
|
+
response = json.loads(body)
|
732
|
+
model = models.DeleteConsoleSharingResponse()
|
733
|
+
model._deserialize(response["Response"])
|
734
|
+
return model
|
735
|
+
except Exception as e:
|
736
|
+
if isinstance(e, TencentCloudSDKException):
|
737
|
+
raise
|
738
|
+
else:
|
739
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
740
|
+
|
741
|
+
|
696
742
|
def DeleteConsumer(self, request):
|
697
743
|
"""本接口用于删除投递配置
|
698
744
|
|
@@ -1130,6 +1176,29 @@ class ClsClient(AbstractClient):
|
|
1130
1176
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1131
1177
|
|
1132
1178
|
|
1179
|
+
def DescribeConsoleSharingList(self, request):
|
1180
|
+
"""批量查询控制台分享列表
|
1181
|
+
|
1182
|
+
:param request: Request instance for DescribeConsoleSharingList.
|
1183
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.DescribeConsoleSharingListRequest`
|
1184
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.DescribeConsoleSharingListResponse`
|
1185
|
+
|
1186
|
+
"""
|
1187
|
+
try:
|
1188
|
+
params = request._serialize()
|
1189
|
+
headers = request.headers
|
1190
|
+
body = self.call("DescribeConsoleSharingList", params, headers=headers)
|
1191
|
+
response = json.loads(body)
|
1192
|
+
model = models.DescribeConsoleSharingListResponse()
|
1193
|
+
model._deserialize(response["Response"])
|
1194
|
+
return model
|
1195
|
+
except Exception as e:
|
1196
|
+
if isinstance(e, TencentCloudSDKException):
|
1197
|
+
raise
|
1198
|
+
else:
|
1199
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1200
|
+
|
1201
|
+
|
1133
1202
|
def DescribeConsumer(self, request):
|
1134
1203
|
"""本接口用于获取投递配置
|
1135
1204
|
|
@@ -1752,6 +1821,29 @@ class ClsClient(AbstractClient):
|
|
1752
1821
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1753
1822
|
|
1754
1823
|
|
1824
|
+
def ModifyConsoleSharing(self, request):
|
1825
|
+
"""修改控制台分享,目前仅允许修改有效期
|
1826
|
+
|
1827
|
+
:param request: Request instance for ModifyConsoleSharing.
|
1828
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.ModifyConsoleSharingRequest`
|
1829
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.ModifyConsoleSharingResponse`
|
1830
|
+
|
1831
|
+
"""
|
1832
|
+
try:
|
1833
|
+
params = request._serialize()
|
1834
|
+
headers = request.headers
|
1835
|
+
body = self.call("ModifyConsoleSharing", params, headers=headers)
|
1836
|
+
response = json.loads(body)
|
1837
|
+
model = models.ModifyConsoleSharingResponse()
|
1838
|
+
model._deserialize(response["Response"])
|
1839
|
+
return model
|
1840
|
+
except Exception as e:
|
1841
|
+
if isinstance(e, TencentCloudSDKException):
|
1842
|
+
raise
|
1843
|
+
else:
|
1844
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1845
|
+
|
1846
|
+
|
1755
1847
|
def ModifyConsumer(self, request):
|
1756
1848
|
"""本接口用于修改投递Ckafka任务
|
1757
1849
|
|