tencentcloud-sdk-python 3.0.1357__py2.py3-none-any.whl → 3.0.1358__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 (41) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/bh/v20230418/bh_client.py +115 -0
  3. tencentcloud/bh/v20230418/errorcodes.py +15 -0
  4. tencentcloud/bh/v20230418/models.py +854 -28
  5. tencentcloud/bpaas/v20181217/models.py +0 -54
  6. tencentcloud/cdb/v20170320/cdb_client.py +1 -1
  7. tencentcloud/cdb/v20170320/models.py +15 -0
  8. tencentcloud/chc/v20230418/chc_client.py +23 -0
  9. tencentcloud/chc/v20230418/models.py +185 -2
  10. tencentcloud/cls/v20201016/cls_client.py +23 -0
  11. tencentcloud/cls/v20201016/models.py +79 -0
  12. tencentcloud/cwp/v20180228/models.py +2 -2
  13. tencentcloud/es/v20180416/models.py +57 -6
  14. tencentcloud/es/v20250101/__init__.py +0 -0
  15. tencentcloud/es/v20250101/errorcodes.py +45 -0
  16. tencentcloud/es/v20250101/es_client.py +228 -0
  17. tencentcloud/es/v20250101/models.py +2168 -0
  18. tencentcloud/ess/v20201111/ess_client.py +33 -0
  19. tencentcloud/ess/v20201111/models.py +137 -2
  20. tencentcloud/essbasic/v20210526/essbasic_client.py +33 -0
  21. tencentcloud/essbasic/v20210526/models.py +120 -0
  22. tencentcloud/lcic/v20220817/models.py +15 -0
  23. tencentcloud/ocr/v20181119/models.py +2 -2
  24. tencentcloud/sts/v20180813/errorcodes.py +9 -0
  25. tencentcloud/sts/v20180813/models.py +171 -0
  26. tencentcloud/sts/v20180813/sts_client.py +23 -0
  27. tencentcloud/tcr/v20190924/models.py +10 -6
  28. tencentcloud/tdmq/v20200217/models.py +68 -0
  29. tencentcloud/tione/v20211111/errorcodes.py +3 -0
  30. tencentcloud/tione/v20211111/models.py +384 -0
  31. tencentcloud/tione/v20211111/tione_client.py +23 -0
  32. tencentcloud/tse/v20201207/models.py +0 -296
  33. tencentcloud/tsf/v20180326/models.py +6 -110
  34. tencentcloud/tsf/v20180326/tsf_client.py +3 -1
  35. tencentcloud/waf/v20180125/models.py +473 -0
  36. tencentcloud/waf/v20180125/waf_client.py +69 -0
  37. {tencentcloud_sdk_python-3.0.1357.dist-info → tencentcloud_sdk_python-3.0.1358.dist-info}/METADATA +1 -1
  38. {tencentcloud_sdk_python-3.0.1357.dist-info → tencentcloud_sdk_python-3.0.1358.dist-info}/RECORD +41 -37
  39. {tencentcloud_sdk_python-3.0.1357.dist-info → tencentcloud_sdk_python-3.0.1358.dist-info}/LICENSE +0 -0
  40. {tencentcloud_sdk_python-3.0.1357.dist-info → tencentcloud_sdk_python-3.0.1358.dist-info}/WHEEL +0 -0
  41. {tencentcloud_sdk_python-3.0.1357.dist-info → tencentcloud_sdk_python-3.0.1358.dist-info}/top_level.txt +0 -0
@@ -11154,6 +11154,85 @@ class DeleteConsumerResponse(AbstractModel):
11154
11154
  self._RequestId = params.get("RequestId")
11155
11155
 
11156
11156
 
