tencentcloud-sdk-python 3.0.1329__py2.py3-none-any.whl → 3.0.1331__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.
Files changed (34) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/ams/v20201229/models.py +207 -14
  3. tencentcloud/batch/v20170312/models.py +2 -26
  4. tencentcloud/cfw/v20190904/cfw_client.py +9 -3
  5. tencentcloud/cvm/v20170312/models.py +37 -38
  6. tencentcloud/cynosdb/v20190107/models.py +23 -4
  7. tencentcloud/emr/v20190103/models.py +4 -4
  8. tencentcloud/ess/v20201111/ess_client.py +57 -0
  9. tencentcloud/ess/v20201111/models.py +406 -322
  10. tencentcloud/essbasic/v20210526/essbasic_client.py +57 -0
  11. tencentcloud/essbasic/v20210526/models.py +388 -238
  12. tencentcloud/ims/v20201229/models.py +157 -0
  13. tencentcloud/lcic/v20220817/models.py +12 -2
  14. tencentcloud/lighthouse/v20200324/models.py +12 -12
  15. tencentcloud/live/v20180801/models.py +0 -78
  16. tencentcloud/lke/v20231130/lke_client.py +23 -0
  17. tencentcloud/lke/v20231130/models.py +128 -4
  18. tencentcloud/lkeap/v20240522/lkeap_client.py +5 -1
  19. tencentcloud/ocr/v20181119/errorcodes.py +6 -0
  20. tencentcloud/rce/v20201103/models.py +16 -52
  21. tencentcloud/taf/v20200210/models.py +0 -2
  22. tencentcloud/teo/v20220901/models.py +18 -4
  23. tencentcloud/tione/v20211111/tione_client.py +3 -1
  24. tencentcloud/tke/v20180525/models.py +2 -178
  25. tencentcloud/trtc/v20190722/models.py +15 -0
  26. tencentcloud/tse/v20201207/models.py +153 -0
  27. tencentcloud/vm/v20201229/models.py +615 -68
  28. tencentcloud/vm/v20210922/models.py +737 -102
  29. tencentcloud/wedata/v20210820/models.py +19 -4
  30. {tencentcloud_sdk_python-3.0.1329.dist-info → tencentcloud_sdk_python-3.0.1331.dist-info}/METADATA +1 -1
  31. {tencentcloud_sdk_python-3.0.1329.dist-info → tencentcloud_sdk_python-3.0.1331.dist-info}/RECORD +34 -34
  32. {tencentcloud_sdk_python-3.0.1329.dist-info → tencentcloud_sdk_python-3.0.1331.dist-info}/LICENSE +0 -0
  33. {tencentcloud_sdk_python-3.0.1329.dist-info → tencentcloud_sdk_python-3.0.1331.dist-info}/WHEEL +0 -0
  34. {tencentcloud_sdk_python-3.0.1329.dist-info → tencentcloud_sdk_python-3.0.1331.dist-info}/top_level.txt +0 -0
@@ -18,6 +18,132 @@ import warnings
18
18
  from tencentcloud.common.abstract_model import AbstractModel
19
19
 
20
20
 
21
+ class AudioLabelResult(AbstractModel):
22
+ """敏感歌曲
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _Scene: 场景
29
+ :type Scene: str
30
+ :param _Suggestion: 建议
31
+ :type Suggestion: int
32
+ :param _Label: 标签
33
+ :type Label: str
34
+ :param _Name: 歌曲名等
35
+ :type Name: str
36
+ :param _Score: 分数
37
+ :type Score: int
38
+ :param _StartTime: 开始时间
39
+ :type StartTime: float
40
+ :param _EndTime: 结束时间
41
+ :type EndTime: float
42
+ """
43
+ self._Scene = None
44
+ self._Suggestion = None
45
+ self._Label = None
46
+ self._Name = None
47
+ self._Score = None
48
+ self._StartTime = None
49
+ self._EndTime = None
50
+
51
+ @property
52
+ def Scene(self):
53
+ """场景
54
+ :rtype: str
55
+ """
56
+ return self._Scene
57
+
58
+ @Scene.setter
59
+ def Scene(self, Scene):
60
+ self._Scene = Scene
61
+
62
+ @property
63
+ def Suggestion(self):
64
+ """建议
65
+ :rtype: int
66
+ """
67
+ return self._Suggestion
68
+
69
+ @Suggestion.setter
70
+ def Suggestion(self, Suggestion):
71
+ self._Suggestion = Suggestion
72
+
73
+ @property
74
+ def Label(self):
75
+ """标签
76
+ :rtype: str
77
+ """
78
+ return self._Label
79
+
80
+ @Label.setter
81
+ def Label(self, Label):
82
+ self._Label = Label
83
+
84
+ @property
85
+ def Name(self):
86
+ """歌曲名等
87
+ :rtype: str
88
+ """
89
+ return self._Name
90
+
91
+ @Name.setter
92
+ def Name(self, Name):
93
+ self._Name = Name
94
+
95
+ @property
96
+ def Score(self):
97
+ """分数
98
+ :rtype: int
99
+ """
100
+ return self._Score
101
+
102
+ @Score.setter
103
+ def Score(self, Score):
104
+ self._Score = Score
105
+
106
+ @property
107
+ def StartTime(self):
108
+ """开始时间
109
+ :rtype: float
110
+ """
111
+ return self._StartTime
112
+
113
+ @StartTime.setter
114
+ def StartTime(self, StartTime):
115
+ self._StartTime = StartTime
116
+
117
+ @property
118
+ def EndTime(self):
119
+ """结束时间
120
+ :rtype: float
121
+ """
122
+ return self._EndTime
123
+
124
+ @EndTime.setter
125
+ def EndTime(self, EndTime):
126
+ self._EndTime = EndTime
127
+
128
+
129
+ def _deserialize(self, params):
130
+ self._Scene = params.get("Scene")
131
+ self._Suggestion = params.get("Suggestion")
132
+ self._Label = params.get("Label")
133
+ self._Name = params.get("Name")
134
+ self._Score = params.get("Score")
135
+ self._StartTime = params.get("StartTime")
136
+ self._EndTime = params.get("EndTime")
137
+ memeber_set = set(params.keys())
138
+ for name, value in vars(self).items():
139
+ property_name = name[1:]
140
+ if property_name in memeber_set:
141
+ memeber_set.remove(property_name)
142
+ if len(memeber_set) > 0:
143
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
144
+
145
+
146
+
21
147
  class AudioResult(AbstractModel):
