tencentcloud-sdk-python 3.0.1138__py2.py3-none-any.whl → 3.0.1140__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 +5 -42
- tencentcloud/cls/v20201016/cls_client.py +115 -0
- tencentcloud/cls/v20201016/errorcodes.py +12 -0
- tencentcloud/cls/v20201016/models.py +481 -11
- tencentcloud/ims/v20201229/ims_client.py +1 -1
- tencentcloud/rum/v20210622/models.py +1 -1
- tencentcloud/teo/v20220901/errorcodes.py +45 -0
- tencentcloud/teo/v20220901/models.py +610 -0
- tencentcloud/teo/v20220901/teo_client.py +151 -0
- tencentcloud/tione/v20191022/models.py +1 -1
- tencentcloud/tione/v20211111/errorcodes.py +1 -1
- tencentcloud/tke/v20180525/models.py +10 -53
- tencentcloud/tke/v20180525/tke_client.py +3 -3
- {tencentcloud_sdk_python-3.0.1138.dist-info → tencentcloud_sdk_python-3.0.1140.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1138.dist-info → tencentcloud_sdk_python-3.0.1140.dist-info}/RECORD +19 -19
- {tencentcloud_sdk_python-3.0.1138.dist-info → tencentcloud_sdk_python-3.0.1140.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1138.dist-info → tencentcloud_sdk_python-3.0.1140.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1138.dist-info → tencentcloud_sdk_python-3.0.1140.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -98,12 +98,12 @@ class ImageToImageRequest(AbstractModel):
|
|
98
98
|
:param _InputImage: 输入图 Base64 数据。
|
99
99
|
算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
|
100
100
|
Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
|
101
|
-
图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 8MB。
|
101
|
+
图片限制:单边分辨率小于5000且大于50,转成 Base64 字符串后小于 8MB。
|
102
102
|
:type InputImage: str
|
103
103
|
:param _InputUrl: 输入图 Url。
|
104
104
|
算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
|
105
105
|
Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
|
106
|
-
图片限制:单边分辨率小于5000,转成 Base64 字符串后小于8MB。
|
106
|
+
图片限制:单边分辨率小于5000且大于50,转成 Base64 字符串后小于8MB。
|
107
107
|
:type InputUrl: str
|
108
108
|
:param _Prompt: 文本描述。
|
109
109
|
用于在输入图的基础上引导生成图效果,增加生成结果中出现描述内容的可能。
|
@@ -131,7 +131,7 @@ Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
|
|
131
131
|
默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
132
132
|
:type LogoParam: :class:`tencentcloud.aiart.v20221229.models.LogoParam`
|
133
133
|
:param _Strength: 生成自由度。
|
134
|
-
Strength 值越小,生成图和原图越接近,取值范围0
|
134
|
+
Strength 值越小,生成图和原图越接近,取值范围(0, 1],不传使用模型内置的默认值。
|
135
135
|
推荐的取值范围为0.6 - 0.8。
|
136
136
|
:type Strength: float
|
137
137
|
:param _RspImgType: 返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
|
@@ -856,45 +856,8 @@ class SubmitDrawPortraitJobRequest(AbstractModel):
|
|
856
856
|
:param _ModelId: 写真模型 ID。
|
857
857
|
|
858
858
|
:type ModelId: str
|
859
|
-
:param _StyleId:
|
860
|
-
|
861
|
-
zhengjian_shorthair_female:证件照-短发(女)
|
862
|
-
zhengjian_male:证件照(男)
|
863
|
-
grey_suit_male:灰色西装(男)
|
864
|
-
beige_suit_male:米色西装(男)
|
865
|
-
white_sweater_male:白色毛衣(男)
|
866
|
-
hanfu_female:汉服(女)
|
867
|
-
hanfu2_female:汉服2(女)
|
868
|
-
green_female:绿色毛衣(女)
|
869
|
-
white_sweater_female:白色毛衣(女)
|
870
|
-
sports_female:蓝色运动装(女)
|
871
|
-
bow_female:蝴蝶结发饰(女)
|
872
|
-
wreath_female:头戴花环(女)
|
873
|
-
black_dress1_female:小黑裙1(女)
|
874
|
-
black_dress2_female:小黑裙2(女)
|
875
|
-
black_dress3_female:小黑裙3(女)
|
876
|
-
wedding_female:婚纱裙(女)
|
877
|
-
wedding2_female:婚纱裙2(女)
|
878
|
-
forest_female:树林(女)
|
879
|
-
flower_female:花丛(女)
|
880
|
-
qipao_female:旗袍(女)
|
881
|
-
feather_female:羽毛(女)
|
882
|
-
lolita_female:洛丽塔(女)
|
883
|
-
blue_shirt_female:蓝衬衣(女)
|
884
|
-
green_shirt_female:绿衬衣(女)
|
885
|
-
purple_shirt_female:紫衬衣(女)
|
886
|
-
fire_female:火焰(女)
|
887
|
-
christmas1_female: 圣诞1(女)
|
888
|
-
christmas2_female: 圣诞2(女)
|
889
|
-
christmas3_female: 圣诞3(适用女性)
|
890
|
-
newyear1_female:新春1(女)
|
891
|
-
newyear2_female:新春2(女)
|
892
|
-
newyear3_female:新春3(女)
|
893
|
-
newyear5_female:新春5(女)
|
894
|
-
elderly_female:中老年(女)
|
895
|
-
elderly_male:中老年(男)
|
896
|
-
labour_female:田野劳作(女)
|
897
|
-
simple:简洁风格(通用),一般用于写真模型的封面示意图,每个 ModelId 的生成结果固定,多次生成将返回相同图片
|
859
|
+
:param _StyleId: 写真风格模板。
|
860
|
+
请在[ AI 写真风格列表](https://cloud.tencent.com/document/product/1668/105740) 中选择期望的风格,传入风格编号。
|
898
861
|
:type StyleId: str
|
899
862
|
:param _ImageNum: 本次生成的图片数量,取值范围[1,4]
|
900
863
|
:type ImageNum: int
|
@@ -302,6 +302,29 @@ class ClsClient(AbstractClient):
|
|
302
302
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
303
303
|
|
304
304
|
|
305
|
+
def CreateDashboardSubscribe(self, request):
|
306
|
+
"""此接口用于创建仪表盘订阅
|
307
|
+
|
308
|
+
:param request: Request instance for CreateDashboardSubscribe.
|
309
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.CreateDashboardSubscribeRequest`
|
310
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.CreateDashboardSubscribeResponse`
|
311
|
+
|
312
|
+
"""
|
313
|
+
try:
|
314
|
+
params = request._serialize()
|
315
|
+
headers = request.headers
|
316
|
+
body = self.call("CreateDashboardSubscribe", params, headers=headers)
|
317
|
+
response = json.loads(body)
|
318
|
+
model = models.CreateDashboardSubscribeResponse()
|
319
|
+
model._deserialize(response["Response"])
|
320
|
+
return model
|
321
|
+
except Exception as e:
|
322
|
+
if isinstance(e, TencentCloudSDKException):
|
323
|
+
raise
|
324
|
+
else:
|
325
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
326
|
+
|
327
|
+
|
305
328
|
def CreateDataTransform(self, request):
|
306
329
|
"""本接口用于创建数据加工任务。
|
307
330
|
|
@@ -693,6 +716,29 @@ class ClsClient(AbstractClient):
|
|
693
716
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
694
717
|
|
695
718
|
|
719
|
+
def DeleteDashboardSubscribe(self, request):
|
720
|
+
"""此接口用于删除仪表盘订阅
|
721
|
+
|
722
|
+
:param request: Request instance for DeleteDashboardSubscribe.
|
723
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.DeleteDashboardSubscribeRequest`
|
724
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.DeleteDashboardSubscribeResponse`
|
725
|
+
|
726
|
+
"""
|
727
|
+
try:
|
728
|
+
params = request._serialize()
|
729
|
+
headers = request.headers
|
730
|
+
body = self.call("DeleteDashboardSubscribe", params, headers=headers)
|
731
|
+
response = json.loads(body)
|
732
|
+
model = models.DeleteDashboardSubscribeResponse()
|
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 DeleteDataTransform(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 DescribeDashboardSubscribes(self, request):
|
1180
|
+
"""本接口用于获取仪表盘订阅列表,支持分页
|
1181
|
+
|
1182
|
+
:param request: Request instance for DescribeDashboardSubscribes.
|
1183
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.DescribeDashboardSubscribesRequest`
|
1184
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.DescribeDashboardSubscribesResponse`
|
1185
|
+
|
1186
|
+
"""
|
1187
|
+
try:
|
1188
|
+
params = request._serialize()
|
1189
|
+
headers = request.headers
|
1190
|
+
body = self.call("DescribeDashboardSubscribes", params, headers=headers)
|
1191
|
+
response = json.loads(body)
|
1192
|
+
model = models.DescribeDashboardSubscribesResponse()
|
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 DescribeDashboards(self, request):
|
1134
1203
|
"""本接口用于获取仪表盘
|
1135
1204
|
|
@@ -1729,6 +1798,29 @@ class ClsClient(AbstractClient):
|
|
1729
1798
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1730
1799
|
|
1731
1800
|
|
1801
|
+
def ModifyDashboardSubscribe(self, request):
|
1802
|
+
"""此接口用于修改仪表盘订阅
|
1803
|
+
|
1804
|
+
:param request: Request instance for ModifyDashboardSubscribe.
|
1805
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.ModifyDashboardSubscribeRequest`
|
1806
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.ModifyDashboardSubscribeResponse`
|
1807
|
+
|
1808
|
+
"""
|
1809
|
+
try:
|
1810
|
+
params = request._serialize()
|
1811
|
+
headers = request.headers
|
1812
|
+
body = self.call("ModifyDashboardSubscribe", params, headers=headers)
|
1813
|
+
response = json.loads(body)
|
1814
|
+
model = models.ModifyDashboardSubscribeResponse()
|
1815
|
+
model._deserialize(response["Response"])
|
1816
|
+
return model
|
1817
|
+
except Exception as e:
|
1818
|
+
if isinstance(e, TencentCloudSDKException):
|
1819
|
+
raise
|
1820
|
+
else:
|
1821
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1822
|
+
|
1823
|
+
|
1732
1824
|
def ModifyDataTransform(self, request):
|
1733
1825
|
"""本接口用于修改数据加工任务
|
1734
1826
|
|
@@ -2074,6 +2166,29 @@ class ClsClient(AbstractClient):
|
|
2074
2166
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2075
2167
|
|
2076
2168
|
|
2169
|
+
def SearchDashboardSubscribe(self, request):
|
2170
|
+
"""此接口用于预览仪表盘订阅
|
2171
|
+
|
2172
|
+
:param request: Request instance for SearchDashboardSubscribe.
|
2173
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.SearchDashboardSubscribeRequest`
|
2174
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.SearchDashboardSubscribeResponse`
|
2175
|
+
|
2176
|
+
"""
|
2177
|
+
try:
|
2178
|
+
params = request._serialize()
|
2179
|
+
headers = request.headers
|
2180
|
+
body = self.call("SearchDashboardSubscribe", params, headers=headers)
|
2181
|
+
response = json.loads(body)
|
2182
|
+
model = models.SearchDashboardSubscribeResponse()
|
2183
|
+
model._deserialize(response["Response"])
|
2184
|
+
return model
|
2185
|
+
except Exception as e:
|
2186
|
+
if isinstance(e, TencentCloudSDKException):
|
2187
|
+
raise
|
2188
|
+
else:
|
2189
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2190
|
+
|
2191
|
+
|
2077
2192
|
def SearchLog(self, request):
|
2078
2193
|
"""本接口用于检索分析日志,使用该接口时请注意如下事项:
|
2079
2194
|
1. 该接口除受默认接口请求频率限制外,针对单个日志主题,查询并发数不能超过15。
|
@@ -137,6 +137,9 @@ INVALIDPARAMETER_CONFIGCONFLICT = 'InvalidParameter.ConfigConflict'
|
|
137
137
|
# 无效的Content。
|
138
138
|
INVALIDPARAMETER_CONTENT = 'InvalidParameter.Content'
|
139
139
|
|
140
|
+
# 仪表盘命名冲突。
|
141
|
+
INVALIDPARAMETER_DASHBOARDNAMECONFLICT = 'InvalidParameter.DashboardNameConflict'
|
142
|
+
|
140
143
|
# 数据加工任务冲突。
|
141
144
|
INVALIDPARAMETER_DATAFROMTASKCONFLICT = 'InvalidParameter.DataFromTaskConflict'
|
142
145
|
|
@@ -272,6 +275,9 @@ OPERATIONDENIED_TOPICHASEXTERNALDATASOURCECONFIG = 'OperationDenied.TopicHasExte
|
|
272
275
|
# topic绑定了scheduleSql任务。
|
273
276
|
OPERATIONDENIED_TOPICHASSCHEDULESQLTASK = 'OperationDenied.TopicHasScheduleSqlTask'
|
274
277
|
|
278
|
+
# 请求的次数超过了频率限制。
|
279
|
+
REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
|
280
|
+
|
275
281
|
# 资源不存在。
|
276
282
|
RESOURCENOTFOUND = 'ResourceNotFound'
|
277
283
|
|
@@ -287,6 +293,12 @@ RESOURCENOTFOUND_ALARMNOTICENOTEXIST = 'ResourceNotFound.AlarmNoticeNotExist'
|
|
287
293
|
# 指定的采集规则配置不存在。
|
288
294
|
RESOURCENOTFOUND_CONFIGNOTEXIST = 'ResourceNotFound.ConfigNotExist'
|
289
295
|
|
296
|
+
# 仪表盘记录不存在。
|
297
|
+
RESOURCENOTFOUND_DASHBOARDRECORDNOTEXIST = 'ResourceNotFound.DashboardRecordNotExist'
|
298
|
+
|
299
|
+
# 仪表盘订阅记录不存在。
|
300
|
+
RESOURCENOTFOUND_DASHBOARDSUBSCRIBERECORDNOTEXIST = 'ResourceNotFound.DashboardSubscribeRecordNotExist'
|
301
|
+
|
290
302
|
# 数据加工任务不存在。
|
291
303
|
RESOURCENOTFOUND_DATAFROMTASKNOTEXIST = 'ResourceNotFound.DataFromTaskNotExist'
|
292
304
|
|