tencentcloud-sdk-dataagent 3.0.1174 → 3.0.1177

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 932c70e7f66ca60c6a7e68d2f7a9be33bb92de07
4
- data.tar.gz: 485a0ef9030ce947c29e306dfc342c8116145c77
3
+ metadata.gz: 056aa8264d069bd8bd18c2d764998b833f3dfbe4
4
+ data.tar.gz: 838f37050a5470b5a3d8bf55b66c19fb4a93d64e
5
5
  SHA512:
6
- metadata.gz: 810b21a02b946ecba404431bdb322ecc1daed362e992c6d25c799cd2dbb23228121e01bc7521531592bb642198976f3f4e4f42a635253292db3f3ff6917b3fc0
7
- data.tar.gz: ce84675027d62b22fa6031f33344e2e98138b069e3dd22d28683f0386944e977fb4c9c34f0f6ef2e1ab8956612d868fac945adafab57802803715d4861610082
6
+ metadata.gz: c86a4dc45e0f00209cee569c1eff3dcb352144c01269fdc79e4250641d73cab85bbfd46ed4090b01cf752e85d28f64f254620d24e9b163dc5e2f00698750d262
7
+ data.tar.gz: c5a900fc03705a64174e304c312265b7e36e446b098bd4ddae41501bfa70bd9a2b7bf45eb968e5c22452144ea92f6c0fe788198e81339b578692bfb349c44fd1
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1174
1
+ 3.0.1177
@@ -197,6 +197,30 @@ module TencentCloud
197
197
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
198
  end
199
199
 