22
148
  """音频审核输出参数
23
149
 
@@ -26,45 +152,42 @@ class AudioResult(AbstractModel):
26
152
  def __init__(self):
27
153
  r"""
28
154
  :param _HitFlag: 该字段用于返回审核内容是否命中审核模型;取值:0(**未命中**)、1(**命中**)。
29
- 注意:此字段可能返回 null,表示取不到有效值。
30
155
  :type HitFlag: int
31
156
  :param _Label: 该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
32
- 注意:此字段可能返回 null,表示取不到有效值。
33
157
  :type Label: str
34
158
  :param _Suggestion: 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
35
159
  返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
36
- 注意:此字段可能返回 null,表示取不到有效值。
37
160
  :type Suggestion: str
38
161
  :param _Score: 该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
39
- 注意:此字段可能返回 null,表示取不到有效值。
40
162
  :type Score: int
41
163
  :param _Text: 该字段用于返回音频文件经ASR识别后的文本信息。最长可识别**5小时**的音频文件,若超出时长限制,接口将会报错。
42
- 注意:此字段可能返回 null,表示取不到有效值。
43
164
  :type Text: str
44
165
  :param _Url: 该字段用于返回审核结果的访问链接(URL)。<br>备注:链接默认有效期为12小时。如果您需要更长时效的链接,请使用[COS预签名](https://cloud.tencent.com/document/product/1265/104001)功能更新签名时效。
45
- 注意:此字段可能返回 null,表示取不到有效值。
46
166
  :type Url: str
47
167
  :param _Duration: 该字段用于返回音频文件的时长,单位为毫秒。
48
- 注意:此字段可能返回 null,表示取不到有效值。
49
168
  :type Duration: str
50
169
  :param _Extra: 该字段用于返回输入参数中的额外附加信息(Extra),如未配置则默认返回值为空。<br>备注:不同客户或Biztype下返回信息不同,如需配置该字段请提交工单咨询或联系售后专员处理。
51
- 注意:此字段可能返回 null,表示取不到有效值。
52
170
  :type Extra: str
53
171
  :param _TextResults: 该字段用于返回音频文件经ASR识别后产生的文本的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
54
- 注意:此字段可能返回 null,表示取不到有效值。
55
172
  :type TextResults: list of AudioResultDetailTextResult
56
173
  :param _MoanResults: 该字段用于返回音频文件呻吟检测的详细审核结果。具体结果内容请参见AudioResultDetailMoanResult数据结构的细节描述。
57
- 注意:此字段可能返回 null,表示取不到有效值。
58
174
  :type MoanResults: list of AudioResultDetailMoanResult
59
175
  :param _LanguageResults: 该字段用于返回音频小语种检测的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
60
- 注意:此字段可能返回 null,表示取不到有效值。
61
176
  :type LanguageResults: list of AudioResultDetailLanguageResult
62
177
  :param _SubLabel: 该字段用于返回当前标签(Lable)下的二级标签。
63
- 注意:此字段可能返回 null,表示取不到有效值。
64
178
  :type SubLabel: str
65
179
  :param _RecognitionResults: 识别类标签结果信息列表
66
- 注意:此字段可能返回 null,表示取不到有效值。
67
180
  :type RecognitionResults: list of RecognitionResult
181
+ :param _SpeakerResults: 该字段用于返回音频文件说话人检测的详细审核结果。
182
+ :type SpeakerResults: list of SpeakerResult
183
+ :param _LabelResults: 该字段用于返回音频文件歌曲检测的详细审核结果。
184
+ :type LabelResults: list of AudioLabelResult
185
+ :param _TravelResults: 该字段用于返回音频文件出行检测的详细审核结果。
186
+ :type TravelResults: list of TravelResult
187
+ :param _SubTag: 三级标签
188
+ :type SubTag: str
189
+ :param _SubTagCode: 三级标签码
190
+ :type SubTagCode: str
68
191
  """
69
192
  self._HitFlag = None
70
193
  self._Label = None
@@ -79,11 +202,15 @@ class AudioResult(AbstractModel):
79
202
  self._LanguageResults = None
80
203
  self._SubLabel = None
81
204
  self._RecognitionResults = None
205
+ self._SpeakerResults = None
206
+ self._LabelResults = None
207
+ self._TravelResults = None
208
+ self._SubTag = None
209
+ self._SubTagCode = None
82
210
 
83
211
  @property
84
212
  def HitFlag(self):
85
213
  """该字段用于返回审核内容是否命中审核模型;取值:0(**未命中**)、1(**命中**)。
86
- 注意:此字段可能返回 null,表示取不到有效值。
87
214
  :rtype: int
88
215
  """
89
216
  return self._HitFlag
@@ -95,7 +222,6 @@ class AudioResult(AbstractModel):
95
222
  @property
96
223
  def Label(self):
97
224
  """该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
98
- 注意:此字段可能返回 null,表示取不到有效值。
99
225
  :rtype: str
100
226
  """
101
227
  return self._Label
@@ -108,7 +234,6 @@ class AudioResult(AbstractModel):
108
234
  def Suggestion(self):
109
235
  """该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
110
236
  返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
111
- 注意:此字段可能返回 null,表示取不到有效值。
112
237
  :rtype: str
113
238
  """
114
239
  return self._Suggestion
@@ -120,7 +245,6 @@ class AudioResult(AbstractModel):
120
245
  @property
121
246
  def Score(self):
122
247
  """该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
123
- 注意:此字段可能返回 null,表示取不到有效值。
124
248
  :rtype: int
125
249
  """
126
250
  return self._Score
@@ -132,7 +256,6 @@ class AudioResult(AbstractModel):
132
256
  @property
133
257
  def Text(self):
134
258
  """该字段用于返回音频文件经ASR识别后的文本信息。最长可识别**5小时**的音频文件,若超出时长限制,接口将会报错。
135
- 注意:此字段可能返回 null,表示取不到有效值。
136
259
  :rtype: str
137
260
  """
138
261
  return self._Text
@@ -144,7 +267,6 @@ class AudioResult(AbstractModel):
144
267
  @property
145
268
  def Url(self):
146
269
  """该字段用于返回审核结果的访问链接(URL)。<br>备注:链接默认有效期为12小时。如果您需要更长时效的链接,请使用[COS预签名](https://cloud.tencent.com/document/product/1265/104001)功能更新签名时效。
147
- 注意:此字段可能返回 null,表示取不到有效值。
148
270
  :rtype: str
149
271
  """
150
272
  return self._Url
@@ -156,7 +278,6 @@ class AudioResult(AbstractModel):
156
278
  @property
157
279
  def Duration(self):
158
280
  """该字段用于返回音频文件的时长,单位为毫秒。
159
- 注意:此字段可能返回 null,表示取不到有效值。
160
281
  :rtype: str
161
282
  """
162
283
  return self._Duration
@@ -168,7 +289,6 @@ class AudioResult(AbstractModel):
168
289
  @property
169
290
  def Extra(self):
170
291
  """该字段用于返回输入参数中的额外附加信息(Extra),如未配置则默认返回值为空。<br>备注:不同客户或Biztype下返回信息不同,如需配置该字段请提交工单咨询或联系售后专员处理。
171
- 注意:此字段可能返回 null,表示取不到有效值。
172
292
  :rtype: str
173
293
  """
174
294
  return self._Extra
@@ -180,7 +300,6 @@ class AudioResult(AbstractModel):
180
300
  @property
181
301
  def TextResults(self):
182
302
  """该字段用于返回音频文件经ASR识别后产生的文本的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
183
- 注意:此字段可能返回 null,表示取不到有效值。
184
303
  :rtype: list of AudioResultDetailTextResult
185
304
  """
186
305
  return self._TextResults
@@ -192,7 +311,6 @@ class AudioResult(AbstractModel):
192
311
  @property
193
312
  def MoanResults(self):
194
313
  """该字段用于返回音频文件呻吟检测的详细审核结果。具体结果内容请参见AudioResultDetailMoanResult数据结构的细节描述。
195
- 注意:此字段可能返回 null,表示取不到有效值。
196
314
  :rtype: list of AudioResultDetailMoanResult
197
315
  """
198
316
  return self._MoanResults
@@ -204,7 +322,6 @@ class AudioResult(AbstractModel):
204
322
  @property
205
323
  def LanguageResults(self):
206
324
  """该字段用于返回音频小语种检测的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
207
- 注意:此字段可能返回 null,表示取不到有效值。
208
325
  :rtype: list of AudioResultDetailLanguageResult
209
326
  """
210
327
  return self._LanguageResults
@@ -216,7 +333,6 @@ class AudioResult(AbstractModel):
216
333
  @property
217
334
  def SubLabel(self):
218
335
  """该字段用于返回当前标签(Lable)下的二级标签。
219
- 注意:此字段可能返回 null,表示取不到有效值。
220
336
  :rtype: str
221
337
  """
222
338
  return self._SubLabel
@@ -228,7 +344,6 @@ class AudioResult(AbstractModel):
228
344
  @property
229
345
  def RecognitionResults(self):
230
346
  """识别类标签结果信息列表
231
- 注意:此字段可能返回 null,表示取不到有效值。
232
347
  :rtype: list of RecognitionResult
233
348
  """
234
349
  return self._RecognitionResults
@@ -237,6 +352,61 @@ class AudioResult(AbstractModel):
237
352
  def RecognitionResults(self, RecognitionResults):
238
353
  self._RecognitionResults = RecognitionResults
239
354
 
355
+ @property
356
+ def SpeakerResults(self):
357
+ """该字段用于返回音频文件说话人检测的详细审核结果。
358
+ :rtype: list of SpeakerResult
359
+ """
360
+ return self._SpeakerResults
361
+
362
+ @SpeakerResults.setter
363
+ def SpeakerResults(self, SpeakerResults):
364
+ self._SpeakerResults = SpeakerResults
365
+
366
+ @property
367
+ def LabelResults(self):
368
+ """该字段用于返回音频文件歌曲检测的详细审核结果。
369
+ :rtype: list of AudioLabelResult
370
+ """
371
+ return self._LabelResults
372
+
373
+ @LabelResults.setter
374
+ def LabelResults(self, LabelResults):
375
+ self._LabelResults = LabelResults
376
+
377
+ @property
378
+ def TravelResults(self):
379
+ """该字段用于返回音频文件出行检测的详细审核结果。
380
+ :rtype: list of TravelResult
381
+ """
382
+ return self._TravelResults
383
+
384
+ @TravelResults.setter
385
+ def TravelResults(self, TravelResults):
386
+ self._TravelResults = TravelResults
387
+
388
+ @property
389
+ def SubTag(self):
390
+ """三级标签
391
+ :rtype: str
392
+ """
393
+ return self._SubTag
394
+
395
+ @SubTag.setter
396
+ def SubTag(self, SubTag):
397
+ self._SubTag = SubTag
398
+
399
+ @property
400
+ def SubTagCode(self):
401
+ """三级标签码
402
+ :rtype: str
403
+ """
404
+ return self._SubTagCode
405
+
406
+ @SubTagCode.setter
407
+ def SubTagCode(self, SubTagCode):
408
+ self._SubTagCode = SubTagCode
409
+
240
410
 
241
411
  def _deserialize(self, params):
242
412
  self._HitFlag = params.get("HitFlag")
@@ -272,6 +442,26 @@ class AudioResult(AbstractModel):
272
442
  obj = RecognitionResult()
273
443
  obj._deserialize(item)
274
444
  self._RecognitionResults.append(obj)
445
+ if params.get("SpeakerResults") is not None:
446
+ self._SpeakerResults = []
447
+ for item in params.get("SpeakerResults"):
448
+ obj = SpeakerResult()
449
+ obj._deserialize(item)
450
+ self._SpeakerResults.append(obj)
451
+ if params.get("LabelResults") is not None:
452
+ self._LabelResults = []
453
+ for item in params.get("LabelResults"):
454
+ obj = AudioLabelResult()
455
+ obj._deserialize(item)
456
+ self._LabelResults.append(obj)
457
+ if params.get("TravelResults") is not None:
458
+ self._TravelResults = []
459
+ for item in params.get("TravelResults"):
460
+ obj = TravelResult()
461
+ obj._deserialize(item)
462
+ self._TravelResults.append(obj)
463
+ self._SubTag = params.get("SubTag")
464
+ self._SubTagCode = params.get("SubTagCode")
275
465
  memeber_set = set(params.keys())
276
466
  for name, value in vars(self).items():
277
467
  property_name = name[1:]
@@ -526,30 +716,24 @@ class AudioResultDetailTextResult(AbstractModel):
526
716
  def __init__(self):
527
717
  r"""
528
718
  :param _Label: 该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
529
- 注意:此字段可能返回 null,表示取不到有效值。
530
719
  :type Label: str
531
720
  :param _Keywords: 该字段用于返回ASR识别出的文本内容命中的关键词信息,用于标注内容违规的具体原因(如:加我微信)。该参数可能会有多个返回值,代表命中的多个关键词;若返回值为空,Score不为空,则代表识别结果所对应的恶意标签(Label)来自于语义模型判断的返回值。
532
- 注意:此字段可能返回 null,表示取不到有效值。
533
721
  :type Keywords: list of str
534
722
  :param _LibId: 该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的ID,以方便自定义库管理和配置。
535
- 注意:此字段可能返回 null,表示取不到有效值。
536
723
  :type LibId: str
537
724
  :param _LibName: 该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的名称,以方便自定义库管理和配置。
538
- 注意:此字段可能返回 null,表示取不到有效值。
539
725
  :type LibName: str
540
726
  :param _Score: 该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高**),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
541
- 注意:此字段可能返回 null,表示取不到有效值。
542
727
  :type Score: int
543
728
  :param _Suggestion: 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
544
729
  返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
545
- 注意:此字段可能返回 null,表示取不到有效值。
546
730
  :type Suggestion: str
547
731
  :param _LibType: 该字段用于返回自定义关键词对应的词库类型,取值为**1**(黑白库)和**2**(自定义关键词库),若未配置自定义关键词库,则默认值为1(黑白库匹配)。
548
- 注意:此字段可能返回 null,表示取不到有效值。
549
732
  :type LibType: int
550
733
  :param _SubLabel: 该字段用于返回当前标签(Lable)下的二级标签。
551
- 注意:此字段可能返回 null,表示取不到有效值。
552
734
  :type SubLabel: str
735
+ :param _HitInfos: 该字段用于返回命中的关键词信息
736
+ :type HitInfos: list of HitInfo
553
737
  """
554
738
  self._Label = None
555
739
  self._Keywords = None
@@ -559,11 +743,11 @@ class AudioResultDetailTextResult(AbstractModel):
559
743
  self._Suggestion = None
560
744
  self._LibType = None
561
745
  self._SubLabel = None
746
+ self._HitInfos = None
562
747
 
563
748
  @property
564
749
  def Label(self):
565
750
  """该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
566
- 注意:此字段可能返回 null,表示取不到有效值。
567
751
  :rtype: str
568
752
  """
569
753
  return self._Label
@@ -575,7 +759,6 @@ class AudioResultDetailTextResult(AbstractModel):
575
759
  @property
576
760
  def Keywords(self):
577
761
  """该字段用于返回ASR识别出的文本内容命中的关键词信息,用于标注内容违规的具体原因(如:加我微信)。该参数可能会有多个返回值,代表命中的多个关键词;若返回值为空,Score不为空,则代表识别结果所对应的恶意标签(Label)来自于语义模型判断的返回值。
578
- 注意:此字段可能返回 null,表示取不到有效值。
579
762
  :rtype: list of str
580
763
  """
581
764
  return self._Keywords
@@ -587,7 +770,6 @@ class AudioResultDetailTextResult(AbstractModel):
587
770
  @property
588
771
  def LibId(self):
589
772
  """该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的ID,以方便自定义库管理和配置。
590
- 注意:此字段可能返回 null,表示取不到有效值。
591
773
  :rtype: str
592
774
  """
593
775
  return self._LibId
@@ -599,7 +781,6 @@ class AudioResultDetailTextResult(AbstractModel):
599
781
  @property
600
782
  def LibName(self):
601
783
  """该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的名称,以方便自定义库管理和配置。
602
- 注意:此字段可能返回 null,表示取不到有效值。
603
784
  :rtype: str
604
785
  """
605
786
  return self._LibName
@@ -611,7 +792,6 @@ class AudioResultDetailTextResult(AbstractModel):
611
792
  @property
612
793
  def Score(self):
613
794
  """该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高**),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