11157
+ class DeleteCosRechargeRequest(AbstractModel):
11158
+ """DeleteCosRecharge请求参数结构体
11159
+
11160
+ """
11161
+
11162
+ def __init__(self):
11163
+ r"""
11164
+ :param _Id: COS导入配置Id
11165
+ :type Id: str
11166
+ :param _TopicId: 日志主题Id
11167
+ :type TopicId: str
11168
+ """
11169
+ self._Id = None
11170
+ self._TopicId = None
11171
+
11172
+ @property
11173
+ def Id(self):
11174
+ """COS导入配置Id
11175
+ :rtype: str
11176
+ """
11177
+ return self._Id
11178
+
11179
+ @Id.setter
11180
+ def Id(self, Id):
11181
+ self._Id = Id
11182
+
11183
+ @property
11184
+ def TopicId(self):
11185
+ """日志主题Id
11186
+ :rtype: str
11187
+ """
11188
+ return self._TopicId
11189
+
11190
+ @TopicId.setter
11191
+ def TopicId(self, TopicId):
11192
+ self._TopicId = TopicId
11193
+
11194
+
11195
+ def _deserialize(self, params):
11196
+ self._Id = params.get("Id")
11197
+ self._TopicId = params.get("TopicId")
11198
+ memeber_set = set(params.keys())
11199
+ for name, value in vars(self).items():
11200
+ property_name = name[1:]
11201
+ if property_name in memeber_set:
11202
+ memeber_set.remove(property_name)
11203
+ if len(memeber_set) > 0:
11204
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11205
+
11206
+
11207
+
11208
+ class DeleteCosRechargeResponse(AbstractModel):
11209
+ """DeleteCosRecharge返回参数结构体
11210
+
11211
+ """
11212
+
11213
+ def __init__(self):
11214
+ r"""
11215
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11216
+ :type RequestId: str
11217
+ """
11218
+ self._RequestId = None
11219
+
11220
+ @property
11221
+ def RequestId(self):
11222
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11223
+ :rtype: str
11224
+ """
11225
+ return self._RequestId
11226
+
11227
+ @RequestId.setter
11228
+ def RequestId(self, RequestId):
11229
+ self._RequestId = RequestId
11230
+
11231
+
11232
+ def _deserialize(self, params):
11233
+ self._RequestId = params.get("RequestId")
11234
+
11235
+
11157
11236
  class DeleteDashboardSubscribeRequest(AbstractModel):
11158
11237
  """DeleteDashboardSubscribe请求参数结构体
11159
11238
 
@@ -39376,7 +39376,7 @@ class DescribeHostLoginListRequest(AbstractModel):
39376
39376
  :type Limit: int
39377
39377
  :param _Offset: 偏移量,默认为0。
39378
39378
  :type Offset: int
39379
- :param _Filters: 过滤条件。<li>Quuid - String - 是否必填:否 - 云服务器uuid</li><li>Uuid - String - 是否必填:否 - 主机安全唯一Uuid</li><li>MachineName - String - 是否必填:否 - 主机别名</li><li>Ip - String - 是否必填:否 - 主机ip</li><li>InstanceID - String - 是否必填:否 - 主机实例ID</li><li>SrcIp - String - 是否必填:否 - 来源ip筛选</li><li>UserName - String - 是否必填:否 - 用户名筛选</li><li>Status - string - 是否必填:否 - 状态筛选1:正常登录;5:已加白,14:已处理,15:已忽略</li><li>LoginTimeBegin - String - 是否必填:否 - 按照修改时间段筛选,开始时间</li><li>LoginTimeEnd - String - 是否必填:否 - 按照修改时间段筛选,结束时间</li><li>RiskLevel - string - 是否必填:否 - 状态筛选0:高危;1:可疑</li>
39379
+ :param _Filters: 过滤条件。<li>Quuid - String - 是否必填:否 - 云服务器uuid</li><li>Uuid - String - 是否必填:否 - 主机安全唯一Uuid</li><li>MachineName - String - 是否必填:否 - 主机别名</li><li>Ip - String - 是否必填:否 - 主机ip</li><li>InstanceID - String - 是否必填:否 - 主机实例ID</li><li>SrcIp - String - 是否必填:否 - 来源ip筛选</li><li>UserName - String - 是否必填:否 - 用户名筛选</li><li>Status - string - 是否必填:否 - 状态筛选:2:待处理;5:已加白,14:已处理,15:已忽略</li><li>LoginTimeBegin - String - 是否必填:否 - 按照修改时间段筛选,开始时间</li><li>LoginTimeEnd - String - 是否必填:否 - 按照修改时间段筛选,结束时间</li><li>RiskLevel - string - 是否必填:否 - 状态筛选0:高危;1:可疑</li>
39380
39380
  :type Filters: list of Filter
