tencentcloud-sdk-python 3.0.1126__py2.py3-none-any.whl → 3.0.1128__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.

Potentially problematic release.


This version of tencentcloud-sdk-python might be problematic. Click here for more details.

Files changed (38) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/aiart/v20221229/aiart_client.py +4 -11
  3. tencentcloud/aiart/v20221229/models.py +6 -5
  4. tencentcloud/antiddos/v20200309/models.py +13 -0
  5. tencentcloud/asr/v20190614/asr_client.py +1 -1
  6. tencentcloud/asr/v20190614/models.py +15 -4
  7. tencentcloud/cdb/v20170320/cdb_client.py +46 -0
  8. tencentcloud/cdb/v20170320/errorcodes.py +3 -0
  9. tencentcloud/cdb/v20170320/models.py +360 -0
  10. tencentcloud/csip/v20221121/models.py +3 -0
  11. tencentcloud/es/v20180416/models.py +12 -12
  12. tencentcloud/faceid/v20180301/faceid_client.py +1 -1
  13. tencentcloud/faceid/v20180301/models.py +12 -0
  14. tencentcloud/hunyuan/v20230901/hunyuan_client.py +8 -8
  15. tencentcloud/hunyuan/v20230901/models.py +121 -30
  16. tencentcloud/iss/v20230517/models.py +50 -0
  17. tencentcloud/lke/__init__.py +0 -0
  18. tencentcloud/lke/v20231130/__init__.py +0 -0
  19. tencentcloud/lke/v20231130/errorcodes.py +30 -0
  20. tencentcloud/lke/v20231130/lke_client.py +1751 -0
  21. tencentcloud/lke/v20231130/models.py +13358 -0
  22. tencentcloud/mna/v20210119/errorcodes.py +12 -0
  23. tencentcloud/mna/v20210119/models.py +301 -5
  24. tencentcloud/monitor/v20180724/models.py +0 -82
  25. tencentcloud/monitor/v20180724/monitor_client.py +0 -23
  26. tencentcloud/redis/v20180412/models.py +1 -1
  27. tencentcloud/sms/v20210111/models.py +1 -0
  28. tencentcloud/soe/v20180724/models.py +1 -1
  29. tencentcloud/tione/v20211111/models.py +48 -1
  30. tencentcloud/trtc/v20190722/models.py +97 -2
  31. tencentcloud/trtc/v20190722/trtc_client.py +3 -3
  32. tencentcloud/wedata/v20210820/models.py +345 -2088
  33. tencentcloud/wedata/v20210820/wedata_client.py +0 -253
  34. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/METADATA +1 -1
  35. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/RECORD +38 -33
  36. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/LICENSE +0 -0
  37. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/WHEEL +0 -0
  38. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/top_level.txt +0 -0
@@ -1837,14 +1837,14 @@ class CreateServerlessInstanceRequest(AbstractModel):
1837
1837
 
1838
1838
  def __init__(self):
1839
1839
  r"""
1840
+ :param _IndexName: 索引名,需以-AppId结尾
1841
+ :type IndexName: str
1840
1842
  :param _Zone: 可用区
1841
1843
  :type Zone: str
1842
1844
  :param _VpcId: 私有网络ID
1843
1845
  :type VpcId: str
1844
1846
  :param _SubnetId: 子网ID
1845
1847
  :type SubnetId: str
1846
- :param _IndexName: 索引名,需以-AppId结尾
1847
- :type IndexName: str
1848
1848
  :param _IndexMetaJson: 创建的索引元数据JSON,如mappings、settings
1849
1849
  :type IndexMetaJson: str
1850
1850
  :param _SpaceId: 创建索引的空间ID
@@ -1862,10 +1862,10 @@ class CreateServerlessInstanceRequest(AbstractModel):
1862
1862
  :param _KibanaWhiteIpList: kibana公网白名单
1863
1863
  :type KibanaWhiteIpList: list of str
1864
1864
  """
1865
+ self._IndexName = None
1865
1866
  self._Zone = None
1866
1867
  self._VpcId = None
1867
1868
  self._SubnetId = None
1868
- self._IndexName = None
1869
1869
  self._IndexMetaJson = None
1870
1870
  self._SpaceId = None
1871
1871
  self._Username = None
@@ -1875,6 +1875,14 @@ class CreateServerlessInstanceRequest(AbstractModel):
1875
1875
  self._TagList = None