614
- 注意:此字段可能返回 null,表示取不到有效值。
615
795
  :rtype: int
616
796
  """
617
797
  return self._Score
@@ -624,7 +804,6 @@ class AudioResultDetailTextResult(AbstractModel):
624
804
  def Suggestion(self):
625
805
  """该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
626
806
  返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
627
- 注意:此字段可能返回 null,表示取不到有效值。
628
807
  :rtype: str
629
808
  """
630
809
  return self._Suggestion
@@ -636,7 +815,6 @@ class AudioResultDetailTextResult(AbstractModel):
636
815
  @property
637
816
  def LibType(self):
638
817
  """该字段用于返回自定义关键词对应的词库类型,取值为**1**(黑白库)和**2**(自定义关键词库),若未配置自定义关键词库,则默认值为1(黑白库匹配)。
639
- 注意:此字段可能返回 null,表示取不到有效值。
640
818
  :rtype: int
641
819
  """
642
820
  return self._LibType
@@ -648,7 +826,6 @@ class AudioResultDetailTextResult(AbstractModel):
648
826
  @property
649
827
  def SubLabel(self):
650
828
  """该字段用于返回当前标签(Lable)下的二级标签。
651
- 注意:此字段可能返回 null,表示取不到有效值。
652
829
  :rtype: str
