tencentcloud-sdk-python 3.0.1215__py2.py3-none-any.whl → 3.0.1216__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/cdwdoris/v20211228/cdwdoris_client.py +23 -0
- tencentcloud/cdwdoris/v20211228/models.py +228 -0
- tencentcloud/clb/v20180317/models.py +1 -1
- tencentcloud/dcdb/v20180411/models.py +36 -0
- tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
- tencentcloud/dsgc/v20190723/models.py +115 -0
- tencentcloud/faceid/v20180301/faceid_client.py +1 -1
- tencentcloud/faceid/v20180301/models.py +38 -0
- tencentcloud/organization/v20210331/models.py +17 -17
- tencentcloud/organization/v20210331/organization_client.py +2 -2
- tencentcloud/redis/v20180412/models.py +20 -18
- tencentcloud/trtc/v20190722/models.py +118 -0
- tencentcloud/trtc/v20190722/trtc_client.py +25 -35
- tencentcloud/tse/v20201207/models.py +88 -0
- tencentcloud/tts/v20190823/models.py +2 -2
- tencentcloud/vclm/v20240523/errorcodes.py +8 -2
- tencentcloud/vclm/v20240523/models.py +12 -0
- tencentcloud/vod/v20180717/models.py +1 -1
- tencentcloud/vpc/v20170312/models.py +193 -1
- {tencentcloud_sdk_python-3.0.1215.dist-info → tencentcloud_sdk_python-3.0.1216.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1215.dist-info → tencentcloud_sdk_python-3.0.1216.dist-info}/RECORD +25 -25
- {tencentcloud_sdk_python-3.0.1215.dist-info → tencentcloud_sdk_python-3.0.1216.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1215.dist-info → tencentcloud_sdk_python-3.0.1216.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1215.dist-info → tencentcloud_sdk_python-3.0.1216.dist-info}/top_level.txt +0 -0
@@ -891,11 +891,17 @@ Config = {"CopyWarn":true,"ReshootWarn":true}
|
|
891
891
|
:param _IsEncrypt: 是否需要对返回中的敏感信息进行加密。默认false。
|
892
892
|
其中敏感信息包括:Response.IdNum、Response.Name
|
893
893
|
:type IsEncrypt: bool
|
894
|
+
:param _IsEncryptResponse: 是否需要对响应体加密
|
895
|
+
:type IsEncryptResponse: bool
|
896
|
+
:param _Encryption: 是否需要对返回中的敏感信息进行加密,需指定加密算法Algorithm、CBC加密的初始向量、加密后的对称密钥。
|
897
|
+
:type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
|
894
898
|
"""
|
895
899
|
self._ImageBase64 = None
|
896
900
|
self._ImageUrl = None
|
897
901
|
self._Config = None
|
898
902
|
self._IsEncrypt = None
|
903
|
+
self._IsEncryptResponse = None
|
904
|
+
self._Encryption = None
|
899
905
|
|
900
906
|
@property
|
901
907
|
def ImageBase64(self):
|
@@ -929,12 +935,32 @@ Config = {"CopyWarn":true,"ReshootWarn":true}
|
|
929
935
|
def IsEncrypt(self, IsEncrypt):
|
930
936
|
self._IsEncrypt = IsEncrypt
|
931
937
|
|
938
|
+
@property
|
939
|
+
def IsEncryptResponse(self):
|
940
|
+
return self._IsEncryptResponse
|
941
|
+
|
942
|
+
@IsEncryptResponse.setter
|
943
|
+
def IsEncryptResponse(self, IsEncryptResponse):
|
944
|
+
self._IsEncryptResponse = IsEncryptResponse
|
945
|
+
|
946
|
+
@property
|
947
|
+
def Encryption(self):
|
948
|
+
return self._Encryption
|
949
|
+
|
950
|
+
@Encryption.setter
|
951
|
+
def Encryption(self, Encryption):
|
952
|
+
self._Encryption = Encryption
|
953
|
+
|
932
954
|
|
933
955
|
def _deserialize(self, params):
|
934
956
|
self._ImageBase64 = params.get("ImageBase64")
|
935
957
|
self._ImageUrl = params.get("ImageUrl")
|
936
958
|
self._Config = params.get("Config")
|
937
959
|
self._IsEncrypt = params.get("IsEncrypt")
|
960
|
+
self._IsEncryptResponse = params.get("IsEncryptResponse")
|
961
|
+
if params.get("Encryption") is not None:
|
962
|
+
self._Encryption = Encryption()
|
963
|
+
self._Encryption._deserialize(params.get("Encryption"))
|
938
964
|
memeber_set = set(params.keys())
|
939
965
|
for name, value in vars(self).items():
|
940
966
|
property_name = name[1:]
|
@@ -988,6 +1014,8 @@ class CheckIdCardInformationResponse(AbstractModel):
|
|
988
1014
|
:param _Encryption: 敏感数据加密信息。
|
989
1015
|
注意:此字段可能返回 null,表示取不到有效值。
|
990
1016
|
:type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
|
1017
|
+
:param _EncryptedBody: 加密后的数据
|
1018
|
+
:type EncryptedBody: str
|
991
1019
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
992
1020
|
:type RequestId: str
|
993
1021
|
"""
|
@@ -1004,6 +1032,7 @@ class CheckIdCardInformationResponse(AbstractModel):
|
|
1004
1032
|
self._Warnings = None
|
1005
1033
|
self._Quality = None
|
1006
1034
|
self._Encryption = None
|
1035
|
+
self._EncryptedBody = None
|
1007
1036
|
self._RequestId = None
|
1008
1037
|
|
1009
1038
|
@property
|
@@ -1110,6 +1139,14 @@ class CheckIdCardInformationResponse(AbstractModel):
|
|
1110
1139
|
def Encryption(self, Encryption):
|
1111
1140
|
self._Encryption = Encryption
|
1112
1141
|
|
1142
|
+
@property
|
1143
|
+
def EncryptedBody(self):
|
1144
|
+
return self._EncryptedBody
|
1145
|
+
|
1146
|
+
@EncryptedBody.setter
|
1147
|
+
def EncryptedBody(self, EncryptedBody):
|
1148
|
+
self._EncryptedBody = EncryptedBody
|
1149
|
+
|
1113
1150
|
@property
|
1114
1151
|
def RequestId(self):
|
1115
1152
|
return self._RequestId
|
@@ -1135,6 +1172,7 @@ class CheckIdCardInformationResponse(AbstractModel):
|
|
1135
1172
|
if params.get("Encryption") is not None:
|
1136
1173
|
self._Encryption = Encryption()
|
1137
1174
|
self._Encryption._deserialize(params.get("Encryption"))
|
1175
|
+
self._EncryptedBody = params.get("EncryptedBody")
|
1138
1176
|
self._RequestId = params.get("RequestId")
|
1139
1177
|
|
1140
1178
|
|
@@ -2346,13 +2346,13 @@ class CreateRoleConfigurationRequest(AbstractModel):
|
|
2346
2346
|
r"""
|
2347
2347
|
:param _ZoneId: 空间 ID。
|
2348
2348
|
:type ZoneId: str
|
2349
|
-
:param _RoleConfigurationName:
|
2349
|
+
:param _RoleConfigurationName: 权限配置名称。格式:包含英文字母、数字或短划线(-)。 长度:最大 128 个字符。
|
2350
2350
|
:type RoleConfigurationName: str
|
2351
|
-
:param _Description:
|
2351
|
+
:param _Description: 权限配置的描述。 长度:最大 1024 个字符。
|
2352
2352
|
:type Description: str
|
2353
|
-
:param _SessionDuration: 会话持续时间。 CIC
|
2353
|
+
:param _SessionDuration: 会话持续时间。 CIC用户使用权限配置访问集团账号目标账号时,会话最多保持的时间。 单位:秒。 取值范围:900 ~ 43200(15 分钟~12 小时)。 默认值:3600(1 小时)。
|
2354
2354
|
:type SessionDuration: int
|
2355
|
-
:param _RelayState: 初始访问页面。 CIC
|
2355
|
+
:param _RelayState: 初始访问页面。 CIC用户使用权限配置访问集团账号目标账号时,初始访问的页面地址。 该页面必须是腾讯云控制台页面。默认为空,表示跳转到腾讯云控制台首页。
|
2356
2356
|
:type RelayState: str
|
2357
2357
|
"""
|
2358
2358
|
self._ZoneId = None
|
@@ -3322,11 +3322,11 @@ class DeleteRoleAssignmentRequest(AbstractModel):
|
|
3322
3322
|
:type TargetType: str
|
3323
3323
|
:param _TargetUin: 集团账号目标账号的UIN
|
3324
3324
|
:type TargetUin: int
|
3325
|
-
:param _PrincipalType: CAM用户同步的身份类型。取值: User
|
3325
|
+
:param _PrincipalType: CAM 用户同步的身份类型。取值: User:表示同步的身份是用户。 Group:表示同步的身份是用户组。
|
3326
3326
|
:type PrincipalType: str
|
3327
|
-
:param _PrincipalId:
|
3327
|
+
:param _PrincipalId: 用户同步 ID。取值: 当PrincipalType取值为Group时,该值为用户组 ID(g-********), 当PrincipalType取值为User时,该值为用户 ID(u-********)。
|
3328
3328
|
:type PrincipalId: str
|
3329
|
-
:param _DeprovisionStrategy:
|
3329
|
+
:param _DeprovisionStrategy: 当您移除一个集团账号目标账号上使用某权限配置的最后一个授权时,是否同时解除权限配置部署。取值: DeprovisionForLastRoleAssignmentOnAccount:解除权限配置部署。 None(默认值):不解除权限配置部署。
|
3330
3330
|
:type DeprovisionStrategy: str
|
3331
3331
|
"""
|
3332
3332
|
self._ZoneId = None
|
@@ -9743,9 +9743,9 @@ class ListRoleAssignmentsRequest(AbstractModel):
|
|
9743
9743
|
:type TargetType: str
|
9744
9744
|
:param _TargetUin: 同步的集团账号目标账号的UIN。
|
9745
9745
|
:type TargetUin: int
|
9746
|
-
:param _PrincipalType: CAM 用户同步的身份类型。取值: User
|
9746
|
+
:param _PrincipalType: CAM 用户同步的身份类型。取值: User:表示同步的身份是用户。 Group:表示同步的身份是用户组。
|
9747
9747
|
:type PrincipalType: str
|
9748
|
-
:param _PrincipalId:
|
9748
|
+
:param _PrincipalId: 用户同步 ID。取值: 当PrincipalType取值为Group时,该值为用户组 ID(g-****),当PrincipalType取值为User时,该值为用户 ID (u-****)。
|
9749
9749
|
:type PrincipalId: str
|
9750
9750
|
:param _Filter: 查询条件,目前只支持权限配置名称查询。
|
9751
9751
|
:type Filter: str
|
@@ -10163,7 +10163,7 @@ class ListRoleConfigurationsRequest(AbstractModel):
|
|
10163
10163
|
:type NextToken: str
|
10164
10164
|
:param _MaxResults: 每页的最大数据条数。 取值范围:1~100。 默认值:10。
|
10165
10165
|
:type MaxResults: int
|
10166
|
-
:param _Filter: 过滤条件。不区分大小写。目前,只支持 RoleConfigurationName,只支持 eq(Equals)和 sw(Start With)。 示例:Filter = "RoleConfigurationName,只支持 sw test",表示查询名称以 test
|
10166
|
+
:param _Filter: 过滤条件。不区分大小写。目前,只支持 RoleConfigurationName,只支持 eq(Equals)和 sw(Start With)。 示例:Filter = "RoleConfigurationName,只支持 sw test",表示查询名称以 test 开头的全部权限配置。Filter = "RoleConfigurationName,只支持 eq TestRoleConfiguration",表示查询名称为 TestRoleConfiguration 的权限配置。
|
10167
10167
|
:type Filter: str
|
10168
10168
|
:param _FilterTargets: 检索成员账号是否配置过权限,如果配置过返回IsSelected: true, 否则返回false。
|
10169
10169
|
:type FilterTargets: list of int
|
@@ -10560,13 +10560,13 @@ class ListTasksRequest(AbstractModel):
|
|
10560
10560
|
r"""
|
10561
10561
|
:param _ZoneId: 空间 ID。
|
10562
10562
|
:type ZoneId: str
|
10563
|
-
:param _PrincipalId:
|
10563
|
+
:param _PrincipalId: 用户同步 ID。取值: 当PrincipalType取值为Group时,该值为用户组 ID(g-****), 当PrincipalType取值为User时,该值为用户 ID(u-****)。
|
10564
10564
|
:type PrincipalId: str
|
10565
10565
|
:param _NextToken: 查询返回结果下一页的令牌。首次调用 API 不需要NextToken。 当您首次调用 API 时,如果返回数据总条数超过MaxResults限制,数据会被截断,只返回MaxResults条数据,同时,返回参数IsTruncated为true,返回一个NextToken。您可以使用上一次返回的NextToken继续调用 API,其他请求参数保持不变,查询被截断的数据。您可以按此方法多次查询,直到IsTruncated为false,表示全部数据查询完毕。
|
10566
10566
|
:type NextToken: str
|
10567
10567
|
:param _MaxResults: 每页的最大数据条数。 取值范围:1~100。 默认值:10。
|
10568
10568
|
:type MaxResults: int
|
10569
|
-
:param _PrincipalType: CAM 用户同步的身份类型。取值:
|
10569
|
+
:param _PrincipalType: CAM 用户同步的身份类型。取值: User:表示同步的身份是用户。 Group:表示同步的身份是用户组。
|
10570
10570
|
:type PrincipalType: str
|
10571
10571
|
:param _TargetUin: 同步的集团账号目标账号的UIN。
|
10572
10572
|
:type TargetUin: int
|
@@ -10791,13 +10791,13 @@ class ListUserSyncProvisioningsRequest(AbstractModel):
|
|
10791
10791
|
r"""
|
10792
10792
|
:param _ZoneId: 空间 ID。
|
10793
10793
|
:type ZoneId: str
|
10794
|
-
:param _PrincipalId:
|
10794
|
+
:param _PrincipalId: 用户同步 ID。取值: 当PrincipalType取值为Group时,该值为用户组 ID(g-********)。 当PrincipalType取值为User时,该值为用户 ID(u-********)。
|
10795
10795
|
:type PrincipalId: str
|
10796
10796
|
:param _NextToken: 查询返回结果下一页的令牌。首次调用 API 不需要NextToken。 当您首次调用 API 时,如果返回数据总条数超过MaxResults限制,数据会被截断,只返回MaxResults条数据,同时,返回参数IsTruncated为true,返回一个NextToken。您可以使用上一次返回的NextToken继续调用 API,其他请求参数保持不变,查询被截断的数据。您可以按此方法多次查询,直到IsTruncated为false,表示全部数据查询完毕。
|
10797
10797
|
:type NextToken: str
|
10798
10798
|
:param _MaxResults: 每页的最大数据条数。 取值范围:1~100。 默认值:10。
|
10799
10799
|
:type MaxResults: int
|
10800
|
-
:param _PrincipalType: CAM 用户同步的身份类型。取值:
|
10800
|
+
:param _PrincipalType: CAM 用户同步的身份类型。取值: User:表示同步的身份是用户。 Group:表示同步的身份是用户组。
|
10801
10801
|
:type PrincipalType: str
|
10802
10802
|
:param _TargetUin: 集团账号目标账号的UIN。
|
10803
10803
|
:type TargetUin: int
|
@@ -16225,11 +16225,11 @@ class UpdateRoleConfigurationRequest(AbstractModel):
|
|
16225
16225
|
:type ZoneId: str
|
16226
16226
|
:param _RoleConfigurationId: 权限配置 ID
|
16227
16227
|
:type RoleConfigurationId: str
|
16228
|
-
:param _NewDescription:
|
16228
|
+
:param _NewDescription: 新的权限配置描述。 长度:最大 1024 个字符。
|
16229
16229
|
:type NewDescription: str
|
16230
|
-
:param _NewSessionDuration: 新的会话持续时间。 CIC
|
16230
|
+
:param _NewSessionDuration: 新的会话持续时间。 CIC 用户使用权限配置访问集团账号目标账号时,会话最多保持的时间。 单位:秒。 取值范围:900-43200(15 分钟-12 小时)。
|
16231
16231
|
:type NewSessionDuration: int
|
16232
|
-
:param _NewRelayState: 新的初始访问页面。 CIC
|
16232
|
+
:param _NewRelayState: 新的初始访问页面。 CIC 用户使用权限配置访问集团账号目标账号时,初始访问的页面地址。 该页面必须是腾讯云控制台页面。
|
16233
16233
|
:type NewRelayState: str
|
16234
16234
|
"""
|
16235
16235
|
self._ZoneId = None
|
@@ -1062,7 +1062,7 @@ class OrganizationClient(AbstractClient):
|
|
1062
1062
|
|
1063
1063
|
|
1064
1064
|
def DescribeIdentityCenter(self, request):
|
1065
|
-
"""
|
1065
|
+
"""获取集团账号身份中心服务信息
|
1066
1066
|
|
1067
1067
|
:param request: Request instance for DescribeIdentityCenter.
|
1068
1068
|
:type request: :class:`tencentcloud.organization.v20210331.models.DescribeIdentityCenterRequest`
|
@@ -2212,7 +2212,7 @@ class OrganizationClient(AbstractClient):
|
|
2212
2212
|
|
2213
2213
|
|
2214
2214
|
def OpenIdentityCenter(self, request):
|
2215
|
-
"""
|
2215
|
+
"""开通身份中心服务(CIC)
|
2216
2216
|
|
2217
2217
|
:param request: Request instance for OpenIdentityCenter.
|
2218
2218
|
:type request: :class:`tencentcloud.organization.v20210331.models.OpenIdentityCenterRequest`
|
@@ -4537,28 +4537,28 @@ class DescribeInstanceDTSInstanceInfo(AbstractModel):
|
|
4537
4537
|
|
4538
4538
|
def __init__(self):
|
4539
4539
|
r"""
|
4540
|
-
:param _RegionId: 地域ID
|
4540
|
+
:param _RegionId: 地域 ID。
|
4541
4541
|
注意:此字段可能返回 null,表示取不到有效值。
|
4542
4542
|
:type RegionId: int
|
4543
|
-
:param _InstanceId: 实例ID
|
4543
|
+
:param _InstanceId: 实例 ID。
|
4544
4544
|
注意:此字段可能返回 null,表示取不到有效值。
|
4545
4545
|
:type InstanceId: str
|
4546
|
-
:param _SetId: 仓库ID
|
4546
|
+
:param _SetId: 仓库ID。
|
4547
4547
|
注意:此字段可能返回 null,表示取不到有效值。
|
4548
4548
|
:type SetId: int
|
4549
|
-
:param _ZoneId: 可用区ID
|
4549
|
+
:param _ZoneId: 可用区ID。
|
4550
4550
|
注意:此字段可能返回 null,表示取不到有效值。
|
4551
4551
|
:type ZoneId: int
|
4552
|
-
:param _Type:
|
4552
|
+
:param _Type: 实例类型。
|
4553
4553
|
注意:此字段可能返回 null,表示取不到有效值。
|
4554
4554
|
:type Type: int
|
4555
|
-
:param _InstanceName:
|
4555
|
+
:param _InstanceName: 实例名称。
|
4556
4556
|
注意:此字段可能返回 null,表示取不到有效值。
|
4557
4557
|
:type InstanceName: str
|
4558
|
-
:param _Vip:
|
4558
|
+
:param _Vip: 实例访问地址。
|
4559
4559
|
注意:此字段可能返回 null,表示取不到有效值。
|
4560
4560
|
:type Vip: str
|
4561
|
-
:param _Status:
|
4561
|
+
:param _Status: 状态。
|
4562
4562
|
注意:此字段可能返回 null,表示取不到有效值。
|
4563
4563
|
:type Status: int
|
4564
4564
|
"""
|
@@ -7010,16 +7010,18 @@ class DescribeParamTemplateInfoResponse(AbstractModel):
|
|
7010
7010
|
:param _Name: 参数模板名称。
|
7011
7011
|
:type Name: str
|
7012
7012
|
:param _ProductType: 产品类型。
|
7013
|
-
- 2:Redis 2.8内存版(标准架构)。
|
7014
|
-
- 3:CKV 3.2内存版(标准架构)。
|
7015
|
-
- 4:CKV 3.2内存版(集群架构)。
|
7016
|
-
- 5:Redis 2.8内存版(单机)。
|
7017
|
-
- 6:Redis 4.0内存版(标准架构)。
|
7018
|
-
- 7:Redis 4.0内存版(集群架构)。
|
7019
|
-
- 8:Redis 5.0内存版(标准架构)。
|
7020
|
-
- 9:Redis 5.0内存版(集群架构)。
|
7021
|
-
- 15:Redis 6.2内存版(标准架构)。
|
7022
|
-
- 16:Redis 6.2内存版(集群架构)。
|
7013
|
+
- 2:Redis 2.8 内存版(标准架构)。
|
7014
|
+
- 3:CKV 3.2 内存版(标准架构)。
|
7015
|
+
- 4:CKV 3.2 内存版(集群架构)。
|
7016
|
+
- 5:Redis 2.8 内存版(单机)。
|
7017
|
+
- 6:Redis 4.0 内存版(标准架构)。
|
7018
|
+
- 7:Redis 4.0 内存版(集群架构)。
|
7019
|
+
- 8:Redis 5.0 内存版(标准架构)。
|
7020
|
+
- 9:Redis 5.0 内存版(集群架构)。
|
7021
|
+
- 15:Redis 6.2 内存版(标准架构)。
|
7022
|
+
- 16:Redis 6.2 内存版(集群架构)。
|
7023
|
+
- 17:Redis 7.0 内存版(标准架构)。
|
7024
|
+
- 18:Redis 7.0 内存版(集群架构)。
|
7023
7025
|
:type ProductType: int
|
7024
7026
|
:param _Description: 参数模板描述。
|
7025
7027
|
:type Description: str
|
@@ -11106,6 +11106,124 @@ class TrtcUsage(AbstractModel):
|
|
11106
11106
|
|
11107
11107
|
|
11108
11108
|
|
11109
|
+
class UpdateAIConversationRequest(AbstractModel):
|
11110
|
+
"""UpdateAIConversation请求参数结构体
|
11111
|
+
|
11112
|
+
"""
|
11113
|
+
|
11114
|
+
def __init__(self):
|
11115
|
+
r"""
|
11116
|
+
:param _TaskId: 唯一标识一个任务
|
11117
|
+
:type TaskId: str
|
11118
|
+
:param _WelcomeMessage: 不填写则不进行更新,机器人的欢迎语
|
11119
|
+
:type WelcomeMessage: str
|
11120
|
+
:param _InterruptMode: 不填写则不进行更新。智能打断模式,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断
|
11121
|
+
:type InterruptMode: int
|
11122
|
+
:param _InterruptSpeechDuration: 不填写则不进行更新。InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断
|
11123
|
+
:type InterruptSpeechDuration: int
|
11124
|
+
:param _LLMConfig: 不填写则不进行更新,LLM配置,详情见StartAIConversation接口
|
11125
|
+
:type LLMConfig: str
|
11126
|
+
:param _TTSConfig: 不填写则不进行更新,TTS配置,详情见StartAIConversation接口
|
11127
|
+
:type TTSConfig: str
|
11128
|
+
"""
|
11129
|
+
self._TaskId = None
|
11130
|
+
self._WelcomeMessage = None
|
11131
|
+
self._InterruptMode = None
|
11132
|
+
self._InterruptSpeechDuration = None
|
11133
|
+
self._LLMConfig = None
|
11134
|
+
self._TTSConfig = None
|
11135
|
+
|
11136
|
+
@property
|
11137
|
+
def TaskId(self):
|
11138
|
+
return self._TaskId
|
11139
|
+
|
11140
|
+
@TaskId.setter
|
11141
|
+
def TaskId(self, TaskId):
|
11142
|
+
self._TaskId = TaskId
|
11143
|
+
|
11144
|
+
@property
|
11145
|
+
def WelcomeMessage(self):
|
11146
|
+
return self._WelcomeMessage
|
11147
|
+
|
11148
|
+
@WelcomeMessage.setter
|
11149
|
+
def WelcomeMessage(self, WelcomeMessage):
|
11150
|
+
self._WelcomeMessage = WelcomeMessage
|
11151
|
+
|
11152
|
+
@property
|
11153
|
+
def InterruptMode(self):
|
11154
|
+
return self._InterruptMode
|
11155
|
+
|
11156
|
+
@InterruptMode.setter
|
11157
|
+
def InterruptMode(self, InterruptMode):
|
11158
|
+
self._InterruptMode = InterruptMode
|
11159
|
+
|
11160
|
+
@property
|
11161
|
+
def InterruptSpeechDuration(self):
|
11162
|
+
return self._InterruptSpeechDuration
|
11163
|
+
|
11164
|
+
@InterruptSpeechDuration.setter
|
11165
|
+
def InterruptSpeechDuration(self, InterruptSpeechDuration):
|
11166
|
+
self._InterruptSpeechDuration = InterruptSpeechDuration
|
11167
|
+
|
11168
|
+
@property
|
11169
|
+
def LLMConfig(self):
|
11170
|
+
return self._LLMConfig
|
11171
|
+
|
11172
|
+
@LLMConfig.setter
|
11173
|
+
def LLMConfig(self, LLMConfig):
|
11174
|
+
self._LLMConfig = LLMConfig
|
11175
|
+
|
11176
|
+
@property
|
11177
|
+
def TTSConfig(self):
|
11178
|
+
return self._TTSConfig
|
11179
|
+
|
11180
|
+
@TTSConfig.setter
|
11181
|
+
def TTSConfig(self, TTSConfig):
|
11182
|
+
self._TTSConfig = TTSConfig
|
11183
|
+
|
11184
|
+
|
11185
|
+
def _deserialize(self, params):
|
11186
|
+
self._TaskId = params.get("TaskId")
|
11187
|
+
self._WelcomeMessage = params.get("WelcomeMessage")
|
11188
|
+
self._InterruptMode = params.get("InterruptMode")
|
11189
|
+
self._InterruptSpeechDuration = params.get("InterruptSpeechDuration")
|
11190
|
+
self._LLMConfig = params.get("LLMConfig")
|
11191
|
+
self._TTSConfig = params.get("TTSConfig")
|
11192
|
+
memeber_set = set(params.keys())
|
11193
|
+
for name, value in vars(self).items():
|
11194
|
+
property_name = name[1:]
|
11195
|
+
if property_name in memeber_set:
|
11196
|
+
memeber_set.remove(property_name)
|
11197
|
+
if len(memeber_set) > 0:
|
11198
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
11199
|
+
|
11200
|
+
|
11201
|
+
|
11202
|
+
class UpdateAIConversationResponse(AbstractModel):
|
11203
|
+
"""UpdateAIConversation返回参数结构体
|
11204
|
+
|
11205
|
+
"""
|
11206
|
+
|
11207
|
+
def __init__(self):
|
11208
|
+
r"""
|
11209
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11210
|
+
:type RequestId: str
|
11211
|
+
"""
|
11212
|
+
self._RequestId = None
|
11213
|
+
|
11214
|
+
@property
|
11215
|
+
def RequestId(self):
|
11216
|
+
return self._RequestId
|
11217
|
+
|
11218
|
+
@RequestId.setter
|
11219
|
+
def RequestId(self, RequestId):
|
11220
|
+
self._RequestId = RequestId
|
11221
|
+
|
11222
|
+
|
11223
|
+
def _deserialize(self, params):
|
11224
|
+
self._RequestId = params.get("RequestId")
|
11225
|
+
|
11226
|
+
|
11109
11227
|
class UpdatePublishCdnStreamRequest(AbstractModel):
|
11110
11228
|
"""UpdatePublishCdnStream请求参数结构体
|
11111
11229
|
|
@@ -1040,45 +1040,12 @@ class TrtcClient(AbstractClient):
|
|
1040
1040
|
|
1041
1041
|
|
1042
1042
|
def StartAITranscription(self, request):
|
1043
|
-
"""
|
1043
|
+
"""启动转录机器人,后台会通过机器人拉流进行实时进行语音识别并下发字幕和转录消息。
|
1044
1044
|
转录机器人支持两种拉流方式,通过TranscriptionMode字段控制:
|
1045
1045
|
- 拉取全房间的流。
|
1046
1046
|
- 拉取特定用户的流。
|
1047
1047
|
|
1048
|
-
服务端通过TRTC
|
1049
|
-
|
1050
|
-
服务端实时下发的消息是JSON字符串,实时字幕具体格式如下:
|
1051
|
-
`{
|
1052
|
-
"type": "subtitle",
|
1053
|
-
"userid": "xxx",
|
1054
|
-
"text": "xxx",
|
1055
|
-
"start_time": "00:00:02",
|
1056
|
-
"end_time": "00:00:05"
|
1057
|
-
}`
|
1058
|
-
字段作用如下:
|
1059
|
-
- type是subtitle,表示这是实时字幕消息。
|
1060
|
-
- userid表示是哪个用户说的话。
|
1061
|
-
- text是语音识别出的文本。
|
1062
|
-
- start_time和end_time表示该字幕消息从任务开启后的开始和结束时间。
|
1063
|
-
|
1064
|
-
转录消息具体格式如下:
|
1065
|
-
`{
|
1066
|
-
"type": "transcription",
|
1067
|
-
"userid": "xxx",
|
1068
|
-
"text": "xxx",
|
1069
|
-
"start_time": "00:00:02",
|
1070
|
-
"end_time": "00:00:05"
|
1071
|
-
}`
|
1072
|
-
字段作用如下:
|
1073
|
-
- type是transcription,表示这是转录消息。
|
1074
|
-
- 其余字段同实时字幕消息。
|
1075
|
-
|
1076
|
-
转录消息和实时字幕消息的区别是,转录消息是完整的一句话,实时字幕消息则是这一句话的中间阶段。
|
1077
|
-
假如有一句完整的话,“今天天气怎么样?”,那么服务的下发消息的顺序可能是这样:
|
1078
|
-
- 字幕消息,“今天”
|
1079
|
-
- 字幕消息,“今天天气”
|
1080
|
-
- 字幕消息,“今天天气怎么样”
|
1081
|
-
- 转录消息,“今天天气怎么样?”
|
1048
|
+
服务端通过TRTC的自定义消息实时下发字幕以及转录消息,CmdId固定是1。客户端只需监听自定义消息的回调即可,比如[c++回调](https://cloud.tencent.com/document/product/647/79637#4cd82f4edb24992a15a25187089e1565)。其他客户端比如安卓、Web等同样可在该链接处找到。
|
1082
1049
|
|
1083
1050
|
:param request: Request instance for StartAITranscription.
|
1084
1051
|
:type request: :class:`tencentcloud.trtc.v20190722.models.StartAITranscriptionRequest`
|
@@ -1451,6 +1418,29 @@ class TrtcClient(AbstractClient):
|
|
1451
1418
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1452
1419
|
|
1453
1420
|
|
1421
|
+
def UpdateAIConversation(self, request):
|
1422
|
+
"""更新AIConversation参数
|
1423
|
+
|
1424
|
+
:param request: Request instance for UpdateAIConversation.
|
1425
|
+
:type request: :class:`tencentcloud.trtc.v20190722.models.UpdateAIConversationRequest`
|
1426
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.UpdateAIConversationResponse`
|
1427
|
+
|
1428
|
+
"""
|
1429
|
+
try:
|
1430
|
+
params = request._serialize()
|
1431
|
+
headers = request.headers
|
1432
|
+
body = self.call("UpdateAIConversation", params, headers=headers)
|
1433
|
+
response = json.loads(body)
|
1434
|
+
model = models.UpdateAIConversationResponse()
|
1435
|
+
model._deserialize(response["Response"])
|
1436
|
+
return model
|
1437
|
+
except Exception as e:
|
1438
|
+
if isinstance(e, TencentCloudSDKException):
|
1439
|
+
raise
|
1440
|
+
else:
|
1441
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1442
|
+
|
1443
|
+
|
1454
1444
|
def UpdatePublishCdnStream(self, request):
|
1455
1445
|
"""接口说明:
|
1456
1446
|
成功发起混流转推后,可以使用此接口来更新任务。仅在任务进行时有效,任务退出后更新将会返回错误。更新操作为增量更新模式。
|
@@ -11924,6 +11924,8 @@ class DescribeGovernanceInstancesRequest(AbstractModel):
|
|
11924
11924
|
:type Offset: int
|
11925
11925
|
:param _Limit: 返回数量,默认为20,最大值为100。
|
11926
11926
|
:type Limit: int
|
11927
|
+
:param _Location: 地域
|
11928
|
+
:type Location: :class:`tencentcloud.tse.v20201207.models.Location`
|
11927
11929
|
"""
|
11928
11930
|
self._Service = None
|
11929
11931
|
self._Namespace = None
|
@@ -11936,6 +11938,7 @@ class DescribeGovernanceInstancesRequest(AbstractModel):
|
|
11936
11938
|
self._Metadatas = None
|
11937
11939
|
self._Offset = None
|
11938
11940
|
self._Limit = None
|
11941
|
+
self._Location = None
|
11939
11942
|
|
11940
11943
|
@property
|
11941
11944
|
def Service(self):
|
@@ -12025,6 +12028,14 @@ class DescribeGovernanceInstancesRequest(AbstractModel):
|
|
12025
12028
|
def Limit(self, Limit):
|
12026
12029
|
self._Limit = Limit
|
12027
12030
|
|
12031
|
+
@property
|
12032
|
+
def Location(self):
|
12033
|
+
return self._Location
|
12034
|
+
|
12035
|
+
@Location.setter
|
12036
|
+
def Location(self, Location):
|
12037
|
+
self._Location = Location
|
12038
|
+
|
12028
12039
|
|
12029
12040
|
def _deserialize(self, params):
|
12030
12041
|
self._Service = params.get("Service")
|
@@ -12043,6 +12054,9 @@ class DescribeGovernanceInstancesRequest(AbstractModel):
|
|
12043
12054
|
self._Metadatas.append(obj)
|
12044
12055
|
self._Offset = params.get("Offset")
|
12045
12056
|
self._Limit = params.get("Limit")
|
12057
|
+
if params.get("Location") is not None:
|
12058
|
+
self._Location = Location()
|
12059
|
+
self._Location._deserialize(params.get("Location"))
|
12046
12060
|
memeber_set = set(params.keys())
|
12047
12061
|
for name, value in vars(self).items():
|
12048
12062
|
property_name = name[1:]
|
@@ -12064,11 +12078,14 @@ class DescribeGovernanceInstancesResponse(AbstractModel):
|
|
12064
12078
|
:type TotalCount: int
|
12065
12079
|
:param _Content: 服务里实例列表。
|
12066
12080
|
:type Content: list of GovernanceInstance
|
12081
|
+
:param _Location: 地域
|
12082
|
+
:type Location: :class:`tencentcloud.tse.v20201207.models.Location`
|
12067
12083
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
12068
12084
|
:type RequestId: str
|
12069
12085
|
"""
|
12070
12086
|
self._TotalCount = None
|
12071
12087
|
self._Content = None
|
12088
|
+
self._Location = None
|
12072
12089
|
self._RequestId = None
|
12073
12090
|
|
12074
12091
|
@property
|
@@ -12087,6 +12104,14 @@ class DescribeGovernanceInstancesResponse(AbstractModel):
|
|
12087
12104
|
def Content(self, Content):
|
12088
12105
|
self._Content = Content
|
12089
12106
|
|
12107
|
+
@property
|
12108
|
+
def Location(self):
|
12109
|
+
return self._Location
|
12110
|
+
|
12111
|
+
@Location.setter
|
12112
|
+
def Location(self, Location):
|
12113
|
+
self._Location = Location
|
12114
|
+
|
12090
12115
|
@property
|
12091
12116
|
def RequestId(self):
|
12092
12117
|
return self._RequestId
|
@@ -12104,6 +12129,9 @@ class DescribeGovernanceInstancesResponse(AbstractModel):
|
|
12104
12129
|
obj = GovernanceInstance()
|
12105
12130
|
obj._deserialize(item)
|
12106
12131
|
self._Content.append(obj)
|
12132
|
+
if params.get("Location") is not None:
|
12133
|
+
self._Location = Location()
|
12134
|
+
self._Location._deserialize(params.get("Location"))
|
12107
12135
|
self._RequestId = params.get("RequestId")
|
12108
12136
|
|
12109
12137
|
|
@@ -19228,6 +19256,66 @@ class ListFilter(AbstractModel):
|
|
19228
19256
|
|
19229
19257
|
|
19230
19258
|
|
19259
|
+
class Location(AbstractModel):
|
19260
|
+
"""新增Location字段,展示zone/region/campus
|
19261
|
+
|
19262
|
+
"""
|
19263
|
+
|
19264
|
+
def __init__(self):
|
19265
|
+
r"""
|
19266
|
+
:param _Region: 大区
|
19267
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
19268
|
+
:type Region: str
|
19269
|
+
:param _Zone: 可用区
|
19270
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
19271
|
+
:type Zone: str
|
19272
|
+
:param _Campus: 机房
|
19273
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
19274
|
+
:type Campus: str
|
19275
|
+
"""
|
19276
|
+
self._Region = None
|
19277
|
+
self._Zone = None
|
19278
|
+
self._Campus = None
|
19279
|
+
|
19280
|
+
@property
|
19281
|
+
def Region(self):
|
19282
|
+
return self._Region
|
19283
|
+
|
19284
|
+
@Region.setter
|
19285
|
+
def Region(self, Region):
|
19286
|
+
self._Region = Region
|
19287
|
+
|
19288
|
+
@property
|
19289
|
+
def Zone(self):
|
19290
|
+
return self._Zone
|
19291
|
+
|
19292
|
+
@Zone.setter
|
19293
|
+
def Zone(self, Zone):
|
19294
|
+
self._Zone = Zone
|
19295
|
+
|
19296
|
+
@property
|
19297
|
+
def Campus(self):
|
19298
|
+
return self._Campus
|
19299
|
+
|
19300
|
+
@Campus.setter
|
19301
|
+
def Campus(self, Campus):
|
19302
|
+
self._Campus = Campus
|
19303
|
+
|
19304
|
+
|
19305
|
+
def _deserialize(self, params):
|
19306
|
+
self._Region = params.get("Region")
|
19307
|
+
self._Zone = params.get("Zone")
|
19308
|
+
self._Campus = params.get("Campus")
|
19309
|
+
memeber_set = set(params.keys())
|
19310
|
+
for name, value in vars(self).items():
|
19311
|
+
property_name = name[1:]
|
19312
|
+
if property_name in memeber_set:
|
19313
|
+
memeber_set.remove(property_name)
|
19314
|
+
if len(memeber_set) > 0:
|
19315
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
19316
|
+
|
19317
|
+
|
19318
|
+
|
19231
19319
|
class Metadata(AbstractModel):
|
19232
19320
|
"""元数据信息
|
19233
19321
|
|
@@ -49,7 +49,7 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
49
49
|
:type EnableSubtitle: bool
|
50
50
|
:param _VoiceoverDialogueSplit: 旁白与对白文本解析,分别合成相应风格(仅适用于旁对白音色10510000、100510000),默认 false
|
51
51
|
:type VoiceoverDialogueSplit: bool
|
52
|
-
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)
|
52
|
+
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
|
53
53
|
:type EmotionCategory: str
|
54
54
|
:param _EmotionIntensity: 控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效。
|
55
55
|
:type EmotionIntensity: int
|
@@ -579,7 +579,7 @@ class TextToVoiceRequest(AbstractModel):
|
|
579
579
|
:type EnableSubtitle: bool
|
580
580
|
:param _SegmentRate: 断句敏感阈值,默认值为:0,取值范围:[0,1,2]。该值越大越不容易断句,模型会更倾向于仅按照标点符号断句。此参数建议不要随意调整,可能会影响合成效果。
|
581
581
|
:type SegmentRate: int
|
582
|
-
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)
|
582
|
+
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
|
583
583
|
示例值:neutral
|
584
584
|
:type EmotionCategory: str
|
585
585
|
:param _EmotionIntensity: 控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效;
|