1876
1876
  self._KibanaWhiteIpList = None
1877
1877
 
1878
+ @property
1879
+ def IndexName(self):
1880
+ return self._IndexName
1881
+
1882
+ @IndexName.setter
1883
+ def IndexName(self, IndexName):
1884
+ self._IndexName = IndexName
1885
+
1878
1886
  @property
1879
1887
  def Zone(self):
1880
1888
  return self._Zone
@@ -1899,14 +1907,6 @@ class CreateServerlessInstanceRequest(AbstractModel):
1899
1907
  def SubnetId(self, SubnetId):
1900
1908
  self._SubnetId = SubnetId
1901
1909
 
1902
- @property
1903
- def IndexName(self):
1904
- return self._IndexName
1905
-
1906
- @IndexName.setter
1907
- def IndexName(self, IndexName):
1908
- self._IndexName = IndexName
1909
-
1910
1910
  @property
1911
1911
  def IndexMetaJson(self):
1912
1912
  return self._IndexMetaJson
@@ -1973,10 +1973,10 @@ class CreateServerlessInstanceRequest(AbstractModel):
1973
1973
 
1974
1974
 
1975
1975
  def _deserialize(self, params):
1976
+ self._IndexName = params.get("IndexName")
1976
1977
  self._Zone = params.get("Zone")
1977
1978
  self._VpcId = params.get("VpcId")
1978
1979
  self._SubnetId = params.get("SubnetId")
1979
- self._IndexName = params.get("IndexName")
1980
1980
  self._IndexMetaJson = params.get("IndexMetaJson")
1981
1981
  self._SpaceId = params.get("SpaceId")
1982
1982
  self._Username = params.get("Username")
@@ -579,7 +579,7 @@ class FaceidClient(AbstractClient):
579
579
 
580
580
 
581
581
  def ImageRecognition(self, request):
582
- """传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人。
582
+ """传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人(该接口已停止接入,新客户请使用<a href="https://cloud.tencent.com/document/product/1007/102203">照片人脸核身(V2.0)</a>接口)。
583
583
 
584
584
  :param request: Request instance for ImageRecognition.
585
585
  :type request: :class:`tencentcloud.faceid.v20180301.models.ImageRecognitionRequest`
@@ -7784,9 +7784,12 @@ class RuleIdConfig(AbstractModel):
7784
7784
  0:问答模式,DetectAuth接口需要传入IntentionQuestions字段;
7785
7785
  1:点头模式,DetectAuth接口需要传入IntentionActions字段;
7786
7786
  :type IntentionType: int
7787
+ :param _MouthOpenRecognition: 用户语音回答过程中是否开启张嘴识别检测,默认不开启,仅在意愿核身问答模式中使用。
7788
+ :type MouthOpenRecognition: bool
7787
7789
  """
7788
7790
  self._IntentionRecognition = None
7789
7791
  self._IntentionType = None
7792
+ self._MouthOpenRecognition = None
7790
7793
 
7791
7794
  @property
7792
7795
  def IntentionRecognition(self):
@@ -7804,10 +7807,19 @@ class RuleIdConfig(AbstractModel):
7804
7807
  def IntentionType(self, IntentionType):
7805
7808
  self._IntentionType = IntentionType
7806
7809
 
7810
+ @property
7811
+ def MouthOpenRecognition(self):
7812
+ return self._MouthOpenRecognition
7813
+
7814
+ @MouthOpenRecognition.setter
7815
+ def MouthOpenRecognition(self, MouthOpenRecognition):
7816
+ self._MouthOpenRecognition = MouthOpenRecognition
7817
+
7807
7818
 
7808
7819
  def _deserialize(self, params):
7809
7820
  self._IntentionRecognition = params.get("IntentionRecognition")
7810
7821
  self._IntentionType = params.get("IntentionType")
7822
+ self._MouthOpenRecognition = params.get("MouthOpenRecognition")
7811
7823
  memeber_set = set(params.keys())
7812
7824
  for name, value in vars(self).items():
7813
7825
  property_name = name[1:]
@@ -27,11 +27,11 @@ class HunyuanClient(AbstractClient):
27
27
 
28
28
 
29
29
  def ChatPro(self, request):
30
- """腾讯混元大模型高级版是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口为SSE协议。
30
+ """腾讯混元大模型高级版是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
31
31
 
32
- 1.本接口暂不支持返回图片内容。
33
- 2.默认单账号限制并发数为5路,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
34
- 3.请使用SDK调用本接口 ,每种开发语言的SDK GitHub仓库examples/hunyuan/v20230901/目录下有提供示例供参考。
32
+ 1. 本接口暂不支持返回图片内容。
33
+ 2. 默认单账号限制并发数为 5 路,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
34
+ 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。
35
35
 
36
36
  :param request: Request instance for ChatPro.
37
37
  :type request: :class:`tencentcloud.hunyuan.v20230901.models.ChatProRequest`
@@ -49,11 +49,11 @@ class HunyuanClient(AbstractClient):
49
49
 
50
50
 
51
51
  def ChatStd(self, request):
52
- """腾讯混元大模型标准版是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口为SSE协议。
52
+ """腾讯混元大模型标准版是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
53
53
 
54
- 1.本接口暂不支持返回图片内容。
55
- 2.默认单账号限制并发数为5路,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
56
- 3.请使用SDK调用本接口 ,每种开发语言的SDK GitHub仓库examples/hunyuan/v20230901/目录下有提供示例供参考。
54
+ 1. 本接口暂不支持返回图片内容。
55
+ 2. 默认单账号限制并发数为 5 路,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
56
+ 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。
57
57
 
58
58
  :param request: Request instance for ChatStd.
59
59
  :type request: :class:`tencentcloud.hunyuan.v20230901.models.ChatStdRequest`
@@ -27,24 +27,43 @@ class ChatProRequest(AbstractModel):
27
27
  r"""