653
830
  """
654
831
  return self._SubLabel
@@ -657,6 +834,17 @@ class AudioResultDetailTextResult(AbstractModel):
657
834
  def SubLabel(self, SubLabel):
658
835
  self._SubLabel = SubLabel
659
836
 
837
+ @property
838
+ def HitInfos(self):
839
+ """该字段用于返回命中的关键词信息
840
+ :rtype: list of HitInfo
841
+ """
842
+ return self._HitInfos
843
+
844
+ @HitInfos.setter
845
+ def HitInfos(self, HitInfos):
846
+ self._HitInfos = HitInfos
847
+
660
848
 
661
849
  def _deserialize(self, params):
662
850
  self._Label = params.get("Label")
@@ -667,6 +855,12 @@ class AudioResultDetailTextResult(AbstractModel):
667
855
  self._Suggestion = params.get("Suggestion")
668
856
  self._LibType = params.get("LibType")
669
857
  self._SubLabel = params.get("SubLabel")
858
+ if params.get("HitInfos") is not None:
859
+ self._HitInfos = []
860
+ for item in params.get("HitInfos"):
861
+ obj = HitInfo()
862
+ obj._deserialize(item)
863
+ self._HitInfos.append(obj)
670
864
  memeber_set = set(params.keys())
671
865
  for name, value in vars(self).items():
672
866
  property_name = name[1:]
@@ -685,19 +879,19 @@ class AudioSegments(AbstractModel):
685
879
  def __init__(self):
686
880
  r"""
