tencentcloud-sdk-dataagent 3.0.1179 → 3.0.1198
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/v20250513/client.rb +24 -0
- data/lib/v20250513/models.rb +81 -10
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ebaac5f5e787383aa3ebf5b572d547e83e4cc706
|
|
4
|
+
data.tar.gz: 01916a1ec91fda12083ac960f6ed47edf272d2dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 935da05ba51b08913c002ddf4f4837ada90b90554d0ce40f594d2413481b011ad8cbbac57d0d825a3dadedf323cfc7f99fcdb01a8506e7a6a5a02d8c83dba2a8
|
|
7
|
+
data.tar.gz: 032bb57301ff32b1b1ad8eec94a222a89c0b2ff97c73c135e6bc9cf46edf58b35f91afb28d8a9977ef8780f7d7d20cef466ec68a047cec84195bbd2fdd7cd438
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1198
|
data/lib/v20250513/client.rb
CHANGED
|
@@ -149,6 +149,30 @@ module TencentCloud
|
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
+
# 根据知识库id查询jobs 列表
|
|
153
|
+
|
|
154
|
+
# @param request: Request instance for GetJobsByKnowledgeBaseId.
|
|
155
|
+
# @type request: :class:`Tencentcloud::dataagent::V20250513::GetJobsByKnowledgeBaseIdRequest`
|
|
156
|
+
# @rtype: :class:`Tencentcloud::dataagent::V20250513::GetJobsByKnowledgeBaseIdResponse`
|
|
157
|
+
def GetJobsByKnowledgeBaseId(request)
|
|
158
|
+
body = send_request('GetJobsByKnowledgeBaseId', request.serialize)
|
|
159
|
+
response = JSON.parse(body)
|
|
160
|
+
if response['Response'].key?('Error') == false
|
|
161
|
+
model = GetJobsByKnowledgeBaseIdResponse.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
|
+
|
|
152
176
|
# 获取知识库文件信息列表
|
|
153
177
|
|
|
154
178
|
# @param request: Request instance for GetKnowledgeBaseFileList.
|
data/lib/v20250513/models.rb
CHANGED
|
@@ -31,16 +31,19 @@ module TencentCloud
|
|
|
31
31
|
# @type Content: String
|
|
32
32
|
# @param AfterChunkId: 新 Chunk 插入到目标 Chunk 之后的位置。插入位置的上一个 chunkId
|
|
33
33
|
# @type AfterChunkId: String
|
|
34
|
+
# @param KnowledgeBaseId: 知识库id
|
|
35
|
+
# @type KnowledgeBaseId: String
|
|
34
36
|
|
|
35
|
-
attr_accessor :InstanceId, :FileId, :BeforeChunkId, :InsertPos, :Content, :AfterChunkId
|
|
37
|
+
attr_accessor :InstanceId, :FileId, :BeforeChunkId, :InsertPos, :Content, :AfterChunkId, :KnowledgeBaseId
|
|
36
38
|
|
|
37
|
-
def initialize(instanceid=nil, fileid=nil, beforechunkid=nil, insertpos=nil, content=nil, afterchunkid=nil)
|
|
39
|
+
def initialize(instanceid=nil, fileid=nil, beforechunkid=nil, insertpos=nil, content=nil, afterchunkid=nil, knowledgebaseid=nil)
|
|
38
40
|
@InstanceId = instanceid
|
|
39
41
|
@FileId = fileid
|
|
40
42
|
@BeforeChunkId = beforechunkid
|
|
41
43
|
@InsertPos = insertpos
|
|
42
44
|
@Content = content
|
|
43
45
|
@AfterChunkId = afterchunkid
|
|
46
|
+
@KnowledgeBaseId = knowledgebaseid
|
|
44
47
|
end
|
|
45
48
|
|
|
46
49
|
def deserialize(params)
|
|
@@ -50,6 +53,7 @@ module TencentCloud
|
|
|
50
53
|
@InsertPos = params['InsertPos']
|
|
51
54
|
@Content = params['Content']
|
|
52
55
|
@AfterChunkId = params['AfterChunkId']
|
|
56
|
+
@KnowledgeBaseId = params['KnowledgeBaseId']
|
|
53
57
|
end
|
|
54
58
|
end
|
|
55
59
|
|
|
@@ -269,19 +273,23 @@ module TencentCloud
|
|
|
269
273
|
# @type FileId: String
|
|
270
274
|
# @param ChunkIds: 切片ID
|
|
271
275
|
# @type ChunkIds: Array
|
|
276
|
+
# @param KnowledgeBaseId: 知识库id
|
|
277
|
+
# @type KnowledgeBaseId: String
|
|
272
278
|
|
|
273
|
-
attr_accessor :InstanceId, :FileId, :ChunkIds
|
|
279
|
+
attr_accessor :InstanceId, :FileId, :ChunkIds, :KnowledgeBaseId
|
|
274
280
|
|
|
275
|
-
def initialize(instanceid=nil, fileid=nil, chunkids=nil)
|
|
281
|
+
def initialize(instanceid=nil, fileid=nil, chunkids=nil, knowledgebaseid=nil)
|
|
276
282
|
@InstanceId = instanceid
|
|
277
283
|
@FileId = fileid
|
|
278
284
|
@ChunkIds = chunkids
|
|
285
|
+
@KnowledgeBaseId = knowledgebaseid
|
|
279
286
|
end
|
|
280
287
|
|
|
281
288
|
def deserialize(params)
|
|
282
289
|
@InstanceId = params['InstanceId']
|
|
283
290
|
@FileId = params['FileId']
|
|
284
291
|
@ChunkIds = params['ChunkIds']
|
|
292
|
+
@KnowledgeBaseId = params['KnowledgeBaseId']
|
|
285
293
|
end
|
|
286
294
|
end
|
|
287
295
|
|
|
@@ -404,6 +412,53 @@ module TencentCloud
|
|
|
404
412
|
end
|
|
405
413
|
end
|
|
406
414
|
|
|
415
|
+
# GetJobsByKnowledgeBaseId请求参数结构体
|
|
416
|
+
class GetJobsByKnowledgeBaseIdRequest < TencentCloud::Common::AbstractModel
|
|
417
|
+
# @param InstanceId: 实例ID
|
|
418
|
+
# @type InstanceId: String
|
|
419
|
+
# @param KnowledgeBaseId: 知识库id
|
|
420
|
+
# @type KnowledgeBaseId: String
|
|
421
|
+
|
|
422
|
+
attr_accessor :InstanceId, :KnowledgeBaseId
|
|
423
|
+
|
|
424
|
+
def initialize(instanceid=nil, knowledgebaseid=nil)
|
|
425
|
+
@InstanceId = instanceid
|
|
426
|
+
@KnowledgeBaseId = knowledgebaseid
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
def deserialize(params)
|
|
430
|
+
@InstanceId = params['InstanceId']
|
|
431
|
+
@KnowledgeBaseId = params['KnowledgeBaseId']
|
|
432
|
+
end
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
# GetJobsByKnowledgeBaseId返回参数结构体
|
|
436
|
+
class GetJobsByKnowledgeBaseIdResponse < TencentCloud::Common::AbstractModel
|
|
437
|
+
# @param Jobs: 任务列表详情
|
|
438
|
+
# @type Jobs: Array
|
|
439
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
440
|
+
# @type RequestId: String
|
|
441
|
+
|
|
442
|
+
attr_accessor :Jobs, :RequestId
|
|
443
|
+
|
|
444
|
+
def initialize(jobs=nil, requestid=nil)
|
|
445
|
+
@Jobs = jobs
|
|
446
|
+
@RequestId = requestid
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
def deserialize(params)
|
|
450
|
+
unless params['Jobs'].nil?
|
|
451
|
+
@Jobs = []
|
|
452
|
+
params['Jobs'].each do |i|
|
|
453
|
+
uploadjob_tmp = UploadJob.new
|
|
454
|
+
uploadjob_tmp.deserialize(i)
|
|
455
|
+
@Jobs << uploadjob_tmp
|
|
456
|
+
end
|
|
457
|
+
end
|
|
458
|
+
@RequestId = params['RequestId']
|
|
459
|
+
end
|
|
460
|
+
end
|
|
461
|
+
|
|
407
462
|
# GetKnowledgeBaseFileList请求参数结构体
|
|
408
463
|
class GetKnowledgeBaseFileListRequest < TencentCloud::Common::AbstractModel
|
|
409
464
|
# @param InstanceId: 实例id
|
|
@@ -706,14 +761,17 @@ module TencentCloud
|
|
|
706
761
|
# @type ChunkId: String
|
|
707
762
|
# @param Content: 编辑后的文本
|
|
708
763
|
# @type Content: String
|
|
764
|
+
# @param KnowledgeBaseId: 知识库id
|
|
765
|
+
# @type KnowledgeBaseId: String
|
|
709
766
|
|
|
710
|
-
attr_accessor :InstanceId, :FileId, :ChunkId, :Content
|
|
767
|
+
attr_accessor :InstanceId, :FileId, :ChunkId, :Content, :KnowledgeBaseId
|
|
711
768
|
|
|
712
|
-
def initialize(instanceid=nil, fileid=nil, chunkid=nil, content=nil)
|
|
769
|
+
def initialize(instanceid=nil, fileid=nil, chunkid=nil, content=nil, knowledgebaseid=nil)
|
|
713
770
|
@InstanceId = instanceid
|
|
714
771
|
@FileId = fileid
|
|
715
772
|
@ChunkId = chunkid
|
|
716
773
|
@Content = content
|
|
774
|
+
@KnowledgeBaseId = knowledgebaseid
|
|
717
775
|
end
|
|
718
776
|
|
|
719
777
|
def deserialize(params)
|
|
@@ -721,6 +779,7 @@ module TencentCloud
|
|
|
721
779
|
@FileId = params['FileId']
|
|
722
780
|
@ChunkId = params['ChunkId']
|
|
723
781
|
@Content = params['Content']
|
|
782
|
+
@KnowledgeBaseId = params['KnowledgeBaseId']
|
|
724
783
|
end
|
|
725
784
|
end
|
|
726
785
|
|
|
@@ -752,15 +811,21 @@ module TencentCloud
|
|
|
752
811
|
# @type KnowledgeBaseName: String
|
|
753
812
|
# @param KnowledgeBaseDesc: 知识库描述,create和update时必填
|
|
754
813
|
# @type KnowledgeBaseDesc: String
|
|
814
|
+
# @param UseScope: 1仅自己使用,2指定用户,0全员
|
|
815
|
+
# @type UseScope: Integer
|
|
816
|
+
# @param AuthorityUins: 可使用用户列表
|
|
817
|
+
# @type AuthorityUins: Array
|
|
755
818
|
|
|
756
|
-
attr_accessor :InstanceId, :OperateType, :KnowledgeBaseId, :KnowledgeBaseName, :KnowledgeBaseDesc
|
|
819
|
+
attr_accessor :InstanceId, :OperateType, :KnowledgeBaseId, :KnowledgeBaseName, :KnowledgeBaseDesc, :UseScope, :AuthorityUins
|
|
757
820
|
|
|
758
|
-
def initialize(instanceid=nil, operatetype=nil, knowledgebaseid=nil, knowledgebasename=nil, knowledgebasedesc=nil)
|
|
821
|
+
def initialize(instanceid=nil, operatetype=nil, knowledgebaseid=nil, knowledgebasename=nil, knowledgebasedesc=nil, usescope=nil, authorityuins=nil)
|
|
759
822
|
@InstanceId = instanceid
|
|
760
823
|
@OperateType = operatetype
|
|
761
824
|
@KnowledgeBaseId = knowledgebaseid
|
|
762
825
|
@KnowledgeBaseName = knowledgebasename
|
|
763
826
|
@KnowledgeBaseDesc = knowledgebasedesc
|
|
827
|
+
@UseScope = usescope
|
|
828
|
+
@AuthorityUins = authorityuins
|
|
764
829
|
end
|
|
765
830
|
|
|
766
831
|
def deserialize(params)
|
|
@@ -769,6 +834,8 @@ module TencentCloud
|
|
|
769
834
|
@KnowledgeBaseId = params['KnowledgeBaseId']
|
|
770
835
|
@KnowledgeBaseName = params['KnowledgeBaseName']
|
|
771
836
|
@KnowledgeBaseDesc = params['KnowledgeBaseDesc']
|
|
837
|
+
@UseScope = params['UseScope']
|
|
838
|
+
@AuthorityUins = params['AuthorityUins']
|
|
772
839
|
end
|
|
773
840
|
end
|
|
774
841
|
|
|
@@ -798,17 +865,21 @@ module TencentCloud
|
|
|
798
865
|
# @type Page: Integer
|
|
799
866
|
# @param PageSize: 默认一页展示 10 条
|
|
800
867
|
# @type PageSize: Integer
|
|
868
|
+
# @param KnowledgeBaseId: 知识库id
|
|
869
|
+
# @type KnowledgeBaseId: String
|
|
801
870
|
|
|
802
|
-
attr_accessor :Page, :PageSize
|
|
871
|
+
attr_accessor :Page, :PageSize, :KnowledgeBaseId
|
|
803
872
|
|
|
804
|
-
def initialize(page=nil, pagesize=nil)
|
|
873
|
+
def initialize(page=nil, pagesize=nil, knowledgebaseid=nil)
|
|
805
874
|
@Page = page
|
|
806
875
|
@PageSize = pagesize
|
|
876
|
+
@KnowledgeBaseId = knowledgebaseid
|
|
807
877
|
end
|
|
808
878
|
|
|
809
879
|
def deserialize(params)
|
|
810
880
|
@Page = params['Page']
|
|
811
881
|
@PageSize = params['PageSize']
|
|
882
|
+
@KnowledgeBaseId = params['KnowledgeBaseId']
|
|
812
883
|
end
|
|
813
884
|
end
|
|
814
885
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-dataagent
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1198
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -33,8 +33,8 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
-
- lib/v20250513/models.rb
|
|
37
36
|
- lib/v20250513/client.rb
|
|
37
|
+
- lib/v20250513/models.rb
|
|
38
38
|
- lib/tencentcloud-sdk-dataagent.rb
|
|
39
39
|
- lib/VERSION
|
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|