28
28
  :param _Messages: 聊天上下文信息。
29
29
  说明:
30
- 1.长度最多为40, 按对话时间从旧到新在数组中排列。
31
- 2.Message的Role当前可选值:system、user、assistant,其中,system角色是可选的,如果存在,必须位于列表的最开始。user和assistant需要交替出现(一问一答),最后一个为user提问, Content不能为空。
32
- 3.Messages中Content总长度不超过16000 token,超过则会截断最前面的内容,只保留尾部内容。建议不超过4000 token
30
+ 1. 长度最多为 40,按对话时间从旧到新在数组中排列。
31
+ 2. Message Role 当前可选值:system、user、assistant。其中,system 角色是可选的,如果存在,必须位于列表的最开始。此外,user assistant 需交替出现(一问一答),以 user 提问开始和结束,且 Content 不能为空。Role 的顺序示例:[system(可选) user assistant user assistant user ...]。
32
+ 3. Messages Content 总长度不超过 16000 Token,超过则会截断最前面的内容,只保留尾部内容。建议不超过 4000 Token
33
33
  :type Messages: list of Message
34
34
  :param _TopP: 说明:
35
- 1.影响输出文本的多样性,取值越大,生成文本的多样性越强。
36
- 2.默认1.0,取值区间为[0.0, 1.0]。
37
- 3.非必要不建议使用, 不合理的取值会影响效果。
35
+ 1. 影响输出文本的多样性,取值越大,生成文本的多样性越强。
36
+ 2. 默认 1.0,取值区间为 [0.0, 1.0]。
37
+ 3. 非必要不建议使用,不合理的取值会影响效果。
38
38
  :type TopP: float
39
39
  :param _Temperature: 说明:
40
- 1.较高的数值会使输出更加随机,而较低的数值会使其更加集中和确定。
41
- 2.默认1.0,取值区间为[0.0,2.0]。
42
- 3.非必要不建议使用,不合理的取值会影响效果。
40
+ 1. 较高的数值会使输出更加随机,而较低的数值会使其更加集中和确定。
41
+ 2. 默认 1.0,取值区间为 [0.0,2.0]。
42
+ 3. 非必要不建议使用,不合理的取值会影响效果。
43
43
  :type Temperature: float