687
881
  :param _OffsetTime: 该字段用于返回音频片段的开始时间,单位为秒。对于点播文件,该参数代表对应音频相对于完整音轨的偏移时间,如0(代表不偏移),5(音轨开始后5秒),10(音轨开始后10秒);对于直播文件,该参数则返回对应音频片段开始时的Unix时间戳,如:1594650717。
688
- 注意:此字段可能返回 null,表示取不到有效值。
689
882
  :type OffsetTime: str
690
883
  :param _Result: 该字段用于返回音频片段的具体审核结果,详细内容敬请参考AudioResult数据结构的描述。
691
- 注意:此字段可能返回 null,表示取不到有效值。
692
884
  :type Result: :class:`tencentcloud.vm.v20201229.models.AudioResult`
885
+ :param _CreatedAt: 创建时间
886
+ :type CreatedAt: str
693
887
  """
694
888
  self._OffsetTime = None
695
889
  self._Result = None
890
+ self._CreatedAt = None
696
891
 
697
892
  @property
698
893
  def OffsetTime(self):
699
894
  """该字段用于返回音频片段的开始时间,单位为秒。对于点播文件,该参数代表对应音频相对于完整音轨的偏移时间,如0(代表不偏移),5(音轨开始后5秒),10(音轨开始后10秒);对于直播文件,该参数则返回对应音频片段开始时的Unix时间戳,如:1594650717。
700
- 注意:此字段可能返回 null,表示取不到有效值。
701
895
  :rtype: str
702
896
  """
703
897
  return self._OffsetTime
@@ -709,7 +903,6 @@ class AudioSegments(AbstractModel):
709
903
  @property
710
904
  def Result(self):
711
905
  """该字段用于返回音频片段的具体审核结果,详细内容敬请参考AudioResult数据结构的描述。
712
- 注意:此字段可能返回 null,表示取不到有效值。
713
906
  :rtype: :class:`tencentcloud.vm.v20201229.models.AudioResult`
714
907
  """
715
908
  return self._Result
@@ -718,12 +911,24 @@ class AudioSegments(AbstractModel):
718
911
  def Result(self, Result):
719
912
  self._Result = Result
720
913
 
914
+ @property
915
+ def CreatedAt(self):
916
+ """创建时间
917
+ :rtype: str
918
+ """
919
+ return self._CreatedAt
920
+
921
+ @CreatedAt.setter
922
+ def CreatedAt(self, CreatedAt):
923
+ self._CreatedAt = CreatedAt
924
+
721
925
 
722
926
  def _deserialize(self, params):
723
927
  self._OffsetTime = params.get("OffsetTime")
724
928
  if params.get("Result") is not None:
725
929
  self._Result = AudioResult()
726
930
  self._Result._deserialize(params.get("Result"))
931
+ self._CreatedAt = params.get("CreatedAt")
727
932
  memeber_set = set(params.keys())
728
933
  for name, value in vars(self).items():
729
934
  property_name = name[1:]
@@ -1683,6 +1888,92 @@ class DescribeTasksResponse(AbstractModel):
1683
1888
  self._RequestId = params.get("RequestId")
1684
1889
 
1685
1890
 
1891
+ class HitInfo(AbstractModel):
1892
+ """文本关键词命中信息
1893
+
1894
+ """
1895
+
1896
+ def __init__(self):
1897
+ r"""
1898
+ :param _Type: 关键词
1899
+ :type Type: str
1900
+ :param _Keyword: 命中关键词
1901
+ :type Keyword: str
1902
+ :param _LibName: 命中的自定义词库名
1903
+ :type LibName: str
1904
+ :param _Positions: 关键词位置信息
1905
+ :type Positions: list of TextPosition
1906
+ """
1907
+ self._Type = None
1908
+ self._Keyword = None
1909
+ self._LibName = None
1910
+ self._Positions = None
1911
+
1912
+ @property
1913
+ def Type(self):
1914
+ """关键词
1915
+ :rtype: str
1916
+ """
1917
+ return self._Type
1918
+
1919
+ @Type.setter
1920
+ def Type(self, Type):
1921
+ self._Type = Type
1922
+
1923
+ @property
1924
+ def Keyword(self):
1925
+ """命中关键词
1926
+ :rtype: str
1927
+ """
1928
+ return self._Keyword
1929
+
1930
+ @Keyword.setter
1931
+ def Keyword(self, Keyword):
1932
+ self._Keyword = Keyword
1933
+
1934
+ @property
1935
+ def LibName(self):
1936
+ """命中的自定义词库名
1937
+ :rtype: str
1938
+ """
1939
+ return self._LibName
1940
+
1941
+ @LibName.setter
1942
+ def LibName(self, LibName):
1943
+ self._LibName = LibName
1944
+
1945
+ @property
1946
+ def Positions(self):
1947
+ """关键词位置信息
1948
+ :rtype: list of TextPosition
1949
+ """
1950
+ return self._Positions
1951
+
1952
+ @Positions.setter
1953
+ def Positions(self, Positions):
1954
+ self._Positions = Positions
1955
+
1956
+
1957
+ def _deserialize(self, params):
1958
+ self._Type = params.get("Type")
1959
+ self._Keyword = params.get("Keyword")
1960
+ self._LibName = params.get("LibName")
1961
+ if params.get("Positions") is not None:
1962
+ self._Positions = []
1963
+ for item in params.get("Positions"):
1964
+ obj = TextPosition()
1965
+ obj._deserialize(item)
1966
+ self._Positions.append(obj)
1967
+ memeber_set = set(params.keys())
1968
+ for name, value in vars(self).items():
1969
+ property_name = name[1:]
1970
+ if property_name in memeber_set:
1971
+ memeber_set.remove(property_name)
1972
+ if len(memeber_set) > 0:
1973
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1974
+
1975
+
1976
+
1686
1977
  class ImageResult(AbstractModel):
1687
1978
  """Result结果详情
