tencentcloud-sdk-python 3.0.1189__py2.py3-none-any.whl → 3.0.1191__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/asr/v20190614/models.py +2 -1
- tencentcloud/cbs/v20170312/cbs_client.py +23 -0
- tencentcloud/cbs/v20170312/models.py +79 -0
- tencentcloud/cdc/v20201214/models.py +103 -0
- tencentcloud/cdz/__init__.py +0 -0
- tencentcloud/cdz/v20221123/__init__.py +0 -0
- tencentcloud/cdz/v20221123/cdz_client.py +72 -0
- tencentcloud/cdz/v20221123/errorcodes.py +24 -0
- tencentcloud/cdz/v20221123/models.py +467 -0
- tencentcloud/clb/v20180317/models.py +14 -0
- tencentcloud/cvm/v20170312/errorcodes.py +18 -0
- tencentcloud/cvm/v20170312/models.py +10 -10
- tencentcloud/dasb/v20191018/models.py +2 -2
- tencentcloud/dlc/v20210125/models.py +25 -1
- tencentcloud/es/v20180416/models.py +25 -1
- tencentcloud/ess/v20201111/models.py +7 -13
- tencentcloud/essbasic/v20210526/essbasic_client.py +3 -4
- tencentcloud/essbasic/v20210526/models.py +1 -8
- tencentcloud/facefusion/v20220927/models.py +13 -0
- tencentcloud/gaap/v20180529/models.py +25 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +24 -0
- tencentcloud/hunyuan/v20230901/models.py +153 -0
- tencentcloud/lcic/v20220817/models.py +25 -1
- tencentcloud/lke/v20231130/lke_client.py +1 -1
- tencentcloud/monitor/v20180724/models.py +102 -33
- tencentcloud/mps/v20190612/models.py +4 -2
- tencentcloud/mps/v20190612/mps_client.py +1 -1
- tencentcloud/tdmq/v20200217/models.py +422 -0
- tencentcloud/tdmq/v20200217/tdmq_client.py +69 -0
- tencentcloud/tsi/v20210325/tsi_client.py +14 -1
- tencentcloud/vpc/v20170312/errorcodes.py +45 -0
- tencentcloud/vpc/v20170312/models.py +2634 -353
- tencentcloud/vpc/v20170312/vpc_client.py +334 -0
- {tencentcloud_sdk_python-3.0.1189.dist-info → tencentcloud_sdk_python-3.0.1191.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1189.dist-info → tencentcloud_sdk_python-3.0.1191.dist-info}/RECORD +39 -34
- {tencentcloud_sdk_python-3.0.1189.dist-info → tencentcloud_sdk_python-3.0.1191.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1189.dist-info → tencentcloud_sdk_python-3.0.1191.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1189.dist-info → tencentcloud_sdk_python-3.0.1191.dist-info}/top_level.txt +0 -0
@@ -11297,10 +11297,16 @@ class DescribeDataEngineImageVersionsRequest(AbstractModel):
|
|
11297
11297
|
|
11298
11298
|
def __init__(self):
|
11299
11299
|
r"""
|
11300
|
-
:param _EngineType: 引擎类型:
|
11300
|
+
:param _EngineType: 引擎类型:SparkSQL、PrestoSQL、SparkBatch、StandardSpark、StandardPresto
|
11301
11301
|
:type EngineType: str
|
11302
|
+
:param _Sort: 排序字段: InsertTime(插入时间,默认),UpdateTime(更新时间)
|
11303
|
+
:type Sort: str
|
11304
|
+
:param _Asc: 排序方式:false(降序,默认),true(升序)
|
11305
|
+
:type Asc: bool
|
11302
11306
|
"""
|
11303
11307
|
self._EngineType = None
|
11308
|
+
self._Sort = None
|
11309
|
+
self._Asc = None
|
11304
11310
|
|
11305
11311
|
@property
|
11306
11312
|
def EngineType(self):
|
@@ -11310,9 +11316,27 @@ class DescribeDataEngineImageVersionsRequest(AbstractModel):
|
|
11310
11316
|
def EngineType(self, EngineType):
|
11311
11317
|
self._EngineType = EngineType
|
11312
11318
|
|
11319
|
+
@property
|
11320
|
+
def Sort(self):
|
11321
|
+
return self._Sort
|
11322
|
+
|
11323
|
+
@Sort.setter
|
11324
|
+
def Sort(self, Sort):
|
11325
|
+
self._Sort = Sort
|
11326
|
+
|
11327
|
+
@property
|
11328
|
+
def Asc(self):
|
11329
|
+
return self._Asc
|
11330
|
+
|
11331
|
+
@Asc.setter
|
11332
|
+
def Asc(self, Asc):
|
11333
|
+
self._Asc = Asc
|
11334
|
+
|
11313
11335
|
|
11314
11336
|
def _deserialize(self, params):
|
11315
11337
|
self._EngineType = params.get("EngineType")
|
11338
|
+
self._Sort = params.get("Sort")
|
11339
|
+
self._Asc = params.get("Asc")
|
11316
11340
|
memeber_set = set(params.keys())
|
11317
11341
|
for name, value in vars(self).items():
|
11318
11342
|
property_name = name[1:]
|
@@ -3525,7 +3525,7 @@ class DescribeInstancePluginListRequest(AbstractModel):
|
|
3525
3525
|
:type Offset: int
|
3526
3526
|
:param _Limit: 分页大小,默认值10
|
3527
3527
|
:type Limit: int
|
3528
|
-
:param _OrderBy: 排序字段<li>1:插件名 pluginName
|
3528
|
+
:param _OrderBy: 排序字段<li>1:插件名 pluginName</li>
|
3529
3529
|
:type OrderBy: str
|
3530
3530
|
:param _OrderByType: 排序方式<li>0:升序 asc</li><li>1:降序 desc</li>
|
3531
3531
|
:type OrderByType: str
|
@@ -13675,6 +13675,10 @@ CLOSE 关闭
|
|
13675
13675
|
:type OutboundPublicAccess: str
|
13676
13676
|
:param _CvmDelayOnlineTime: cvm延迟上架参数
|
13677
13677
|
:type CvmDelayOnlineTime: int
|
13678
|
+
:param _ShardAllocationConcurrents: 分片迁移并发数
|
13679
|
+
:type ShardAllocationConcurrents: int
|
13680
|
+
:param _ShardAllocationBytes: 分片迁移并发速度
|
13681
|
+
:type ShardAllocationBytes: int
|
13678
13682
|
"""
|
13679
13683
|
self._InstanceId = None
|
13680
13684
|
self._InstanceName = None
|
@@ -13714,6 +13718,8 @@ CLOSE 关闭
|
|
13714
13718
|
self._OutboundPublicAcls = None
|
13715
13719
|
self._OutboundPublicAccess = None
|
13716
13720
|
self._CvmDelayOnlineTime = None
|
13721
|
+
self._ShardAllocationConcurrents = None
|
13722
|
+
self._ShardAllocationBytes = None
|
13717
13723
|
|
13718
13724
|
@property
|
13719
13725
|
def InstanceId(self):
|
@@ -14019,6 +14025,22 @@ CLOSE 关闭
|
|
14019
14025
|
def CvmDelayOnlineTime(self, CvmDelayOnlineTime):
|
14020
14026
|
self._CvmDelayOnlineTime = CvmDelayOnlineTime
|
14021
14027
|
|
14028
|
+
@property
|
14029
|
+
def ShardAllocationConcurrents(self):
|
14030
|
+
return self._ShardAllocationConcurrents
|
14031
|
+
|
14032
|
+
@ShardAllocationConcurrents.setter
|
14033
|
+
def ShardAllocationConcurrents(self, ShardAllocationConcurrents):
|
14034
|
+
self._ShardAllocationConcurrents = ShardAllocationConcurrents
|
14035
|
+
|
14036
|
+
@property
|
14037
|
+
def ShardAllocationBytes(self):
|
14038
|
+
return self._ShardAllocationBytes
|
14039
|
+
|
14040
|
+
@ShardAllocationBytes.setter
|
14041
|
+
def ShardAllocationBytes(self, ShardAllocationBytes):
|
14042
|
+
self._ShardAllocationBytes = ShardAllocationBytes
|
14043
|
+
|
14022
14044
|
|
14023
14045
|
def _deserialize(self, params):
|
14024
14046
|
self._InstanceId = params.get("InstanceId")
|
@@ -14086,6 +14108,8 @@ CLOSE 关闭
|
|
14086
14108
|
self._OutboundPublicAcls.append(obj)
|
14087
14109
|
self._OutboundPublicAccess = params.get("OutboundPublicAccess")
|
14088
14110
|
self._CvmDelayOnlineTime = params.get("CvmDelayOnlineTime")
|
14111
|
+
self._ShardAllocationConcurrents = params.get("ShardAllocationConcurrents")
|
14112
|
+
self._ShardAllocationBytes = params.get("ShardAllocationBytes")
|
14089
14113
|
memeber_set = set(params.keys())
|
14090
14114
|
for name, value in vars(self).items():
|
14091
14115
|
property_name = name[1:]
|
@@ -4407,9 +4407,9 @@ class CreateFlowByFilesRequest(AbstractModel):
|
|
4407
4407
|
|
4408
4408
|
注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`
|
4409
4409
|
:type Operator: :class:`tencentcloud.ess.v20201111.models.UserInfo`
|
4410
|
-
:param _FlowName:
|
4410
|
+
:param _FlowName: 自定义的合同流程的名称,长度不能超过200个字符,只能由中文汉字、中文标点、英文字母、阿拉伯数字、空格、小括号、中括号、中划线、下划线以及(,)、(;)、(.)、(&)、(+)组成。
|
4411
4411
|
|
4412
|
-
|
4412
|
+
该名称还将用于合同签署完成后文件下载的默认文件名称。
|
4413
4413
|
:type FlowName: str
|
4414
4414
|
:param _Approvers: 合同流程的参与方列表,最多可支持50个参与方,可在列表中指定企业B端签署方和个人C端签署方的联系和认证方式等信息,具体定义可以参考开发者中心的ApproverInfo结构体。
|
4415
4415
|
|
@@ -5839,9 +5839,9 @@ class CreateFlowRequest(AbstractModel):
|
|
5839
5839
|
|
5840
5840
|
注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`
|
5841
5841
|
:type Operator: :class:`tencentcloud.ess.v20201111.models.UserInfo`
|
5842
|
-
:param _FlowName:
|
5842
|
+
:param _FlowName: 自定义的合同流程的名称,长度不能超过200个字符,只能由中文汉字、中文标点、英文字母、阿拉伯数字、空格、小括号、中括号、中划线、下划线以及(,)、(;)、(.)、(&)、(+)组成。
|
5843
5843
|
|
5844
|
-
|
5844
|
+
该名称还将用于合同签署完成后文件下载的默认文件名称。
|
5845
5845
|
:type FlowName: str
|
5846
5846
|
:param _Approvers: 合同流程的参与方列表,最多可支持50个参与方,可在列表中指定企业B端签署方和个人C端签署方的联系和认证方式等信息,具体定义可以参考开发者中心的ApproverInfo结构体。
|
5847
5847
|
|
@@ -8491,8 +8491,9 @@ class CreatePrepareFlowRequest(AbstractModel):
|
|
8491
8491
|
</ul>
|
8492
8492
|
注意:需要同时设置 ResourceType 参数指定资源类型
|
8493
8493
|
:type ResourceId: str
|
8494
|
-
:param _FlowName:
|
8494
|
+
:param _FlowName: 自定义的合同流程的名称,长度不能超过200个字符,只能由中文汉字、中文标点、英文字母、阿拉伯数字、空格、小括号、中括号、中划线、下划线以及(,)、(;)、(.)、(&)、(+)组成。
|
8495
8495
|
|
8496
|
+
该名称还将用于合同签署完成后文件下载的默认文件名称。
|
8496
8497
|
:type FlowName: str
|
8497
8498
|
:param _ResourceType: 资源类型,取值有:
|
8498
8499
|
<ul><li> **1**:模板</li>
|
@@ -9803,14 +9804,7 @@ class CreateSealRequest(AbstractModel):
|
|
9803
9804
|
<li><strong>SealGenerateSourceSystem</strong>: 系统生成印章, 无需上传SealImage图片</li>
|
9804
9805
|
</ul>
|
9805
9806
|
:type GenerateSource: str
|
9806
|
-
:param _SealType: 电子印章类型 , 可选类型如下:
|
9807
|
-
<ul><li>**OFFICIAL**: (默认)公章</li>
|
9808
|
-
<li>**CONTRACT**: 合同专用章;</li>
|
9809
|
-
<li>**FINANCE**: 财务专用章;</li>
|
9810
|
-
<li>**PERSONNEL**: 人事专用章</li>
|
9811
|
-
<li>**INVOICE**: 发票专用章</li>
|
9812
|
-
</ul>
|
9813
|
-
注: `同企业下只能有一个公章, 重复创建会报错`
|
9807
|
+
:param _SealType: 电子印章类型 , 可选类型如下: <ul><li>**OFFICIAL**: (默认)公章</li><li>**CONTRACT**: 合同专用章;</li><li>**FINANCE**: 财务专用章;</li><li>**PERSONNEL**: 人事专用章</li><li>**INVOICE**: 发票专用章</li></ul>注: `同企业下只能有<font color="red">一个</font>公章, 重复创建会报错`
|
9814
9808
|
:type SealType: str
|
9815
9809
|
:param _FileName: 电子印章图片文件名称,1-50个中文字符。
|
9816
9810
|
:type FileName: str
|
@@ -2158,10 +2158,9 @@ class EssbasicClient(AbstractClient):
|
|
2158
2158
|
1. **企业自动签**
|
2159
2159
|
2. **企业与港澳台居民签署合同**
|
2160
2160
|
3. **使用手机号验证签署方身份**
|
2161
|
-
4.
|
2162
|
-
5.
|
2163
|
-
6.
|
2164
|
-
7. **隐藏合同经办人姓名**
|
2161
|
+
4. **拓宽签署方年龄限制**
|
2162
|
+
5. **下载企业合同/文件**
|
2163
|
+
6. **隐藏合同经办人姓名**
|
2165
2164
|
|
2166
2165
|
对应能力开通页面在子客控制台-企业中心-拓展服务,如下图所示:
|
2167
2166
|
|
@@ -11349,14 +11349,7 @@ class CreateSealByImageRequest(AbstractModel):
|
|
11349
11349
|
<li><strong>SealGenerateSourceSystem</strong>: 系统生成印章, 无需上传SealImage图片</li>
|
11350
11350
|
</ul>
|
11351
11351
|
:type GenerateSource: str
|
11352
|
-
:param _SealType: 电子印章类型 , 可选类型如下:
|
11353
|
-
<ul><li>**OFFICIAL**: (默认)公章</li>
|
11354
|
-
<li>**CONTRACT**: 合同专用章;</li>
|
11355
|
-
<li>**FINANCE**: 财务专用章;</li>
|
11356
|
-
<li>**PERSONNEL**: 人事专用章</li>
|
11357
|
-
<li>**INVOICE**: 发票专用章</li>
|
11358
|
-
</ul>
|
11359
|
-
注: `同企业下只能有一个公章, 重复创建会报错`
|
11352
|
+
:param _SealType: 电子印章类型 , 可选类型如下: <ul><li>**OFFICIAL**: (默认)公章</li><li>**CONTRACT**: 合同专用章;</li><li>**FINANCE**: 财务专用章;</li><li>**PERSONNEL**: 人事专用章</li><li>**INVOICE**: 发票专用章</li></ul>注: `同企业下只能有<font color="red">一个</font>公章, 重复创建会报错`
|
11360
11353
|
:type SealType: str
|
11361
11354
|
:param _SealHorizontalText: 企业印章横向文字,最多可填15个汉字 (若超过印章最大宽度,优先压缩字间距,其次缩小字号)
|
11362
11355
|
横向文字的位置如下图中的"印章横向文字在这里"
|
@@ -1056,6 +1056,19 @@ class PublicMaterialInfos(AbstractModel):
|
|
1056
1056
|
:param _MaterialId: 素材Id
|
1057
1057
|
:type MaterialId: str
|
1058
1058
|
:param _MaterialStatus: 素材状态
|
1059
|
+
|
1060
|
+
字段取值:
|
1061
|
+
0 审核中
|
1062
|
+
1 人工审核通过
|
1063
|
+
2 人工审核失败
|
1064
|
+
3 申诉中
|
1065
|
+
11 申诉成功
|
1066
|
+
12 申诉失败
|
1067
|
+
21 机器审核通过
|
1068
|
+
22 机器审核失败
|
1069
|
+
31 视频素材预处理成功,素材可用
|
1070
|
+
32 视频素材预处理失败
|
1071
|
+
33 角色不在视频中
|
1059
1072
|
:type MaterialStatus: int
|
1060
1073
|
:param _CreateTime: 创建时间
|
1061
1074
|
:type CreateTime: str
|
@@ -9309,11 +9309,34 @@ class DescribeTaskStatusResponse(AbstractModel):
|
|
9309
9309
|
|
9310
9310
|
def __init__(self):
|
9311
9311
|
r"""
|
9312
|
+
:param _Status: 任务状态:RUNNING,FAIL,SUCCESS
|
9313
|
+
:type Status: str
|
9314
|
+
:param _TaskId: 任务ID
|
9315
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
9316
|
+
:type TaskId: str
|
9312
9317
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9313
9318
|
:type RequestId: str
|
9314
9319
|
"""
|
9320
|
+
self._Status = None
|
9321
|
+
self._TaskId = None
|
9315
9322
|
self._RequestId = None
|
9316
9323
|
|
9324
|
+
@property
|
9325
|
+
def Status(self):
|
9326
|
+
return self._Status
|
9327
|
+
|
9328
|
+
@Status.setter
|
9329
|
+
def Status(self, Status):
|
9330
|
+
self._Status = Status
|
9331
|
+
|
9332
|
+
@property
|
9333
|
+
def TaskId(self):
|
9334
|
+
return self._TaskId
|
9335
|
+
|
9336
|
+
@TaskId.setter
|
9337
|
+
def TaskId(self, TaskId):
|
9338
|
+
self._TaskId = TaskId
|
9339
|
+
|
9317
9340
|
@property
|
9318
9341
|
def RequestId(self):
|
9319
9342
|
return self._RequestId
|
@@ -9324,6 +9347,8 @@ class DescribeTaskStatusResponse(AbstractModel):
|
|
9324
9347
|
|
9325
9348
|
|
9326
9349
|
def _deserialize(self, params):
|
9350
|
+
self._Status = params.get("Status")
|
9351
|
+
self._TaskId = params.get("TaskId")
|
9327
9352
|
self._RequestId = params.get("RequestId")
|
9328
9353
|
|
9329
9354
|
|
@@ -140,6 +140,30 @@ class HunyuanClient(AbstractClient):
|
|
140
140
|
model = models.SubmitHunyuanImageJobResponse()
|
141
141
|
model._deserialize(response["Response"])
|
142
142
|
return model
|
143
|
+
except Exception as e:
|
144
|
+
if isinstance(e, TencentCloudSDKException):
|
145
|
+
raise
|
146
|
+
else:
|
147
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
148
|
+
|
149
|
+
|
150
|
+
def TextToImageLite(self, request):
|
151
|
+
"""文生图轻量版接口根据输入的文本描述,智能生成与之相关的结果图。
|
152
|
+
文生图轻量版默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
153
|
+
|
154
|
+
:param request: Request instance for TextToImageLite.
|
155
|
+
:type request: :class:`tencentcloud.hunyuan.v20230901.models.TextToImageLiteRequest`
|
156
|
+
:rtype: :class:`tencentcloud.hunyuan.v20230901.models.TextToImageLiteResponse`
|
157
|
+
|
158
|
+
"""
|
159
|
+
try:
|
160
|
+
params = request._serialize()
|
161
|
+
headers = request.headers
|
162
|
+
body = self.call("TextToImageLite", params, headers=headers)
|
163
|
+
response = json.loads(body)
|
164
|
+
model = models.TextToImageLiteResponse()
|
165
|
+
model._deserialize(response["Response"])
|
166
|
+
return model
|
143
167
|
except Exception as e:
|
144
168
|
if isinstance(e, TencentCloudSDKException):
|
145
169
|
raise
|
@@ -235,6 +235,8 @@ class ChatCompletionsResponse(AbstractModel):
|
|
235
235
|
如果流式返回中服务处理异常,返回该错误信息。
|
236
236
|
注意:此字段可能返回 null,表示取不到有效值。
|
237
237
|
:type ErrorMsg: :class:`tencentcloud.hunyuan.v20230901.models.ErrorMsg`
|
238
|
+
:param _ModerationLevel: 多轮会话风险审核,值为1时,表明存在信息安全风险,建议终止客户多轮会话。
|
239
|
+
:type ModerationLevel: str
|
238
240
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
239
241
|
:type RequestId: str
|
240
242
|
"""
|
@@ -244,6 +246,7 @@ class ChatCompletionsResponse(AbstractModel):
|
|
244
246
|
self._Id = None
|
245
247
|
self._Choices = None
|
246
248
|
self._ErrorMsg = None
|
249
|
+
self._ModerationLevel = None
|
247
250
|
self._RequestId = None
|
248
251
|
|
249
252
|
@property
|
@@ -294,6 +297,14 @@ class ChatCompletionsResponse(AbstractModel):
|
|
294
297
|
def ErrorMsg(self, ErrorMsg):
|
295
298
|
self._ErrorMsg = ErrorMsg
|
296
299
|
|
300
|
+
@property
|
301
|
+
def ModerationLevel(self):
|
302
|
+
return self._ModerationLevel
|
303
|
+
|
304
|
+
@ModerationLevel.setter
|
305
|
+
def ModerationLevel(self, ModerationLevel):
|
306
|
+
self._ModerationLevel = ModerationLevel
|
307
|
+
|
297
308
|
@property
|
298
309
|
def RequestId(self):
|
299
310
|
return self._RequestId
|
@@ -319,6 +330,7 @@ class ChatCompletionsResponse(AbstractModel):
|
|
319
330
|
if params.get("ErrorMsg") is not None:
|
320
331
|
self._ErrorMsg = ErrorMsg()
|
321
332
|
self._ErrorMsg._deserialize(params.get("ErrorMsg"))
|
333
|
+
self._ModerationLevel = params.get("ModerationLevel")
|
322
334
|
self._RequestId = params.get("RequestId")
|
323
335
|
|
324
336
|
|
@@ -1256,6 +1268,147 @@ class SubmitHunyuanImageJobResponse(AbstractModel):
|
|
1256
1268
|
self._RequestId = params.get("RequestId")
|
1257
1269
|
|
1258
1270
|
|
1271
|
+
class TextToImageLiteRequest(AbstractModel):
|
1272
|
+
"""TextToImageLite请求参数结构体
|
1273
|
+
|
1274
|
+
"""
|
1275
|
+
|
1276
|
+
def __init__(self):
|
1277
|
+
r"""
|
1278
|
+
:param _Prompt: 文本描述。
|
1279
|
+
算法将根据输入的文本智能生成与之相关的图像。建议详细描述画面主体、细节、场景等,文本描述越丰富,生成效果越精美。
|
1280
|
+
不能为空,推荐使用中文。最多可传256个 utf-8 字符。
|
1281
|
+
:type Prompt: str
|
1282
|
+
:param _NegativePrompt: 反向文本描述。
|
1283
|
+
用于一定程度上从反面引导模型生成的走向,减少生成结果中出现描述内容的可能,但不能完全杜绝。
|
1284
|
+
推荐使用中文。最多可传256个 utf-8 字符。
|
1285
|
+
:type NegativePrompt: str
|
1286
|
+
:param _Style: 绘画风格。
|
1287
|
+
请在 [智能文生图风格列表](https://cloud.tencent.com/document/product/1668/86249) 中选择期望的风格,传入风格编号。
|
1288
|
+
推荐使用且只使用一种风格。不传默认使用201(日系动漫风格)。
|
1289
|
+
:type Style: str
|
1290
|
+
:param _Resolution: 生成图分辨率。
|
1291
|
+
支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768。
|
1292
|
+
:type Resolution: str
|
1293
|
+
:param _LogoAdd: 为生成结果图添加标识的开关,默认为1。
|
1294
|
+
1:添加标识。
|
1295
|
+
0:不添加标识。
|
1296
|
+
其他数值:默认按0处理。
|
1297
|
+
建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
|
1298
|
+
:type LogoAdd: int
|
1299
|
+
:param _RspImgType: 返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
|
1300
|
+
:type RspImgType: str
|
1301
|
+
"""
|
1302
|
+
self._Prompt = None
|
1303
|
+
self._NegativePrompt = None
|
1304
|
+
self._Style = None
|
1305
|
+
self._Resolution = None
|
1306
|
+
self._LogoAdd = None
|
1307
|
+
self._RspImgType = None
|
1308
|
+
|
1309
|
+
@property
|
1310
|
+
def Prompt(self):
|
1311
|
+
return self._Prompt
|
1312
|
+
|
1313
|
+
@Prompt.setter
|
1314
|
+
def Prompt(self, Prompt):
|
1315
|
+
self._Prompt = Prompt
|
1316
|
+
|
1317
|
+
@property
|
1318
|
+
def NegativePrompt(self):
|
1319
|
+
return self._NegativePrompt
|
1320
|
+
|
1321
|
+
@NegativePrompt.setter
|
1322
|
+
def NegativePrompt(self, NegativePrompt):
|
1323
|
+
self._NegativePrompt = NegativePrompt
|
1324
|
+
|
1325
|
+
@property
|
1326
|
+
def Style(self):
|
1327
|
+
return self._Style
|
1328
|
+
|
1329
|
+
@Style.setter
|
1330
|
+
def Style(self, Style):
|
1331
|
+
self._Style = Style
|
1332
|
+
|
1333
|
+
@property
|
1334
|
+
def Resolution(self):
|
1335
|
+
return self._Resolution
|
1336
|
+
|
1337
|
+
@Resolution.setter
|
1338
|
+
def Resolution(self, Resolution):
|
1339
|
+
self._Resolution = Resolution
|
1340
|
+
|
1341
|
+
@property
|
1342
|
+
def LogoAdd(self):
|
1343
|
+
return self._LogoAdd
|
1344
|
+
|
1345
|
+
@LogoAdd.setter
|
1346
|
+
def LogoAdd(self, LogoAdd):
|
1347
|
+
self._LogoAdd = LogoAdd
|
1348
|
+
|
1349
|
+
@property
|
1350
|
+
def RspImgType(self):
|
1351
|
+
return self._RspImgType
|
1352
|
+
|
1353
|
+
@RspImgType.setter
|
1354
|
+
def RspImgType(self, RspImgType):
|
1355
|
+
self._RspImgType = RspImgType
|
1356
|
+
|
1357
|
+
|
1358
|
+
def _deserialize(self, params):
|
1359
|
+
self._Prompt = params.get("Prompt")
|
1360
|
+
self._NegativePrompt = params.get("NegativePrompt")
|
1361
|
+
self._Style = params.get("Style")
|
1362
|
+
self._Resolution = params.get("Resolution")
|
1363
|
+
self._LogoAdd = params.get("LogoAdd")
|
1364
|
+
self._RspImgType = params.get("RspImgType")
|
1365
|
+
memeber_set = set(params.keys())
|
1366
|
+
for name, value in vars(self).items():
|
1367
|
+
property_name = name[1:]
|
1368
|
+
if property_name in memeber_set:
|
1369
|
+
memeber_set.remove(property_name)
|
1370
|
+
if len(memeber_set) > 0:
|
1371
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1372
|
+
|
1373
|
+
|
1374
|
+
|
1375
|
+
class TextToImageLiteResponse(AbstractModel):
|
1376
|
+
"""TextToImageLite返回参数结构体
|
1377
|
+
|
1378
|
+
"""
|
1379
|
+
|
1380
|
+
def __init__(self):
|
1381
|
+
r"""
|
1382
|
+
:param _ResultImage: 根据入参 RspImgType 填入不同,返回不同的内容。如果传入 base64 则返回生成图 Base64 编码。如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
|
1383
|
+
:type ResultImage: str
|
1384
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1385
|
+
:type RequestId: str
|
1386
|
+
"""
|
1387
|
+
self._ResultImage = None
|
1388
|
+
self._RequestId = None
|
1389
|
+
|
1390
|
+
@property
|
1391
|
+
def ResultImage(self):
|
1392
|
+
return self._ResultImage
|
1393
|
+
|
1394
|
+
@ResultImage.setter
|
1395
|
+
def ResultImage(self, ResultImage):
|
1396
|
+
self._ResultImage = ResultImage
|
1397
|
+
|
1398
|
+
@property
|
1399
|
+
def RequestId(self):
|
1400
|
+
return self._RequestId
|
1401
|
+
|
1402
|
+
@RequestId.setter
|
1403
|
+
def RequestId(self, RequestId):
|
1404
|
+
self._RequestId = RequestId
|
1405
|
+
|
1406
|
+
|
1407
|
+
def _deserialize(self, params):
|
1408
|
+
self._ResultImage = params.get("ResultImage")
|
1409
|
+
self._RequestId = params.get("RequestId")
|
1410
|
+
|
1411
|
+
|
1259
1412
|
class Tool(AbstractModel):
|
1260
1413
|
"""用户指定模型使用的工具
|
1261
1414
|
|
@@ -1911,6 +1911,8 @@ video 纯视频
|
|
1911
1911
|
:type RecordScene: str
|
1912
1912
|
:param _RecordLang: 录制自定义语言,仅recordlayout=9的时候此参数有效
|
1913
1913
|
:type RecordLang: str
|
1914
|
+
:param _RecordStream: 录制类型 0 仅录制混流(默认) ;1 录制混流+单流,该模式下除混流录制基础上,分别录制老师、台上学生的音视频流,每路录制都会产生相应的录制费用 。示例:0
|
1915
|
+
:type RecordStream: int
|
1914
1916
|
"""
|
1915
1917
|
self._Name = None
|
1916
1918
|
self._StartTime = None
|
@@ -1941,6 +1943,7 @@ video 纯视频
|
|
1941
1943
|
self._RecordBackground = None
|
1942
1944
|
self._RecordScene = None
|
1943
1945
|
self._RecordLang = None
|
1946
|
+
self._RecordStream = None
|
1944
1947
|
|
1945
1948
|
@property
|
1946
1949
|
def Name(self):
|
@@ -2178,6 +2181,14 @@ video 纯视频
|
|
2178
2181
|
|
2179
2182
|
self._RecordLang = RecordLang
|
2180
2183
|
|
2184
|
+
@property
|
2185
|
+
def RecordStream(self):
|
2186
|
+
return self._RecordStream
|
2187
|
+
|
2188
|
+
@RecordStream.setter
|
2189
|
+
def RecordStream(self, RecordStream):
|
2190
|
+
self._RecordStream = RecordStream
|
2191
|
+
|
2181
2192
|
|
2182
2193
|
def _deserialize(self, params):
|
2183
2194
|
self._Name = params.get("Name")
|
@@ -2209,6 +2220,7 @@ video 纯视频
|
|
2209
2220
|
self._RecordBackground = params.get("RecordBackground")
|
2210
2221
|
self._RecordScene = params.get("RecordScene")
|
2211
2222
|
self._RecordLang = params.get("RecordLang")
|
2223
|
+
self._RecordStream = params.get("RecordStream")
|
2212
2224
|
memeber_set = set(params.keys())
|
2213
2225
|
for name, value in vars(self).items():
|
2214
2226
|
property_name = name[1:]
|
@@ -4610,7 +4622,7 @@ video 纯视频
|
|
4610
4622
|
:type VideoDuration: int
|
4611
4623
|
:param _EndDelayTime: 拖堂时间:单位分钟,0为不限制(默认值), -1为不能拖堂,大于0为拖堂的时间,最大值120分钟
|
4612
4624
|
:type EndDelayTime: int
|
4613
|
-
:param _LiveType: 直播类型:0 常规(默认)1 伪直播
|
4625
|
+
:param _LiveType: 直播类型:0 常规(默认)1 伪直播 2 RTMP推流直播
|
4614
4626
|
:type LiveType: int
|
4615
4627
|
:param _RecordLiveUrl: 伪直播链接
|
4616
4628
|
:type RecordLiveUrl: str
|
@@ -8859,6 +8871,8 @@ class RoomInfo(AbstractModel):
|
|
8859
8871
|
:type RecordScene: str
|
8860
8872
|
:param _RecordLang: 录制自定义语言,仅recordlayout=9的时候此参数有效
|
8861
8873
|
:type RecordLang: str
|
8874
|
+
:param _RecordStream: 录制类型 0 仅录制混流(默认) ;1 录制混流+单流,该模式下除混流录制基础上,分别录制老师、台上学生的音视频流,每路录制都会产生相应的录制费用 。示例:0
|
8875
|
+
:type RecordStream: int
|
8862
8876
|
"""
|
8863
8877
|
self._Name = None
|
8864
8878
|
self._StartTime = None
|
@@ -8888,6 +8902,7 @@ class RoomInfo(AbstractModel):
|
|
8888
8902
|
self._RecordBackground = None
|
8889
8903
|
self._RecordScene = None
|
8890
8904
|
self._RecordLang = None
|
8905
|
+
self._RecordStream = None
|
8891
8906
|
|
8892
8907
|
@property
|
8893
8908
|
def Name(self):
|
@@ -9117,6 +9132,14 @@ class RoomInfo(AbstractModel):
|
|
9117
9132
|
|
9118
9133
|
self._RecordLang = RecordLang
|
9119
9134
|
|
9135
|
+
@property
|
9136
|
+
def RecordStream(self):
|
9137
|
+
return self._RecordStream
|
9138
|
+
|
9139
|
+
@RecordStream.setter
|
9140
|
+
def RecordStream(self, RecordStream):
|
9141
|
+
self._RecordStream = RecordStream
|
9142
|
+
|
9120
9143
|
|
9121
9144
|
def _deserialize(self, params):
|
9122
9145
|
self._Name = params.get("Name")
|
@@ -9147,6 +9170,7 @@ class RoomInfo(AbstractModel):
|
|
9147
9170
|
self._RecordBackground = params.get("RecordBackground")
|
9148
9171
|
self._RecordScene = params.get("RecordScene")
|
9149
9172
|
self._RecordLang = params.get("RecordLang")
|
9173
|
+
self._RecordStream = params.get("RecordStream")
|
9150
9174
|
memeber_set = set(params.keys())
|
9151
9175
|
for name, value in vars(self).items():
|
9152
9176
|
property_name = name[1:]
|