tencentcloud-sdk-lowcode 3.0.1006 → 3.0.1007
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210108/client.rb +216 -0
- data/lib/v20210108/models.rb +1111 -20
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06e9ab6417bd1bef039194824d697074f6fd89c7
|
4
|
+
data.tar.gz: 74fd4f26ee6bcc5a19d659f52a00ebcabccacc55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bd3fc31ad0f59e51a0ff566a54cda136b6539d05fdf9080925aa51f661b2f73dd03a702c3f6b73bc397c0c6530ddee108a9ae50976822205a0b291ddcb65800
|
7
|
+
data.tar.gz: 87a203291227439fa51583d1528021a074a729892da3008c4112d0dd550d83c09525983aaafcd6f66c809e4285b5dd1eac89d81b9bda0450f6ff67c861012448
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1007
|
data/lib/v20210108/client.rb
CHANGED
@@ -29,6 +29,78 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 创建知识库
|
33
|
+
|
34
|
+
# @param request: Request instance for CreateKnowledgeSet.
|
35
|
+
# @type request: :class:`Tencentcloud::lowcode::V20210108::CreateKnowledgeSetRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::lowcode::V20210108::CreateKnowledgeSetResponse`
|
37
|
+
def CreateKnowledgeSet(request)
|
38
|
+
body = send_request('CreateKnowledgeSet', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = CreateKnowledgeSetResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
56
|
+
# 删除知识库下文档
|
57
|
+
|
58
|
+
# @param request: Request instance for DeleteKnowledgeDocumentSet.
|
59
|
+
# @type request: :class:`Tencentcloud::lowcode::V20210108::DeleteKnowledgeDocumentSetRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::lowcode::V20210108::DeleteKnowledgeDocumentSetResponse`
|
61
|
+
def DeleteKnowledgeDocumentSet(request)
|
62
|
+
body = send_request('DeleteKnowledgeDocumentSet', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DeleteKnowledgeDocumentSetResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
80
|
+
# 删除知识库
|
81
|
+
|
82
|
+
# @param request: Request instance for DeleteKnowledgeSet.
|
83
|
+
# @type request: :class:`Tencentcloud::lowcode::V20210108::DeleteKnowledgeSetRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::lowcode::V20210108::DeleteKnowledgeSetResponse`
|
85
|
+
def DeleteKnowledgeSet(request)
|
86
|
+
body = send_request('DeleteKnowledgeSet', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = DeleteKnowledgeSetResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
32
104
|
# 获取数据源详情列表
|
33
105
|
|
34
106
|
# @param request: Request instance for DescribeDataSourceList.
|
@@ -53,6 +125,150 @@ module TencentCloud
|
|
53
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
126
|
end
|
55
127
|
|
128
|
+
# 获取知识库下文档详情
|
129
|
+
|
130
|
+
# @param request: Request instance for DescribeKnowledgeDocumentSetDetail.
|
131
|
+
# @type request: :class:`Tencentcloud::lowcode::V20210108::DescribeKnowledgeDocumentSetDetailRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::lowcode::V20210108::DescribeKnowledgeDocumentSetDetailResponse`
|
133
|
+
def DescribeKnowledgeDocumentSetDetail(request)
|
134
|
+
body = send_request('DescribeKnowledgeDocumentSetDetail', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = DescribeKnowledgeDocumentSetDetailResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
152
|
+
# 查询知识库下文件集合
|
153
|
+
|
154
|
+
# @param request: Request instance for DescribeKnowledgeDocumentSetList.
|
155
|
+
# @type request: :class:`Tencentcloud::lowcode::V20210108::DescribeKnowledgeDocumentSetListRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::lowcode::V20210108::DescribeKnowledgeDocumentSetListResponse`
|
157
|
+
def DescribeKnowledgeDocumentSetList(request)
|
158
|
+
body = send_request('DescribeKnowledgeDocumentSetList', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = DescribeKnowledgeDocumentSetListResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
176
|
+
# 查询知识库
|
177
|
+
|
178
|
+
# @param request: Request instance for DescribeKnowledgeSetList.
|
179
|
+
# @type request: :class:`Tencentcloud::lowcode::V20210108::DescribeKnowledgeSetListRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::lowcode::V20210108::DescribeKnowledgeSetListResponse`
|
181
|
+
def DescribeKnowledgeSetList(request)
|
182
|
+
body = send_request('DescribeKnowledgeSetList', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = DescribeKnowledgeSetListResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
200
|
+
# 知识库文档搜索接口
|
201
|
+
|
202
|
+
# @param request: Request instance for SearchDocList.
|
203
|
+
# @type request: :class:`Tencentcloud::lowcode::V20210108::SearchDocListRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::lowcode::V20210108::SearchDocListResponse`
|
205
|
+
def SearchDocList(request)
|
206
|
+
body = send_request('SearchDocList', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = SearchDocListResponse.new
|
210
|
+
model.deserialize(response['Response'])
|
211
|
+
model
|
212
|
+
else
|
213
|
+
code = response['Response']['Error']['Code']
|
214
|
+
message = response['Response']['Error']['Message']
|
215
|
+
reqid = response['Response']['RequestId']
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
+
end
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
+
raise e
|
220
|
+
rescue StandardError => e
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
+
end
|
223
|
+
|
224
|
+
# 更新知识库
|
225
|
+
|
226
|
+
# @param request: Request instance for UpdateKnowledgeSet.
|
227
|
+
# @type request: :class:`Tencentcloud::lowcode::V20210108::UpdateKnowledgeSetRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::lowcode::V20210108::UpdateKnowledgeSetResponse`
|
229
|
+
def UpdateKnowledgeSet(request)
|
230
|
+
body = send_request('UpdateKnowledgeSet', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = UpdateKnowledgeSetResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
248
|
+
# 更新知识库
|
249
|
+
|
250
|
+
# @param request: Request instance for UploadKnowledgeDocumentSet.
|
251
|
+
# @type request: :class:`Tencentcloud::lowcode::V20210108::UploadKnowledgeDocumentSetRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::lowcode::V20210108::UploadKnowledgeDocumentSetResponse`
|
253
|
+
def UploadKnowledgeDocumentSet(request)
|
254
|
+
body = send_request('UploadKnowledgeDocumentSet', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = UploadKnowledgeDocumentSetResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
56
272
|
|
57
273
|
end
|
58
274
|
end
|