tencentcloud-sdk-python 3.0.1215__py2.py3-none-any.whl → 3.0.1222__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/antiddos/v20200309/models.py +13 -1
- tencentcloud/batch/v20170312/models.py +1 -1
- tencentcloud/ccc/v20200210/models.py +18 -0
- tencentcloud/cdb/v20170320/cdb_client.py +46 -0
- tencentcloud/cdb/v20170320/models.py +278 -0
- tencentcloud/cdwdoris/v20211228/cdwdoris_client.py +47 -1
- tencentcloud/cdwdoris/v20211228/models.py +460 -4
- tencentcloud/cfg/v20210820/models.py +1 -1
- tencentcloud/clb/v20180317/models.py +94 -2
- tencentcloud/cls/v20201016/models.py +15 -2
- tencentcloud/controlcenter/__init__.py +0 -0
- tencentcloud/controlcenter/v20230110/__init__.py +0 -0
- tencentcloud/controlcenter/v20230110/controlcenter_client.py +49 -0
- tencentcloud/controlcenter/v20230110/errorcodes.py +45 -0
- tencentcloud/controlcenter/v20230110/models.py +140 -0
- tencentcloud/csip/v20221121/models.py +385 -0
- tencentcloud/cvm/v20170312/models.py +7 -5
- tencentcloud/cwp/v20180228/models.py +85 -12
- tencentcloud/cynosdb/v20190107/models.py +97 -9
- tencentcloud/dasb/v20191018/models.py +13 -0
- tencentcloud/dcdb/v20180411/models.py +36 -0
- tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
- tencentcloud/dsgc/v20190723/models.py +139 -0
- tencentcloud/es/v20180416/models.py +50 -0
- tencentcloud/ess/v20201111/ess_client.py +1 -1
- tencentcloud/ess/v20201111/models.py +13 -3
- tencentcloud/essbasic/v20210526/essbasic_client.py +2 -2
- tencentcloud/essbasic/v20210526/models.py +16 -4
- tencentcloud/facefusion/v20220927/errorcodes.py +15 -6
- tencentcloud/facefusion/v20220927/models.py +13 -4
- tencentcloud/faceid/v20180301/faceid_client.py +1 -1
- tencentcloud/faceid/v20180301/models.py +38 -0
- tencentcloud/hunyuan/v20230901/errorcodes.py +21 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +52 -0
- tencentcloud/hunyuan/v20230901/models.py +360 -0
- tencentcloud/iotexplorer/v20190423/models.py +1 -1
- tencentcloud/lcic/v20220817/lcic_client.py +23 -0
- tencentcloud/lcic/v20220817/models.py +261 -0
- tencentcloud/lke/v20231130/models.py +2 -2
- tencentcloud/mna/v20210119/models.py +26 -0
- tencentcloud/mongodb/v20190725/models.py +13 -5
- tencentcloud/monitor/v20180724/models.py +13 -0
- tencentcloud/ocr/v20181119/models.py +14 -0
- tencentcloud/organization/v20210331/errorcodes.py +6 -0
- tencentcloud/organization/v20210331/models.py +87 -17
- tencentcloud/organization/v20210331/organization_client.py +25 -2
- tencentcloud/redis/v20180412/models.py +20 -18
- tencentcloud/rum/v20210622/models.py +12 -0
- tencentcloud/scf/v20180416/models.py +44 -7
- tencentcloud/ses/v20201002/models.py +177 -0
- tencentcloud/sms/v20210111/errorcodes.py +3 -0
- tencentcloud/ssl/v20191205/errorcodes.py +3 -0
- tencentcloud/ssl/v20191205/models.py +13 -0
- tencentcloud/ssl/v20191205/ssl_client.py +1 -1
- tencentcloud/tag/v20180813/models.py +33 -33
- tencentcloud/tdmq/v20200217/models.py +13 -0
- tencentcloud/tms/v20201229/errorcodes.py +0 -6
- tencentcloud/tms/v20201229/models.py +0 -70
- tencentcloud/tms/v20201229/tms_client.py +0 -23
- tencentcloud/tmt/v20180321/errorcodes.py +3 -0
- tencentcloud/tmt/v20180321/models.py +8 -8
- tencentcloud/tmt/v20180321/tmt_client.py +1 -1
- 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 +6 -6
- tencentcloud/vod/v20180717/vod_client.py +2 -2
- tencentcloud/vpc/v20170312/models.py +193 -1
- tencentcloud/wedata/v20210820/errorcodes.py +6 -0
- tencentcloud/wedata/v20210820/models.py +2626 -352
- tencentcloud/wedata/v20210820/wedata_client.py +138 -0
- {tencentcloud_sdk_python-3.0.1215.dist-info → tencentcloud_sdk_python-3.0.1222.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1215.dist-info → tencentcloud_sdk_python-3.0.1222.dist-info}/RECORD +80 -75
- {tencentcloud_sdk_python-3.0.1215.dist-info → tencentcloud_sdk_python-3.0.1222.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1215.dist-info → tencentcloud_sdk_python-3.0.1222.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1215.dist-info → tencentcloud_sdk_python-3.0.1222.dist-info}/top_level.txt +0 -0
@@ -201,7 +201,7 @@ class AttachResourcesTagRequest(AbstractModel):
|
|
201
201
|
|
202
202
|
def __init__(self):
|
203
203
|
r"""
|
204
|
-
:param _ServiceType:
|
204
|
+
:param _ServiceType: 业务类型,示例 cvm 。资源所属业务名称(资源六段式中的第三段)
|
205
205
|
:type ServiceType: str
|
206
206
|
:param _ResourceIds: 资源ID数组,资源个数最多为50
|
207
207
|
:type ResourceIds: list of str
|
@@ -211,7 +211,7 @@ class AttachResourcesTagRequest(AbstractModel):
|
|
211
211
|
:type TagValue: str
|
212
212
|
:param _ResourceRegion: 资源所在地域,不区分地域的资源则不必填。区分地域的资源则必填,且必填时必须是参数ResourceIds.N资源所对应的地域,且如果ResourceIds.N为批量时,这些资源也必须是同一个地域的。例如示例值:ap-beijing,则参数ResourceIds.N中都应该填写该地域的资源。
|
213
213
|
:type ResourceRegion: str
|
214
|
-
:param _ResourcePrefix: 资源前缀(资源六段式中最后一段"/"
|
214
|
+
:param _ResourcePrefix: 资源前缀(资源六段式中最后一段"/"前面的部分,例如“qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584” 中资源前缀为ckafkaId),cos存储桶不需要传入该字段,其他云资源必填
|
215
215
|
:type ResourcePrefix: str
|
216
216
|
"""
|
217
217
|
self._ServiceType = None
|
@@ -455,7 +455,7 @@ class DeleteResourceTagRequest(AbstractModel):
|
|
455
455
|
r"""
|
456
456
|
:param _TagKey: 标签键
|
457
457
|
:type TagKey: str
|
458
|
-
:param _Resource:
|
458
|
+
:param _Resource: 资源六段式。示例:qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584
|
459
459
|
:type Resource: str
|
460
460
|
"""
|
461
461
|
self._TagKey = None
|
@@ -792,13 +792,13 @@ class DescribeResourceTagsByResourceIdsRequest(AbstractModel):
|
|
792
792
|
|
793
793
|
def __init__(self):
|
794
794
|
r"""
|
795
|
-
:param _ServiceType:
|
795
|
+
:param _ServiceType: 业务类型,示例 cvm 。资源所属业务名称(资源六段式中的第三段)
|
796
796
|
:type ServiceType: str
|
797
|
-
:param _ResourcePrefix:
|
797
|
+
:param _ResourcePrefix: 资源前缀,示例 instance
|
798
798
|
:type ResourcePrefix: str
|
799
799
|
:param _ResourceIds: 资源ID数组,大小不超过50
|
800
800
|
:type ResourceIds: list of str
|
801
|
-
:param _ResourceRegion:
|
801
|
+
:param _ResourceRegion: 资源所在地域,示例:ap-guangzhou 不区分地域的资源不需要传入该字段,区分地域的资源必填
|
802
802
|
:type ResourceRegion: str
|
803
803
|
:param _Offset: 数据偏移量,默认为 0, 必须为Limit参数的整数倍
|
804
804
|
:type Offset: int
|
@@ -975,13 +975,13 @@ class DescribeResourceTagsByResourceIdsSeqRequest(AbstractModel):
|
|
975
975
|
|
976
976
|
def __init__(self):
|
977
977
|
r"""
|
978
|
-
:param _ServiceType:
|
978
|
+
:param _ServiceType: 业务类型,示例 cvm 。指资源所属业务类型,也是资源六段式中的第三段,例如qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584中业务类型为ckafka
|
979
979
|
:type ServiceType: str
|
980
|
-
:param _ResourcePrefix:
|
980
|
+
:param _ResourcePrefix: 该业务类型对应的资源前缀,示例 cvm对应instance、image、volume等。也是资源六段式中的第六段,例如qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584中资源前缀为ckafkaId。cos存储桶为非必填,其他云资源为必填
|
981
981
|
:type ResourcePrefix: str
|
982
982
|
:param _ResourceIds: 资源唯一标记
|
983
983
|
:type ResourceIds: list of str
|
984
|
-
:param _ResourceRegion:
|
984
|
+
:param _ResourceRegion: 资源所在地域,示例:ap-guangzhou 不区分地域的资源不需要传入该字段,区分地域的资源必填
|
985
985
|
:type ResourceRegion: str
|
986
986
|
:param _Offset: 数据偏移量,默认为 0, 必须为Limit参数的整数倍
|
987
987
|
:type Offset: int
|
@@ -1146,11 +1146,11 @@ class DescribeResourceTagsByTagKeysRequest(AbstractModel):
|
|
1146
1146
|
|
1147
1147
|
def __init__(self):
|
1148
1148
|
r"""
|
1149
|
-
:param _ServiceType:
|
1149
|
+
:param _ServiceType: 业务类型,示例 cvm 。指资源所属业务类型,也是资源六段式中的第三段,例如qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584中业务类型为ckafka
|
1150
1150
|
:type ServiceType: str
|
1151
|
-
:param _ResourcePrefix:
|
1151
|
+
:param _ResourcePrefix: 该业务类型对应的资源前缀,示例 cvm对应instance、image、volume等。也是资源六段式中的第六段,例如qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584中资源前缀为ckafkaId。cos存储桶为非必填,其他云资源为必填
|
1152
1152
|
:type ResourcePrefix: str
|
1153
|
-
:param _ResourceRegion:
|
1153
|
+
:param _ResourceRegion: 资源所在地域,示例:ap-guangzhou 不区分地域的资源不需要传入该字段,区分地域的资源必填
|
1154
1154
|
:type ResourceRegion: str
|
1155
1155
|
:param _ResourceIds: 资源唯一标识ID的列表,列表容量不超过20
|
1156
1156
|
:type ResourceIds: list of str
|
@@ -1329,21 +1329,21 @@ class DescribeResourceTagsRequest(AbstractModel):
|
|
1329
1329
|
|
1330
1330
|
def __init__(self):
|
1331
1331
|
r"""
|
1332
|
-
:param _CreateUin:
|
1332
|
+
:param _CreateUin: 资源创建者UIN
|
1333
1333
|
:type CreateUin: int
|
1334
|
-
:param _ResourceRegion:
|
1334
|
+
:param _ResourceRegion: 资源所在地域,示例:ap-guangzhou 。不区分地域的资源则不需要传入该字段,区分地域的资源必填
|
1335
1335
|
:type ResourceRegion: str
|
1336
|
-
:param _ServiceType:
|
1336
|
+
:param _ServiceType: 业务类型,示例 ckafka。指资源所属业务类型,也是资源六段式中的第三段,例如qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584中业务类型为ckafka
|
1337
1337
|
:type ServiceType: str
|
1338
|
-
:param _ResourcePrefix:
|
1338
|
+
:param _ResourcePrefix: 该业务类型对应的资源前缀,示例 cvm对应instance、image、volume等。也是资源六段式中的第六段,例如qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584中资源前缀为ckafkaId
|
1339
1339
|
:type ResourcePrefix: str
|
1340
|
-
:param _ResourceId:
|
1340
|
+
:param _ResourceId: 资源唯一标识(资源六段式中最后一段"/"后面的部分)。注:只输入ResourceId查询时,如资源量大可能较慢,或无法匹配到结果,建议在输入ResourceId的同时也输入ServiceType、ResourcePrefix和ResourceRegion(不区分地域的资源可忽略该参数)。若传入的是cos资源的Id,则CosResourceId 字段请同时传1。
|
1341
1341
|
:type ResourceId: str
|
1342
1342
|
:param _Offset: 数据偏移量,默认为 0, 必须为Limit参数的整数倍
|
1343
1343
|
:type Offset: int
|
1344
1344
|
:param _Limit: 每页大小,默认为 15
|
1345
1345
|
:type Limit: int
|
1346
|
-
:param _CosResourceId:
|
1346
|
+
:param _CosResourceId: 是否为cos的资源,取值 0 表示:非cos资源。取值1 表示:cos资源,且此时ResourceId也为必填。不填则默认为 0
|
1347
1347
|
:type CosResourceId: int
|
1348
1348
|
"""
|
1349
1349
|
self._CreateUin = None
|
@@ -1533,13 +1533,13 @@ class DescribeResourcesByTagsRequest(AbstractModel):
|
|
1533
1533
|
:type Offset: int
|
1534
1534
|
:param _Limit: 每页大小,默认为 15
|
1535
1535
|
:type Limit: int
|
1536
|
-
:param _ResourcePrefix:
|
1536
|
+
:param _ResourcePrefix: 该业务类型对应的资源前缀,示例 cvm对应instance、image、volume等。也是资源六段式中的第六段,例如qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584中资源前缀为ckafkaId。cos存储桶为非必填,其他云资源为必填
|
1537
1537
|
:type ResourcePrefix: str
|
1538
1538
|
:param _ResourceId: 资源唯一标记
|
1539
1539
|
:type ResourceId: str
|
1540
|
-
:param _ResourceRegion:
|
1540
|
+
:param _ResourceRegion: 资源所在地域,示例:ap-guangzhou 不区分地域的资源不需要传入该字段,区分地域的资源必填
|
1541
1541
|
:type ResourceRegion: str
|
1542
|
-
:param _ServiceType:
|
1542
|
+
:param _ServiceType: 业务类型,示例 cvm 。指资源所属业务类型,也是资源六段式中的第三段,例如qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584中业务类型为ckafka
|
1543
1543
|
:type ServiceType: str
|
1544
1544
|
"""
|
1545
1545
|
self._TagFilters = None
|
@@ -1734,13 +1734,13 @@ class DescribeResourcesByTagsUnionRequest(AbstractModel):
|
|
1734
1734
|
:type Offset: int
|
1735
1735
|
:param _Limit: 每页大小,默认为 15
|
1736
1736
|
:type Limit: int
|
1737
|
-
:param _ResourcePrefix:
|
1737
|
+
:param _ResourcePrefix: 该业务类型对应的资源前缀,示例 cvm对应instance、image、volume等。也是资源六段式中的第六段,例如qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584中资源前缀为ckafkaId。cos存储桶为非必填,其他云资源为必填
|
1738
1738
|
:type ResourcePrefix: str
|
1739
1739
|
:param _ResourceId: 资源唯一标记
|
1740
1740
|
:type ResourceId: str
|
1741
|
-
:param _ResourceRegion:
|
1741
|
+
:param _ResourceRegion: 资源所在地域,示例:ap-guangzhou 不区分地域的资源不需要传入该字段,区分地域的资源必填
|
1742
1742
|
:type ResourceRegion: str
|
1743
|
-
:param _ServiceType:
|
1743
|
+
:param _ServiceType: 业务类型,示例 cvm 。指资源所属业务类型,也是资源六段式中的第三段,例如qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584中业务类型为ckafka
|
1744
1744
|
:type ServiceType: str
|
1745
1745
|
"""
|
1746
1746
|
self._TagFilters = None
|
@@ -1932,7 +1932,7 @@ class DescribeTagKeysRequest(AbstractModel):
|
|
1932
1932
|
:type Offset: int
|
1933
1933
|
:param _Limit: 每页大小,默认为 15,最大1000
|
1934
1934
|
:type Limit: int
|
1935
|
-
:param _ShowProject:
|
1935
|
+
:param _ShowProject: 是否展现项目。1:展示 0:不展示
|
1936
1936
|
:type ShowProject: int
|
1937
1937
|
:param _Category: 标签类型。取值: Custom:自定义标签。 System:系统标签。 All:全部标签。 默认值:All。
|
1938
1938
|
:type Category: str
|
@@ -2398,7 +2398,7 @@ class DescribeTagsRequest(AbstractModel):
|
|
2398
2398
|
:type CreateUin: int
|
2399
2399
|
:param _TagKeys: 标签键数组,与标签值同时存在或同时不存在,不存在时表示查询该用户所有标签,当与TagKey同时传递时只取本值
|
2400
2400
|
:type TagKeys: list of str
|
2401
|
-
:param _ShowProject:
|
2401
|
+
:param _ShowProject: 是否展现项目标签。1:展示 0:不展示
|
2402
2402
|
:type ShowProject: int
|
2403
2403
|
"""
|
2404
2404
|
self._TagKey = None
|
@@ -2581,7 +2581,7 @@ class DescribeTagsSeqRequest(AbstractModel):
|
|
2581
2581
|
:type CreateUin: int
|
2582
2582
|
:param _TagKeys: 标签键数组,与标签值同时存在或同时不存在,不存在时表示查询该用户所有标签,当与TagKey同时传递时只取本值
|
2583
2583
|
:type TagKeys: list of str
|
2584
|
-
:param _ShowProject:
|
2584
|
+
:param _ShowProject: 是否展现项目标签。1:展示 0:不展示
|
2585
2585
|
:type ShowProject: int
|
2586
2586
|
"""
|
2587
2587
|
self._TagKey = None
|
@@ -2752,15 +2752,15 @@ class DetachResourcesTagRequest(AbstractModel):
|
|
2752
2752
|
|
2753
2753
|
def __init__(self):
|
2754
2754
|
r"""
|
2755
|
-
:param _ServiceType:
|
2755
|
+
:param _ServiceType: 业务类型,示例 cvm 。指资源所属业务类型,也是资源六段式中的第三段,例如qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584中业务类型为ckafka
|
2756
2756
|
:type ServiceType: str
|
2757
2757
|
:param _ResourceIds: 资源ID数组,资源个数最多为50
|
2758
2758
|
:type ResourceIds: list of str
|
2759
2759
|
:param _TagKey: 需要解绑的标签键
|
2760
2760
|
:type TagKey: str
|
2761
|
-
:param _ResourceRegion:
|
2761
|
+
:param _ResourceRegion: 资源所在地域,示例:ap-guangzhou 。不区分地域的资源则不需要传入该字段,区分地域的资源必填
|
2762
2762
|
:type ResourceRegion: str
|
2763
|
-
:param _ResourcePrefix:
|
2763
|
+
:param _ResourcePrefix: 该业务类型对应的资源前缀,示例 cvm对应instance、image、volume等。也是资源六段式中的第六段,例如qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584中资源前缀为ckafkaId。cos存储桶为非必填,其他云资源为必填
|
2764
2764
|
:type ResourcePrefix: str
|
2765
2765
|
"""
|
2766
2766
|
self._ServiceType = None
|
@@ -3506,7 +3506,7 @@ class ModifyResourcesTagValueRequest(AbstractModel):
|
|
3506
3506
|
|
3507
3507
|
def __init__(self):
|
3508
3508
|
r"""
|
3509
|
-
:param _ServiceType:
|
3509
|
+
:param _ServiceType: 业务类型,示例 cvm 。资源所属业务名称(资源六段式中的第三段)
|
3510
3510
|
:type ServiceType: str
|
3511
3511
|
:param _ResourceIds: 资源ID数组,资源个数最多为50
|
3512
3512
|
:type ResourceIds: list of str
|
@@ -3514,9 +3514,9 @@ class ModifyResourcesTagValueRequest(AbstractModel):
|
|
3514
3514
|
:type TagKey: str
|
3515
3515
|
:param _TagValue: 标签值
|
3516
3516
|
:type TagValue: str
|
3517
|
-
:param _ResourceRegion:
|
3517
|
+
:param _ResourceRegion: 资源所在地域,示例:ap-guangzhou 不区分地域的资源不需要传入该字段,区分地域的资源必填
|
3518
3518
|
:type ResourceRegion: str
|
3519
|
-
:param _ResourcePrefix: 资源前缀(资源六段式中最后一段"/"
|
3519
|
+
:param _ResourcePrefix: 资源前缀(资源六段式中最后一段"/"前面的部分),例如“qcs::ckafka:ap-shanghai:uin/123456789:ckafkaId/ckafka-o85jq584” 中资源前缀为ckafkaId),cos存储桶不需要传入该字段,其他云资源必填
|
3520
3520
|
:type ResourcePrefix: str
|
3521
3521
|
"""
|
3522
3522
|
self._ServiceType = None
|
@@ -21291,6 +21291,9 @@ class PulsarProClusterInfo(AbstractModel):
|
|
21291
21291
|
:param _BillingLabelVersion: 代表是专业版和小规格专业版的不同计费规格PULSAR.P1固定存储PULSAR.P2弹性存储
|
21292
21292
|
注意:此字段可能返回 null,表示取不到有效值。
|
21293
21293
|
:type BillingLabelVersion: str
|
21294
|
+
:param _ExpireTime: 实例到期时间戳,毫秒级精度。
|
21295
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
21296
|
+
:type ExpireTime: int
|
21294
21297
|
"""
|
21295
21298
|
self._ClusterId = None
|
21296
21299
|
self._ClusterName = None
|
@@ -21302,6 +21305,7 @@ class PulsarProClusterInfo(AbstractModel):
|
|
21302
21305
|
self._MaxStorage = None
|
21303
21306
|
self._CanEditRoute = None
|
21304
21307
|
self._BillingLabelVersion = None
|
21308
|
+
self._ExpireTime = None
|
21305
21309
|
|
21306
21310
|
@property
|
21307
21311
|
def ClusterId(self):
|
@@ -21383,6 +21387,14 @@ class PulsarProClusterInfo(AbstractModel):
|
|
21383
21387
|
def BillingLabelVersion(self, BillingLabelVersion):
|
21384
21388
|
self._BillingLabelVersion = BillingLabelVersion
|
21385
21389
|
|
21390
|
+
@property
|
21391
|
+
def ExpireTime(self):
|
21392
|
+
return self._ExpireTime
|
21393
|
+
|
21394
|
+
@ExpireTime.setter
|
21395
|
+
def ExpireTime(self, ExpireTime):
|
21396
|
+
self._ExpireTime = ExpireTime
|
21397
|
+
|
21386
21398
|
|
21387
21399
|
def _deserialize(self, params):
|
21388
21400
|
self._ClusterId = params.get("ClusterId")
|
@@ -21400,6 +21412,7 @@ class PulsarProClusterInfo(AbstractModel):
|
|
21400
21412
|
self._MaxStorage = params.get("MaxStorage")
|
21401
21413
|
self._CanEditRoute = params.get("CanEditRoute")
|
21402
21414
|
self._BillingLabelVersion = params.get("BillingLabelVersion")
|
21415
|
+
self._ExpireTime = params.get("ExpireTime")
|
21403
21416
|
memeber_set = set(params.keys())
|
21404
21417
|
for name, value in vars(self).items():
|
21405
21418
|
property_name = name[1:]
|
@@ -14,9 +14,6 @@
|
|
14
14
|
# limitations under the License.
|
15
15
|
|
16
16
|
|
17
|
-
# 内部错误。
|
18
|
-
INTERNALERROR = 'InternalError'
|
19
|
-
|
20
17
|
# 请求超时。
|
21
18
|
INTERNALERROR_ERRTEXTTIMEOUT = 'InternalError.ErrTextTimeOut'
|
22
19
|
|
@@ -29,9 +26,6 @@ INVALIDPARAMETER_ERRTEXTCONTENTLEN = 'InvalidParameter.ErrTextContentLen'
|
|
29
26
|
# 文本类型错误,需要base64的文本。
|
30
27
|
INVALIDPARAMETER_ERRTEXTCONTENTTYPE = 'InvalidParameter.ErrTextContentType'
|
31
28
|
|
32
|
-
# Question参数错误
|
33
|
-
INVALIDPARAMETER_INVALIDQUESTION = 'InvalidParameter.InvalidQuestion'
|
34
|
-
|
35
29
|
# InvalidParameter.ParameterError
|
36
30
|
INVALIDPARAMETER_PARAMETERERROR = 'InvalidParameter.ParameterError'
|
37
31
|
|
@@ -18,76 +18,6 @@ import warnings
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
19
19
|
|
20
20
|
|
21
|
-
class AnswerQuestionRequest(AbstractModel):
|
22
|
-
"""AnswerQuestion请求参数结构体
|
23
|
-
|
24
|
-
"""
|
25
|
-
|
26
|
-
def __init__(self):
|
27
|
-
r"""
|
28
|
-
:param _Question: 用户问题
|
29
|
-
:type Question: str
|
30
|
-
"""
|
31
|
-
self._Question = None
|
32
|
-
|
33
|
-
@property
|
34
|
-
def Question(self):
|
35
|
-
return self._Question
|
36
|
-
|
37
|
-
@Question.setter
|
38
|
-
def Question(self, Question):
|
39
|
-
self._Question = Question
|
40
|
-
|
41
|
-
|
42
|
-
def _deserialize(self, params):
|
43
|
-
self._Question = params.get("Question")
|
44
|
-
memeber_set = set(params.keys())
|
45
|
-
for name, value in vars(self).items():
|
46
|
-
property_name = name[1:]
|
47
|
-
if property_name in memeber_set:
|
48
|
-
memeber_set.remove(property_name)
|
49
|
-
if len(memeber_set) > 0:
|
50
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
class AnswerQuestionResponse(AbstractModel):
|
55
|
-
"""AnswerQuestion返回参数结构体
|
56
|
-
|
57
|
-
"""
|
58
|
-
|
59
|
-
def __init__(self):
|
60
|
-
r"""
|
61
|
-
:param _Answer: 匹配到的答案
|
62
|
-
:type Answer: str
|
63
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
64
|
-
:type RequestId: str
|
65
|
-
"""
|
66
|
-
self._Answer = None
|
67
|
-
self._RequestId = None
|
68
|
-
|
69
|
-
@property
|
70
|
-
def Answer(self):
|
71
|
-
return self._Answer
|
72
|
-
|
73
|
-
@Answer.setter
|
74
|
-
def Answer(self, Answer):
|
75
|
-
self._Answer = Answer
|
76
|
-
|
77
|
-
@property
|
78
|
-
def RequestId(self):
|
79
|
-
return self._RequestId
|
80
|
-
|
81
|
-
@RequestId.setter
|
82
|
-
def RequestId(self, RequestId):
|
83
|
-
self._RequestId = RequestId
|
84
|
-
|
85
|
-
|
86
|
-
def _deserialize(self, params):
|
87
|
-
self._Answer = params.get("Answer")
|
88
|
-
self._RequestId = params.get("RequestId")
|
89
|
-
|
90
|
-
|
91
21
|
class DetailResults(AbstractModel):
|
92
22
|
"""文本审核返回的详细结果
|
93
23
|
|
@@ -26,29 +26,6 @@ class TmsClient(AbstractClient):
|
|
26
26
|
_service = 'tms'
|
27
27
|
|
28
28
|
|
29
|
-
def AnswerQuestion(self, request):
|
30
|
-
""""AIGC代答"产品帮助客户在其AIGC场景下,对于敏感类的问题,不是由客户的大模型机器人来回答,而是我们来进行代答,尽最大可能帮助客户规避风险。
|
31
|
-
|
32
|
-
:param request: Request instance for AnswerQuestion.
|
33
|
-
:type request: :class:`tencentcloud.tms.v20201229.models.AnswerQuestionRequest`
|
34
|
-
:rtype: :class:`tencentcloud.tms.v20201229.models.AnswerQuestionResponse`
|
35
|
-
|
36
|
-
"""
|
37
|
-
try:
|
38
|
-
params = request._serialize()
|
39
|
-
headers = request.headers
|
40
|
-
body = self.call("AnswerQuestion", params, headers=headers)
|
41
|
-
response = json.loads(body)
|
42
|
-
model = models.AnswerQuestionResponse()
|
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
|
-
|
52
29
|
def ModerateText(self, request):
|
53
30
|
"""天御文本内容安全定制标签文本审核接口为定制接口,会按照客户定制标签输出审核结果,如需使用请联系商务经理或[在线客服](https://cloud.tencent.com/online-service?from=doc_1125)咨询。
|
54
31
|
|
@@ -44,6 +44,9 @@ FAILEDOPERATION_SUBMISSIONLIMITREACHED = 'FailedOperation.SubmissionLimitReached
|
|
44
44
|
# 过多未完成任务
|
45
45
|
FAILEDOPERATION_TOOMANYWAITPROCESS = 'FailedOperation.TooManyWaitProcess'
|
46
46
|
|
47
|
+
# 本月免费额度已用完,如需继续使用您可以在机器翻译控制台购买资源包或开通后付费使用。
|
48
|
+
FAILEDOPERATION_USERHASNOFREEAMOUNT = 'FailedOperation.UserHasNoFreeAmount'
|
49
|
+
|
47
50
|
# 服务未开通,请在腾讯云官网机器翻译控制台开通服务。
|
48
51
|
FAILEDOPERATION_USERNOTREGISTERED = 'FailedOperation.UserNotRegistered'
|
49
52
|
|
@@ -65,11 +65,11 @@ lo(老挝语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(
|
|
65
65
|
:type DocumentType: str
|
66
66
|
:param _SourceType: 数据来源,0:url,1:直接传文件编码后数据
|
67
67
|
:type SourceType: int
|
68
|
-
:param _Url: 需要翻译文件url
|
68
|
+
:param _Url: 需要翻译文件url,URL长度不能超过1000字符。文件限制如下:docx/xIsx/html/markdown文件不超过800万字符,doc/pdf/pptx文件不超过300页,txt/po文件不超过10MB,pdf/docx/pptx/xlsx不超过40MB
|
69
69
|
:type Url: str
|
70
70
|
:param _BasicDocumentType: 原始文档类型。该参数为高级参数,请留空,如需使用,请与工作人员确认后再使用。
|
71
71
|
:type BasicDocumentType: str
|
72
|
-
:param _CallbackUrl: 回调url
|
72
|
+
:param _CallbackUrl: 回调url,URL长度不能超过256字符。文件大于10MB或字符较多时,建议采用回调方式;回调时,所有内容会放入 Body 中,具体请参见[文件翻译回调说明](https://cloud.tencent.com/document/product/551/91138)。
|
73
73
|
:type CallbackUrl: str
|
74
74
|
:param _Data: 文件数据,当SourceType 值为1时必须填写,为0可不写。要base64编码(采用python语言时注意读取文件应该为string而不是byte,以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。数据要小于5MB。
|
75
75
|
:type Data: str
|
@@ -1090,8 +1090,8 @@ hi:印地语
|
|
1090
1090
|
:type Source: str
|
1091
1091
|
:param _Target: 目标语言,各源语言的目标语言支持列表如下
|
1092
1092
|
|
1093
|
-
<li> zh(简体中文):en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms
|
1094
|
-
<li>zh-TW(繁体中文):en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms
|
1093
|
+
<li> zh(简体中文):en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)、ar(阿拉伯语)</li>
|
1094
|
+
<li>zh-TW(繁体中文):en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)、ar(阿拉伯语)</li>
|
1095
1095
|
<li>en(英语):zh(中文)、zh-TW(繁体中文)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)、ar(阿拉伯语)、hi(印地语)</li>
|
1096
1096
|
<li>ja(日语):zh(中文)、zh-TW(繁体中文)、en(英语)、ko(韩语)</li>
|
1097
1097
|
<li>ko(韩语):zh(中文)、zh-TW(繁体中文)、en(英语)、ja(日语)</li>
|
@@ -1106,7 +1106,7 @@ hi:印地语
|
|
1106
1106
|
<li>id(印尼语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1107
1107
|
<li>th(泰语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1108
1108
|
<li>ms(马来语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1109
|
-
<li>ar(阿拉伯语):en(英语)</li>
|
1109
|
+
<li>ar(阿拉伯语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1110
1110
|
<li>hi(印地语):en(英语)</li>
|
1111
1111
|
:type Target: str
|
1112
1112
|
:param _ProjectId: 项目ID,可以根据控制台-账号中心-项目管理中的配置填写,如无配置请填写默认项目ID:0
|
@@ -1284,8 +1284,8 @@ hi:印地语
|
|
1284
1284
|
:type Source: str
|
1285
1285
|
:param _Target: 目标语言,各源语言的目标语言支持列表如下
|
1286
1286
|
|
1287
|
-
<li> zh(简体中文):zh-TW(繁体中文)、en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms
|
1288
|
-
<li>zh-TW(繁体中文):zh(简体中文)、en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms
|
1287
|
+
<li> zh(简体中文):zh-TW(繁体中文)、en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)、ar(阿拉伯语)</li>
|
1288
|
+
<li>zh-TW(繁体中文):zh(简体中文)、en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)、ar(阿拉伯语)</li>
|
1289
1289
|
<li>en(英语):zh(中文)、zh-TW(繁体中文)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)、ar(阿拉伯语)、hi(印地语)</li>
|
1290
1290
|
<li>ja(日语):zh(中文)、zh-TW(繁体中文)、en(英语)、ko(韩语)</li>
|
1291
1291
|
<li>ko(韩语):zh(中文)、zh-TW(繁体中文)、en(英语)、ja(日语)</li>
|
@@ -1300,7 +1300,7 @@ hi:印地语
|
|
1300
1300
|
<li>id(印尼语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1301
1301
|
<li>th(泰语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1302
1302
|
<li>ms(马来语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1303
|
-
<li>ar(阿拉伯语):en(英语)</li>
|
1303
|
+
<li>ar(阿拉伯语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1304
1304
|
<li>hi(印地语):en(英语)</li>
|
1305
1305
|
:type Target: str
|
1306
1306
|
:param _ProjectId: 项目ID,可以根据控制台-账号中心-项目管理中的配置填写,如无配置请填写默认项目ID:0
|
@@ -124,7 +124,7 @@ class TmtClient(AbstractClient):
|
|
124
124
|
|
125
125
|
def SpeechTranslate(self, request):
|
126
126
|
"""本接口提供上传音频,将音频进行语音识别并翻译成文本的服务,目前开放中英互译的语音翻译服务。
|
127
|
-
待识别和翻译的音频文件可以是 pcm、mp3和speex 格式,pcm采样率要求16kHz、位深16bit、单声道,音频内语音清晰。<br/>
|
127
|
+
待识别和翻译的音频文件可以是 pcm、mp3和speex 格式,其中支持流式传输的只有pcm格式,pcm采样率要求16kHz、位深16bit、单声道,音频内语音清晰。<br/>
|
128
128
|
如果采用流式传输的方式,要求每个分片时长200ms~500ms;如果采用非流式的传输方式,要求音频时长不超过8s。注意最后一个分片的IsEnd参数设置为1。<br />
|
129
129
|
提示:对于一般开发者,我们建议优先使用SDK接入简化开发。SDK使用介绍请直接查看 5. 开发者资源部分。
|
130
130
|
|
@@ -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
|
成功发起混流转推后,可以使用此接口来更新任务。仅在任务进行时有效,任务退出后更新将会返回错误。更新操作为增量更新模式。
|