44
+ :param _Stream: 流式调用开关。
45
+ 说明:
46
+ 1. 未传值时默认为流式调用。
47
+ 2. 流式调用时以 SSE 协议增量返回结果。
48
+ 3. 非流式调用时接口响应耗时较长,非必要不建议使用。
49
+ 4. 非流式调用时只返回一次最终结果,调用方式与普通 HTTP 请求无异。
50
+ :type Stream: bool
51
+ :param _StreamModeration: 流式输出审核开关。
52
+ 说明:
53
+ 1. 当 Stream 字段值为 true 时,该字段有效。
54
+ 2. 未传值时默认不使用流式输出审核。
55
+ 3. 如果值为 true,将对输出内容进行分段审核,审核通过的内容流式输出返回。如果出现审核不过,响应中的 finish_reason 值为 sensitive。
56
+ 4. 如果值为 false,则需要审核完所有输出内容后再返回结果。
57
+
58
+ 注意:
59
+ 当选择流式输出审核时,可能会出现部分内容已输出,但中间某一段响应中的 finish_reason 值为 sensitive,此时说明安全审核未通过。如果业务场景有实时文字上屏的需求,需要自行撤回已上屏的内容,并建议自定义替换为一条提示语,如 “这个问题我不方便回答,不如我们换个话题试试”,以保障终端体验。
60
+ :type StreamModeration: bool
44
61
  """
45
62
  self._Messages = None
46
63
  self._TopP = None
47
64
  self._Temperature = None
65
+ self._Stream = None
66
+ self._StreamModeration = None
48
67
 
49
68
  @property
50
69
  def Messages(self):
@@ -70,6 +89,22 @@ class ChatProRequest(AbstractModel):
70
89
  def Temperature(self, Temperature):
71
90
  self._Temperature = Temperature
72
91
 
92
+ @property
93
+ def Stream(self):
94
+ return self._Stream
95
+
96
+ @Stream.setter
97
+ def Stream(self, Stream):
98
+ self._Stream = Stream
99
+
100
+ @property
101
+ def StreamModeration(self):
102
+ return self._StreamModeration
103
+
104
+ @StreamModeration.setter
105
+ def StreamModeration(self, StreamModeration):
106
+ self._StreamModeration = StreamModeration
107
+
73
108
 
74
109
  def _deserialize(self, params):
75
110
  if params.get("Messages") is not None:
@@ -80,6 +115,8 @@ class ChatProRequest(AbstractModel):
80
115
  self._Messages.append(obj)
81
116
  self._TopP = params.get("TopP")
82
117
  self._Temperature = params.get("Temperature")
118
+ self._Stream = params.get("Stream")
119
+ self._StreamModeration = params.get("StreamModeration")
83
120
  memeber_set = set(params.keys())
84
121
  for name, value in vars(self).items():
85
122
  property_name = name[1:]
@@ -97,14 +134,14 @@ class ChatProResponse(AbstractModel):
97
134
 
98
135
  def __init__(self):
99
136
  r"""
100
- :param _Created: unix 时间戳,单位为秒。
137
+ :param _Created: Unix 时间戳,单位为秒。
101
138
  :type Created: int
102
- :param _Usage: token统计信息。
103
- 按照总token数量计费。
139
+ :param _Usage: Token 统计信息。
140
+ 按照总 Token 数量计费。
104
141
  :type Usage: :class:`tencentcloud.hunyuan.v20230901.models.Usage`
105
142
  :param _Note: 免责声明。
106
143
  :type Note: str
107
- :param _Id: 本轮对话的id
144
+ :param _Id: 本轮对话的 ID
108
145
  :type Id: str
109
146
  :param _Choices: 回复内容。
110
147
  :type Choices: list of Choice