1688
1979
 
@@ -2058,39 +2349,30 @@ class ImageResultsResultDetail(AbstractModel):
2058
2349
  def __init__(self):
2059
2350
  r"""
2060
2351
  :param _Name: 该字段用于返回调用视频审核接口时传入的TaskInput参数中的任务名称,方便任务的识别与管理。
2061
- 注意:此字段可能返回 null,表示取不到有效值。
2062
2352
  :type Name: str
2063
2353
  :param _Text: 该字段用于返回图片OCR文本识别的检测结果,识别**上限在5000字节内**。
2064
- 注意:此字段可能返回 null,表示取不到有效值。
2065
2354
  :type Text: str
2066
2355
  :param _Location: 该字段用于返回图像审核子结果的详细位置信息,如坐标、大小、旋转角度等。详细返回内容敬请参考ImageResultsResultDetailLocation数据结构的描述。
2067
- 注意:此字段可能返回 null,表示取不到有效值。
2068
2356
  :type Location: :class:`tencentcloud.vm.v20201229.models.ImageResultsResultDetailLocation`
2069
2357
  :param _Label: 该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
2070
- 注意:此字段可能返回 null,表示取不到有效值。
2071
2358
  :type Label: str
2072
2359
  :param _LibId: 该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的ID,以方便自定义库管理和配置。
2073
- 注意:此字段可能返回 null,表示取不到有效值。
2074
2360
  :type LibId: str
2075
2361
  :param _LibName: 该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的名称,以方便自定义库管理和配置。
2076
- 注意:此字段可能返回 null,表示取不到有效值。
2077
2362
  :type LibName: str
2078
2363
  :param _Keywords: 该字段用于返回检测文本命中的关键词信息,用于标注文本违规的具体原因(如:*加我微信*)。该参数可能会有多个返回值,代表命中的多个关键词;如返回值为空且Score不为空,则代表识别结果所对应的恶意标签(Label)是来自于语义模型判断的返回值。
2079
- 注意:此字段可能返回 null,表示取不到有效值。
2080
2364
  :type Keywords: list of str
2081
2365
  :param _Suggestion: 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
2082
2366
  返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
2083
- 注意:此字段可能返回 null,表示取不到有效值。
2084
2367
  :type Suggestion: str
2085
2368
  :param _Score: 该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
2086
- 注意:此字段可能返回 null,表示取不到有效值。
2087
2369
  :type Score: int
2088
2370
  :param _SubLabelCode: 该字段用于返回恶意标签下对应的子标签的检测结果,如:*Porn-SexBehavior*等子标签。
2089
- 注意:此字段可能返回 null,表示取不到有效值。
2090
2371
  :type SubLabelCode: str
2091
2372
  :param _SubLabel: 该字段用于返回恶意标签下对应的子标签的检测结果,如:*Porn-SexBehavior*等子标签。
2092
- 注意:此字段可能返回 null,表示取不到有效值。
2093
2373
  :type SubLabel: str
2374
+ :param _OcrHitInfos: 该字段用于返回OCR命中的关键词信息。
2375
+ :type OcrHitInfos: list of HitInfo
2094
2376
  """
2095
2377
  self._Name = None
2096
2378
  self._Text = None
@@ -2103,11 +2385,11 @@ class ImageResultsResultDetail(AbstractModel):
2103
2385
  self._Score = None
2104
2386
  self._SubLabelCode = None
2105
2387
  self._SubLabel = None
2388
+ self._OcrHitInfos = None
2106
2389
 
2107
2390
  @property
2108
2391
  def Name(self):
2109
2392
  """该字段用于返回调用视频审核接口时传入的TaskInput参数中的任务名称,方便任务的识别与管理。
2110
- 注意:此字段可能返回 null,表示取不到有效值。
2111
2393
  :rtype: str
2112
2394
  """
2113
2395
  return self._Name
@@ -2119,7 +2401,6 @@ class ImageResultsResultDetail(AbstractModel):
2119
2401
  @property
2120
2402
  def Text(self):
2121
2403
  """该字段用于返回图片OCR文本识别的检测结果,识别**上限在5000字节内**。
2122
- 注意:此字段可能返回 null,表示取不到有效值。
2123
2404
  :rtype: str
2124
2405
  """
2125
2406
  return self._Text
@@ -2131,7 +2412,6 @@ class ImageResultsResultDetail(AbstractModel):
2131
2412
  @property
2132
2413
  def Location(self):
2133
2414
  """该字段用于返回图像审核子结果的详细位置信息,如坐标、大小、旋转角度等。详细返回内容敬请参考ImageResultsResultDetailLocation数据结构的描述。
2134
- 注意:此字段可能返回 null,表示取不到有效值。
2135
2415
  :rtype: :class:`tencentcloud.vm.v20201229.models.ImageResultsResultDetailLocation`
2136
2416
  """
2137
2417
  return self._Location
@@ -2143,7 +2423,6 @@ class ImageResultsResultDetail(AbstractModel):
2143
2423
  @property
2144
2424
  def Label(self):
2145
2425
  """该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。
2146
- 注意:此字段可能返回 null,表示取不到有效值。
2147
2426
  :rtype: str
2148
2427
  """
2149
2428
  return self._Label
@@ -2155,7 +2434,6 @@ class ImageResultsResultDetail(AbstractModel):
2155
2434
  @property
2156
2435
  def LibId(self):
2157
2436
  """该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的ID,以方便自定义库管理和配置。
2158
- 注意:此字段可能返回 null,表示取不到有效值。
2159
2437
  :rtype: str
2160
2438
  """
2161
2439
  return self._LibId
@@ -2167,7 +2445,6 @@ class ImageResultsResultDetail(AbstractModel):
2167
2445
  @property