39381
39381
  :param _Order: 排序方式:根据请求次数排序:asc-升序/desc-降序
39382
39382
  :type Order: str
@@ -39413,7 +39413,7 @@ class DescribeHostLoginListRequest(AbstractModel):
39413
39413
 
39414
39414
  @property
39415
39415
  def Filters(self):
39416
- """过滤条件。<li>Quuid - String - 是否必填:否 - 云服务器uuid</li><li>Uuid - String - 是否必填:否 - 主机安全唯一Uuid</li><li>MachineName - String - 是否必填:否 - 主机别名</li><li>Ip - String - 是否必填:否 - 主机ip</li><li>InstanceID - String - 是否必填:否 - 主机实例ID</li><li>SrcIp - String - 是否必填:否 - 来源ip筛选</li><li>UserName - String - 是否必填:否 - 用户名筛选</li><li>Status - string - 是否必填:否 - 状态筛选1:正常登录;5:已加白,14:已处理,15:已忽略</li><li>LoginTimeBegin - String - 是否必填:否 - 按照修改时间段筛选,开始时间</li><li>LoginTimeEnd - String - 是否必填:否 - 按照修改时间段筛选,结束时间</li><li>RiskLevel - string - 是否必填:否 - 状态筛选0:高危;1:可疑</li>
39416
+ """过滤条件。<li>Quuid - String - 是否必填:否 - 云服务器uuid</li><li>Uuid - String - 是否必填:否 - 主机安全唯一Uuid</li><li>MachineName - String - 是否必填:否 - 主机别名</li><li>Ip - String - 是否必填:否 - 主机ip</li><li>InstanceID - String - 是否必填:否 - 主机实例ID</li><li>SrcIp - String - 是否必填:否 - 来源ip筛选</li><li>UserName - String - 是否必填:否 - 用户名筛选</li><li>Status - string - 是否必填:否 - 状态筛选:2:待处理;5:已加白,14:已处理,15:已忽略</li><li>LoginTimeBegin - String - 是否必填:否 - 按照修改时间段筛选,开始时间</li><li>LoginTimeEnd - String - 是否必填:否 - 按照修改时间段筛选,结束时间</li><li>RiskLevel - string - 是否必填:否 - 状态筛选0:高危;1:可疑</li>
39417
39417
  :rtype: list of Filter
39418
39418
  """
39419
39419
  return self._Filters
@@ -806,7 +806,7 @@ class CosSnapShotInfo(AbstractModel):
806
806
  :param _Version: 快照版本
807
807
  注意:此字段可能返回 null,表示取不到有效值。
808
808
  :type Version: str
809
- :param _CommonIndexArr: 普通索引信息列表
809
+ :param _CommonIndexArr: 普通[{"DataStreamName":"ilm-history-5","Is索引信息列表
810
810
  注意:此字段可能返回 null,表示取不到有效值。
811
811
  :type CommonIndexArr: list of CommonIndexInfo
812
812
  :param _DataStreamArr: 自治索引信息列表
@@ -883,7 +883,7 @@ class CosSnapShotInfo(AbstractModel):
883
883
 
884
884
  @property
885
885
  def CommonIndexArr(self):
886
- """普通索引信息列表
886
+ """普通[{"DataStreamName":"ilm-history-5","Is索引信息列表
887
887
  注意:此字段可能返回 null,表示取不到有效值。
888
888
  :rtype: list of CommonIndexInfo
889
889
  """
@@ -13337,6 +13337,12 @@ class LogstashPipelineInfo(AbstractModel):
13337
13337
  :param _QueueCheckPointWrites: 管道缓冲队列检查点写入数
13338
13338
  注意:此字段可能返回 null,表示取不到有效值。
13339
13339
  :type QueueCheckPointWrites: int