@@ -208,24 +245,44 @@ class ChatStdRequest(AbstractModel):
208
245
  r"""
209
246
  :param _Messages: 聊天上下文信息。
210
247
  说明:
211
- 1.长度最多为40, 按对话时间从旧到新在数组中排列。
212
- 2.Message的Role当前可选值:user、assistant,其中,user和assistant需要交替出现(一问一答),最后一个为user提问, Content不能为空。
213
- 3.Messages中Content总长度不超过16000 token,超过则会截断最前面的内容,只保留尾部内容。建议不超过4000 token
248
+ 1. 长度最多为 40,按对话时间从旧到新在数组中排列。
249
+ 2. Message Role 当前可选值:user、assistant。其中,user assistant 需交替出现(一问一答),以 user 提问开始和结束,且 Content 不能为空。Role 的顺序示例:[user assistant user assistant user ...]。
250
+ 3. Messages Content 总长度不超过 16000 Token,超过则会截断最前面的内容,只保留尾部内容。建议不超过 4000 Token
251
+
214
252
  :type Messages: list of Message
215
253
  :param _TopP: 说明:
216
- 1.影响输出文本的多样性,取值越大,生成文本的多样性越强。
217
- 2.默认1.0,取值区间为[0.0, 1.0]。
218
- 3.非必要不建议使用, 不合理的取值会影响效果。
254
+ 1. 影响输出文本的多样性,取值越大,生成文本的多样性越强。
255
+ 2. 默认 1.0,取值区间为 [0.0, 1.0]。
256
+ 3. 非必要不建议使用,不合理的取值会影响效果。
219
257
  :type TopP: float
220
258
  :param _Temperature: 说明:
221
- 1.较高的数值会使输出更加随机,而较低的数值会使其更加集中和确定。
222
- 2.默认1.0,取值区间为[0.0,2.0]。
223
- 3.非必要不建议使用,不合理的取值会影响效果。
259
+ 1. 较高的数值会使输出更加随机,而较低的数值会使其更加集中和确定。
260
+ 2. 默认 1.0,取值区间为 [0.0,2.0]。
261
+ 3. 非必要不建议使用,不合理的取值会影响效果。
224
262
  :type Temperature: float
263
+ :param _Stream: 流式调用开关。
264
+ 说明:
265
+ 1. 未传值时默认为流式调用。
266
+ 2. 流式调用时以 SSE 协议增量返回结果。
267
+ 3. 非流式调用时接口响应耗时较长,非必要不建议使用。
268
+ 4. 非流式调用时只返回一次最终结果,调用方式与普通 HTTP 请求无异。
269
+ :type Stream: bool
270
+ :param _StreamModeration: 流式输出审核开关。
271
+ 说明:
272
+ 1. 当 Stream 字段值为 true 时,该字段有效。
273
+ 2. 未传值时默认不使用流式输出审核。
274
+ 3. 如果值为 true,将对输出内容进行分段审核,审核通过的内容流式输出返回。如果出现审核不过,响应中的 finish_reason 值为 sensitive。
275
+ 4. 如果值为 false,则需要审核完所有输出内容后再返回结果。
276
+
277
+ 注意:
278
+ 当选择流式输出审核时,可能会出现部分内容已输出,但中间某一段响应中的 finish_reason 值为 sensitive,此时说明安全审核未通过。如果业务场景有实时文字上屏的需求,需要自行撤回已上屏的内容,并建议自定义替换为一条提示语,如 “这个问题我不方便回答,不如我们换个话题试试”,以保障终端体验。
279
+ :type StreamModeration: bool
225
280
  """
226
281
  self._Messages = None
227
282
  self._TopP = None
228
283
  self._Temperature = None
284
+ self._Stream = None
285
+ self._StreamModeration = None
229
286
 
230
287
  @property
231
288
  def Messages(self):
@@ -251,6 +308,22 @@ class ChatStdRequest(AbstractModel):
251
308
  def Temperature(self, Temperature):
252
309
  self._Temperature = Temperature
253
310
 
311
+ @property
312
+ def Stream(self):
313
+ return self._Stream
314
+
315
+ @Stream.setter
316
+ def Stream(self, Stream):
317
+ self._Stream = Stream
318
+
319
+ @property
320
+ def StreamModeration(self):
321
+ return self._StreamModeration
322
+
323
+ @StreamModeration.setter
324
+ def StreamModeration(self, StreamModeration):
325
+ self._StreamModeration = StreamModeration
326
+
254
327
 
255
328
  def _deserialize(self, params):
256
329
  if params.get("Messages") is not None:
@@ -261,6 +334,8 @@ class ChatStdRequest(AbstractModel):
261
334
  self._Messages.append(obj)
262
335
  self._TopP = params.get("TopP")
263
336
  self._Temperature = params.get("Temperature")
337
+ self._Stream = params.get("Stream")
338
+ self._StreamModeration = params.get("StreamModeration")
264
339
  memeber_set = set(params.keys())
265
340
  for name, value in vars(self).items():
266
341
  property_name = name[1:]
@@ -278,14 +353,14 @@ class ChatStdResponse(AbstractModel):
278
353
 
279
354
  def __init__(self):
