tencentcloud-sdk-python 3.0.1326__py2.py3-none-any.whl → 3.0.1328__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/batch/v20170312/models.py +0 -56
- tencentcloud/captcha/v20190722/models.py +0 -48
- tencentcloud/ccc/v20200210/ccc_client.py +5 -1
- tencentcloud/ccc/v20200210/models.py +4 -4
- tencentcloud/cdwch/v20200915/models.py +83 -0
- tencentcloud/clb/v20180317/clb_client.py +115 -0
- tencentcloud/clb/v20180317/models.py +537 -0
- tencentcloud/cvm/v20170312/models.py +0 -56
- tencentcloud/cwp/v20180228/models.py +4 -40
- tencentcloud/dts/v20211206/models.py +2 -2
- tencentcloud/faceid/v20180301/models.py +26 -12
- tencentcloud/hunyuan/v20230901/models.py +2 -10
- tencentcloud/lke/v20231130/models.py +115 -6
- tencentcloud/lkeap/v20240522/lkeap_client.py +9 -9
- tencentcloud/lkeap/v20240522/models.py +12 -2
- tencentcloud/lowcode/v20210108/errorcodes.py +3 -0
- tencentcloud/lowcode/v20210108/lowcode_client.py +207 -0
- tencentcloud/lowcode/v20210108/models.py +2996 -124
- tencentcloud/monitor/v20180724/models.py +333 -0
- tencentcloud/monitor/v20180724/monitor_client.py +23 -0
- tencentcloud/rce/v20201103/models.py +0 -84
- tencentcloud/redis/v20180412/models.py +0 -110
- tencentcloud/tcr/v20190924/models.py +0 -14
- tencentcloud/tdid/v20210519/models.py +130 -22
- tencentcloud/tdid/v20210519/tdid_client.py +4 -1
- tencentcloud/tsf/v20180326/models.py +0 -88
- tencentcloud/waf/v20180125/models.py +2 -2
- {tencentcloud_sdk_python-3.0.1326.dist-info → tencentcloud_sdk_python-3.0.1328.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1326.dist-info → tencentcloud_sdk_python-3.0.1328.dist-info}/RECORD +33 -33
- {tencentcloud_sdk_python-3.0.1326.dist-info → tencentcloud_sdk_python-3.0.1328.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1326.dist-info → tencentcloud_sdk_python-3.0.1328.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1326.dist-info → tencentcloud_sdk_python-3.0.1328.dist-info}/top_level.txt +0 -0
@@ -1126,6 +1126,9 @@ class AppModel(AbstractModel):
|
|
1126
1126
|
:param _TopP: 模型TopP
|
1127
1127
|
注意:此字段可能返回 null,表示取不到有效值。
|
1128
1128
|
:type TopP: str
|
1129
|
+
:param _ResourceStatus: 模型资源状态 1:资源可用;2:资源已用尽
|
1130
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1131
|
+
:type ResourceStatus: int
|
1129
1132
|
"""
|
1130
1133
|
self._Name = None
|
1131
1134
|
self._Desc = None
|
@@ -1137,6 +1140,7 @@ class AppModel(AbstractModel):
|
|
1137
1140
|
self._UsageType = None
|
1138
1141
|
self._Temperature = None
|
1139
1142
|
self._TopP = None
|
1143
|
+
self._ResourceStatus = None
|
1140
1144
|
|
1141
1145
|
@property
|
1142
1146
|
def Name(self):
|
@@ -1258,6 +1262,18 @@ class AppModel(AbstractModel):
|
|
1258
1262
|
def TopP(self, TopP):
|
1259
1263
|
self._TopP = TopP
|
1260
1264
|
|
1265
|
+
@property
|
1266
|
+
def ResourceStatus(self):
|
1267
|
+
"""模型资源状态 1:资源可用;2:资源已用尽
|
1268
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1269
|
+
:rtype: int
|
1270
|
+
"""
|
1271
|
+
return self._ResourceStatus
|
1272
|
+
|
1273
|
+
@ResourceStatus.setter
|
1274
|
+
def ResourceStatus(self, ResourceStatus):
|
1275
|
+
self._ResourceStatus = ResourceStatus
|
1276
|
+
|
1261
1277
|
|
1262
1278
|
def _deserialize(self, params):
|
1263
1279
|
self._Name = params.get("Name")
|
@@ -1270,6 +1286,7 @@ class AppModel(AbstractModel):
|
|
1270
1286
|
self._UsageType = params.get("UsageType")
|
1271
1287
|
self._Temperature = params.get("Temperature")
|
1272
1288
|
self._TopP = params.get("TopP")
|
1289
|
+
self._ResourceStatus = params.get("ResourceStatus")
|
1273
1290
|
memeber_set = set(params.keys())
|
1274
1291
|
for name, value in vars(self).items():
|
1275
1292
|
property_name = name[1:]
|
@@ -3495,7 +3512,7 @@ class CreateQACateRequest(AbstractModel):
|
|
3495
3512
|
r"""
|
3496
3513
|
:param _BotBizId: 应用ID
|
3497
3514
|
:type BotBizId: str
|
3498
|
-
:param _ParentBizId: 父级业务ID
|
3515
|
+
:param _ParentBizId: 父级业务ID,创建顶级分类时传字符串"0"
|
3499
3516
|
:type ParentBizId: str
|
3500
3517
|
:param _Name: 分类名称
|
3501
3518
|
|
@@ -3518,7 +3535,7 @@ class CreateQACateRequest(AbstractModel):
|
|
3518
3535
|
|
3519
3536
|
@property
|
3520
3537
|
def ParentBizId(self):
|
3521
|
-
"""父级业务ID
|
3538
|
+
"""父级业务ID,创建顶级分类时传字符串"0"
|
3522
3539
|
:rtype: str
|
3523
3540
|
"""
|
3524
3541
|
return self._ParentBizId
|
@@ -6113,18 +6130,29 @@ class DescribeCorpResponse(AbstractModel):
|
|
6113
6130
|
:param _CorpBizId: 企业ID
|
6114
6131
|
|
6115
6132
|
:type CorpBizId: str
|
6116
|
-
:param _RobotQuota:
|
6117
|
-
|
6133
|
+
:param _RobotQuota: 应用配额
|
6118
6134
|
:type RobotQuota: int
|
6119
6135
|
:param _FullName: 企业全称
|
6120
6136
|
|
6121
6137
|
:type FullName: str
|
6138
|
+
:param _IsTrial: 是否试用
|
6139
|
+
:type IsTrial: bool
|
6140
|
+
:param _IsTrialExpired: 是否试用过期
|
6141
|
+
:type IsTrialExpired: bool
|
6142
|
+
:param _AvailableAppQuota: 可用应用数量
|
6143
|
+
:type AvailableAppQuota: int
|
6144
|
+
:param _IsSupportCustomModel: 是否支持自定义模型配置
|
6145
|
+
:type IsSupportCustomModel: bool
|
6122
6146
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6123
6147
|
:type RequestId: str
|
6124
6148
|
"""
|
6125
6149
|
self._CorpBizId = None
|
6126
6150
|
self._RobotQuota = None
|
6127
6151
|
self._FullName = None
|
6152
|
+
self._IsTrial = None
|
6153
|
+
self._IsTrialExpired = None
|
6154
|
+
self._AvailableAppQuota = None
|
6155
|
+
self._IsSupportCustomModel = None
|
6128
6156
|
self._RequestId = None
|
6129
6157
|
|
6130
6158
|
@property
|
@@ -6141,8 +6169,7 @@ class DescribeCorpResponse(AbstractModel):
|
|
6141
6169
|
|
6142
6170
|
@property
|
6143
6171
|
def RobotQuota(self):
|
6144
|
-
"""
|
6145
|
-
|
6172
|
+
"""应用配额
|
6146
6173
|
:rtype: int
|
6147
6174
|
"""
|
6148
6175
|
return self._RobotQuota
|
@@ -6163,6 +6190,50 @@ class DescribeCorpResponse(AbstractModel):
|
|
6163
6190
|
def FullName(self, FullName):
|
6164
6191
|
self._FullName = FullName
|
6165
6192
|
|
6193
|
+
@property
|
6194
|
+
def IsTrial(self):
|
6195
|
+
"""是否试用
|
6196
|
+
:rtype: bool
|
6197
|
+
"""
|
6198
|
+
return self._IsTrial
|
6199
|
+
|
6200
|
+
@IsTrial.setter
|
6201
|
+
def IsTrial(self, IsTrial):
|
6202
|
+
self._IsTrial = IsTrial
|
6203
|
+
|
6204
|
+
@property
|
6205
|
+
def IsTrialExpired(self):
|
6206
|
+
"""是否试用过期
|
6207
|
+
:rtype: bool
|
6208
|
+
"""
|
6209
|
+
return self._IsTrialExpired
|
6210
|
+
|
6211
|
+
@IsTrialExpired.setter
|
6212
|
+
def IsTrialExpired(self, IsTrialExpired):
|
6213
|
+
self._IsTrialExpired = IsTrialExpired
|
6214
|
+
|
6215
|
+
@property
|
6216
|
+
def AvailableAppQuota(self):
|
6217
|
+
"""可用应用数量
|
6218
|
+
:rtype: int
|
6219
|
+
"""
|
6220
|
+
return self._AvailableAppQuota
|
6221
|
+
|
6222
|
+
@AvailableAppQuota.setter
|
6223
|
+
def AvailableAppQuota(self, AvailableAppQuota):
|
6224
|
+
self._AvailableAppQuota = AvailableAppQuota
|
6225
|
+
|
6226
|
+
@property
|
6227
|
+
def IsSupportCustomModel(self):
|
6228
|
+
"""是否支持自定义模型配置
|
6229
|
+
:rtype: bool
|
6230
|
+
"""
|
6231
|
+
return self._IsSupportCustomModel
|
6232
|
+
|
6233
|
+
@IsSupportCustomModel.setter
|
6234
|
+
def IsSupportCustomModel(self, IsSupportCustomModel):
|
6235
|
+
self._IsSupportCustomModel = IsSupportCustomModel
|
6236
|
+
|
6166
6237
|
@property
|
6167
6238
|
def RequestId(self):
|
6168
6239
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -6179,6 +6250,10 @@ class DescribeCorpResponse(AbstractModel):
|
|
6179
6250
|
self._CorpBizId = params.get("CorpBizId")
|
6180
6251
|
self._RobotQuota = params.get("RobotQuota")
|
6181
6252
|
self._FullName = params.get("FullName")
|
6253
|
+
self._IsTrial = params.get("IsTrial")
|
6254
|
+
self._IsTrialExpired = params.get("IsTrialExpired")
|
6255
|
+
self._AvailableAppQuota = params.get("AvailableAppQuota")
|
6256
|
+
self._IsSupportCustomModel = params.get("IsSupportCustomModel")
|
6182
6257
|
self._RequestId = params.get("RequestId")
|
6183
6258
|
|
6184
6259
|
|
@@ -14590,6 +14665,12 @@ class ListDocItem(AbstractModel):
|
|
14590
14665
|
:param _IsAllowRetry: 是否允许重试,0:否,1:是
|
14591
14666
|
注意:此字段可能返回 null,表示取不到有效值。
|
14592
14667
|
:type IsAllowRetry: bool
|
14668
|
+
:param _Processing: 0:文档比对处理 1:文档生成问答
|
14669
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
14670
|
+
:type Processing: list of int
|
14671
|
+
:param _CreateTime: 文档创建落库时间
|
14672
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
14673
|
+
:type CreateTime: str
|
14593
14674
|
"""
|
14594
14675
|
self._DocBizId = None
|
14595
14676
|
self._FileName = None
|
@@ -14620,6 +14701,8 @@ class ListDocItem(AbstractModel):
|
|
14620
14701
|
self._ExpireStart = None
|
14621
14702
|
self._ExpireEnd = None
|
14622
14703
|
self._IsAllowRetry = None
|
14704
|
+
self._Processing = None
|
14705
|
+
self._CreateTime = None
|
14623
14706
|
|
14624
14707
|
@property
|
14625
14708
|
def DocBizId(self):
|
@@ -14969,6 +15052,30 @@ class ListDocItem(AbstractModel):
|
|
14969
15052
|
def IsAllowRetry(self, IsAllowRetry):
|
14970
15053
|
self._IsAllowRetry = IsAllowRetry
|
14971
15054
|
|
15055
|
+
@property
|
15056
|
+
def Processing(self):
|
15057
|
+
"""0:文档比对处理 1:文档生成问答
|
15058
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
15059
|
+
:rtype: list of int
|
15060
|
+
"""
|
15061
|
+
return self._Processing
|
15062
|
+
|
15063
|
+
@Processing.setter
|
15064
|
+
def Processing(self, Processing):
|
15065
|
+
self._Processing = Processing
|
15066
|
+
|
15067
|
+
@property
|
15068
|
+
def CreateTime(self):
|
15069
|
+
"""文档创建落库时间
|
15070
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
15071
|
+
:rtype: str
|
15072
|
+
"""
|
15073
|
+
return self._CreateTime
|
15074
|
+
|
15075
|
+
@CreateTime.setter
|
15076
|
+
def CreateTime(self, CreateTime):
|
15077
|
+
self._CreateTime = CreateTime
|
15078
|
+
|
14972
15079
|
|
14973
15080
|
def _deserialize(self, params):
|
14974
15081
|
self._DocBizId = params.get("DocBizId")
|
@@ -15005,6 +15112,8 @@ class ListDocItem(AbstractModel):
|
|
15005
15112
|
self._ExpireStart = params.get("ExpireStart")
|
15006
15113
|
self._ExpireEnd = params.get("ExpireEnd")
|
15007
15114
|
self._IsAllowRetry = params.get("IsAllowRetry")
|
15115
|
+
self._Processing = params.get("Processing")
|
15116
|
+
self._CreateTime = params.get("CreateTime")
|
15008
15117
|
memeber_set = set(params.keys())
|
15009
15118
|
for name, value in vars(self).items():
|
15010
15119
|
property_name = name[1:]
|
@@ -27,11 +27,14 @@ class LkeapClient(AbstractClient):
|
|
27
27
|
|
28
28
|
|
29
29
|
def ChatCompletions(self, request):
|
30
|
-
"""
|
30
|
+
"""### 接口功能
|
31
31
|
|
32
|
-
|
32
|
+
调用接口,发起一次对话请求。单账号限制接口并发上限为5。
|
33
33
|
如需使用OpenAI兼容接口, 请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)
|
34
34
|
|
35
|
+
#### 在线体验
|
36
|
+
如您希望在网页内直接体验 DeepSeek 模型对话,推荐您前往[腾讯云大模型知识引擎](https://cloud.tencent.com/product/lke),使用[ DeepSeek 联网助手](https://lke.cloud.tencent.com/webim_exp/#/chat/wQrAwR)。
|
37
|
+
|
35
38
|
#### 已支持的模型
|
36
39
|
- DeepSeek-V3(model 参数值为**deepseek-v3**)
|
37
40
|
- DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。
|
@@ -40,12 +43,9 @@ class LkeapClient(AbstractClient):
|
|
40
43
|
- DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。
|
41
44
|
- 支持64K上下文长度,最大输入56k,最大输出8k(不含思维链)。
|
42
45
|
|
43
|
-
|
44
|
-
- 限时免费
|
45
|
-
|
46
|
-
本接口调用DeepSeek系列模型限时免费。即日至北京时间2025年2月25日23:59:59,所有腾讯云用户均可享受DeepSeek-V3、DeepSeek-R1模型限时免费服务,单账号限制接口并发上限为5。在此之后,模型价格将恢复至原价。
|
47
|
-
- 标准计费(2025年2月26日起生效)
|
46
|
+
### 计费说明
|
48
47
|
|
48
|
+
- 标准计费(2025年2月26日起生效),计费模式为后付费小时结,为保证您账户资源的正常使用,请提前[开通后付费](https://lke.cloud.tencent.com/lke#/app/system/charge/postpaid)并及时[充值](https://console.cloud.tencent.com/expense/recharge)。
|
49
49
|

|
50
50
|
|
51
51
|
### Openai兼容协议接口
|
@@ -55,7 +55,7 @@ class LkeapClient(AbstractClient):
|
|
55
55
|
> api_key的获取请参考[API KEY管理](https://cloud.tencent.com/document/product/1772/115970)
|
56
56
|
|
57
57
|
|
58
|
-
|
58
|
+
### 快速接入
|
59
59
|
1. 完成[实名认证](https://console.cloud.tencent.com/developer/auth)。
|
60
60
|
2. 主账户前往[控制台](https://console.cloud.tencent.com/lkeap)开通服务。若为子账户,需由主账号在[权限管理](https://console.cloud.tencent.com/cam)中为子账号授权,关联预设策略,策略名称:QcloudLKEAPFullAccess。
|
61
61
|
3. 通过API Explorer[在线调试](https://console.cloud.tencent.com/api/explorer?Product=lkeap&Version=2024-05-22&Action=ChatCompletions)。
|
@@ -210,7 +210,7 @@ class LkeapClient(AbstractClient):
|
|
210
210
|
|
211
211
|
def CreateReconstructDocumentFlow(self, request):
|
212
212
|
"""本接口为异步接口的发起请求接口,用于发起文档解析任务。
|
213
|
-
文档解析支持将图片或PDF
|
213
|
+
文档解析支持将图片或PDF、DOCX、PPTX、EXCEL等文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。具体支持文件类型请查看下方输入参数列表。
|
214
214
|
|
215
215
|
体验期间单账号限制qps仅为1,若有正式接入需要请与产研团队沟通开放。
|
216
216
|
|
@@ -2404,7 +2404,12 @@ class GetReconstructDocumentResultResponse(AbstractModel):
|
|
2404
2404
|
|
2405
2405
|
def __init__(self):
|
2406
2406
|
r"""
|
2407
|
-
:param _Status:
|
2407
|
+
:param _Status: 任务状态。
|
2408
|
+
- `Success`:执行完成
|
2409
|
+
- `Processing`:执行中
|
2410
|
+
- `Pause`: 暂停
|
2411
|
+
- `Failed`:执行失败
|
2412
|
+
- `WaitExecute`:等待执行
|
2408
2413
|
:type Status: str
|
2409
2414
|
:param _DocumentRecognizeResultUrl: 解析结果的临时下载地址。文件类型为zip压缩包,下载链接有效期30分钟
|
2410
2415
|
:type DocumentRecognizeResultUrl: str
|
@@ -2420,7 +2425,12 @@ class GetReconstructDocumentResultResponse(AbstractModel):
|
|
2420
2425
|
|
2421
2426
|
@property
|
2422
2427
|
def Status(self):
|
2423
|
-
"""
|
2428
|
+
"""任务状态。
|
2429
|
+
- `Success`:执行完成
|
2430
|
+
- `Processing`:执行中
|
2431
|
+
- `Pause`: 暂停
|
2432
|
+
- `Failed`:执行失败
|
2433
|
+
- `WaitExecute`:等待执行
|
2424
2434
|
:rtype: str
|
2425
2435
|
"""
|
2426
2436
|
return self._Status
|
@@ -26,6 +26,75 @@ class LowcodeClient(AbstractClient):
|
|
26
26
|
_service = 'lowcode'
|
27
27
|
|
28
28
|
|
29
|
+
def CreateKnowledgeSet(self, request):
|
30
|
+
"""创建知识库
|
31
|
+
|
32
|
+
:param request: Request instance for CreateKnowledgeSet.
|
33
|
+
:type request: :class:`tencentcloud.lowcode.v20210108.models.CreateKnowledgeSetRequest`
|
34
|
+
:rtype: :class:`tencentcloud.lowcode.v20210108.models.CreateKnowledgeSetResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("CreateKnowledgeSet", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.CreateKnowledgeSetResponse()
|
43
|
+
model._deserialize(response["Response"])
|
44
|
+
return model
|
45
|
+
except Exception as e:
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
47
|
+
raise
|
48
|
+
else:
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
50
|
+
|
51
|
+
|
52
|
+
def DeleteKnowledgeDocumentSet(self, request):
|
53
|
+
"""删除知识库下文档
|
54
|
+
|
55
|
+
:param request: Request instance for DeleteKnowledgeDocumentSet.
|
56
|
+
:type request: :class:`tencentcloud.lowcode.v20210108.models.DeleteKnowledgeDocumentSetRequest`
|
57
|
+
:rtype: :class:`tencentcloud.lowcode.v20210108.models.DeleteKnowledgeDocumentSetResponse`
|
58
|
+
|
59
|
+
"""
|
60
|
+
try:
|
61
|
+
params = request._serialize()
|
62
|
+
headers = request.headers
|
63
|
+
body = self.call("DeleteKnowledgeDocumentSet", params, headers=headers)
|
64
|
+
response = json.loads(body)
|
65
|
+
model = models.DeleteKnowledgeDocumentSetResponse()
|
66
|
+
model._deserialize(response["Response"])
|
67
|
+
return model
|
68
|
+
except Exception as e:
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
70
|
+
raise
|
71
|
+
else:
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
73
|
+
|
74
|
+
|
75
|
+
def DeleteKnowledgeSet(self, request):
|
76
|
+
"""删除知识库
|
77
|
+
|
78
|
+
:param request: Request instance for DeleteKnowledgeSet.
|
79
|
+
:type request: :class:`tencentcloud.lowcode.v20210108.models.DeleteKnowledgeSetRequest`
|
80
|
+
:rtype: :class:`tencentcloud.lowcode.v20210108.models.DeleteKnowledgeSetResponse`
|
81
|
+
|
82
|
+
"""
|
83
|
+
try:
|
84
|
+
params = request._serialize()
|
85
|
+
headers = request.headers
|
86
|
+
body = self.call("DeleteKnowledgeSet", params, headers=headers)
|
87
|
+
response = json.loads(body)
|
88
|
+
model = models.DeleteKnowledgeSetResponse()
|
89
|
+
model._deserialize(response["Response"])
|
90
|
+
return model
|
91
|
+
except Exception as e:
|
92
|
+
if isinstance(e, TencentCloudSDKException):
|
93
|
+
raise
|
94
|
+
else:
|
95
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
96
|
+
|
97
|
+
|
29
98
|
def DescribeDataSourceList(self, request):
|
30
99
|
"""获取数据源详情列表
|
31
100
|
|
@@ -42,6 +111,144 @@ class LowcodeClient(AbstractClient):
|
|
42
111
|
model = models.DescribeDataSourceListResponse()
|
43
112
|
model._deserialize(response["Response"])
|
44
113
|
return model
|
114
|
+
except Exception as e:
|
115
|
+
if isinstance(e, TencentCloudSDKException):
|
116
|
+
raise
|
117
|
+
else:
|
118
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
119
|
+
|
120
|
+
|
121
|
+
def DescribeKnowledgeDocumentSetDetail(self, request):
|
122
|
+
"""获取知识库下文档详情
|
123
|
+
|
124
|
+
:param request: Request instance for DescribeKnowledgeDocumentSetDetail.
|
125
|
+
:type request: :class:`tencentcloud.lowcode.v20210108.models.DescribeKnowledgeDocumentSetDetailRequest`
|
126
|
+
:rtype: :class:`tencentcloud.lowcode.v20210108.models.DescribeKnowledgeDocumentSetDetailResponse`
|
127
|
+
|
128
|
+
"""
|
129
|
+
try:
|
130
|
+
params = request._serialize()
|
131
|
+
headers = request.headers
|
132
|
+
body = self.call("DescribeKnowledgeDocumentSetDetail", params, headers=headers)
|
133
|
+
response = json.loads(body)
|
134
|
+
model = models.DescribeKnowledgeDocumentSetDetailResponse()
|
135
|
+
model._deserialize(response["Response"])
|
136
|
+
return model
|
137
|
+
except Exception as e:
|
138
|
+
if isinstance(e, TencentCloudSDKException):
|
139
|
+
raise
|
140
|
+
else:
|
141
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
142
|
+
|
143
|
+
|
144
|
+
def DescribeKnowledgeDocumentSetList(self, request):
|
145
|
+
"""查询知识库下文件集合
|
146
|
+
|
147
|
+
:param request: Request instance for DescribeKnowledgeDocumentSetList.
|
148
|
+
:type request: :class:`tencentcloud.lowcode.v20210108.models.DescribeKnowledgeDocumentSetListRequest`
|
149
|
+
:rtype: :class:`tencentcloud.lowcode.v20210108.models.DescribeKnowledgeDocumentSetListResponse`
|
150
|
+
|
151
|
+
"""
|
152
|
+
try:
|
153
|
+
params = request._serialize()
|
154
|
+
headers = request.headers
|
155
|
+
body = self.call("DescribeKnowledgeDocumentSetList", params, headers=headers)
|
156
|
+
response = json.loads(body)
|
157
|
+
model = models.DescribeKnowledgeDocumentSetListResponse()
|
158
|
+
model._deserialize(response["Response"])
|
159
|
+
return model
|
160
|
+
except Exception as e:
|
161
|
+
if isinstance(e, TencentCloudSDKException):
|
162
|
+
raise
|
163
|
+
else:
|
164
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
165
|
+
|
166
|
+
|
167
|
+
def DescribeKnowledgeSetList(self, request):
|
168
|
+
"""查询知识库
|
169
|
+
|
170
|
+
:param request: Request instance for DescribeKnowledgeSetList.
|
171
|
+
:type request: :class:`tencentcloud.lowcode.v20210108.models.DescribeKnowledgeSetListRequest`
|
172
|
+
:rtype: :class:`tencentcloud.lowcode.v20210108.models.DescribeKnowledgeSetListResponse`
|
173
|
+
|
174
|
+
"""
|
175
|
+
try:
|
176
|
+
params = request._serialize()
|
177
|
+
headers = request.headers
|
178
|
+
body = self.call("DescribeKnowledgeSetList", params, headers=headers)
|
179
|
+
response = json.loads(body)
|
180
|
+
model = models.DescribeKnowledgeSetListResponse()
|
181
|
+
model._deserialize(response["Response"])
|
182
|
+
return model
|
183
|
+
except Exception as e:
|
184
|
+
if isinstance(e, TencentCloudSDKException):
|
185
|
+
raise
|
186
|
+
else:
|
187
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
188
|
+
|
189
|
+
|
190
|
+
def SearchDocList(self, request):
|
191
|
+
"""知识库文档搜索接口
|
192
|
+
|
193
|
+
:param request: Request instance for SearchDocList.
|
194
|
+
:type request: :class:`tencentcloud.lowcode.v20210108.models.SearchDocListRequest`
|
195
|
+
:rtype: :class:`tencentcloud.lowcode.v20210108.models.SearchDocListResponse`
|
196
|
+
|
197
|
+
"""
|
198
|
+
try:
|
199
|
+
params = request._serialize()
|
200
|
+
headers = request.headers
|
201
|
+
body = self.call("SearchDocList", params, headers=headers)
|
202
|
+
response = json.loads(body)
|
203
|
+
model = models.SearchDocListResponse()
|
204
|
+
model._deserialize(response["Response"])
|
205
|
+
return model
|
206
|
+
except Exception as e:
|
207
|
+
if isinstance(e, TencentCloudSDKException):
|
208
|
+
raise
|
209
|
+
else:
|
210
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
211
|
+
|
212
|
+
|
213
|
+
def UpdateKnowledgeSet(self, request):
|
214
|
+
"""更新知识库
|
215
|
+
|
216
|
+
:param request: Request instance for UpdateKnowledgeSet.
|
217
|
+
:type request: :class:`tencentcloud.lowcode.v20210108.models.UpdateKnowledgeSetRequest`
|
218
|
+
:rtype: :class:`tencentcloud.lowcode.v20210108.models.UpdateKnowledgeSetResponse`
|
219
|
+
|
220
|
+
"""
|
221
|
+
try:
|
222
|
+
params = request._serialize()
|
223
|
+
headers = request.headers
|
224
|
+
body = self.call("UpdateKnowledgeSet", params, headers=headers)
|
225
|
+
response = json.loads(body)
|
226
|
+
model = models.UpdateKnowledgeSetResponse()
|
227
|
+
model._deserialize(response["Response"])
|
228
|
+
return model
|
229
|
+
except Exception as e:
|
230
|
+
if isinstance(e, TencentCloudSDKException):
|
231
|
+
raise
|
232
|
+
else:
|
233
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
234
|
+
|
235
|
+
|
236
|
+
def UploadKnowledgeDocumentSet(self, request):
|
237
|
+
"""更新知识库
|
238
|
+
|
239
|
+
:param request: Request instance for UploadKnowledgeDocumentSet.
|
240
|
+
:type request: :class:`tencentcloud.lowcode.v20210108.models.UploadKnowledgeDocumentSetRequest`
|
241
|
+
:rtype: :class:`tencentcloud.lowcode.v20210108.models.UploadKnowledgeDocumentSetResponse`
|
242
|
+
|
243
|
+
"""
|
244
|
+
try:
|
245
|
+
params = request._serialize()
|
246
|
+
headers = request.headers
|
247
|
+
body = self.call("UploadKnowledgeDocumentSet", params, headers=headers)
|
248
|
+
response = json.loads(body)
|
249
|
+
model = models.UploadKnowledgeDocumentSetResponse()
|
250
|
+
model._deserialize(response["Response"])
|
251
|
+
return model
|
45
252
|
except Exception as e:
|
46
253
|
if isinstance(e, TencentCloudSDKException):
|
47
254
|
raise
|