13340
+ :param _CreateTime: 创建时间
13341
+ 注意:此字段可能返回 null,表示取不到有效值。
13342
+ :type CreateTime: str
13343
+ :param _UpdateTime: 更新时间
13344
+ 注意:此字段可能返回 null,表示取不到有效值。
13345
+ :type UpdateTime: str
13340
13346
  """
13341
13347
  self._PipelineId = None
13342
13348
  self._PipelineDesc = None
@@ -13348,6 +13354,8 @@ class LogstashPipelineInfo(AbstractModel):
13348
13354
  self._QueueType = None
13349
13355
  self._QueueMaxBytes = None
13350
13356
  self._QueueCheckPointWrites = None
13357
+ self._CreateTime = None
13358
+ self._UpdateTime = None
13351
13359
 
13352
13360
  @property
13353
13361
  def PipelineId(self):
@@ -13467,6 +13475,30 @@ class LogstashPipelineInfo(AbstractModel):
13467
13475
  def QueueCheckPointWrites(self, QueueCheckPointWrites):
13468
13476
  self._QueueCheckPointWrites = QueueCheckPointWrites
13469
13477
 
13478
+ @property
13479
+ def CreateTime(self):
13480
+ """创建时间
13481
+ 注意:此字段可能返回 null,表示取不到有效值。
13482
+ :rtype: str
13483
+ """
13484
+ return self._CreateTime
13485
+
13486
+ @CreateTime.setter
13487
+ def CreateTime(self, CreateTime):
13488
+ self._CreateTime = CreateTime
13489
+
13490
+ @property
13491
+ def UpdateTime(self):
13492
+ """更新时间
13493
+ 注意:此字段可能返回 null,表示取不到有效值。
13494
+ :rtype: str
13495
+ """
13496
+ return self._UpdateTime
13497
+
13498
+ @UpdateTime.setter
13499
+ def UpdateTime(self, UpdateTime):
13500
+ self._UpdateTime = UpdateTime
13501
+
13470
13502
 
13471
13503
  def _deserialize(self, params):
13472
13504
  self._PipelineId = params.get("PipelineId")
@@ -13479,6 +13511,8 @@ class LogstashPipelineInfo(AbstractModel):
13479
13511
  self._QueueType = params.get("QueueType")
13480
13512
  self._QueueMaxBytes = params.get("QueueMaxBytes")
13481
13513
  self._QueueCheckPointWrites = params.get("QueueCheckPointWrites")
13514
+ self._CreateTime = params.get("CreateTime")
13515
+ self._UpdateTime = params.get("UpdateTime")
13482
13516
  memeber_set = set(params.keys())
13483
13517
  for name, value in vars(self).items():
13484
13518
  property_name = name[1:]
@@ -16112,7 +16146,7 @@ class ServerlessIndexMetaField(AbstractModel):
16112
16146
  :type StorageType: int
16113
16147
  :param _TagList: 标签信息
16114
16148
  :type TagList: list of TagInfo
16115
- :param _IndexTraffic: 3782478.47
16149
+ :param _IndexTraffic: 索引流量,单位byte
16116
16150
  注意:此字段可能返回 null,表示取不到有效值。
16117
16151
  :type IndexTraffic: float
16118
16152
  """
@@ -16353,7 +16387,7 @@ class ServerlessIndexMetaField(AbstractModel):
16353
16387
 
16354
16388
  @property
16355
16389
  def IndexTraffic(self):
16356
- """3782478.47
16390
+ """索引流量,单位byte
16357
16391
  注意:此字段可能返回 null,表示取不到有效值。
16358
16392
  :rtype: float
16359
16393
  """
@@ -16746,7 +16780,7 @@ class ServerlessSpace(AbstractModel):
16746
16780
  :param _ClusterType: 0
16747
16781
  注意:此字段可能返回 null,表示取不到有效值。
16748
16782
  :type ClusterType: int
16749
- :param _TagList: key:value
16783
+ :param _TagList: 空间标签信息
16750
16784
  注意:此字段可能返回 null,表示取不到有效值。
16751
16785
  :type TagList: list of TagInfo
16752
16786
  """
@@ -16996,7 +17030,7 @@ class ServerlessSpace(AbstractModel):
16996
17030
 
16997
17031
  @property
16998
17032
  def TagList(self):
16999
- """key:value
17033
+ """空间标签信息
17000
17034
  注意:此字段可能返回 null,表示取不到有效值。
17001
17035
  :rtype: list of TagInfo
