tencentcloud-sdk-dlc 1.0.280 → 1.0.281

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: a5601928ee3bcbcb8e16228eefaa6e391d0305a5
4
- data.tar.gz: f2076382809f44a21aea5985c9dc460074e81e9c
3
+ metadata.gz: 6c60f698d6493ffbefbf3d5a0028fbee44a80319
4
+ data.tar.gz: 98c6263ad54d722858ae8bd684ad655b70496586
5
5
  SHA512:
6
- metadata.gz: 8ba87e05a93c5e70d77d6c701c400dc17ce0fa3f0cf34f547c78fa7d1c2b45dcc6e372871f3f297cf65a10c603e79a858bad7e9366fb150a79a09b628594bbfe
7
- data.tar.gz: a14106b28b3c827b9bb9835e0a1387820c2452077ef85e8c4451845e7209097f4854c65ab4ea7a98914e0da6104d83914914a10a43770b41016ce96249b45edc
6
+ metadata.gz: adb31656dcc1c838bb31d491d8c2e403c15bedf135256d5adad68e5dae8d7014907b65e75a62cfcb38aa56081b6e3bb033ec7dcc666b2e19ca2e74913dde8986
7
+ data.tar.gz: 5e4cf9c82491920c2d91b95062e590a39a1ace960bec98a6ea7cc1392da41f6d57a4c88b960563a01459a18b82065574b0678244a4668be103be2a163b3bc46b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.280
1
+ 1.0.281
@@ -173,6 +173,54 @@ module TencentCloud
173
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
174
  end
175
175
 