280
355
  r"""
281
- :param _Created: unix 时间戳,单位为秒。
356
+ :param _Created: Unix 时间戳,单位为秒。
282
357
  :type Created: int
283
- :param _Usage: token统计信息。
284
- 按照总token数量计费。
358
+ :param _Usage: Token 统计信息。
359
+ 按照总 Token 数量计费。
285
360
  :type Usage: :class:`tencentcloud.hunyuan.v20230901.models.Usage`
286
361
  :param _Note: 免责声明。
287
362
  :type Note: str
288
- :param _Id: 本轮对话的id
363
+ :param _Id: 本轮对话的 ID
289
364
  :type Id: str
290
365
  :param _Choices: 回复内容。
291
366
  :type Choices: list of Choice
@@ -387,13 +462,18 @@ class Choice(AbstractModel):
387
462
 
388
463
  def __init__(self):
389
464
  r"""
390
- :param _FinishReason: 流式结束标志位,为 stop 则表示尾包。
465
+ :param _FinishReason: 结束标志位,为 stop 则表示尾包。
391
466
  :type FinishReason: str
392
- :param _Delta: 返回值。
467
+ :param _Delta: 增量返回值,流式调用时使用该字段。
468
+ 注意:此字段可能返回 null,表示取不到有效值。
393
469
  :type Delta: :class:`tencentcloud.hunyuan.v20230901.models.Delta`
470
+ :param _Message: 返回值,非流式调用时使用该字段。
471
+ 注意:此字段可能返回 null,表示取不到有效值。
472
+ :type Message: :class:`tencentcloud.hunyuan.v20230901.models.Message`
394
473
  """
395
474
  self._FinishReason = None
396
475
  self._Delta = None
476
+ self._Message = None
397
477
 
398
478
  @property
399
479
  def FinishReason(self):
@@ -411,12 +491,23 @@ class Choice(AbstractModel):
411
491
  def Delta(self, Delta):
412
492
  self._Delta = Delta
413
493
 
494
+ @property
495
+ def Message(self):
496
+ return self._Message
497
+
498
+ @Message.setter
499
+ def Message(self, Message):
500
+ self._Message = Message
501
+
414
502
 
415
503
  def _deserialize(self, params):
416
504
  self._FinishReason = params.get("FinishReason")
417
505
  if params.get("Delta") is not None:
418
506
  self._Delta = Delta()
419
507
  self._Delta._deserialize(params.get("Delta"))
508
+ if params.get("Message") is not None:
509
+ self._Message = Message()
510
+ self._Message._deserialize(params.get("Message"))
420
511
  memeber_set = set(params.keys())
421
512
  for name, value in vars(self).items():
422
513
  property_name = name[1:]
@@ -809,7 +900,7 @@ class GetTokenCountResponse(AbstractModel):
809
900
 
810
901
 
811
902
  class Message(AbstractModel):
812
- """会话内容, 按对话时间序排列,长度最多为40
903
+ """单条消息
813
904
 
814
905
  """
815
906
 
@@ -817,7 +908,7 @@ class Message(AbstractModel):
817
908
  r"""
818
909
  :param _Role: 角色
819
910
  :type Role: str
820
- :param _Content: 消息的内容
911
+ :param _Content: 消息内容
821
912
  :type Content: str
822
913
  """
823
914
  self._Role = None
@@ -5030,6 +5030,12 @@ class DescribeDeviceData(AbstractModel):
5030
5030
  :param _Manufacturer: 设备厂商
5031
5031
  注意:此字段可能返回 null,表示取不到有效值。
5032
5032
  :type Manufacturer: str