17002
17036
  """
@@ -17295,6 +17329,9 @@ SUCCESS 备份成功
17295
17329
  :param _Failures: 备份失败的索引分片和失败原因
17296
17330
  注意:此字段可能返回 null,表示取不到有效值。
17297
17331
  :type Failures: list of Failures
17332
+ :param _UserBackUp: 是否用户备份
17333
+ 注意:此字段可能返回 null,表示取不到有效值。
17334
+ :type UserBackUp: str
17298
17335
  """
17299
17336
  self._SnapshotName = None
17300
17337
  self._Uuid = None
@@ -17309,6 +17346,7 @@ SUCCESS 备份成功
17309
17346
  self._FailedShards = None
17310
17347
  self._SuccessfulShards = None
17311
17348
  self._Failures = None
17349
+ self._UserBackUp = None
17312
17350
 
17313
17351
  @property
17314
17352
  def SnapshotName(self):
@@ -17474,6 +17512,18 @@ SUCCESS 备份成功
17474
17512
  def Failures(self, Failures):
17475
17513
  self._Failures = Failures
17476
17514
 
17515
+ @property
17516
+ def UserBackUp(self):
17517
+ """是否用户备份
17518
+ 注意:此字段可能返回 null,表示取不到有效值。
17519
+ :rtype: str
17520
+ """
17521
+ return self._UserBackUp
17522
+
17523
+ @UserBackUp.setter
17524
+ def UserBackUp(self, UserBackUp):
17525
+ self._UserBackUp = UserBackUp
17526
+
17477
17527
 
17478
17528
  def _deserialize(self, params):
17479
17529
  self._SnapshotName = params.get("SnapshotName")
@@ -17494,6 +17544,7 @@ SUCCESS 备份成功
17494
17544
  obj = Failures()
17495
17545
  obj._deserialize(item)
17496
17546
  self._Failures.append(obj)
17547
+ self._UserBackUp = params.get("UserBackUp")
17497
17548
  memeber_set = set(params.keys())
17498
17549
  for name, value in vars(self).items():
17499
17550
  property_name = name[1:]
