tencentcloud-sdk-python 3.0.1174__py2.py3-none-any.whl → 3.0.1176__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tencentcloud/__init__.py +1 -1
- tencentcloud/asr/v20190614/asr_client.py +23 -0
- tencentcloud/asr/v20190614/errorcodes.py +3 -0
- tencentcloud/asr/v20190614/models.py +317 -0
- tencentcloud/cls/v20201016/models.py +157 -0
- tencentcloud/cwp/v20180228/cwp_client.py +0 -25
- tencentcloud/cwp/v20180228/models.py +0 -70
- tencentcloud/cynosdb/v20190107/models.py +13 -0
- tencentcloud/dlc/v20210125/dlc_client.py +23 -0
- tencentcloud/dlc/v20210125/models.py +226 -1
- tencentcloud/dts/v20211206/models.py +3 -3
- tencentcloud/ess/v20201111/models.py +4 -0
- tencentcloud/essbasic/v20210526/models.py +13 -3
- tencentcloud/faceid/v20180301/models.py +1 -16
- tencentcloud/ioa/v20220601/ioa_client.py +69 -0
- tencentcloud/ioa/v20220601/models.py +1239 -63
- tencentcloud/iotexplorer/v20190423/errorcodes.py +3 -0
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +92 -0
- tencentcloud/iotexplorer/v20190423/models.py +496 -0
- tencentcloud/lighthouse/v20200324/errorcodes.py +15 -0
- tencentcloud/lighthouse/v20200324/lighthouse_client.py +1 -1
- tencentcloud/lighthouse/v20200324/models.py +11 -8
- tencentcloud/live/v20180801/models.py +13 -0
- tencentcloud/lke/v20231130/errorcodes.py +3 -0
- tencentcloud/lke/v20231130/lke_client.py +69 -0
- tencentcloud/lke/v20231130/models.py +605 -5
- tencentcloud/ocr/v20181119/ocr_client.py +4 -2
- tencentcloud/partners/v20180321/models.py +13 -0
- tencentcloud/tcr/v20190924/models.py +13 -0
- tencentcloud/tcss/v20201101/models.py +150 -27
- tencentcloud/tdmq/v20200217/models.py +427 -0
- tencentcloud/tdmq/v20200217/tdmq_client.py +23 -0
- tencentcloud/tke/v20180525/models.py +12 -0
- tencentcloud/trocket/v20230308/models.py +290 -0
- tencentcloud/trocket/v20230308/trocket_client.py +23 -0
- tencentcloud/trtc/v20190722/models.py +25 -5
- tencentcloud/tsi/__init__.py +0 -0
- tencentcloud/tsi/v20210325/__init__.py +0 -0
- tencentcloud/tsi/v20210325/errorcodes.py +33 -0
- tencentcloud/tsi/v20210325/models.py +547 -0
- tencentcloud/tsi/v20210325/tsi_client.py +95 -0
- tencentcloud/tts/v20190823/models.py +2 -2
- tencentcloud/vpc/v20170312/errorcodes.py +3 -0
- tencentcloud/vpc/v20170312/models.py +26 -2
- tencentcloud/vpc/v20170312/vpc_client.py +4 -4
- tencentcloud/waf/v20180125/models.py +108 -0
- tencentcloud/waf/v20180125/waf_client.py +23 -0
- tencentcloud/wedata/v20210820/models.py +539 -0
- tencentcloud/wedata/v20210820/wedata_client.py +23 -0
- {tencentcloud_sdk_python-3.0.1174.dist-info → tencentcloud_sdk_python-3.0.1176.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1174.dist-info → tencentcloud_sdk_python-3.0.1176.dist-info}/RECORD +54 -49
- {tencentcloud_sdk_python-3.0.1174.dist-info → tencentcloud_sdk_python-3.0.1176.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1174.dist-info → tencentcloud_sdk_python-3.0.1176.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1174.dist-info → tencentcloud_sdk_python-3.0.1176.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -613,6 +613,29 @@ class AsrClient(AbstractClient):
|
|
613
613
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
614
614
|
|
615
615
|
|
616
|
+
def VoicePrintGroupVerify(self, request):
|
617
|
+
"""说话人验证1:N接口,可以通过传入一段说话人音频,并且指定已存在的groupId, 和返回topN, 接口返回groupId内所有声纹和传入音频声纹比对打分TopN的结果。
|
618
|
+
|
619
|
+
:param request: Request instance for VoicePrintGroupVerify.
|
620
|
+
:type request: :class:`tencentcloud.asr.v20190614.models.VoicePrintGroupVerifyRequest`
|
621
|
+
:rtype: :class:`tencentcloud.asr.v20190614.models.VoicePrintGroupVerifyResponse`
|
622
|
+
|
623
|
+
"""
|
624
|
+
try:
|
625
|
+
params = request._serialize()
|
626
|
+
headers = request.headers
|
627
|
+
body = self.call("VoicePrintGroupVerify", params, headers=headers)
|
628
|
+
response = json.loads(body)
|
629
|
+
model = models.VoicePrintGroupVerifyResponse()
|
630
|
+
model._deserialize(response["Response"])
|
631
|
+
return model
|
632
|
+
except Exception as e:
|
633
|
+
if isinstance(e, TencentCloudSDKException):
|
634
|
+
raise
|
635
|
+
else:
|
636
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
637
|
+
|
638
|
+
|
616
639
|
def VoicePrintUpdate(self, request):
|
617
640
|
"""本接口用于更新和覆盖已注册的音频数据和说话人昵称,更新后原有的音频数据将失效。
|
618
641
|
|
@@ -128,6 +128,9 @@ INVALIDPARAMETER_ERRORPARAMSMISSING = 'InvalidParameter.ErrorParamsMissing'
|
|
128
128
|
# 解析请求数据失败。
|
129
129
|
INVALIDPARAMETER_ERRORPARSEQUEST = 'InvalidParameter.ErrorParsequest'
|
130
130
|
|
131
|
+
# 音频解码失败,请检查音频格式是否正确
|
132
|
+
INVALIDPARAMETER_FAILEDVOICEPRINTDECODE = 'InvalidParameter.FailedVoicePrintDecode'
|
133
|
+
|
131
134
|
# 文件编码错误。
|
132
135
|
INVALIDPARAMETER_FILEENCODE = 'InvalidParameter.FileEncode'
|
133
136
|
|
@@ -3238,6 +3238,105 @@ class UpdateAsrVocabResponse(AbstractModel):
|
|
3238
3238
|
self._RequestId = params.get("RequestId")
|
3239
3239
|
|
3240
3240
|
|
3241
|
+
class VerifyTop(AbstractModel):
|
3242
|
+
"""声纹组对比结果top数据
|
3243
|
+
|
3244
|
+
"""
|
3245
|
+
|
3246
|
+
def __init__(self):
|
3247
|
+
r"""
|
3248
|
+
:param _Score: 相似度打分
|
3249
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3250
|
+
:type Score: str
|
3251
|
+
:param _VoicePrintId: 说话人id
|
3252
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3253
|
+
:type VoicePrintId: str
|
3254
|
+
:param _SpeakerId: 说话人昵称
|
3255
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3256
|
+
:type SpeakerId: str
|
3257
|
+
"""
|
3258
|
+
self._Score = None
|
3259
|
+
self._VoicePrintId = None
|
3260
|
+
self._SpeakerId = None
|
3261
|
+
|
3262
|
+
@property
|
3263
|
+
def Score(self):
|
3264
|
+
return self._Score
|
3265
|
+
|
3266
|
+
@Score.setter
|
3267
|
+
def Score(self, Score):
|
3268
|
+
self._Score = Score
|
3269
|
+
|
3270
|
+
@property
|
3271
|
+
def VoicePrintId(self):
|
3272
|
+
return self._VoicePrintId
|
3273
|
+
|
3274
|
+
@VoicePrintId.setter
|
3275
|
+
def VoicePrintId(self, VoicePrintId):
|
3276
|
+
self._VoicePrintId = VoicePrintId
|
3277
|
+
|
3278
|
+
@property
|
3279
|
+
def SpeakerId(self):
|
3280
|
+
return self._SpeakerId
|
3281
|
+
|
3282
|
+
@SpeakerId.setter
|
3283
|
+
def SpeakerId(self, SpeakerId):
|
3284
|
+
self._SpeakerId = SpeakerId
|
3285
|
+
|
3286
|
+
|
3287
|
+
def _deserialize(self, params):
|
3288
|
+
self._Score = params.get("Score")
|
3289
|
+
self._VoicePrintId = params.get("VoicePrintId")
|
3290
|
+
self._SpeakerId = params.get("SpeakerId")
|
3291
|
+
memeber_set = set(params.keys())
|
3292
|
+
for name, value in vars(self).items():
|
3293
|
+
property_name = name[1:]
|
3294
|
+
if property_name in memeber_set:
|
3295
|
+
memeber_set.remove(property_name)
|
3296
|
+
if len(memeber_set) > 0:
|
3297
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3298
|
+
|
3299
|
+
|
3300
|
+
|
3301
|
+
class VerifyTopResult(AbstractModel):
|
3302
|
+
"""说话人验证1:N返回结果
|
3303
|
+
|
3304
|
+
"""
|
3305
|
+
|
3306
|
+
def __init__(self):
|
3307
|
+
r"""
|
3308
|
+
:param _VerifyTops: 对比打分结果,按照打分降序排列返回
|
3309
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3310
|
+
:type VerifyTops: list of VerifyTop
|
3311
|
+
"""
|
3312
|
+
self._VerifyTops = None
|
3313
|
+
|
3314
|
+
@property
|
3315
|
+
def VerifyTops(self):
|
3316
|
+
return self._VerifyTops
|
3317
|
+
|
3318
|
+
@VerifyTops.setter
|
3319
|
+
def VerifyTops(self, VerifyTops):
|
3320
|
+
self._VerifyTops = VerifyTops
|
3321
|
+
|
3322
|
+
|
3323
|
+
def _deserialize(self, params):
|
3324
|
+
if params.get("VerifyTops") is not None:
|
3325
|
+
self._VerifyTops = []
|
3326
|
+
for item in params.get("VerifyTops"):
|
3327
|
+
obj = VerifyTop()
|
3328
|
+
obj._deserialize(item)
|
3329
|
+
self._VerifyTops.append(obj)
|
3330
|
+
memeber_set = set(params.keys())
|
3331
|
+
for name, value in vars(self).items():
|
3332
|
+
property_name = name[1:]
|
3333
|
+
if property_name in memeber_set:
|
3334
|
+
memeber_set.remove(property_name)
|
3335
|
+
if len(memeber_set) > 0:
|
3336
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3337
|
+
|
3338
|
+
|
3339
|
+
|
3241
3340
|
class Vocab(AbstractModel):
|
3242
3341
|
"""[词表内容](https://cloud.tencent.com/document/product/1093/41484#3.-.E8.BE.93.E5.87.BA.E5.8F.82.E6.95.B0)
|
3243
3342
|
|
@@ -3573,8 +3672,12 @@ class VoicePrintCountData(AbstractModel):
|
|
3573
3672
|
:param _Total: 总数
|
3574
3673
|
注意:此字段可能返回 null,表示取不到有效值。
|
3575
3674
|
:type Total: int
|
3675
|
+
:param _VoicePrintList: 说话人id列表
|
3676
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3677
|
+
:type VoicePrintList: list of VoicePrintBaseData
|
3576
3678
|
"""
|
3577
3679
|
self._Total = None
|
3680
|
+
self._VoicePrintList = None
|
3578
3681
|
|
3579
3682
|
@property
|
3580
3683
|
def Total(self):
|
@@ -3584,9 +3687,23 @@ class VoicePrintCountData(AbstractModel):
|
|
3584
3687
|
def Total(self, Total):
|
3585
3688
|
self._Total = Total
|
3586
3689
|
|
3690
|
+
@property
|
3691
|
+
def VoicePrintList(self):
|
3692
|
+
return self._VoicePrintList
|
3693
|
+
|
3694
|
+
@VoicePrintList.setter
|
3695
|
+
def VoicePrintList(self, VoicePrintList):
|
3696
|
+
self._VoicePrintList = VoicePrintList
|
3697
|
+
|
3587
3698
|
|
3588
3699
|
def _deserialize(self, params):
|
3589
3700
|
self._Total = params.get("Total")
|
3701
|
+
if params.get("VoicePrintList") is not None:
|
3702
|
+
self._VoicePrintList = []
|
3703
|
+
for item in params.get("VoicePrintList"):
|
3704
|
+
obj = VoicePrintBaseData()
|
3705
|
+
obj._deserialize(item)
|
3706
|
+
self._VoicePrintList.append(obj)
|
3590
3707
|
memeber_set = set(params.keys())
|
3591
3708
|
for name, value in vars(self).items():
|
3592
3709
|
property_name = name[1:]
|
@@ -3602,6 +3719,47 @@ class VoicePrintCountRequest(AbstractModel):
|
|
3602
3719
|
|
3603
3720
|
"""
|
3604
3721
|
|
3722
|
+
def __init__(self):
|
3723
|
+
r"""
|
3724
|
+
:param _GroupId: 分组ID,仅支持大小写字母和下划线的组合,不超过128个字符
|
3725
|
+
:type GroupId: str
|
3726
|
+
:param _CountMod: 统计模式
|
3727
|
+
0: 统计所有声纹数量
|
3728
|
+
1: 统计指定分组下的声纹数量
|
3729
|
+
:type CountMod: int
|
3730
|
+
"""
|
3731
|
+
self._GroupId = None
|
3732
|
+
self._CountMod = None
|
3733
|
+
|
3734
|
+
@property
|
3735
|
+
def GroupId(self):
|
3736
|
+
return self._GroupId
|
3737
|
+
|
3738
|
+
@GroupId.setter
|
3739
|
+
def GroupId(self, GroupId):
|
3740
|
+
self._GroupId = GroupId
|
3741
|
+
|
3742
|
+
@property
|
3743
|
+
def CountMod(self):
|
3744
|
+
return self._CountMod
|
3745
|
+
|
3746
|
+
@CountMod.setter
|
3747
|
+
def CountMod(self, CountMod):
|
3748
|
+
self._CountMod = CountMod
|
3749
|
+
|
3750
|
+
|
3751
|
+
def _deserialize(self, params):
|
3752
|
+
self._GroupId = params.get("GroupId")
|
3753
|
+
self._CountMod = params.get("CountMod")
|
3754
|
+
memeber_set = set(params.keys())
|
3755
|
+
for name, value in vars(self).items():
|
3756
|
+
property_name = name[1:]
|
3757
|
+
if property_name in memeber_set:
|
3758
|
+
memeber_set.remove(property_name)
|
3759
|
+
if len(memeber_set) > 0:
|
3760
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3761
|
+
|
3762
|
+
|
3605
3763
|
|
3606
3764
|
class VoicePrintCountResponse(AbstractModel):
|
3607
3765
|
"""VoicePrintCount返回参数结构体
|
@@ -3651,8 +3809,17 @@ class VoicePrintDeleteRequest(AbstractModel):
|
|
3651
3809
|
r"""
|
3652
3810
|
:param _VoicePrintId: 说话人id,说话人唯一标识
|
3653
3811
|
:type VoicePrintId: str
|
3812
|
+
:param _GroupId: 说话人分组ID,仅支持大小写字母和下划线的组合,不超过128个字符
|
3813
|
+
:type GroupId: str
|
3814
|
+
:param _DelMod: 删除模式:
|
3815
|
+
0.默认值,删除该条声纹
|
3816
|
+
1.从分组中删除该条声纹,声纹本身不删除
|
3817
|
+
2.从声纹库中删除分组,仅删除分组信息,不会真正删除分组中的声纹
|
3818
|
+
:type DelMod: int
|
3654
3819
|
"""
|
3655
3820
|
self._VoicePrintId = None
|
3821
|
+
self._GroupId = None
|
3822
|
+
self._DelMod = None
|
3656
3823
|
|
3657
3824
|
@property
|
3658
3825
|
def VoicePrintId(self):
|
@@ -3662,9 +3829,27 @@ class VoicePrintDeleteRequest(AbstractModel):
|
|
3662
3829
|
def VoicePrintId(self, VoicePrintId):
|
3663
3830
|
self._VoicePrintId = VoicePrintId
|
3664
3831
|
|
3832
|
+
@property
|
3833
|
+
def GroupId(self):
|
3834
|
+
return self._GroupId
|
3835
|
+
|
3836
|
+
@GroupId.setter
|
3837
|
+
def GroupId(self, GroupId):
|
3838
|
+
self._GroupId = GroupId
|
3839
|
+
|
3840
|
+
@property
|
3841
|
+
def DelMod(self):
|
3842
|
+
return self._DelMod
|
3843
|
+
|
3844
|
+
@DelMod.setter
|
3845
|
+
def DelMod(self, DelMod):
|
3846
|
+
self._DelMod = DelMod
|
3847
|
+
|
3665
3848
|
|
3666
3849
|
def _deserialize(self, params):
|
3667
3850
|
self._VoicePrintId = params.get("VoicePrintId")
|
3851
|
+
self._GroupId = params.get("GroupId")
|
3852
|
+
self._DelMod = params.get("DelMod")
|
3668
3853
|
memeber_set = set(params.keys())
|
3669
3854
|
for name, value in vars(self).items():
|
3670
3855
|
property_name = name[1:]
|
@@ -3729,11 +3914,14 @@ class VoicePrintEnrollRequest(AbstractModel):
|
|
3729
3914
|
:type Data: str
|
3730
3915
|
:param _SpeakerNick: 说话人昵称 不超过32字节
|
3731
3916
|
:type SpeakerNick: str
|
3917
|
+
:param _GroupId: 分组id, 仅支持大小写字母和下划线的组合,不超过128个字符
|
3918
|
+
:type GroupId: str
|
3732
3919
|
"""
|
3733
3920
|
self._VoiceFormat = None
|
3734
3921
|
self._SampleRate = None
|
3735
3922
|
self._Data = None
|
3736
3923
|
self._SpeakerNick = None
|
3924
|
+
self._GroupId = None
|
3737
3925
|
|
3738
3926
|
@property
|
3739
3927
|
def VoiceFormat(self):
|
@@ -3767,12 +3955,21 @@ class VoicePrintEnrollRequest(AbstractModel):
|
|
3767
3955
|
def SpeakerNick(self, SpeakerNick):
|
3768
3956
|
self._SpeakerNick = SpeakerNick
|
3769
3957
|
|
3958
|
+
@property
|
3959
|
+
def GroupId(self):
|
3960
|
+
return self._GroupId
|
3961
|
+
|
3962
|
+
@GroupId.setter
|
3963
|
+
def GroupId(self, GroupId):
|
3964
|
+
self._GroupId = GroupId
|
3965
|
+
|
3770
3966
|
|
3771
3967
|
def _deserialize(self, params):
|
3772
3968
|
self._VoiceFormat = params.get("VoiceFormat")
|
3773
3969
|
self._SampleRate = params.get("SampleRate")
|
3774
3970
|
self._Data = params.get("Data")
|
3775
3971
|
self._SpeakerNick = params.get("SpeakerNick")
|
3972
|
+
self._GroupId = params.get("GroupId")
|
3776
3973
|
memeber_set = set(params.keys())
|
3777
3974
|
for name, value in vars(self).items():
|
3778
3975
|
property_name = name[1:]
|
@@ -3822,6 +4019,126 @@ class VoicePrintEnrollResponse(AbstractModel):
|
|
3822
4019
|
self._RequestId = params.get("RequestId")
|
3823
4020
|
|
3824
4021
|
|
4022
|
+
class VoicePrintGroupVerifyRequest(AbstractModel):
|
4023
|
+
"""VoicePrintGroupVerify请求参数结构体
|
4024
|
+
|
4025
|
+
"""
|
4026
|
+
|
4027
|
+
def __init__(self):
|
4028
|
+
r"""
|
4029
|
+
:param _VoiceFormat: 音频格式 0: pcm, 1: wav
|
4030
|
+
:type VoiceFormat: int
|
4031
|
+
:param _SampleRate: 音频采样率,目前支持16000,单位:Hz,必填
|
4032
|
+
:type SampleRate: int
|
4033
|
+
:param _Data: 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M
|
4034
|
+
:type Data: str
|
4035
|
+
:param _GroupId: 分组id, 支持数字,字母,下划线,长度不超过128
|
4036
|
+
:type GroupId: str
|
4037
|
+
:param _TopN: 返回打分结果降序排列topN, TopN大于0, 小于可创建声纹最大数量
|
4038
|
+
:type TopN: int
|
4039
|
+
"""
|
4040
|
+
self._VoiceFormat = None
|
4041
|
+
self._SampleRate = None
|
4042
|
+
self._Data = None
|
4043
|
+
self._GroupId = None
|
4044
|
+
self._TopN = None
|
4045
|
+
|
4046
|
+
@property
|
4047
|
+
def VoiceFormat(self):
|
4048
|
+
return self._VoiceFormat
|
4049
|
+
|
4050
|
+
@VoiceFormat.setter
|
4051
|
+
def VoiceFormat(self, VoiceFormat):
|
4052
|
+
self._VoiceFormat = VoiceFormat
|
4053
|
+
|
4054
|
+
@property
|
4055
|
+
def SampleRate(self):
|
4056
|
+
return self._SampleRate
|
4057
|
+
|
4058
|
+
@SampleRate.setter
|
4059
|
+
def SampleRate(self, SampleRate):
|
4060
|
+
self._SampleRate = SampleRate
|
4061
|
+
|
4062
|
+
@property
|
4063
|
+
def Data(self):
|
4064
|
+
return self._Data
|
4065
|
+
|
4066
|
+
@Data.setter
|
4067
|
+
def Data(self, Data):
|
4068
|
+
self._Data = Data
|
4069
|
+
|
4070
|
+
@property
|
4071
|
+
def GroupId(self):
|
4072
|
+
return self._GroupId
|
4073
|
+
|
4074
|
+
@GroupId.setter
|
4075
|
+
def GroupId(self, GroupId):
|
4076
|
+
self._GroupId = GroupId
|
4077
|
+
|
4078
|
+
@property
|
4079
|
+
def TopN(self):
|
4080
|
+
return self._TopN
|
4081
|
+
|
4082
|
+
@TopN.setter
|
4083
|
+
def TopN(self, TopN):
|
4084
|
+
self._TopN = TopN
|
4085
|
+
|
4086
|
+
|
4087
|
+
def _deserialize(self, params):
|
4088
|
+
self._VoiceFormat = params.get("VoiceFormat")
|
4089
|
+
self._SampleRate = params.get("SampleRate")
|
4090
|
+
self._Data = params.get("Data")
|
4091
|
+
self._GroupId = params.get("GroupId")
|
4092
|
+
self._TopN = params.get("TopN")
|
4093
|
+
memeber_set = set(params.keys())
|
4094
|
+
for name, value in vars(self).items():
|
4095
|
+
property_name = name[1:]
|
4096
|
+
if property_name in memeber_set:
|
4097
|
+
memeber_set.remove(property_name)
|
4098
|
+
if len(memeber_set) > 0:
|
4099
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4100
|
+
|
4101
|
+
|
4102
|
+
|
4103
|
+
class VoicePrintGroupVerifyResponse(AbstractModel):
|
4104
|
+
"""VoicePrintGroupVerify返回参数结构体
|
4105
|
+
|
4106
|
+
"""
|
4107
|
+
|
4108
|
+
def __init__(self):
|
4109
|
+
r"""
|
4110
|
+
:param _Data: TopN 返回结果;系统建议打分70分以上为同一个人音色,评分也取决于音频质量、长度等其他原因影响,您可以按照业务需求适当提高或降低分数要求
|
4111
|
+
:type Data: :class:`tencentcloud.asr.v20190614.models.VerifyTopResult`
|
4112
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4113
|
+
:type RequestId: str
|
4114
|
+
"""
|
4115
|
+
self._Data = None
|
4116
|
+
self._RequestId = None
|
4117
|
+
|
4118
|
+
@property
|
4119
|
+
def Data(self):
|
4120
|
+
return self._Data
|
4121
|
+
|
4122
|
+
@Data.setter
|
4123
|
+
def Data(self, Data):
|
4124
|
+
self._Data = Data
|
4125
|
+
|
4126
|
+
@property
|
4127
|
+
def RequestId(self):
|
4128
|
+
return self._RequestId
|
4129
|
+
|
4130
|
+
@RequestId.setter
|
4131
|
+
def RequestId(self, RequestId):
|
4132
|
+
self._RequestId = RequestId
|
4133
|
+
|
4134
|
+
|
4135
|
+
def _deserialize(self, params):
|
4136
|
+
if params.get("Data") is not None:
|
4137
|
+
self._Data = VerifyTopResult()
|
4138
|
+
self._Data._deserialize(params.get("Data"))
|
4139
|
+
self._RequestId = params.get("RequestId")
|
4140
|
+
|
4141
|
+
|
3825
4142
|
class VoicePrintUpdateRequest(AbstractModel):
|
3826
4143
|
"""VoicePrintUpdate请求参数结构体
|
3827
4144
|
|
@@ -1403,6 +1403,56 @@ class AnalysisDimensional(AbstractModel):
|
|
1403
1403
|
|
1404
1404
|
|
1405
1405
|
|
1406
|
+
class AnonymousInfo(AbstractModel):
|
1407
|
+
"""免鉴权信息
|
1408
|
+
|
1409
|
+
"""
|
1410
|
+
|
1411
|
+
def __init__(self):
|
1412
|
+
r"""
|
1413
|
+
:param _Operations: 操作列表,支持trackLog(JS/HTTP上传日志 )和realtimeProducer(kafka协议上传日志)
|
1414
|
+
:type Operations: list of str
|
1415
|
+
:param _Conditions: 条件列表
|
1416
|
+
:type Conditions: list of ConditionInfo
|
1417
|
+
"""
|
1418
|
+
self._Operations = None
|
1419
|
+
self._Conditions = None
|
1420
|
+
|
1421
|
+
@property
|
1422
|
+
def Operations(self):
|
1423
|
+
return self._Operations
|
1424
|
+
|
1425
|
+
@Operations.setter
|
1426
|
+
def Operations(self, Operations):
|
1427
|
+
self._Operations = Operations
|
1428
|
+
|
1429
|
+
@property
|
1430
|
+
def Conditions(self):
|
1431
|
+
return self._Conditions
|
1432
|
+
|
1433
|
+
@Conditions.setter
|
1434
|
+
def Conditions(self, Conditions):
|
1435
|
+
self._Conditions = Conditions
|
1436
|
+
|
1437
|
+
|
1438
|
+
def _deserialize(self, params):
|
1439
|
+
self._Operations = params.get("Operations")
|
1440
|
+
if params.get("Conditions") is not None:
|
1441
|
+
self._Conditions = []
|
1442
|
+
for item in params.get("Conditions"):
|
1443
|
+
obj = ConditionInfo()
|
1444
|
+
obj._deserialize(item)
|
1445
|
+
self._Conditions.append(obj)
|
1446
|
+
memeber_set = set(params.keys())
|
1447
|
+
for name, value in vars(self).items():
|
1448
|
+
property_name = name[1:]
|
1449
|
+
if property_name in memeber_set:
|
1450
|
+
memeber_set.remove(property_name)
|
1451
|
+
if len(memeber_set) > 0:
|
1452
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1453
|
+
|
1454
|
+
|
1455
|
+
|
1406
1456
|
class ApplyConfigToMachineGroupRequest(AbstractModel):
|
1407
1457
|
"""ApplyConfigToMachineGroup请求参数结构体
|
1408
1458
|
|
@@ -2091,6 +2141,63 @@ class CompressInfo(AbstractModel):
|
|
2091
2141
|
|
2092
2142
|
|
2093
2143
|
|
2144
|
+
class ConditionInfo(AbstractModel):
|
2145
|
+
"""免鉴权条件信息
|
2146
|
+
|
2147
|
+
"""
|
2148
|
+
|
2149
|
+
def __init__(self):
|
2150
|
+
r"""
|
2151
|
+
:param _Attributes: 条件属性,目前只支持VpcID
|
2152
|
+
:type Attributes: str
|
2153
|
+
:param _Rule: 条件规则,1:等于,2:不等于
|
2154
|
+
:type Rule: int
|
2155
|
+
:param _ConditionValue: 对应条件属性的值
|
2156
|
+
:type ConditionValue: str
|
2157
|
+
"""
|
2158
|
+
self._Attributes = None
|
2159
|
+
self._Rule = None
|
2160
|
+
self._ConditionValue = None
|
2161
|
+
|
2162
|
+
@property
|
2163
|
+
def Attributes(self):
|
2164
|
+
return self._Attributes
|
2165
|
+
|
2166
|
+
@Attributes.setter
|
2167
|
+
def Attributes(self, Attributes):
|
2168
|
+
self._Attributes = Attributes
|
2169
|
+
|
2170
|
+
@property
|
2171
|
+
def Rule(self):
|
2172
|
+
return self._Rule
|
2173
|
+
|
2174
|
+
@Rule.setter
|
2175
|
+
def Rule(self, Rule):
|
2176
|
+
self._Rule = Rule
|
2177
|
+
|
2178
|
+
@property
|
2179
|
+
def ConditionValue(self):
|
2180
|
+
return self._ConditionValue
|
2181
|
+
|
2182
|
+
@ConditionValue.setter
|
2183
|
+
def ConditionValue(self, ConditionValue):
|
2184
|
+
self._ConditionValue = ConditionValue
|
2185
|
+
|
2186
|
+
|
2187
|
+
def _deserialize(self, params):
|
2188
|
+
self._Attributes = params.get("Attributes")
|
2189
|
+
self._Rule = params.get("Rule")
|
2190
|
+
self._ConditionValue = params.get("ConditionValue")
|
2191
|
+
memeber_set = set(params.keys())
|
2192
|
+
for name, value in vars(self).items():
|
2193
|
+
property_name = name[1:]
|
2194
|
+
if property_name in memeber_set:
|
2195
|
+
memeber_set.remove(property_name)
|
2196
|
+
if len(memeber_set) > 0:
|
2197
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2198
|
+
|
2199
|
+
|
2200
|
+
|
2094
2201
|
class ConfigExtraInfo(AbstractModel):
|
2095
2202
|
"""特殊采集规则配置信息
|
2096
2203
|
|
@@ -6375,6 +6482,8 @@ class CreateTopicRequest(AbstractModel):
|
|
6375
6482
|
:param _IsWebTracking: 免鉴权开关。 false:关闭; true:开启。默认为false。
|
6376
6483
|
开启后将支持指定操作匿名访问该日志主题。详情请参见[日志主题](https://cloud.tencent.com/document/product/614/41035)。
|
6377
6484
|
:type IsWebTracking: bool
|
6485
|
+
:param _Extends: 日志主题扩展信息
|
6486
|
+
:type Extends: :class:`tencentcloud.cls.v20201016.models.TopicExtendInfo`
|
6378
6487
|
"""
|
6379
6488
|
self._LogsetId = None
|
6380
6489
|
self._TopicName = None
|
@@ -6387,6 +6496,7 @@ class CreateTopicRequest(AbstractModel):
|
|
6387
6496
|
self._Describes = None
|
6388
6497
|
self._HotPeriod = None
|
6389
6498
|
self._IsWebTracking = None
|
6499
|
+
self._Extends = None
|
6390
6500
|
|
6391
6501
|
@property
|
6392
6502
|
def LogsetId(self):
|
@@ -6476,6 +6586,14 @@ class CreateTopicRequest(AbstractModel):
|
|
6476
6586
|
def IsWebTracking(self, IsWebTracking):
|
6477
6587
|
self._IsWebTracking = IsWebTracking
|
6478
6588
|
|
6589
|
+
@property
|
6590
|
+
def Extends(self):
|
6591
|
+
return self._Extends
|
6592
|
+
|
6593
|
+
@Extends.setter
|
6594
|
+
def Extends(self, Extends):
|
6595
|
+
self._Extends = Extends
|
6596
|
+
|
6479
6597
|
|
6480
6598
|
def _deserialize(self, params):
|
6481
6599
|
self._LogsetId = params.get("LogsetId")
|
@@ -6494,6 +6612,9 @@ class CreateTopicRequest(AbstractModel):
|
|
6494
6612
|
self._Describes = params.get("Describes")
|
6495
6613
|
self._HotPeriod = params.get("HotPeriod")
|
6496
6614
|
self._IsWebTracking = params.get("IsWebTracking")
|
6615
|
+
if params.get("Extends") is not None:
|
6616
|
+
self._Extends = TopicExtendInfo()
|
6617
|
+
self._Extends._deserialize(params.get("Extends"))
|
6497
6618
|
memeber_set = set(params.keys())
|
6498
6619
|
for name, value in vars(self).items():
|
6499
6620
|
property_name = name[1:]
|
@@ -20910,6 +21031,42 @@ class Tag(AbstractModel):
|
|
20910
21031
|
|
20911
21032
|
|
20912
21033
|
|
21034
|
+
class TopicExtendInfo(AbstractModel):
|
21035
|
+
"""日志主题扩展信息
|
21036
|
+
|
21037
|
+
"""
|
21038
|
+
|
21039
|
+
def __init__(self):
|
21040
|
+
r"""
|
21041
|
+
:param _AnonymousAccess: 日志主题免鉴权配置信息
|
21042
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
21043
|
+
:type AnonymousAccess: :class:`tencentcloud.cls.v20201016.models.AnonymousInfo`
|
21044
|
+
"""
|
21045
|
+
self._AnonymousAccess = None
|
21046
|
+
|
21047
|
+
@property
|
21048
|
+
def AnonymousAccess(self):
|
21049
|
+
return self._AnonymousAccess
|
21050
|
+
|
21051
|
+
@AnonymousAccess.setter
|
21052
|
+
def AnonymousAccess(self, AnonymousAccess):
|
21053
|
+
self._AnonymousAccess = AnonymousAccess
|
21054
|
+
|
21055
|
+
|
21056
|
+
def _deserialize(self, params):
|
21057
|
+
if params.get("AnonymousAccess") is not None:
|
21058
|
+
self._AnonymousAccess = AnonymousInfo()
|
21059
|
+
self._AnonymousAccess._deserialize(params.get("AnonymousAccess"))
|
21060
|
+
memeber_set = set(params.keys())
|
21061
|
+
for name, value in vars(self).items():
|
21062
|
+
property_name = name[1:]
|
21063
|
+
if property_name in memeber_set:
|
21064
|
+
memeber_set.remove(property_name)
|
21065
|
+
if len(memeber_set) > 0:
|
21066
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
21067
|
+
|
21068
|
+
|
21069
|
+
|
20913
21070
|
class TopicIdAndRegion(AbstractModel):
|
20914
21071
|
"""仪表盘 topic与地域信息
|
20915
21072
|
|
@@ -696,31 +696,6 @@ class CwpClient(AbstractClient):
|
|
696
696
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
697
697
|
|
698
698
|
|
699
|
-
def DeleteAttackLogs(self, request):
|
700
|
-
"""ModifyEventAttackStatus 接口替代
|
701
|
-
|
702
|
-
删除网络攻击日志
|
703
|
-
|
704
|
-
:param request: Request instance for DeleteAttackLogs.
|
705
|
-
:type request: :class:`tencentcloud.cwp.v20180228.models.DeleteAttackLogsRequest`
|
706
|
-
:rtype: :class:`tencentcloud.cwp.v20180228.models.DeleteAttackLogsResponse`
|
707
|
-
|
708
|
-
"""
|
709
|
-
try:
|
710
|
-
params = request._serialize()
|
711
|
-
headers = request.headers
|
712
|
-
body = self.call("DeleteAttackLogs", params, headers=headers)
|
713
|
-
response = json.loads(body)
|
714
|
-
model = models.DeleteAttackLogsResponse()
|
715
|
-
model._deserialize(response["Response"])
|
716
|
-
return model
|
717
|
-
except Exception as e:
|
718
|
-
if isinstance(e, TencentCloudSDKException):
|
719
|
-
raise
|
720
|
-
else:
|
721
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
722
|
-
|
723
|
-
|
724
699
|
def DeleteBanWhiteList(self, request):
|
725
700
|
"""删除阻断白名单列表
|
726
701
|
|