tencentcloud-sdk-dlc 1.0.278 → 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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210125/client.rb +48 -0
- data/lib/v20210125/models.rb +140 -4
- 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: 6c60f698d6493ffbefbf3d5a0028fbee44a80319
|
4
|
+
data.tar.gz: 98c6263ad54d722858ae8bd684ad655b70496586
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adb31656dcc1c838bb31d491d8c2e403c15bedf135256d5adad68e5dae8d7014907b65e75a62cfcb38aa56081b6e3bb033ec7dcc666b2e19ca2e74913dde8986
|
7
|
+
data.tar.gz: 5e4cf9c82491920c2d91b95062e590a39a1ace960bec98a6ea7cc1392da41f6d57a4c88b960563a01459a18b82065574b0678244a4668be103be2a163b3bc46b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.281
|
data/lib/v20210125/client.rb
CHANGED
@@ -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.
|
data/lib/v20210125/models.rb
CHANGED
@@ -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个字符。
|
@@ -648,13 +772,19 @@ module TencentCloud
|
|
648
772
|
# @type UserDescription: String
|
649
773
|
# @param PolicySet: 绑定到用户的权限集合
|
650
774
|
# @type PolicySet: Array
|
775
|
+
# @param UserType: 用户类型。ADMIN:管理员 COMMON:一般用户。当用户类型为管理员的时候,不能设置权限集合和绑定的工作组集合,管理员默认拥有所有权限。该参数不填默认为COMMON
|
776
|
+
# @type UserType: String
|
777
|
+
# @param WorkGroupIds: 绑定到用户的工作组ID集合。
|
778
|
+
# @type WorkGroupIds: Array
|
651
779
|
|
652
|
-
attr_accessor :UserId, :UserDescription, :PolicySet
|
780
|
+
attr_accessor :UserId, :UserDescription, :PolicySet, :UserType, :WorkGroupIds
|
653
781
|
|
654
|
-
def initialize(userid=nil, userdescription=nil, policyset=nil)
|
782
|
+
def initialize(userid=nil, userdescription=nil, policyset=nil, usertype=nil, workgroupids=nil)
|
655
783
|
@UserId = userid
|
656
784
|
@UserDescription = userdescription
|
657
785
|
@PolicySet = policyset
|
786
|
+
@UserType = usertype
|
787
|
+
@WorkGroupIds = workgroupids
|
658
788
|
end
|
659
789
|
|
660
790
|
def deserialize(params)
|
@@ -668,6 +798,8 @@ module TencentCloud
|
|
668
798
|
@PolicySet << policy_tmp
|
669
799
|
end
|
670
800
|
end
|
801
|
+
@UserType = params['UserType']
|
802
|
+
@WorkGroupIds = params['WorkGroupIds']
|
671
803
|
end
|
672
804
|
end
|
673
805
|
|
@@ -695,13 +827,16 @@ module TencentCloud
|
|
695
827
|
# @type WorkGroupDescription: String
|
696
828
|
# @param PolicySet: 工作组绑定的鉴权策略集合
|
697
829
|
# @type PolicySet: Array
|
830
|
+
# @param UserIds: 需要绑定到工作组的用户Id集合
|
831
|
+
# @type UserIds: Array
|
698
832
|
|
699
|
-
attr_accessor :WorkGroupName, :WorkGroupDescription, :PolicySet
|
833
|
+
attr_accessor :WorkGroupName, :WorkGroupDescription, :PolicySet, :UserIds
|
700
834
|
|
701
|
-
def initialize(workgroupname=nil, workgroupdescription=nil, policyset=nil)
|
835
|
+
def initialize(workgroupname=nil, workgroupdescription=nil, policyset=nil, userids=nil)
|
702
836
|
@WorkGroupName = workgroupname
|
703
837
|
@WorkGroupDescription = workgroupdescription
|
704
838
|
@PolicySet = policyset
|
839
|
+
@UserIds = userids
|
705
840
|
end
|
706
841
|
|
707
842
|
def deserialize(params)
|
@@ -715,6 +850,7 @@ module TencentCloud
|
|
715
850
|
@PolicySet << policy_tmp
|
716
851
|
end
|
717
852
|
end
|
853
|
+
@UserIds = params['UserIds']
|
718
854
|
end
|
719
855
|
end
|
720
856
|
|
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.
|
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-
|
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
|