File without changes
@@ -0,0 +1,45 @@
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
+ INTERNALERROR = 'InternalError'
19
+
20
+ # 参数错误。
21
+ INVALIDPARAMETER = 'InvalidParameter'
22
+
23
+ # 参数取值错误。
24
+ INVALIDPARAMETERVALUE = 'InvalidParameterValue'
25
+
26
+ # 超过配额限制。
27
+ LIMITEXCEEDED = 'LimitExceeded'
28
+
29
+ # 缺少参数错误。
30
+ MISSINGPARAMETER = 'MissingParameter'
31
+
32
+ # 请求的次数超过了频率限制。
33
+ REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
34
+
35
+ # 资源不存在。
36
+ RESOURCENOTFOUND = 'ResourceNotFound'
37
+
38
+ # 未授权操作。
39
+ UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
40
+
41
+ # 未知参数错误。
42
+ UNKNOWNPARAMETER = 'UnknownParameter'
43
+
44
+ # 操作不支持。
45
+ UNSUPPORTEDOPERATION = 'UnsupportedOperation'
@@ -0,0 +1,228 @@
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
+ import json
17
+
18
+ from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
19
+ from tencentcloud.common.abstract_client import AbstractClient
20
+ from tencentcloud.es.v20250101 import models
21
+
22
+
23
+ class EsClient(AbstractClient):
24
+ _apiVersion = '2025-01-01'
25
+ _endpoint = 'es.tencentcloudapi.com'
26
+ _service = 'es'
27
+
28
+
29
+ def ChatCompletions(self, request):
30
+ """本服务支持一系列高性能的大语言模型,包括DeepSeek以及腾讯自主研发的混元大模型,结合混合搜索等先进搜索技术,快速高效实现RAG,有效解决幻觉和知识更新问题。
31
+ 本接口有单账号调用上限控制,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
32
+
33
+ :param request: Request instance for ChatCompletions.
34
+ :type request: :class:`tencentcloud.es.v20250101.models.ChatCompletionsRequest`
35
+ :rtype: :class:`tencentcloud.es.v20250101.models.ChatCompletionsResponse`
36
+
37
+ """
38
+ try:
39
+ params = request._serialize()
40
+ return self._call_and_deserialize("ChatCompletions", params, models.ChatCompletionsResponse, headers=request.headers)
41
+ except Exception as e:
42
+ if isinstance(e, TencentCloudSDKException):
43
+ raise
44
+ else:
45
+ raise TencentCloudSDKException(type(e).__name__, str(e))
46
+
47
+
48
+ def ChunkDocument(self, request):
49
+ """实时文档切片
50
+
51
+ :param request: Request instance for ChunkDocument.
52
+ :type request: :class:`tencentcloud.es.v20250101.models.ChunkDocumentRequest`
53
+ :rtype: :class:`tencentcloud.es.v20250101.models.ChunkDocumentResponse`
54
+
55
+ """
56
+ try:
57
+ params = request._serialize()
58
+ headers = request.headers
59
+ body = self.call("ChunkDocument", params, headers=headers)
60
+ response = json.loads(body)
61
+ model = models.ChunkDocumentResponse()
62
+ model._deserialize(response["Response"])
63
+ return model
64
+ except Exception as e:
65
+ if isinstance(e, TencentCloudSDKException):
66
+ raise
67
+ else:
68
+ raise TencentCloudSDKException(type(e).__name__, str(e))
69
+
70
+
71
+ def ChunkDocumentAsync(self, request):
72
+ """文本切片是将长文本分割为短片段的技术,用于适配模型输入、提升处理效率或信息检索,平衡片段长度与语义连贯性,适用于NLP、数据分析等场景。
73
+ 本接口为异步接口,有单账号调用上限控制,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
74
+
75
+ :param request: Request instance for ChunkDocumentAsync.
76
+ :type request: :class:`tencentcloud.es.v20250101.models.ChunkDocumentAsyncRequest`
77
+ :rtype: :class:`tencentcloud.es.v20250101.models.ChunkDocumentAsyncResponse`
78
+
79
+ """
80
+ try:
81
+ params = request._serialize()
82
+ headers = request.headers
83
+ body = self.call("ChunkDocumentAsync", params, headers=headers)
84
+ response = json.loads(body)
85
+ model = models.ChunkDocumentAsyncResponse()
86
+ model._deserialize(response["Response"])
87
+ return model
88
+ except Exception as e:
89
+ if isinstance(e, TencentCloudSDKException):
90
+ raise
91
+ else:
92
+ raise TencentCloudSDKException(type(e).__name__, str(e))
93
+
94
+
95
+ def GetDocumentChunkResult(self, request):
96
+ """获取文档切片结果
97
+
98
+ :param request: Request instance for GetDocumentChunkResult.
99
+ :type request: :class:`tencentcloud.es.v20250101.models.GetDocumentChunkResultRequest`
100
+ :rtype: :class:`tencentcloud.es.v20250101.models.GetDocumentChunkResultResponse`
101
+
102
+ """
103
+ try:
104
+ params = request._serialize()
105
+ headers = request.headers
106
+ body = self.call("GetDocumentChunkResult", params, headers=headers)
107
+ response = json.loads(body)
108
+ model = models.GetDocumentChunkResultResponse()
109
+ model._deserialize(response["Response"])
110
+ return model
111
+ except Exception as e:
112
+ if isinstance(e, TencentCloudSDKException):
113
+ raise
114
+ else:
115
+ raise TencentCloudSDKException(type(e).__name__, str(e))
116
+
117
+
118
+ def GetDocumentParseResult(self, request):
119
+ """本接口用于获取文档解析异步处理结果。
120
+
121
+ :param request: Request instance for GetDocumentParseResult.
122
+ :type request: :class:`tencentcloud.es.v20250101.models.GetDocumentParseResultRequest`
123
+ :rtype: :class:`tencentcloud.es.v20250101.models.GetDocumentParseResultResponse`
124
+
125
+ """
126
+ try:
127
+ params = request._serialize()
128
+ headers = request.headers
129
+ body = self.call("GetDocumentParseResult", params, headers=headers)
130
+ response = json.loads(body)
131
+ model = models.GetDocumentParseResultResponse()
132
+ model._deserialize(response["Response"])
133
+ return model
134
+ except Exception as e:
135
+ if isinstance(e, TencentCloudSDKException):
136
+ raise
137
+ else:
138
+ raise TencentCloudSDKException(type(e).__name__, str(e))
139
+
140
+
141
+ def GetTextEmbedding(self, request):
142
+ """Embedding是一种将高维数据映射到低维空间的技术,通常用于将非结构化数据,如文本、图像或音频转化为向量表示,使其更容易输入机器模型进行处理,并且向量之间的距离可以反映对象之间的相似性。
143
+ 本接口有单账号调用上限控制,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
144
+
145
+ :param request: Request instance for GetTextEmbedding.
146
+ :type request: :class:`tencentcloud.es.v20250101.models.GetTextEmbeddingRequest`
147
+ :rtype: :class:`tencentcloud.es.v20250101.models.GetTextEmbeddingResponse`
148
+
149
+ """
150
+ try:
151
+ params = request._serialize()
152
+ headers = request.headers
153
+ body = self.call("GetTextEmbedding", params, headers=headers)
154
+ response = json.loads(body)
155
+ model = models.GetTextEmbeddingResponse()
156
+ model._deserialize(response["Response"])
157
+ return model
158
+ except Exception as e:
159
+ if isinstance(e, TencentCloudSDKException):
160
+ raise
161
+ else:
162
+ raise TencentCloudSDKException(type(e).__name__, str(e))
163
+
164
+
165
+ def ParseDocument(self, request):
166
+ """本服务可将各类格式文档精准转换为标准格式,满足企业知识库建设、技术文档迁移、内容平台结构化存储等需求。
167
+ 本接口有单账号调用上限控制,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service)。
168
+
169
+ :param request: Request instance for ParseDocument.
170
+ :type request: :class:`tencentcloud.es.v20250101.models.ParseDocumentRequest`
171
+ :rtype: :class:`tencentcloud.es.v20250101.models.ParseDocumentResponse`
172
+
173
+ """
174
+ try:
175
+ params = request._serialize()
176
+ return self._call_and_deserialize("ParseDocument", params, models.ParseDocumentResponse, headers=request.headers)
177
+ except Exception as e:
178
+ if isinstance(e, TencentCloudSDKException):
179
+ raise
180
+ else:
181
+ raise TencentCloudSDKException(type(e).__name__, str(e))
182
+
183
+
184
+ def ParseDocumentAsync(self, request):
185
+ """本服务可将各类格式文档精准转换为标准格式,满足企业知识库建设、技术文档迁移、内容平台结构化存储等需求。
186
+ 本接口为异步接口,有单账号调用上限控制,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
187
+
188
+ :param request: Request instance for ParseDocumentAsync.
189
+ :type request: :class:`tencentcloud.es.v20250101.models.ParseDocumentAsyncRequest`
190
+ :rtype: :class:`tencentcloud.es.v20250101.models.ParseDocumentAsyncResponse`
191
+
192
+ """
193
+ try:
194
+ params = request._serialize()
195
+ headers = request.headers
196
+ body = self.call("ParseDocumentAsync", params, headers=headers)
197
+ response = json.loads(body)
198
+ model = models.ParseDocumentAsyncResponse()
199
+ model._deserialize(response["Response"])
200
+ return model
201
+ except Exception as e:
202
+ if isinstance(e, TencentCloudSDKException):
203
+ raise
204
+ else:
205
+ raise TencentCloudSDKException(type(e).__name__, str(e))
206
+
207
+
208
+ def RunRerank(self, request):
209
+ """重排序
210
+
211
+ :param request: Request instance for RunRerank.
212
+ :type request: :class:`tencentcloud.es.v20250101.models.RunRerankRequest`
213
+ :rtype: :class:`tencentcloud.es.v20250101.models.RunRerankResponse`
214
+
215
+ """
216
+ try:
217
+ params = request._serialize()
218
+ headers = request.headers
219
+ body = self.call("RunRerank", params, headers=headers)
220
+ response = json.loads(body)
221
+ model = models.RunRerankResponse()
222
+ model._deserialize(response["Response"])
223
+ return model
224
+ except Exception as e:
225
+ if isinstance(e, TencentCloudSDKException):
226
+ raise
227
+ else:
228
+ raise TencentCloudSDKException(type(e).__name__, str(e))