tencentcloud-sdk-python 3.0.1198__py2.py3-none-any.whl → 3.0.1200__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 +10 -12
- tencentcloud/cfg/v20210820/cfg_client.py +92 -0
- tencentcloud/cfg/v20210820/models.py +1384 -49
- tencentcloud/cfw/v20190904/models.py +15 -2
- tencentcloud/cls/v20201016/models.py +28 -9
- tencentcloud/csip/v20221121/csip_client.py +23 -0
- tencentcloud/csip/v20221121/models.py +163 -0
- tencentcloud/cwp/v20180228/models.py +26 -0
- tencentcloud/dnspod/v20210323/dnspod_client.py +1 -0
- tencentcloud/essbasic/v20210526/models.py +12 -0
- tencentcloud/iotexplorer/v20190423/errorcodes.py +3 -0
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +1 -1
- tencentcloud/iotexplorer/v20190423/models.py +28 -29
- tencentcloud/lcic/v20220817/lcic_client.py +23 -0
- tencentcloud/lcic/v20220817/models.py +82 -0
- tencentcloud/live/v20180801/models.py +1 -1
- tencentcloud/lke/v20231130/models.py +7 -7
- tencentcloud/ocr/v20181119/models.py +12 -0
- tencentcloud/trtc/v20190722/models.py +131 -0
- tencentcloud/trtc/v20190722/trtc_client.py +23 -0
- tencentcloud/vclm/v20240523/errorcodes.py +18 -0
- tencentcloud/vclm/v20240523/models.py +212 -0
- tencentcloud/vclm/v20240523/vclm_client.py +48 -0
- tencentcloud/vpc/v20170312/models.py +1 -0
- {tencentcloud_sdk_python-3.0.1198.dist-info → tencentcloud_sdk_python-3.0.1200.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1198.dist-info → tencentcloud_sdk_python-3.0.1200.dist-info}/RECORD +30 -30
- {tencentcloud_sdk_python-3.0.1198.dist-info → tencentcloud_sdk_python-3.0.1200.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1198.dist-info → tencentcloud_sdk_python-3.0.1200.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1198.dist-info → tencentcloud_sdk_python-3.0.1200.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -238,12 +238,12 @@ class GenerateAvatarRequest(AbstractModel):
|
|
238
238
|
:type Style: str
|
239
239
|
:param _InputImage: 输入图 Base64 数据。
|
240
240
|
算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
|
241
|
-
Base64 和 Url 必须提供一个,如果都提供以
|
241
|
+
Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
|
242
242
|
图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
|
243
243
|
:type InputImage: str
|
244
244
|
:param _InputUrl: 输入图 Url。
|
245
245
|
算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
|
246
|
-
Base64 和 Url 必须提供一个,如果都提供以
|
246
|
+
Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
|
247
247
|
图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
|
248
248
|
:type InputUrl: str
|
249
249
|
:param _Filter: 输入图像质量检测开关,默认开启。
|
@@ -398,13 +398,13 @@ class ImageToImageRequest(AbstractModel):
|
|
398
398
|
r"""
|
399
399
|
:param _InputImage: 输入图 Base64 数据。
|
400
400
|
算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
|
401
|
-
Base64 和 Url 必须提供一个,如果都提供以
|
402
|
-
图片限制:单边分辨率小于5000且大于50,转成 Base64 字符串后小于 8MB。
|
401
|
+
Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
|
402
|
+
图片限制:单边分辨率小于5000且大于50,转成 Base64 字符串后小于 8MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
|
403
403
|
:type InputImage: str
|
404
404
|
:param _InputUrl: 输入图 Url。
|
405
405
|
算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
|
406
|
-
Base64 和 Url 必须提供一个,如果都提供以
|
407
|
-
图片限制:单边分辨率小于5000且大于50,转成 Base64 字符串后小于8MB。
|
406
|
+
Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
|
407
|
+
图片限制:单边分辨率小于5000且大于50,转成 Base64 字符串后小于 8MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
|
408
408
|
:type InputUrl: str
|
409
409
|
:param _Prompt: 文本描述。
|
410
410
|
用于在输入图的基础上引导生成图效果,增加生成结果中出现描述内容的可能。
|
@@ -601,11 +601,11 @@ class LogoParam(AbstractModel):
|
|
601
601
|
|
602
602
|
def __init__(self):
|
603
603
|
r"""
|
604
|
-
:param _LogoUrl: 水印
|
604
|
+
:param _LogoUrl: 水印 Url
|
605
605
|
:type LogoUrl: str
|
606
|
-
:param _LogoImage: 水印
|
606
|
+
:param _LogoImage: 水印 Base64,Url 和 Base64 二选一传入,如果都提供以 Url 为准
|
607
607
|
:type LogoImage: str
|
608
|
-
:param _LogoRect:
|
608
|
+
:param _LogoRect: 水印图片位于生成结果图中的坐标,将按照坐标对标识图片进行位置和大小的拉伸匹配
|
609
609
|
:type LogoRect: :class:`tencentcloud.aiart.v20221229.models.LogoRect`
|
610
610
|
"""
|
611
611
|
self._LogoUrl = None
|
@@ -1290,9 +1290,7 @@ class ResultConfig(AbstractModel):
|
|
1290
1290
|
r"""
|
1291
1291
|
:param _Resolution: 生成图分辨率
|
1292
1292
|
|
1293
|
-
|
1294
|
-
|
1295
|
-
智能图生图支持生成以下分辨率的图片:origin(与输入图分辨率一致,长边最高为2000,超出将做等比例缩小)、768:768(1:1)、768:1024(3:4)、1024:768(4:3),不传默认使用origin,如果指定生成的长宽比与输入图长宽比差异过大可能导致图片内容被裁剪。
|
1293
|
+
图像风格化(图生图)支持生成以下分辨率的图片:origin(与输入图分辨率一致,长边最高为2000,超出将做等比例缩小)、768:768(1:1)、768:1024(3:4)、1024:768(4:3),不传默认使用origin,如果指定生成的长宽比与输入图长宽比差异过大可能导致图片内容被裁剪。
|
1296
1294
|
:type Resolution: str
|
1297
1295
|
"""
|
1298
1296
|
self._Resolution = None
|
@@ -26,6 +26,29 @@ class CfgClient(AbstractClient):
|
|
26
26
|
_service = 'cfg'
|
27
27
|
|
28
28
|
|
29
|
+
def CreateTaskFromAction(self, request):
|
30
|
+
"""从动作创建演练
|
31
|
+
|
32
|
+
:param request: Request instance for CreateTaskFromAction.
|
33
|
+
:type request: :class:`tencentcloud.cfg.v20210820.models.CreateTaskFromActionRequest`
|
34
|
+
:rtype: :class:`tencentcloud.cfg.v20210820.models.CreateTaskFromActionResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("CreateTaskFromAction", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.CreateTaskFromActionResponse()
|
43
|
+
model._deserialize(response["Response"])
|
44
|
+
return model
|
45
|
+
except Exception as e:
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
47
|
+
raise
|
48
|
+
else:
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
50
|
+
|
51
|
+
|
29
52
|
def CreateTaskFromTemplate(self, request):
|
30
53
|
"""从经验库创建演练
|
31
54
|
|
@@ -72,6 +95,75 @@ class CfgClient(AbstractClient):
|
|
72
95
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
73
96
|
|
74
97
|
|
98
|
+
def DescribeActionFieldConfigList(self, request):
|
99
|
+
"""根据动作ID获取动作栏位动态配置参数信息,里面包含动作自有和通用两部分参数。
|
100
|
+
|
101
|
+
:param request: Request instance for DescribeActionFieldConfigList.
|
102
|
+
:type request: :class:`tencentcloud.cfg.v20210820.models.DescribeActionFieldConfigListRequest`
|
103
|
+
:rtype: :class:`tencentcloud.cfg.v20210820.models.DescribeActionFieldConfigListResponse`
|
104
|
+
|
105
|
+
"""
|
106
|
+
try:
|
107
|
+
params = request._serialize()
|
108
|
+
headers = request.headers
|
109
|
+
body = self.call("DescribeActionFieldConfigList", params, headers=headers)
|
110
|
+
response = json.loads(body)
|
111
|
+
model = models.DescribeActionFieldConfigListResponse()
|
112
|
+
model._deserialize(response["Response"])
|
113
|
+
return model
|
114
|
+
except Exception as e:
|
115
|
+
if isinstance(e, TencentCloudSDKException):
|
116
|
+
raise
|
117
|
+
else:
|
118
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
119
|
+
|
120
|
+
|
121
|
+
def DescribeActionLibraryList(self, request):
|
122
|
+
"""获取混沌演练平台的动作库列表
|
123
|
+
|
124
|
+
:param request: Request instance for DescribeActionLibraryList.
|
125
|
+
:type request: :class:`tencentcloud.cfg.v20210820.models.DescribeActionLibraryListRequest`
|
126
|
+
:rtype: :class:`tencentcloud.cfg.v20210820.models.DescribeActionLibraryListResponse`
|
127
|
+
|
128
|
+
"""
|
129
|
+
try:
|
130
|
+
params = request._serialize()
|
131
|
+
headers = request.headers
|
132
|
+
body = self.call("DescribeActionLibraryList", params, headers=headers)
|
133
|
+
response = json.loads(body)
|
134
|
+
model = models.DescribeActionLibraryListResponse()
|
135
|
+
model._deserialize(response["Response"])
|
136
|
+
return model
|
137
|
+
except Exception as e:
|
138
|
+
if isinstance(e, TencentCloudSDKException):
|
139
|
+
raise
|
140
|
+
else:
|
141
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
142
|
+
|
143
|
+
|
144
|
+
def DescribeObjectTypeList(self, request):
|
145
|
+
"""查询对象类型列表
|
146
|
+
|
147
|
+
:param request: Request instance for DescribeObjectTypeList.
|
148
|
+
:type request: :class:`tencentcloud.cfg.v20210820.models.DescribeObjectTypeListRequest`
|
149
|
+
:rtype: :class:`tencentcloud.cfg.v20210820.models.DescribeObjectTypeListResponse`
|
150
|
+
|
151
|
+
"""
|
152
|
+
try:
|
153
|
+
params = request._serialize()
|
154
|
+
headers = request.headers
|
155
|
+
body = self.call("DescribeObjectTypeList", params, headers=headers)
|
156
|
+
response = json.loads(body)
|
157
|
+
model = models.DescribeObjectTypeListResponse()
|
158
|
+
model._deserialize(response["Response"])
|
159
|
+
return model
|
160
|
+
except Exception as e:
|
161
|
+
if isinstance(e, TencentCloudSDKException):
|
162
|
+
raise
|
163
|
+
else:
|
164
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
165
|
+
|
166
|
+
|
75
167
|
def DescribeTask(self, request):
|
76
168
|
"""查询任务
|
77
169
|
|