200
+ # 查询上传任务
201
+
202
+ # @param request: Request instance for GetUploadJobDetails.
203
+ # @type request: :class:`Tencentcloud::dataagent::V20250513::GetUploadJobDetailsRequest`
204
+ # @rtype: :class:`Tencentcloud::dataagent::V20250513::GetUploadJobDetailsResponse`
205
+ def GetUploadJobDetails(request)
206
+ body = send_request('GetUploadJobDetails', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = GetUploadJobDetailsResponse.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
+
200
224
  # 编辑修改分片
201
225
 
202
226
  # @param request: Request instance for ModifyChunk.
@@ -293,6 +317,30 @@ module TencentCloud
293
317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
318
  end
295
319
 
320
+ # 上传提交文件
321
+
322
+ # @param request: Request instance for UploadAndCommitFile.
323
+ # @type request: :class:`Tencentcloud::dataagent::V20250513::UploadAndCommitFileRequest`
324
+ # @rtype: :class:`Tencentcloud::dataagent::V20250513::UploadAndCommitFileResponse`
325
+ def UploadAndCommitFile(request)
326
+ body = send_request('UploadAndCommitFile', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = UploadAndCommitFileResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
296
344
 
297
345
  end
298
346
  end
@@ -169,6 +169,30 @@ module TencentCloud
169
169
  end
170
170
  end
171
171
 
172
+ # cos 文件信息
173
+ class CosFileInfo < TencentCloud::Common::AbstractModel
174
+ # @param FileName: 文件名称,包含后缀
175
+ # @type FileName: String
176
+ # @param FileType: 文件类型,"PDF", "DOC", "DOCX", "XLS", "XLSX", "PPT", "PPTX", "MD", "TXT", "PNG", "JPG", "JPEG", "CSV"
177
+ # @type FileType: String
178
+ # @param UserCosUrl: 用户文件的cosurl
179
+ # @type UserCosUrl: String
180
+
181
+ attr_accessor :FileName, :FileType, :UserCosUrl
182
+
183
+ def initialize(filename=nil, filetype=nil, usercosurl=nil)
184
+ @FileName = filename
185
+ @FileType = filetype
186
+ @UserCosUrl = usercosurl
187
+ end
188
+
189
+ def deserialize(params)
190
+ @FileName = params['FileName']
191
+ @FileType = params['FileType']
192
+ @UserCosUrl = params['UserCosUrl']
193
+ end
194
+ end
195
+
172
196
  # CreateDataAgentSession请求参数结构体
173
197
  class CreateDataAgentSessionRequest < TencentCloud::Common::AbstractModel
174
198
  # @param InstanceId: 实例ID
@@ -383,6 +407,49 @@ module TencentCloud
383
407
  end
384
408
  end
385
409
 
410
+ # GetUploadJobDetails请求参数结构体
411
+ class GetUploadJobDetailsRequest < TencentCloud::Common::AbstractModel
412
+ # @param InstanceId: 实例ID
413
+ # @type InstanceId: String
414
+ # @param JobId: 任务id
415
+ # @type JobId: String
416
+
417
+ attr_accessor :InstanceId, :JobId
418
+
419
+ def initialize(instanceid=nil, jobid=nil)
420
+ @InstanceId = instanceid
421
+ @JobId = jobid
422
+ end
423
+
424
+ def deserialize(params)
425
+ @InstanceId = params['InstanceId']
426
+ @JobId = params['JobId']
427
+ end
428
+ end
429
+
430
+ # GetUploadJobDetails返回参数结构体
431
+ class GetUploadJobDetailsResponse < TencentCloud::Common::AbstractModel
432
+ # @param Job: 任务详情
433
+ # @type Job: :class:`Tencentcloud::Dataagent.v20250513.models.UploadJob`
434
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
435
+ # @type RequestId: String
436
+
437
+ attr_accessor :Job, :RequestId
438
+
439
+ def initialize(job=nil, requestid=nil)
440
+ @Job = job
441
+ @RequestId = requestid
442
+ end
443
+
444
+ def deserialize(params)
445
+ unless params['Job'].nil?
446
+ @Job = UploadJob.new
447
+ @Job.deserialize(params['Job'])
448
+ end
449
+ @RequestId = params['RequestId']
450
+ end
451
+ end
452
+
386
453
  # 知识库信息
387
454
  class KnowledgeBase < TencentCloud::Common::AbstractModel
388
455
  # @param KnowledgeBaseId: 知识库id
@@ -791,6 +858,113 @@ module TencentCloud
791
858
  end
792
859
  end
793
860
 
861
+ # UploadAndCommitFile请求参数结构体
862
+ class UploadAndCommitFileRequest < TencentCloud::Common::AbstractModel
863
+ # @param InstanceId: 实例id
864
+ # @type InstanceId: String
865
+ # @param CosFiles: 上传文件列表
866
+ # @type CosFiles: Array
867
+ # @param KnowledgeBaseId: 知识库id
868
+ # @type KnowledgeBaseId: String
869
+
870
+ attr_accessor :InstanceId, :CosFiles, :KnowledgeBaseId
871
+
872
+ def initialize(instanceid=nil, cosfiles=nil, knowledgebaseid=nil)
873
+ @InstanceId = instanceid
874
+ @CosFiles = cosfiles
875
+ @KnowledgeBaseId = knowledgebaseid
876
+ end
877
+
878
+ def deserialize(params)
879
+ @InstanceId = params['InstanceId']
880
+ unless params['CosFiles'].nil?
881
+ @CosFiles = []
882
+ params['CosFiles'].each do |i|
883
+ cosfileinfo_tmp = CosFileInfo.new
884
+ cosfileinfo_tmp.deserialize(i)
885
+ @CosFiles << cosfileinfo_tmp
886
+ end
887
+ end
888
+ @KnowledgeBaseId = params['KnowledgeBaseId']
889
+ end
890
+ end
891
+
892
+ # UploadAndCommitFile返回参数结构体
893
+ class UploadAndCommitFileResponse < TencentCloud::Common::AbstractModel
894
+ # @param JobId: 上传任务
895
+ # @type JobId: String
896
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
897
+ # @type RequestId: String
898
+
899
+ attr_accessor :JobId, :RequestId
900
+
901
+ def initialize(jobid=nil, requestid=nil)
902
+ @JobId = jobid
903
+ @RequestId = requestid
904
+ end
905
+
906
+ def deserialize(params)
907
+ @JobId = params['JobId']
908
+ @RequestId = params['RequestId']
909
+ end
910
+ end
911
+
912
+ # 上传任务
913
+ class UploadJob < TencentCloud::Common::AbstractModel
914
+ # @param Id: id
915
+ # @type Id: Integer
916
+ # @param JobId: 任务id
917
+ # @type JobId: String
918
+ # @param InstanceId: 实例id
919
+ # @type InstanceId: String
920
+ # @param KnowledgeBaseId: 知识库id
921
+ # @type KnowledgeBaseId: String
922
+ # @param Uin: uin
923
+ # @type Uin: String
924
+ # @param SubUin: subuin
925
+ # @type SubUin: String
926
+ # @param Status: Pending、FileUploading、
927
+ # FileParsing、
928
+ # Success、
929
+ # Failed
930
+
931
+ # @type Status: String
932
+ # @param CreateTime: 任务创建时间
933
+ # @type CreateTime: String
934
+ # @param UpdateTime: 任务更新时间
935
+ # @type UpdateTime: String
936
+ # @param Message: 错误信息
937
+ # @type Message: String
938
+
939
+ attr_accessor :Id, :JobId, :InstanceId, :KnowledgeBaseId, :Uin, :SubUin, :Status, :CreateTime, :UpdateTime, :Message
940
+
941
+ def initialize(id=nil, jobid=nil, instanceid=nil, knowledgebaseid=nil, uin=nil, subuin=nil, status=nil, createtime=nil, updatetime=nil, message=nil)
942
+ @Id = id
943
+ @JobId = jobid
944
+ @InstanceId = instanceid
945
+ @KnowledgeBaseId = knowledgebaseid
946
+ @Uin = uin
947
+ @SubUin = subuin
948
+ @Status = status
949
+ @CreateTime = createtime
950
+ @UpdateTime = updatetime
951
+ @Message = message
952
+ end
953
+
954
+ def deserialize(params)
955
+ @Id = params['Id']
956
+ @JobId = params['JobId']
957
+ @InstanceId = params['InstanceId']
958
+ @KnowledgeBaseId = params['KnowledgeBaseId']
959
+ @Uin = params['Uin']
960
+ @SubUin = params['SubUin']
961
+ @Status = params['Status']
962
+ @CreateTime = params['CreateTime']
963
+ @UpdateTime = params['UpdateTime']
964
+ @Message = params['Message']
965
+ end
966
+ end
967
+
794
968
  end
795
969
  end
796
970
  end
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.1174
4
+ version: 3.0.1177
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-28 00:00:00.000000000 Z
11
+ date: 2025-12-04 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