2168
2446
  def LibName(self):
2169
2447
  """该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的名称,以方便自定义库管理和配置。
2170
- 注意:此字段可能返回 null,表示取不到有效值。
2171
2448
  :rtype: str
2172
2449
  """
2173
2450
  return self._LibName
@@ -2179,7 +2456,6 @@ class ImageResultsResultDetail(AbstractModel):
2179
2456
  @property
2180
2457
  def Keywords(self):
2181
2458
  """该字段用于返回检测文本命中的关键词信息,用于标注文本违规的具体原因(如:*加我微信*)。该参数可能会有多个返回值,代表命中的多个关键词;如返回值为空且Score不为空,则代表识别结果所对应的恶意标签(Label)是来自于语义模型判断的返回值。
2182
- 注意:此字段可能返回 null,表示取不到有效值。
2183
2459
  :rtype: list of str
2184
2460
  """
2185
2461
  return self._Keywords
@@ -2192,7 +2468,6 @@ class ImageResultsResultDetail(AbstractModel):
2192
2468
  def Suggestion(self):
2193
2469
  """该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>
2194
2470
  返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
2195
- 注意:此字段可能返回 null,表示取不到有效值。
2196
2471
  :rtype: str
2197
2472
  """
2198
2473
  return self._Suggestion
@@ -2204,7 +2479,6 @@ class ImageResultsResultDetail(AbstractModel):
2204
2479
  @property
2205
2480
  def Score(self):
2206
2481
  """该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。
2207
- 注意:此字段可能返回 null,表示取不到有效值。
2208
2482
  :rtype: int
2209
2483
  """
2210
2484
  return self._Score
@@ -2216,7 +2490,6 @@ class ImageResultsResultDetail(AbstractModel):
2216
2490
  @property
2217
2491
  def SubLabelCode(self):
2218
2492
  """该字段用于返回恶意标签下对应的子标签的检测结果,如:*Porn-SexBehavior*等子标签。
2219
- 注意:此字段可能返回 null,表示取不到有效值。
2220
2493
  :rtype: str
2221
2494
  """
2222
2495
  return self._SubLabelCode
@@ -2228,7 +2501,6 @@ class ImageResultsResultDetail(AbstractModel):
2228
2501
  @property
2229
2502
  def SubLabel(self):
2230
2503
  """该字段用于返回恶意标签下对应的子标签的检测结果,如:*Porn-SexBehavior*等子标签。
2231
- 注意:此字段可能返回 null,表示取不到有效值。
2232
2504
  :rtype: str
2233
2505
  """
2234
2506
  return self._SubLabel
@@ -2237,6 +2509,17 @@ class ImageResultsResultDetail(AbstractModel):
2237
2509
  def SubLabel(self, SubLabel):
2238
2510
  self._SubLabel = SubLabel
2239
2511
 
2512
+ @property
2513
+ def OcrHitInfos(self):
2514
+ """该字段用于返回OCR命中的关键词信息。
2515
+ :rtype: list of HitInfo
2516
+ """
2517
+ return self._OcrHitInfos
2518
+
2519
+ @OcrHitInfos.setter
2520
+ def OcrHitInfos(self, OcrHitInfos):
2521
+ self._OcrHitInfos = OcrHitInfos
2522
+
2240
2523
 
2241
2524
  def _deserialize(self, params):
2242
2525
  self._Name = params.get("Name")
@@ -2252,6 +2535,12 @@ class ImageResultsResultDetail(AbstractModel):
2252
2535
  self._Score = params.get("Score")
2253
2536
  self._SubLabelCode = params.get("SubLabelCode")
2254
2537
  self._SubLabel = params.get("SubLabel")
2538
+ if params.get("OcrHitInfos") is not None:
2539
+ self._OcrHitInfos = []
2540
+ for item in params.get("OcrHitInfos"):
2541
+ obj = HitInfo()
2542
+ obj._deserialize(item)
2543
+ self._OcrHitInfos.append(obj)
2255
2544
  memeber_set = set(params.keys())
2256
2545
  for name, value in vars(self).items():
2257
2546
  property_name = name[1:]
@@ -2784,6 +3073,87 @@ class SegmentCosUrlList(AbstractModel):
2784
3073
 
2785
3074
 
2786
3075
 
3076
+ class SpeakerResult(AbstractModel):
3077
+ """说话人结果
3078
+
3079
+ """
3080
+
3081
+ def __init__(self):
3082
+ r"""
3083
+ :param _Label: 标签
3084
+ :type Label: str
3085
+ :param _Score: 分数
3086
+ :type Score: int
3087
+ :param _StartTime: 开始时间
3088
+ :type StartTime: float
3089
+ :param _EndTime: 结束时间
3090
+ :type EndTime: float
3091
+ """
3092
+ self._Label = None
3093
+ self._Score = None
3094
+ self._StartTime = None
3095
+ self._EndTime = None
3096
+
3097
+ @property
3098
+ def Label(self):
3099
+ """标签
3100
+ :rtype: str
3101
+ """
3102
+ return self._Label
3103
+
3104
+ @Label.setter
3105
+ def Label(self, Label):
3106
+ self._Label = Label
3107
+
3108
+ @property
3109
+ def Score(self):
3110
+ """分数
3111
+ :rtype: int
3112
+ """
3113
+ return self._Score
3114
+
3115
+ @Score.setter
3116
+ def Score(self, Score):
3117
+ self._Score = Score
3118
+
3119
+ @property
3120
+ def StartTime(self):
3121
+ """开始时间
3122
+ :rtype: float
3123
+ """
3124
+ return self._StartTime
3125
+
3126
+ @StartTime.setter
3127
+ def StartTime(self, StartTime):
3128
+ self._StartTime = StartTime
3129
+
3130
+ @property
3131
+ def EndTime(self):
3132
+ """结束时间
3133
+ :rtype: float
3134
+ """
3135
+ return self._EndTime
3136
+
3137
+ @EndTime.setter
3138
+ def EndTime(self, EndTime):
3139
+ self._EndTime = EndTime
3140
+
3141
+
3142
+ def _deserialize(self, params):
3143
+ self._Label = params.get("Label")
3144
+ self._Score = params.get("Score")
3145
+ self._StartTime = params.get("StartTime")
3146
+ self._EndTime = params.get("EndTime")
3147
+ memeber_set = set(params.keys())
3148
+ for name, value in vars(self).items():
3149
+ property_name = name[1:]
3150
+ if property_name in memeber_set:
3151
+ memeber_set.remove(property_name)
3152
+ if len(memeber_set) > 0:
3153
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3154
+
3155
+
3156
+
2787
3157
  class StorageInfo(AbstractModel):
