tencentcloud-sdk-python 3.1.196__py2.py3-none-any.whl → 3.1.198__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/adp/v20260520/models.py +38 -8
- tencentcloud/ags/v20250920/models.py +2 -2
- tencentcloud/asr/v20190614/models.py +130 -16
- tencentcloud/cfg/v20210820/cfg_client.py +69 -0
- tencentcloud/cfg/v20210820/cfg_client_async.py +54 -0
- tencentcloud/cfg/v20210820/models.py +505 -0
- tencentcloud/clb/v20180317/models.py +2 -2
- tencentcloud/ctem/v20231128/models.py +300 -0
- tencentcloud/databuddy/v20260715/databuddy_client.py +74 -0
- tencentcloud/databuddy/v20260715/databuddy_client_async.py +59 -0
- tencentcloud/databuddy/v20260715/errorcodes.py +19 -1
- tencentcloud/databuddy/v20260715/models.py +471 -0
- tencentcloud/dbdc/v20201029/dbdc_client.py +139 -0
- tencentcloud/dbdc/v20201029/dbdc_client_async.py +109 -0
- tencentcloud/dbdc/v20201029/models.py +648 -40
- tencentcloud/ess/v20201111/ess_client.py +1 -1
- tencentcloud/ess/v20201111/ess_client_async.py +1 -1
- tencentcloud/ess/v20201111/models.py +61 -14
- tencentcloud/goosefs/v20220519/goosefs_client.py +92 -0
- tencentcloud/goosefs/v20220519/goosefs_client_async.py +72 -0
- tencentcloud/goosefs/v20220519/models.py +658 -1
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +0 -207
- tencentcloud/iotexplorer/v20190423/iotexplorer_client_async.py +0 -162
- tencentcloud/iotexplorer/v20190423/models.py +186 -2746
- tencentcloud/redis/v20180412/errorcodes.py +3 -0
- tencentcloud/tcb/v20180608/errorcodes.py +24 -0
- tencentcloud/tcb/v20180608/models.py +79 -0
- tencentcloud/tcb/v20180608/tcb_client.py +24 -0
- tencentcloud/tcb/v20180608/tcb_client_async.py +19 -0
- tencentcloud/tts/v20190823/models.py +15 -0
- tencentcloud/waf/v20180125/models.py +64 -0
- tencentcloud/waf/v20180125/waf_client.py +23 -0
- tencentcloud/waf/v20180125/waf_client_async.py +18 -0
- {tencentcloud_sdk_python-3.1.196.dist-info → tencentcloud_sdk_python-3.1.198.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.1.196.dist-info → tencentcloud_sdk_python-3.1.198.dist-info}/RECORD +39 -39
- {tencentcloud_sdk_python-3.1.196.dist-info → tencentcloud_sdk_python-3.1.198.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.1.196.dist-info → tencentcloud_sdk_python-3.1.198.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.1.196.dist-info → tencentcloud_sdk_python-3.1.198.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -44567,23 +44567,29 @@ class Space(AbstractModel):
|
|
|
44567
44567
|
|
|
44568
44568
|
def __init__(self):
|
|
44569
44569
|
r"""
|
|
44570
|
-
:param _SpaceId:
|
|
44570
|
+
:param _SpaceId: <p>空间id</p>
|
|
44571
44571
|
:type SpaceId: str
|
|
44572
|
-
:param _Name:
|
|
44572
|
+
:param _Name: <p>空间名称</p>
|
|
44573
44573
|
:type Name: str
|
|
44574
|
-
:param _Description:
|
|
44574
|
+
:param _Description: <p>空间描述</p>
|
|
44575
44575
|
:type Description: str
|
|
44576
|
-
:param _PermissionIdList:
|
|
44576
|
+
:param _PermissionIdList: <p>空间权限</p>
|
|
44577
44577
|
:type PermissionIdList: list of str
|
|
44578
|
+
:param _CreateTime: <p>创建时间</p><p>参数格式:秒时间戳</p>
|
|
44579
|
+
:type CreateTime: str
|
|
44580
|
+
:param _UpdateTime: <p>更新时间</p><p>参数格式:秒时间戳</p>
|
|
44581
|
+
:type UpdateTime: str
|
|
44578
44582
|
"""
|
|
44579
44583
|
self._SpaceId = None
|
|
44580
44584
|
self._Name = None
|
|
44581
44585
|
self._Description = None
|
|
44582
44586
|
self._PermissionIdList = None
|
|
44587
|
+
self._CreateTime = None
|
|
44588
|
+
self._UpdateTime = None
|
|
44583
44589
|
|
|
44584
44590
|
@property
|
|
44585
44591
|
def SpaceId(self):
|
|
44586
|
-
r"""
|
|
44592
|
+
r"""<p>空间id</p>
|
|
44587
44593
|
:rtype: str
|
|
44588
44594
|
"""
|
|
44589
44595
|
return self._SpaceId
|
|
@@ -44594,7 +44600,7 @@ class Space(AbstractModel):
|
|
|
44594
44600
|
|
|
44595
44601
|
@property
|
|
44596
44602
|
def Name(self):
|
|
44597
|
-
r"""
|
|
44603
|
+
r"""<p>空间名称</p>
|
|
44598
44604
|
:rtype: str
|
|
44599
44605
|
"""
|
|
44600
44606
|
return self._Name
|
|
@@ -44605,7 +44611,7 @@ class Space(AbstractModel):
|
|
|
44605
44611
|
|
|
44606
44612
|
@property
|
|
44607
44613
|
def Description(self):
|
|
44608
|
-
r"""
|
|
44614
|
+
r"""<p>空间描述</p>
|
|
44609
44615
|
:rtype: str
|
|
44610
44616
|
"""
|
|
44611
44617
|
return self._Description
|
|
@@ -44616,7 +44622,7 @@ class Space(AbstractModel):
|
|
|
44616
44622
|
|
|
44617
44623
|
@property
|
|
44618
44624
|
def PermissionIdList(self):
|
|
44619
|
-
r"""
|
|
44625
|
+
r"""<p>空间权限</p>
|
|
44620
44626
|
:rtype: list of str
|
|
44621
44627
|
"""
|
|
44622
44628
|
return self._PermissionIdList
|
|
@@ -44625,12 +44631,36 @@ class Space(AbstractModel):
|
|
|
44625
44631
|
def PermissionIdList(self, PermissionIdList):
|
|
44626
44632
|
self._PermissionIdList = PermissionIdList
|
|
44627
44633
|
|
|
44634
|
+
@property
|
|
44635
|
+
def CreateTime(self):
|
|
44636
|
+
r"""<p>创建时间</p><p>参数格式:秒时间戳</p>
|
|
44637
|
+
:rtype: str
|
|
44638
|
+
"""
|
|
44639
|
+
return self._CreateTime
|
|
44640
|
+
|
|
44641
|
+
@CreateTime.setter
|
|
44642
|
+
def CreateTime(self, CreateTime):
|
|
44643
|
+
self._CreateTime = CreateTime
|
|
44644
|
+
|
|
44645
|
+
@property
|
|
44646
|
+
def UpdateTime(self):
|
|
44647
|
+
r"""<p>更新时间</p><p>参数格式:秒时间戳</p>
|
|
44648
|
+
:rtype: str
|
|
44649
|
+
"""
|
|
44650
|
+
return self._UpdateTime
|
|
44651
|
+
|
|
44652
|
+
@UpdateTime.setter
|
|
44653
|
+
def UpdateTime(self, UpdateTime):
|
|
44654
|
+
self._UpdateTime = UpdateTime
|
|
44655
|
+
|
|
44628
44656
|
|
|
44629
44657
|
def _deserialize(self, params):
|
|
44630
44658
|
self._SpaceId = params.get("SpaceId")
|
|
44631
44659
|
self._Name = params.get("Name")
|
|
44632
44660
|
self._Description = params.get("Description")
|
|
44633
44661
|
self._PermissionIdList = params.get("PermissionIdList")
|
|
44662
|
+
self._CreateTime = params.get("CreateTime")
|
|
44663
|
+
self._UpdateTime = params.get("UpdateTime")
|
|
44634
44664
|
memeber_set = set(params.keys())
|
|
44635
44665
|
for name, value in vars(self).items():
|
|
44636
44666
|
property_name = name[1:]
|
|
@@ -8230,7 +8230,7 @@ class DescribeSandboxToolListRequest(AbstractModel):
|
|
|
8230
8230
|
:type Offset: int
|
|
8231
8231
|
:param _Limit: 返回数量,默认为20,最大值为100
|
|
8232
8232
|
:type Limit: int
|
|
8233
|
-
:param _Filters:
|
|
8233
|
+
:param _Filters: 过滤条件。支持 access-policy-id 按关联的访问策略 ID 反向查询;其他过滤条件沿用沙箱工具列表接口约定。
|
|
8234
8234
|
:type Filters: list of Filter
|
|
8235
8235
|
"""
|
|
8236
8236
|
self._ToolIds = None
|
|
@@ -8273,7 +8273,7 @@ class DescribeSandboxToolListRequest(AbstractModel):
|
|
|
8273
8273
|
|
|
8274
8274
|
@property
|
|
8275
8275
|
def Filters(self):
|
|
8276
|
-
r"""
|
|
8276
|
+
r"""过滤条件。支持 access-policy-id 按关联的访问策略 ID 反向查询;其他过滤条件沿用沙箱工具列表接口约定。
|
|
8277
8277
|
:rtype: list of Filter
|
|
8278
8278
|
"""
|
|
8279
8279
|
return self._Filters
|
|
@@ -795,7 +795,7 @@ class CreateRecTaskRequest(AbstractModel):
|
|
|
795
795
|
:type EngineModelType: str
|
|
796
796
|
:param _ChannelNum: <p>识别声道数<br>1:单声道(16k音频仅支持单声道,<strong>请勿</strong>设置为双声道);<br>2:双声道(仅支持8k电话音频,且双声道应分别为通话双方)</p><p>注意:<br>• 16k音频:仅支持单声道识别,<strong>需设置ChannelNum=1</strong>;<br>• 8k电话音频:支持单声道、双声道识别,<strong>建议设置ChannelNum=2,即双声道</strong>。双声道能够物理区分说话人、避免说话双方重叠产生的识别错误,能达到最好的说话人分离效果和识别效果。设置双声道后,将自动区分说话人,因此<strong>无需再开启说话人分离功能</strong>,相关参数(<strong>SpeakerDiarization、SpeakerNumber</strong>)使用默认值即可,返回的ResultDetail中的speakerId的值为0代表左声道,值为1代表右声道。</p>
|
|
797
797
|
:type ChannelNum: int
|
|
798
|
-
:param _ResTextFormat: <p>识别结果返回样式<br>0:基础识别结果(仅包含有效人声时间戳,无词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>);<br>1:基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值,<strong>不含标点</strong>);<br>2:基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值和标点);<br>3:基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值和标点),且识别结果按标点符号分段,<strong>适用字幕场景</strong>;<br>4:<strong>【增值付费功能】</strong>基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值和标点),且识别结果按nlp语义分段,<strong>适用会议、庭审记录转写等场景</strong>,仅支持8k_zh/16k_zh
|
|
798
|
+
:param _ResTextFormat: <p>识别结果返回样式<br>0:基础识别结果(仅包含有效人声时间戳,无词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>);<br>1:基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值,<strong>不含标点</strong>);<br>2:基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值和标点);<br>3:基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值和标点),且识别结果按标点符号分段,<strong>适用字幕场景</strong>;<br>4:<strong>【增值付费功能】</strong>基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值和标点),且识别结果按nlp语义分段,<strong>适用会议、庭审记录转写等场景</strong>,仅支持8k_zh/16k_zh引擎;<br>5:<strong>【增值付费功能】</strong>基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值和标点),并输出口语转书面语转写结果,该结果去除语气词、重复词、精简冗余表达,并修正发言人口误,实现口语转书面语的效果,<strong>适用于线上、线下会议直接总结为书面会议纪要的场景</strong>,仅支持8k_zh/16k_zh引擎;<br>7:<strong>【增值付费功能】</strong>基础识别结果之上,增加大模型后处理功能,支持章节摘要、全文总结、待办事项、角色识别、方言转普通话、司乘角色分离六个功能点。<br>注意:<br>以下引擎仅支持参数值设置为0:16k_multi_lang、16k_ja、16k_ko、16k_vi、16k_ms、16k_id、16k_fil、16k_th、16k_pt、16k_tr、16k_ar、16k_es、16k_hi、16k_fr、16k_zh_medical、16k_de<br>如果传入参数值4,需确保账号已购买<a href="https://cloud.tencent.com/document/product/1093/35686#97ae4aa0-29a0-4066-9f07-ccaf8856a16b">语义分段资源包</a>,或账号开启后付费;<strong>若当前账号已开启后付费功能,并传入参数值4,将<a href="https://cloud.tencent.com/document/product/1093/35686#d912167d-ffd5-41a9-8b1c-2e89845a6852">自动计费</a></strong><br>如果传入参数值5,需确保账号已购买<a href="https://cloud.tencent.com/document/product/1093/35686#97ae4aa0-29a0-4066-9f07-ccaf8856a16b">口语转书面语资源包</a>,或账号开启后付费;<strong>若当前账号已开启后付费功能,并传入参数值5,将<a href="https://cloud.tencent.com/document/product/1093/35686#d912167d-ffd5-41a9-8b1c-2e89845a6852">自动计费</a></strong><br>如果传入参数值7,需确保账号已开启后付费;<strong>若当前账号已开启后付费功能,并传入参数值7,配合设置Extra中LlmFeatures参数,将根据实际使用的功能点<a href="https://cloud.tencent.com/document/product/1093/35686#d912167d-ffd5-41a9-8b1c-2e89845a6852">计费</a>,如同时使用多项功能,将叠加计费</strong></p>
|
|
799
799
|
:type ResTextFormat: int
|
|
800
800
|
:param _SourceType: <p>音频数据来源<br>0:音频URL;<br>1:音频数据(post body)</p>
|
|
801
801
|
:type SourceType: int
|
|
@@ -831,7 +831,7 @@ class CreateRecTaskRequest(AbstractModel):
|
|
|
831
831
|
:type FilterModal: int
|
|
832
832
|
:param _SentenceMaxLength: <p>单标点最多字数(目前支持中文普通话引擎)<br><strong>可控制单行字幕最大字数,适用于字幕生成场景</strong>,取值范围:[6,40]<br>0:不开启该功能;<br>默认值为0</p><p>注意:需设置ResTextFormat为3,解析返回的ResultDetail列表,通过结构中FinalSentence获取单个标点断句结果</p>
|
|
833
833
|
:type SentenceMaxLength: int
|
|
834
|
-
:param _Extra: <p>传入额外参数,默认为空字符串,如果传入必须是合法的 JSON
|
|
834
|
+
:param _Extra: <p>传入额外参数,默认为空字符串,如果传入必须是合法的 JSON 字符串,用于开启增值能力,目前支持的能力有:</p><ol><li>领域增强:提升特定领域的识别效果</li><li>大模型后处理:支持Abstract(章节摘要)、Summary(全文总结)、TodoList(待办事项)、RoleIdentify(角色识别)、DialectTranslation(方言转普通话)、RideshareSep(司乘角色分离)六个功能点</li></ol><p>下面是每个能力的详细使用说明:</p><p><strong>领域增强Domain</strong>:提升特定领域识别效果</p><ul><li>0:不开启</li><li>1:科技领域</li><li>2:电影领域</li><li>3:歌曲领域<br>默认值为0</li></ul><p><strong>大模型后处理LlmFeatures</strong>:支持Abstract(章节摘要)、Summary(全文总结)、TodoList(待办事项)、RoleIdentify(角色识别)、DialectTranslation(方言转普通话)、RideshareSep(司乘角色分离)六个功能点<br>可填入需要调用的能力,如果一次使用多个功能,用英文逗号隔开,支持功能如下:</p><ul><li><p>Abstract:章节摘要</p></li><li><p>Summary:全文总结</p></li><li><p>TodoList:待办事项</p></li><li><p>RoleIdentify:角色识别</p></li><li><p>DialectTranslation:方言转普通话</p></li><li><p>RideshareSep:司乘角色分离</p></li></ul><p>注意:不同能力可以组合使用。比如如果同时开启科技领域增强,并使用大模型后处理做待办提取,Extra 参数可以是:<br>Extra: {“Domain”: 1, “LlmFeatures”: “TodoList,Summary"}</p>
|
|
835
835
|
:type Extra: str
|
|
836
836
|
:param _HotwordList: <p>临时热词表:该参数用于提升识别准确率。</p><ul><li><p>单个热词限制:"热词|权重",单个热词不超过30个字符(最多10个汉字),权重[1-11]或者100,如:“腾讯云|5” 或“ASR|11”;</p></li><li><p>临时热词表限制:多个热词用英文逗号分割,最多支持128个热词,如:“腾讯云|10,语音识别|5,ASR|11”;</p></li><li><p>参数 hotword_id(热词表) 与 hotword_list(临时热词表) 区别:</p><ul><li><p>hotword_id:热词表。需要先在控制台或接口创建热词表,获得对应hotword_id传入参数来使用热词功能;</p></li><li><p>hotword_list:临时热词表。每次请求时直接传入临时热词表来使用热词功能,云端不保留临时热词表。适用于有极大量热词需求的用户;</p></li></ul></li></ul><p>注意:</p><ul><li><p>如果同时传入了 hotword_id 和 hotword_list,只有hotword_list 生效;</p></li><li><p>热词权重设置为11时,当前热词将升级为超级热词,建议仅将重要且必须生效的热词设置到11,设置过多权重为11的热词将影响整体字准率。</p></li><li><p>热词权重设置为100时,当前热词开启热词增强同音同调替换功能(仅支持8k_zh,16k_zh),举例:热词配置“蜜制|100”时,与“蜜制”同拼音(mizhi)的“秘制”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。建议仅将重要且必须生效的热词设置到100,设置过多权重为100的热词将影响整体字准率。</p></li></ul>
|
|
837
837
|
:type HotwordList: str
|
|
@@ -839,7 +839,7 @@ class CreateRecTaskRequest(AbstractModel):
|
|
|
839
839
|
:type KeyWordLibIdList: list of str
|
|
840
840
|
:param _ReplaceTextId: <p>替换词汇表id, 适用于热词和自学习场景也无法解决的极端case词组, 会对识别结果强制替换。具体可参考<a href="https://console.cloud.tencent.com/asr/replaceword">配置控制台</a>;强制替换功能可能会影响正常识别结果,请谨慎使用</p><p>注意:</p><ol><li>本功能配置完成后,预计在10分钟后生效</li></ol>
|
|
841
841
|
:type ReplaceTextId: str
|
|
842
|
-
:param _SpeakerRoles: <p>开启角色分离能力配合SpeakerDiarization: 3
|
|
842
|
+
:param _SpeakerRoles: <p>开启角色分离能力配合SpeakerDiarization: 3 使用。</p><p>ASR增值服务,<br>使用方式一:<strong>仅可传入一个声纹信息</strong>进行角色认证,仅支持16k_zh_en_2.0和16k_zh_en引擎。需传入SpeakerRoleInfo数据组,确定说话人的角色信息,涉及RoleAudioUrl和RoleName两个参数。 RoleAudioUrl:需要认证角色的声纹音频地址,建议30s内的纯净人声,最长不能超过45s。 RoleName:需要认证角色的名称,若匹配成功,会替换话者分离中的SpeakerID。<br>使用方式二:<strong>可传入一组声纹信息</strong>进行角色认证,仅支持16k_zh_en_meeting引擎。需传入SpeakerRoleInfo数据组,确定说话人的角色信息,涉及VoicePrintId和SpeakerNick两个参数。 VoicePrintId:需要认证角色的声纹ID(需提前进行<a href="https://cloud.tencent.com/document/product/1093/94483">说话人注册</a>),建议30s的纯净人声,最长不能超过45s,有效人声不得低于1s。 SpeakerNick:需要认证角色的名称,会替换话者分离中的SpeakerID,如不传则复用说话人注册时的名称。</p><p> 示例: "{"EngineModelType":"16k_zh_en","ChannelNum":1,"ResTextFormat":1,"SourceType":0,"Url":"需要进行ASR识别的音频链接","SpeakerDiarization":3,"SpeakerRoles":[{"RoleAudioUrl":"需要认证角色的声纹音频地址","RoleName":"需要认证角色的名称"}]}"</p>
|
|
843
843
|
:type SpeakerRoles: list of SpeakerRoleInfo
|
|
844
844
|
"""
|
|
845
845
|
self._EngineModelType = None
|
|
@@ -892,7 +892,7 @@ class CreateRecTaskRequest(AbstractModel):
|
|
|
892
892
|
|
|
893
893
|
@property
|
|
894
894
|
def ResTextFormat(self):
|
|
895
|
-
r"""<p>识别结果返回样式<br>0:基础识别结果(仅包含有效人声时间戳,无词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>);<br>1:基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值,<strong>不含标点</strong>);<br>2:基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值和标点);<br>3:基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值和标点),且识别结果按标点符号分段,<strong>适用字幕场景</strong>;<br>4:<strong>【增值付费功能】</strong>基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值和标点),且识别结果按nlp语义分段,<strong>适用会议、庭审记录转写等场景</strong>,仅支持8k_zh/16k_zh
|
|
895
|
+
r"""<p>识别结果返回样式<br>0:基础识别结果(仅包含有效人声时间戳,无词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>);<br>1:基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值,<strong>不含标点</strong>);<br>2:基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值和标点);<br>3:基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值和标点),且识别结果按标点符号分段,<strong>适用字幕场景</strong>;<br>4:<strong>【增值付费功能】</strong>基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值和标点),且识别结果按nlp语义分段,<strong>适用会议、庭审记录转写等场景</strong>,仅支持8k_zh/16k_zh引擎;<br>5:<strong>【增值付费功能】</strong>基础识别结果之上,增加词粒度的<a href="https://cloud.tencent.com/document/api/1093/37824#SentenceDetail">详细识别结果</a>(包含词级别时间戳、语速值和标点),并输出口语转书面语转写结果,该结果去除语气词、重复词、精简冗余表达,并修正发言人口误,实现口语转书面语的效果,<strong>适用于线上、线下会议直接总结为书面会议纪要的场景</strong>,仅支持8k_zh/16k_zh引擎;<br>7:<strong>【增值付费功能】</strong>基础识别结果之上,增加大模型后处理功能,支持章节摘要、全文总结、待办事项、角色识别、方言转普通话、司乘角色分离六个功能点。<br>注意:<br>以下引擎仅支持参数值设置为0:16k_multi_lang、16k_ja、16k_ko、16k_vi、16k_ms、16k_id、16k_fil、16k_th、16k_pt、16k_tr、16k_ar、16k_es、16k_hi、16k_fr、16k_zh_medical、16k_de<br>如果传入参数值4,需确保账号已购买<a href="https://cloud.tencent.com/document/product/1093/35686#97ae4aa0-29a0-4066-9f07-ccaf8856a16b">语义分段资源包</a>,或账号开启后付费;<strong>若当前账号已开启后付费功能,并传入参数值4,将<a href="https://cloud.tencent.com/document/product/1093/35686#d912167d-ffd5-41a9-8b1c-2e89845a6852">自动计费</a></strong><br>如果传入参数值5,需确保账号已购买<a href="https://cloud.tencent.com/document/product/1093/35686#97ae4aa0-29a0-4066-9f07-ccaf8856a16b">口语转书面语资源包</a>,或账号开启后付费;<strong>若当前账号已开启后付费功能,并传入参数值5,将<a href="https://cloud.tencent.com/document/product/1093/35686#d912167d-ffd5-41a9-8b1c-2e89845a6852">自动计费</a></strong><br>如果传入参数值7,需确保账号已开启后付费;<strong>若当前账号已开启后付费功能,并传入参数值7,配合设置Extra中LlmFeatures参数,将根据实际使用的功能点<a href="https://cloud.tencent.com/document/product/1093/35686#d912167d-ffd5-41a9-8b1c-2e89845a6852">计费</a>,如同时使用多项功能,将叠加计费</strong></p>
|
|
896
896
|
:rtype: int
|
|
897
897
|
"""
|
|
898
898
|
return self._ResTextFormat
|
|
@@ -1094,7 +1094,7 @@ class CreateRecTaskRequest(AbstractModel):
|
|
|
1094
1094
|
|
|
1095
1095
|
@property
|
|
1096
1096
|
def Extra(self):
|
|
1097
|
-
r"""<p>传入额外参数,默认为空字符串,如果传入必须是合法的 JSON
|
|
1097
|
+
r"""<p>传入额外参数,默认为空字符串,如果传入必须是合法的 JSON 字符串,用于开启增值能力,目前支持的能力有:</p><ol><li>领域增强:提升特定领域的识别效果</li><li>大模型后处理:支持Abstract(章节摘要)、Summary(全文总结)、TodoList(待办事项)、RoleIdentify(角色识别)、DialectTranslation(方言转普通话)、RideshareSep(司乘角色分离)六个功能点</li></ol><p>下面是每个能力的详细使用说明:</p><p><strong>领域增强Domain</strong>:提升特定领域识别效果</p><ul><li>0:不开启</li><li>1:科技领域</li><li>2:电影领域</li><li>3:歌曲领域<br>默认值为0</li></ul><p><strong>大模型后处理LlmFeatures</strong>:支持Abstract(章节摘要)、Summary(全文总结)、TodoList(待办事项)、RoleIdentify(角色识别)、DialectTranslation(方言转普通话)、RideshareSep(司乘角色分离)六个功能点<br>可填入需要调用的能力,如果一次使用多个功能,用英文逗号隔开,支持功能如下:</p><ul><li><p>Abstract:章节摘要</p></li><li><p>Summary:全文总结</p></li><li><p>TodoList:待办事项</p></li><li><p>RoleIdentify:角色识别</p></li><li><p>DialectTranslation:方言转普通话</p></li><li><p>RideshareSep:司乘角色分离</p></li></ul><p>注意:不同能力可以组合使用。比如如果同时开启科技领域增强,并使用大模型后处理做待办提取,Extra 参数可以是:<br>Extra: {“Domain”: 1, “LlmFeatures”: “TodoList,Summary"}</p>
|
|
1098
1098
|
:rtype: str
|
|
1099
1099
|
"""
|
|
1100
1100
|
return self._Extra
|
|
@@ -1138,7 +1138,7 @@ class CreateRecTaskRequest(AbstractModel):
|
|
|
1138
1138
|
|
|
1139
1139
|
@property
|
|
1140
1140
|
def SpeakerRoles(self):
|
|
1141
|
-
r"""<p>开启角色分离能力配合SpeakerDiarization: 3
|
|
1141
|
+
r"""<p>开启角色分离能力配合SpeakerDiarization: 3 使用。</p><p>ASR增值服务,<br>使用方式一:<strong>仅可传入一个声纹信息</strong>进行角色认证,仅支持16k_zh_en_2.0和16k_zh_en引擎。需传入SpeakerRoleInfo数据组,确定说话人的角色信息,涉及RoleAudioUrl和RoleName两个参数。 RoleAudioUrl:需要认证角色的声纹音频地址,建议30s内的纯净人声,最长不能超过45s。 RoleName:需要认证角色的名称,若匹配成功,会替换话者分离中的SpeakerID。<br>使用方式二:<strong>可传入一组声纹信息</strong>进行角色认证,仅支持16k_zh_en_meeting引擎。需传入SpeakerRoleInfo数据组,确定说话人的角色信息,涉及VoicePrintId和SpeakerNick两个参数。 VoicePrintId:需要认证角色的声纹ID(需提前进行<a href="https://cloud.tencent.com/document/product/1093/94483">说话人注册</a>),建议30s的纯净人声,最长不能超过45s,有效人声不得低于1s。 SpeakerNick:需要认证角色的名称,会替换话者分离中的SpeakerID,如不传则复用说话人注册时的名称。</p><p> 示例: "{"EngineModelType":"16k_zh_en","ChannelNum":1,"ResTextFormat":1,"SourceType":0,"Url":"需要进行ASR识别的音频链接","SpeakerDiarization":3,"SpeakerRoles":[{"RoleAudioUrl":"需要认证角色的声纹音频地址","RoleName":"需要认证角色的名称"}]}"</p>
|
|
1142
1142
|
:rtype: list of SpeakerRoleInfo
|
|
1143
1143
|
"""
|
|
1144
1144
|
return self._SpeakerRoles
|
|
@@ -1486,16 +1486,14 @@ class DescribeTaskStatusRequest(AbstractModel):
|
|
|
1486
1486
|
|
|
1487
1487
|
def __init__(self):
|
|
1488
1488
|
r"""
|
|
1489
|
-
:param _TaskId:
|
|
1490
|
-
**注意:TaskId有效期为24小时,超过24小时的TaskId请不要再查询。**
|
|
1489
|
+
:param _TaskId: <p>从CreateRecTask接口获取的TaskId,用于获取任务状态与结果。<br><strong>注意:TaskId有效期为24小时,超过24小时的TaskId请不要再查询。</strong></p>
|
|
1491
1490
|
:type TaskId: int
|
|
1492
1491
|
"""
|
|
1493
1492
|
self._TaskId = None
|
|
1494
1493
|
|
|
1495
1494
|
@property
|
|
1496
1495
|
def TaskId(self):
|
|
1497
|
-
r"""
|
|
1498
|
-
**注意:TaskId有效期为24小时,超过24小时的TaskId请不要再查询。**
|
|
1496
|
+
r"""<p>从CreateRecTask接口获取的TaskId,用于获取任务状态与结果。<br><strong>注意:TaskId有效期为24小时,超过24小时的TaskId请不要再查询。</strong></p>
|
|
1499
1497
|
:rtype: int
|
|
1500
1498
|
"""
|
|
1501
1499
|
return self._TaskId
|
|
@@ -1524,7 +1522,7 @@ class DescribeTaskStatusResponse(AbstractModel):
|
|
|
1524
1522
|
|
|
1525
1523
|
def __init__(self):
|
|
1526
1524
|
r"""
|
|
1527
|
-
:param _Data:
|
|
1525
|
+
:param _Data: <p>录音文件识别的请求返回结果。</p>
|
|
1528
1526
|
:type Data: :class:`tencentcloud.asr.v20190614.models.TaskStatus`
|
|
1529
1527
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1530
1528
|
:type RequestId: str
|
|
@@ -1534,7 +1532,7 @@ class DescribeTaskStatusResponse(AbstractModel):
|
|
|
1534
1532
|
|
|
1535
1533
|
@property
|
|
1536
1534
|
def Data(self):
|
|
1537
|
-
r"""
|
|
1535
|
+
r"""<p>录音文件识别的请求返回结果。</p>
|
|
1538
1536
|
:rtype: :class:`tencentcloud.asr.v20190614.models.TaskStatus`
|
|
1539
1537
|
"""
|
|
1540
1538
|
return self._Data
|
|
@@ -2840,6 +2838,72 @@ class KeyWordResult(AbstractModel):
|
|
|
2840
2838
|
|
|
2841
2839
|
|
|
2842
2840
|
|
|
2841
|
+
class LlmResult(AbstractModel):
|
|
2842
|
+
r"""一个能力的名字和结果
|
|
2843
|
+
|
|
2844
|
+
"""
|
|
2845
|
+
|
|
2846
|
+
def __init__(self):
|
|
2847
|
+
r"""
|
|
2848
|
+
:param _Feature: <p>能力名</p>
|
|
2849
|
+
:type Feature: str
|
|
2850
|
+
:param _Result: <p>结果</p>
|
|
2851
|
+
:type Result: str
|
|
2852
|
+
:param _Success: <p>这个能力是否成功得到结果</p>
|
|
2853
|
+
:type Success: bool
|
|
2854
|
+
"""
|
|
2855
|
+
self._Feature = None
|
|
2856
|
+
self._Result = None
|
|
2857
|
+
self._Success = None
|
|
2858
|
+
|
|
2859
|
+
@property
|
|
2860
|
+
def Feature(self):
|
|
2861
|
+
r"""<p>能力名</p>
|
|
2862
|
+
:rtype: str
|
|
2863
|
+
"""
|
|
2864
|
+
return self._Feature
|
|
2865
|
+
|
|
2866
|
+
@Feature.setter
|
|
2867
|
+
def Feature(self, Feature):
|
|
2868
|
+
self._Feature = Feature
|
|
2869
|
+
|
|
2870
|
+
@property
|
|
2871
|
+
def Result(self):
|
|
2872
|
+
r"""<p>结果</p>
|
|
2873
|
+
:rtype: str
|
|
2874
|
+
"""
|
|
2875
|
+
return self._Result
|
|
2876
|
+
|
|
2877
|
+
@Result.setter
|
|
2878
|
+
def Result(self, Result):
|
|
2879
|
+
self._Result = Result
|
|
2880
|
+
|
|
2881
|
+
@property
|
|
2882
|
+
def Success(self):
|
|
2883
|
+
r"""<p>这个能力是否成功得到结果</p>
|
|
2884
|
+
:rtype: bool
|
|
2885
|
+
"""
|
|
2886
|
+
return self._Success
|
|
2887
|
+
|
|
2888
|
+
@Success.setter
|
|
2889
|
+
def Success(self, Success):
|
|
2890
|
+
self._Success = Success
|
|
2891
|
+
|
|
2892
|
+
|
|
2893
|
+
def _deserialize(self, params):
|
|
2894
|
+
self._Feature = params.get("Feature")
|
|
2895
|
+
self._Result = params.get("Result")
|
|
2896
|
+
self._Success = params.get("Success")
|
|
2897
|
+
memeber_set = set(params.keys())
|
|
2898
|
+
for name, value in vars(self).items():
|
|
2899
|
+
property_name = name[1:]
|
|
2900
|
+
if property_name in memeber_set:
|
|
2901
|
+
memeber_set.remove(property_name)
|
|
2902
|
+
if len(memeber_set) > 0:
|
|
2903
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2904
|
+
|
|
2905
|
+
|
|
2906
|
+
|
|
2843
2907
|
class Model(AbstractModel):
|
|
2844
2908
|
r"""[自学习模型信息](https://cloud.tencent.com/document/product/1093/90813#3.-.E8.BE.93.E5.87.BA.E5.8F.82.E6.95.B0)
|
|
2845
2909
|
|
|
@@ -4229,17 +4293,23 @@ class SpeakerRoleInfo(AbstractModel):
|
|
|
4229
4293
|
|
|
4230
4294
|
def __init__(self):
|
|
4231
4295
|
r"""
|
|
4232
|
-
:param _RoleAudioUrl:
|
|
4296
|
+
:param _RoleAudioUrl: <p>音频url地址,建议不超过30秒,最大45秒(配合RoleName字段一起使用,仅限16k_zh_en、16k_zh_en_2.0引擎)</p>
|
|
4233
4297
|
:type RoleAudioUrl: str
|
|
4234
|
-
:param _RoleName:
|
|
4298
|
+
:param _RoleName: <p>不超过30字节(配合RoleAudioUrl字段一起使用,仅限16k_zh_en、16k_zh_en_2.0引擎)</p>
|
|
4235
4299
|
:type RoleName: str
|
|
4300
|
+
:param _VoicePrintId: <p>声纹 ID(与SpeakerNick配合使用,仅限16k_zh_en_meeting引擎支持),注意:- 传入未注册或不属于本 AppId 的声纹 ID,该 ID 会被跳过(不报错,相当于没有传入这个说话人信息)</p>
|
|
4301
|
+
:type VoicePrintId: str
|
|
4302
|
+
:param _SpeakerNick: <p>角色昵称(与VoicePrintId配合使用,仅限16k_zh_en_meeting引擎支持),注意:- 传空字符串或者不传入则使用声纹注册时指定的角色名- 否则将覆盖声纹注册时指定的角色名- 角色名不超过 30 字节,仅支持字母、数字、下划线和中文。- 这里指定的角色名只影响本次识别,不影响声纹库中注册的角色名</p>
|
|
4303
|
+
:type SpeakerNick: str
|
|
4236
4304
|
"""
|
|
4237
4305
|
self._RoleAudioUrl = None
|
|
4238
4306
|
self._RoleName = None
|
|
4307
|
+
self._VoicePrintId = None
|
|
4308
|
+
self._SpeakerNick = None
|
|
4239
4309
|
|
|
4240
4310
|
@property
|
|
4241
4311
|
def RoleAudioUrl(self):
|
|
4242
|
-
r"""
|
|
4312
|
+
r"""<p>音频url地址,建议不超过30秒,最大45秒(配合RoleName字段一起使用,仅限16k_zh_en、16k_zh_en_2.0引擎)</p>
|
|
4243
4313
|
:rtype: str
|
|
4244
4314
|
"""
|
|
4245
4315
|
return self._RoleAudioUrl
|
|
@@ -4250,7 +4320,7 @@ class SpeakerRoleInfo(AbstractModel):
|
|
|
4250
4320
|
|
|
4251
4321
|
@property
|
|
4252
4322
|
def RoleName(self):
|
|
4253
|
-
r"""
|
|
4323
|
+
r"""<p>不超过30字节(配合RoleAudioUrl字段一起使用,仅限16k_zh_en、16k_zh_en_2.0引擎)</p>
|
|
4254
4324
|
:rtype: str
|
|
4255
4325
|
"""
|
|
4256
4326
|
return self._RoleName
|
|
@@ -4259,10 +4329,34 @@ class SpeakerRoleInfo(AbstractModel):
|
|
|
4259
4329
|
def RoleName(self, RoleName):
|
|
4260
4330
|
self._RoleName = RoleName
|
|
4261
4331
|
|
|
4332
|
+
@property
|
|
4333
|
+
def VoicePrintId(self):
|
|
4334
|
+
r"""<p>声纹 ID(与SpeakerNick配合使用,仅限16k_zh_en_meeting引擎支持),注意:- 传入未注册或不属于本 AppId 的声纹 ID,该 ID 会被跳过(不报错,相当于没有传入这个说话人信息)</p>
|
|
4335
|
+
:rtype: str
|
|
4336
|
+
"""
|
|
4337
|
+
return self._VoicePrintId
|
|
4338
|
+
|
|
4339
|
+
@VoicePrintId.setter
|
|
4340
|
+
def VoicePrintId(self, VoicePrintId):
|
|
4341
|
+
self._VoicePrintId = VoicePrintId
|
|
4342
|
+
|
|
4343
|
+
@property
|
|
4344
|
+
def SpeakerNick(self):
|
|
4345
|
+
r"""<p>角色昵称(与VoicePrintId配合使用,仅限16k_zh_en_meeting引擎支持),注意:- 传空字符串或者不传入则使用声纹注册时指定的角色名- 否则将覆盖声纹注册时指定的角色名- 角色名不超过 30 字节,仅支持字母、数字、下划线和中文。- 这里指定的角色名只影响本次识别,不影响声纹库中注册的角色名</p>
|
|
4346
|
+
:rtype: str
|
|
4347
|
+
"""
|
|
4348
|
+
return self._SpeakerNick
|
|
4349
|
+
|
|
4350
|
+
@SpeakerNick.setter
|
|
4351
|
+
def SpeakerNick(self, SpeakerNick):
|
|
4352
|
+
self._SpeakerNick = SpeakerNick
|
|
4353
|
+
|
|
4262
4354
|
|
|
4263
4355
|
def _deserialize(self, params):
|
|
4264
4356
|
self._RoleAudioUrl = params.get("RoleAudioUrl")
|
|
4265
4357
|
self._RoleName = params.get("RoleName")
|
|
4358
|
+
self._VoicePrintId = params.get("VoicePrintId")
|
|
4359
|
+
self._SpeakerNick = params.get("SpeakerNick")
|
|
4266
4360
|
memeber_set = set(params.keys())
|
|
4267
4361
|
for name, value in vars(self).items():
|
|
4268
4362
|
property_name = name[1:]
|
|
@@ -4334,6 +4428,8 @@ class TaskStatus(AbstractModel):
|
|
|
4334
4428
|
:param _AudioDuration: 音频时长(秒)。
|
|
4335
4429
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4336
4430
|
:type AudioDuration: float
|
|
4431
|
+
:param _LlmResults: 大模型后处理结果
|
|
4432
|
+
:type LlmResults: list of LlmResult
|
|
4337
4433
|
"""
|
|
4338
4434
|
self._TaskId = None
|
|
4339
4435
|
self._Status = None
|
|
@@ -4342,6 +4438,7 @@ class TaskStatus(AbstractModel):
|
|
|
4342
4438
|
self._ErrorMsg = None
|
|
4343
4439
|
self._ResultDetail = None
|
|
4344
4440
|
self._AudioDuration = None
|
|
4441
|
+
self._LlmResults = None
|
|
4345
4442
|
|
|
4346
4443
|
@property
|
|
4347
4444
|
def TaskId(self):
|
|
@@ -4422,6 +4519,17 @@ class TaskStatus(AbstractModel):
|
|
|
4422
4519
|
def AudioDuration(self, AudioDuration):
|
|
4423
4520
|
self._AudioDuration = AudioDuration
|
|
4424
4521
|
|
|
4522
|
+
@property
|
|
4523
|
+
def LlmResults(self):
|
|
4524
|
+
r"""大模型后处理结果
|
|
4525
|
+
:rtype: list of LlmResult
|
|
4526
|
+
"""
|
|
4527
|
+
return self._LlmResults
|
|
4528
|
+
|
|
4529
|
+
@LlmResults.setter
|
|
4530
|
+
def LlmResults(self, LlmResults):
|
|
4531
|
+
self._LlmResults = LlmResults
|
|
4532
|
+
|
|
4425
4533
|
|
|
4426
4534
|
def _deserialize(self, params):
|
|
4427
4535
|
self._TaskId = params.get("TaskId")
|
|
@@ -4436,6 +4544,12 @@ class TaskStatus(AbstractModel):
|
|
|
4436
4544
|
obj._deserialize(item)
|
|
4437
4545
|
self._ResultDetail.append(obj)
|
|
4438
4546
|
self._AudioDuration = params.get("AudioDuration")
|
|
4547
|
+
if params.get("LlmResults") is not None:
|
|
4548
|
+
self._LlmResults = []
|
|
4549
|
+
for item in params.get("LlmResults"):
|
|
4550
|
+
obj = LlmResult()
|
|
4551
|
+
obj._deserialize(item)
|
|
4552
|
+
self._LlmResults.append(obj)
|
|
4439
4553
|
memeber_set = set(params.keys())
|
|
4440
4554
|
for name, value in vars(self).items():
|
|
4441
4555
|
property_name = name[1:]
|
|
@@ -164,6 +164,29 @@ class CfgClient(AbstractClient):
|
|
|
164
164
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
165
165
|
|
|
166
166
|
|
|
167
|
+
def DescribeInstanceAgentList(self, request):
|
|
168
|
+
r"""查询探针列表,换为OTeam探针版本
|
|
169
|
+
|
|
170
|
+
:param request: Request instance for DescribeInstanceAgentList.
|
|
171
|
+
:type request: :class:`tencentcloud.cfg.v20210820.models.DescribeInstanceAgentListRequest`
|
|
172
|
+
:rtype: :class:`tencentcloud.cfg.v20210820.models.DescribeInstanceAgentListResponse`
|
|
173
|
+
|
|
174
|
+
"""
|
|
175
|
+
try:
|
|
176
|
+
params = request._serialize()
|
|
177
|
+
headers = request.headers
|
|
178
|
+
body = self.call("DescribeInstanceAgentList", params, headers=headers)
|
|
179
|
+
response = json.loads(body)
|
|
180
|
+
model = models.DescribeInstanceAgentListResponse()
|
|
181
|
+
model._deserialize(response["Response"])
|
|
182
|
+
return model
|
|
183
|
+
except Exception as e:
|
|
184
|
+
if isinstance(e, TencentCloudSDKException):
|
|
185
|
+
raise
|
|
186
|
+
else:
|
|
187
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
188
|
+
|
|
189
|
+
|
|
167
190
|
def DescribeObjectTypeList(self, request):
|
|
168
191
|
r"""查询对象类型列表
|
|
169
192
|
|
|
@@ -371,6 +394,29 @@ class CfgClient(AbstractClient):
|
|
|
371
394
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
372
395
|
|
|
373
396
|
|
|
397
|
+
def InstallAgentOpenApi(self, request):
|
|
398
|
+
r"""安装探针接口
|
|
399
|
+
|
|
400
|
+
:param request: Request instance for InstallAgentOpenApi.
|
|
401
|
+
:type request: :class:`tencentcloud.cfg.v20210820.models.InstallAgentOpenApiRequest`
|
|
402
|
+
:rtype: :class:`tencentcloud.cfg.v20210820.models.InstallAgentOpenApiResponse`
|
|
403
|
+
|
|
404
|
+
"""
|
|
405
|
+
try:
|
|
406
|
+
params = request._serialize()
|
|
407
|
+
headers = request.headers
|
|
408
|
+
body = self.call("InstallAgentOpenApi", params, headers=headers)
|
|
409
|
+
response = json.loads(body)
|
|
410
|
+
model = models.InstallAgentOpenApiResponse()
|
|
411
|
+
model._deserialize(response["Response"])
|
|
412
|
+
return model
|
|
413
|
+
except Exception as e:
|
|
414
|
+
if isinstance(e, TencentCloudSDKException):
|
|
415
|
+
raise
|
|
416
|
+
else:
|
|
417
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
418
|
+
|
|
419
|
+
|
|
374
420
|
def ModifyTaskRunStatus(self, request):
|
|
375
421
|
r"""修改任务运行状态
|
|
376
422
|
|
|
@@ -410,6 +456,29 @@ class CfgClient(AbstractClient):
|
|
|
410
456
|
model = models.TriggerPolicyResponse()
|
|
411
457
|
model._deserialize(response["Response"])
|
|
412
458
|
return model
|
|
459
|
+
except Exception as e:
|
|
460
|
+
if isinstance(e, TencentCloudSDKException):
|
|
461
|
+
raise
|
|
462
|
+
else:
|
|
463
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
def UninstallAgentOpenApi(self, request):
|
|
467
|
+
r"""卸载探针
|
|
468
|
+
|
|
469
|
+
:param request: Request instance for UninstallAgentOpenApi.
|
|
470
|
+
:type request: :class:`tencentcloud.cfg.v20210820.models.UninstallAgentOpenApiRequest`
|
|
471
|
+
:rtype: :class:`tencentcloud.cfg.v20210820.models.UninstallAgentOpenApiResponse`
|
|
472
|
+
|
|
473
|
+
"""
|
|
474
|
+
try:
|
|
475
|
+
params = request._serialize()
|
|
476
|
+
headers = request.headers
|
|
477
|
+
body = self.call("UninstallAgentOpenApi", params, headers=headers)
|
|
478
|
+
response = json.loads(body)
|
|
479
|
+
model = models.UninstallAgentOpenApiResponse()
|
|
480
|
+
model._deserialize(response["Response"])
|
|
481
|
+
return model
|
|
413
482
|
except Exception as e:
|
|
414
483
|
if isinstance(e, TencentCloudSDKException):
|
|
415
484
|
raise
|
|
@@ -133,6 +133,24 @@ class CfgClient(AbstractClient):
|
|
|
133
133
|
|
|
134
134
|
return await self.call_and_deserialize(**kwargs)
|
|
135
135
|
|
|
136
|
+
async def DescribeInstanceAgentList(
|
|
137
|
+
self,
|
|
138
|
+
request: models.DescribeInstanceAgentListRequest,
|
|
139
|
+
opts: Dict = None,
|
|
140
|
+
) -> models.DescribeInstanceAgentListResponse:
|
|
141
|
+
"""
|
|
142
|
+
查询探针列表,换为OTeam探针版本
|
|
143
|
+
"""
|
|
144
|
+
|
|
145
|
+
kwargs = {}
|
|
146
|
+
kwargs["action"] = "DescribeInstanceAgentList"
|
|
147
|
+
kwargs["params"] = request._serialize()
|
|
148
|
+
kwargs["resp_cls"] = models.DescribeInstanceAgentListResponse
|
|
149
|
+
kwargs["headers"] = request.headers
|
|
150
|
+
kwargs["opts"] = opts or {}
|
|
151
|
+
|
|
152
|
+
return await self.call_and_deserialize(**kwargs)
|
|
153
|
+
|
|
136
154
|
async def DescribeObjectTypeList(
|
|
137
155
|
self,
|
|
138
156
|
request: models.DescribeObjectTypeListRequest,
|
|
@@ -295,6 +313,24 @@ class CfgClient(AbstractClient):
|
|
|
295
313
|
|
|
296
314
|
return await self.call_and_deserialize(**kwargs)
|
|
297
315
|
|
|
316
|
+
async def InstallAgentOpenApi(
|
|
317
|
+
self,
|
|
318
|
+
request: models.InstallAgentOpenApiRequest,
|
|
319
|
+
opts: Dict = None,
|
|
320
|
+
) -> models.InstallAgentOpenApiResponse:
|
|
321
|
+
"""
|
|
322
|
+
安装探针接口
|
|
323
|
+
"""
|
|
324
|
+
|
|
325
|
+
kwargs = {}
|
|
326
|
+
kwargs["action"] = "InstallAgentOpenApi"
|
|
327
|
+
kwargs["params"] = request._serialize()
|
|
328
|
+
kwargs["resp_cls"] = models.InstallAgentOpenApiResponse
|
|
329
|
+
kwargs["headers"] = request.headers
|
|
330
|
+
kwargs["opts"] = opts or {}
|
|
331
|
+
|
|
332
|
+
return await self.call_and_deserialize(**kwargs)
|
|
333
|
+
|
|
298
334
|
async def ModifyTaskRunStatus(
|
|
299
335
|
self,
|
|
300
336
|
request: models.ModifyTaskRunStatusRequest,
|
|
@@ -329,4 +365,22 @@ class CfgClient(AbstractClient):
|
|
|
329
365
|
kwargs["headers"] = request.headers
|
|
330
366
|
kwargs["opts"] = opts or {}
|
|
331
367
|
|
|
368
|
+
return await self.call_and_deserialize(**kwargs)
|
|
369
|
+
|
|
370
|
+
async def UninstallAgentOpenApi(
|
|
371
|
+
self,
|
|
372
|
+
request: models.UninstallAgentOpenApiRequest,
|
|
373
|
+
opts: Dict = None,
|
|
374
|
+
) -> models.UninstallAgentOpenApiResponse:
|
|
375
|
+
"""
|
|
376
|
+
卸载探针
|
|
377
|
+
"""
|
|
378
|
+
|
|
379
|
+
kwargs = {}
|
|
380
|
+
kwargs["action"] = "UninstallAgentOpenApi"
|
|
381
|
+
kwargs["params"] = request._serialize()
|
|
382
|
+
kwargs["resp_cls"] = models.UninstallAgentOpenApiResponse
|
|
383
|
+
kwargs["headers"] = request.headers
|
|
384
|
+
kwargs["opts"] = opts or {}
|
|
385
|
+
|
|
332
386
|
return await self.call_and_deserialize(**kwargs)
|