176
+ # 该接口(CreateExportTask)用于创建导出任务
177
+
178
+ # @param request: Request instance for CreateExportTask.
179
+ # @type request: :class:`Tencentcloud::dlc::V20210125::CreateExportTaskRequest`
180
+ # @rtype: :class:`Tencentcloud::dlc::V20210125::CreateExportTaskResponse`
181
+ def CreateExportTask(request)
182
+ body = send_request('CreateExportTask', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = CreateExportTaskResponse.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
+ # 该接口(CreateImportTask)用于创建导入任务
201
+
202
+ # @param request: Request instance for CreateImportTask.
203
+ # @type request: :class:`Tencentcloud::dlc::V20210125::CreateImportTaskRequest`
204
+ # @rtype: :class:`Tencentcloud::dlc::V20210125::CreateImportTaskResponse`
205
+ def CreateImportTask(request)
206
+ body = send_request('CreateImportTask', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = CreateImportTaskResponse.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
+
176
224
  # 该接口(CreateScript)用于创建sql脚本。
177
225
 
178
226
  # @param request: Request instance for CreateScript.
@@ -364,6 +364,130 @@ module TencentCloud
364
364
  end
365
365
  end
366
366
 
367
+ # CreateExportTask请求参数结构体
368
+ class CreateExportTaskRequest < TencentCloud::Common::AbstractModel
369
+ # @param InputType: 数据来源,lakefsStorage、taskResult
370
+ # @type InputType: String
371
+ # @param InputConf: 导出任务输入配置
372
+ # @type InputConf: Array
373
+ # @param OutputConf: 导出任务输出配置
374
+ # @type OutputConf: Array
375
+ # @param OutputType: 目标数据源的类型,目前支持导出到cos
376
+ # @type OutputType: String
377
+
378
+ attr_accessor :InputType, :InputConf, :OutputConf, :OutputType
379
+
380
+ def initialize(inputtype=nil, inputconf=nil, outputconf=nil, outputtype=nil)
381
+ @InputType = inputtype
382
+ @InputConf = inputconf
383
+ @OutputConf = outputconf
384
+ @OutputType = outputtype
385
+ end
386
+
387
+ def deserialize(params)
388
+ @InputType = params['InputType']
389
+ unless params['InputConf'].nil?
390
+ @InputConf = []
391
+ params['InputConf'].each do |i|
392
+ kvpair_tmp = KVPair.new
393
+ kvpair_tmp.deserialize(i)
394
+ @InputConf << kvpair_tmp
395
+ end
396
+ end
397
+ unless params['OutputConf'].nil?
398
+ @OutputConf = []
399
+ params['OutputConf'].each do |i|
400
+ kvpair_tmp = KVPair.new
401
+ kvpair_tmp.deserialize(i)
402
+ @OutputConf << kvpair_tmp
403
+ end
404
+ end
405
+ @OutputType = params['OutputType']
406
+ end
407
+ end
408
+
409
+ # CreateExportTask返回参数结构体
410
+ class CreateExportTaskResponse < TencentCloud::Common::AbstractModel
411
+ # @param TaskId: 任务id
412
+ # @type TaskId: String
413
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
414
+ # @type RequestId: String
415
+
416
+ attr_accessor :TaskId, :RequestId
417
+
418
+ def initialize(taskid=nil, requestid=nil)
419
+ @TaskId = taskid
420
+ @RequestId = requestid
421
+ end
422
+
423
+ def deserialize(params)
424
+ @TaskId = params['TaskId']
425
+ @RequestId = params['RequestId']
426
+ end
427
+ end
428
+
429
+ # CreateImportTask请求参数结构体
430
+ class CreateImportTaskRequest < TencentCloud::Common::AbstractModel
431
+ # @param InputType: 数据来源,cos
432
+ # @type InputType: String
433
+ # @param InputConf: 输入配置
434
+ # @type InputConf: Array
435
+ # @param OutputConf: 输出配置
436
+ # @type OutputConf: Array
437
+ # @param OutputType: 目标数据源的类型,目前支持导入到托管存储,即lakefsStorage
438
+ # @type OutputType: String
439
+
440
+ attr_accessor :InputType, :InputConf, :OutputConf, :OutputType
441
+
442
+ def initialize(inputtype=nil, inputconf=nil, outputconf=nil, outputtype=nil)
443
+ @InputType = inputtype
444
+ @InputConf = inputconf
445
+ @OutputConf = outputconf
446
+ @OutputType = outputtype
447
+ end
448
+
449
+ def deserialize(params)
450
+ @InputType = params['InputType']
451
+ unless params['InputConf'].nil?
452
+ @InputConf = []
453
+ params['InputConf'].each do |i|
454
+ kvpair_tmp = KVPair.new
455
+ kvpair_tmp.deserialize(i)
456
+ @InputConf << kvpair_tmp
457
+ end
458
+ end
459
+ unless params['OutputConf'].nil?
460
+ @OutputConf = []
461
+ params['OutputConf'].each do |i|
462
+ kvpair_tmp = KVPair.new
463
+ kvpair_tmp.deserialize(i)
464
+ @OutputConf << kvpair_tmp
465
+ end
466
+ end
467
+ @OutputType = params['OutputType']
468
+ end
469
+ end
470
+
471
+ # CreateImportTask返回参数结构体
472
+ class CreateImportTaskResponse < TencentCloud::Common::AbstractModel
473
+ # @param TaskId: 任务id
474
+ # @type TaskId: String
475
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
476
+ # @type RequestId: String
477
+
478
+ attr_accessor :TaskId, :RequestId
479
+
480
+ def initialize(taskid=nil, requestid=nil)
481
+ @TaskId = taskid
482
+ @RequestId = requestid
483
+ end
484
+
485
+ def deserialize(params)
486
+ @TaskId = params['TaskId']
487
+ @RequestId = params['RequestId']
488
+ end
489
+ end
490
+
367
491
  # CreateScript请求参数结构体
368
492
  class CreateScriptRequest < TencentCloud::Common::AbstractModel
369
493
  # @param ScriptName: 脚本名称,最大不能超过255个字符。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dlc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.280
4
+ version: 1.0.281
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-21 00:00:00.000000000 Z
11
+ date: 2022-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common