2788
3158
  """数据存储信息
2789
3159
 
@@ -3499,4 +3869,181 @@ class TaskResult(AbstractModel):
3499
3869
  memeber_set.remove(property_name)
3500
3870
  if len(memeber_set) > 0:
3501
3871
  warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3872
+
3873
+
3874
+
3875
+ class TextPosition(AbstractModel):
3876
+ """文本关键词命中位置信息
3877
+
3878
+ """
3879
+
3880
+ def __init__(self):
3881
+ r"""
3882
+ :param _Start: 关键词在文本中的起始位置
3883
+ :type Start: int
3884
+ :param _End: 关键词在文本中的结束位置
3885
+ :type End: int
3886
+ """
3887
+ self._Start = None
3888
+ self._End = None
3889
+
3890
+ @property
3891
+ def Start(self):
3892
+ """关键词在文本中的起始位置
3893
+ :rtype: int
3894
+ """
3895
+ return self._Start
3896
+
3897
+ @Start.setter
3898
+ def Start(self, Start):
3899
+ self._Start = Start
3900
+
3901
+ @property
3902
+ def End(self):
3903
+ """关键词在文本中的结束位置
3904
+ :rtype: int
3905
+ """
3906
+ return self._End
3907
+
3908
+ @End.setter
3909
+ def End(self, End):
3910
+ self._End = End
3911
+
3912
+
3913
+ def _deserialize(self, params):
3914
+ self._Start = params.get("Start")
3915
+ self._End = params.get("End")
3916
+ memeber_set = set(params.keys())
3917
+ for name, value in vars(self).items():
3918
+ property_name = name[1:]
3919
+ if property_name in memeber_set:
3920
+ memeber_set.remove(property_name)
3921
+ if len(memeber_set) > 0:
3922
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3923
+
3924
+
3925
+
3926
+ class TravelResult(AbstractModel):
3927
+ """出行结果
3928
+
3929
+ """
3930
+
3931
+ def __init__(self):
3932
+ r"""
3933
+ :param _Label: 一级标签
3934
+ :type Label: str
3935
+ :param _SubLabel: 二级标签
3936
+ :type SubLabel: str
3937
+ :param _RiskLevel: 风险等级
3938
+ :type RiskLevel: str
3939
+ :param _AudioRole: 音频角色
3940
+ :type AudioRole: str
3941
+ :param _AudioText: 音频语音文本
3942
+ :type AudioText: str
3943
+ :param _StartTime: 开始时间
3944
+ :type StartTime: float
3945
+ :param _EndTime: 结束时间
3946
+ :type EndTime: float
3947
+ """
3948
+ self._Label = None
3949
+ self._SubLabel = None
3950
+ self._RiskLevel = None
3951
+ self._AudioRole = None
3952
+ self._AudioText = None
3953
+ self._StartTime = None
3954
+ self._EndTime = None
3955
+
3956
+ @property
3957
+ def Label(self):
3958
+ """一级标签
3959
+ :rtype: str
3960
+ """
3961
+ return self._Label
3962
+
3963
+ @Label.setter
3964
+ def Label(self, Label):
3965
+ self._Label = Label
3966
+
3967
+ @property
3968
+ def SubLabel(self):
3969
+ """二级标签
3970
+ :rtype: str
3971
+ """
3972
+ return self._SubLabel
3973
+
3974
+ @SubLabel.setter
3975
+ def SubLabel(self, SubLabel):
3976
+ self._SubLabel = SubLabel
3977
+
3978
+ @property
3979
+ def RiskLevel(self):
3980
+ """风险等级
3981
+ :rtype: str
3982
+ """
3983
+ return self._RiskLevel
3984
+
3985
+ @RiskLevel.setter
3986
+ def RiskLevel(self, RiskLevel):
3987
+ self._RiskLevel = RiskLevel
3988
+
3989
+ @property
3990
+ def AudioRole(self):
3991
+ """音频角色
3992
+ :rtype: str
3993
+ """
3994
+ return self._AudioRole
3995
+
3996
+ @AudioRole.setter
3997
+ def AudioRole(self, AudioRole):
3998
+ self._AudioRole = AudioRole
3999
+
4000
+ @property
4001
+ def AudioText(self):
4002
+ """音频语音文本
4003
+ :rtype: str
4004
+ """
4005
+ return self._AudioText
4006
+
4007
+ @AudioText.setter
4008
+ def AudioText(self, AudioText):
4009
+ self._AudioText = AudioText
4010
+
4011
+ @property
4012
+ def StartTime(self):
4013
+ """开始时间
4014
+ :rtype: float
4015
+ """
4016
+ return self._StartTime
4017
+
4018
+ @StartTime.setter
4019
+ def StartTime(self, StartTime):
4020
+ self._StartTime = StartTime
4021
+
4022
+ @property
4023
+ def EndTime(self):
4024
+ """结束时间
4025
+ :rtype: float
4026
+ """
4027
+ return self._EndTime
4028
+
4029
+ @EndTime.setter
4030
+ def EndTime(self, EndTime):
4031
+ self._EndTime = EndTime
4032
+
4033
+
4034
+ def _deserialize(self, params):
4035
+ self._Label = params.get("Label")
4036
+ self._SubLabel = params.get("SubLabel")
4037
+ self._RiskLevel = params.get("RiskLevel")
4038
+ self._AudioRole = params.get("AudioRole")
4039
+ self._AudioText = params.get("AudioText")
4040
+ self._StartTime = params.get("StartTime")
4041
+ self._EndTime = params.get("EndTime")
4042
+ memeber_set = set(params.keys())
4043
+ for name, value in vars(self).items():
4044
+ property_name = name[1:]
4045
+ if property_name in memeber_set:
4046
+ memeber_set.remove(property_name)
4047
+ if len(memeber_set) > 0:
4048
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3502
4049