5033
+ :param _AudioSwitch: 音频关开(0:关闭;1:开启)关闭时丢弃音频
5034
+ 注意:此字段可能返回 null,表示取不到有效值。
5035
+ :type AudioSwitch: int
5036
+ :param _SubscribeSwitch: 订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效
5037
+ 注意:此字段可能返回 null,表示取不到有效值。
5038
+ :type SubscribeSwitch: int
5033
5039
  """
5034
5040
  self._DeviceId = None
5035
5041
  self._Code = None
@@ -5057,6 +5063,8 @@ class DescribeDeviceData(AbstractModel):
5057
5063
  self._Username = None
5058
5064
  self._Region = None
5059
5065
  self._Manufacturer = None
5066
+ self._AudioSwitch = None
5067
+ self._SubscribeSwitch = None
5060
5068
 
5061
5069
  @property
5062
5070
  def DeviceId(self):
@@ -5266,6 +5274,22 @@ class DescribeDeviceData(AbstractModel):
5266
5274
  def Manufacturer(self, Manufacturer):
5267
5275
  self._Manufacturer = Manufacturer
5268
5276
 
5277
+ @property
5278
+ def AudioSwitch(self):
5279
+ return self._AudioSwitch
5280
+
5281
+ @AudioSwitch.setter
5282
+ def AudioSwitch(self, AudioSwitch):
5283
+ self._AudioSwitch = AudioSwitch
5284
+
5285
+ @property
5286
+ def SubscribeSwitch(self):
5287
+ return self._SubscribeSwitch
5288
+
5289
+ @SubscribeSwitch.setter
5290
+ def SubscribeSwitch(self, SubscribeSwitch):
5291
+ self._SubscribeSwitch = SubscribeSwitch
5292
+
5269
5293
 
5270
5294
  def _deserialize(self, params):
5271
5295
  self._DeviceId = params.get("DeviceId")
@@ -5294,6 +5318,8 @@ class DescribeDeviceData(AbstractModel):
5294
5318
  self._Username = params.get("Username")
5295
5319
  self._Region = params.get("Region")
5296
5320
  self._Manufacturer = params.get("Manufacturer")
5321
+ self._AudioSwitch = params.get("AudioSwitch")
5322
+ self._SubscribeSwitch = params.get("SubscribeSwitch")
5297
5323
  memeber_set = set(params.keys())
5298
5324
  for name, value in vars(self).items():
5299
5325
  property_name = name[1:]
@@ -15496,6 +15522,10 @@ class UpdateUserDeviceRequest(AbstractModel):
15496
15522
  :type Username: str
15497
15523
  :param _ProtocolType: 网关设备接入协议(仅网关接入支持)
15498
15524
  :type ProtocolType: int
15525
+ :param _AudioSwitch: 音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频
15526
+ :type AudioSwitch: int
15527
+ :param _SubscribeSwitch: 订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效
15528
+ :type SubscribeSwitch: int
15499
15529
  """
15500
15530
  self._DeviceId = None
15501
15531
  self._Name = None
@@ -15506,6 +15536,8 @@ class UpdateUserDeviceRequest(AbstractModel):
15506
15536
  self._Port = None
15507
15537
  self._Username = None
15508
15538
  self._ProtocolType = None
15539
+ self._AudioSwitch = None
15540
+ self._SubscribeSwitch = None
15509
15541
 
15510
15542
  @property
15511
15543
  def DeviceId(self):
@@ -15579,6 +15611,22 @@ class UpdateUserDeviceRequest(AbstractModel):
15579
15611
  def ProtocolType(self, ProtocolType):
15580
15612
  self._ProtocolType = ProtocolType
15581
15613
 
15614
+ @property
15615
+ def AudioSwitch(self):
15616
+ return self._AudioSwitch
15617
+
15618
+ @AudioSwitch.setter
15619
+ def AudioSwitch(self, AudioSwitch):
15620
+ self._AudioSwitch = AudioSwitch
15621
+
15622
+ @property
15623
+ def SubscribeSwitch(self):
15624
+ return self._SubscribeSwitch
15625
+
15626
+ @SubscribeSwitch.setter
15627
+ def SubscribeSwitch(self, SubscribeSwitch):
15628
+ self._SubscribeSwitch = SubscribeSwitch
15629
+
15582
15630
 
15583
15631
  def _deserialize(self, params):
15584
15632
  self._DeviceId = params.get("DeviceId")
@@ -15590,6 +15638,8 @@ class UpdateUserDeviceRequest(AbstractModel):
15590
15638
  self._Port = params.get("Port")
15591
15639
  self._Username = params.get("Username")
15592
15640
  self._ProtocolType = params.get("ProtocolType")
15641
+ self._AudioSwitch = params.get("AudioSwitch")
15642
+ self._SubscribeSwitch = params.get("SubscribeSwitch")
15593
15643
  memeber_set = set(params.keys())
15594
15644
  for name, value in vars(self).items():
15595
15645
  property_name = name[1:]
File without changes
File without changes
@@ -0,0 +1,30 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+ # 操作失败。
18
+ FAILEDOPERATION = 'FailedOperation'
19
+
20
+ # 内部错误。
21
+ INTERNALERROR = 'InternalError'
22
+
23
+ # 参数错误。
24
+ INVALIDPARAMETER = 'InvalidParameter'
25
+
26
+ # 超过配额限制。
27
+ LIMITEXCEEDED = 'LimitExceeded'
28
+
29
+ # 请求的次数超过了频率限制。
30
+ REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'