tencentcloud-sdk-dlc 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2585 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Dlc
19
+ module V20210125
20
+ # AddUsersToWorkGroup请求参数结构体
21
+ class AddUsersToWorkGroupRequest < TencentCloud::Common::AbstractModel
22
+ # @param AddInfo: 要操作的工作组和用户信息
23
+ # @type AddInfo: :class:`Tencentcloud::Dlc.v20210125.models.UserIdSetOfWorkGroupId`
24
+
25
+ attr_accessor :AddInfo
26
+
27
+ def initialize(addinfo=nil)
28
+ @AddInfo = addinfo
29
+ end
30
+
31
+ def deserialize(params)
32
+ unless params['AddInfo'].nil?
33
+ @AddInfo = UserIdSetOfWorkGroupId.new
34
+ @AddInfo.deserialize(params['AddInfo'])
35
+ end
36
+ end
37
+ end
38
+
39
+ # AddUsersToWorkGroup返回参数结构体
40
+ class AddUsersToWorkGroupResponse < TencentCloud::Common::AbstractModel
41
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
42
+ # @type RequestId: String
43
+
44
+ attr_accessor :RequestId
45
+
46
+ def initialize(requestid=nil)
47
+ @RequestId = requestid
48
+ end
49
+
50
+ def deserialize(params)
51
+ @RequestId = params['RequestId']
52
+ end
53
+ end
54
+
55
+ # AttachUserPolicy请求参数结构体
56
+ class AttachUserPolicyRequest < TencentCloud::Common::AbstractModel
57
+ # @param UserId: 用户Id,和子用户uin相同,需要先使用CreateUser接口创建用户。可以使用DescribeUsers接口查看。
58
+ # @type UserId: String
59
+ # @param PolicySet: 鉴权策略集合
60
+ # @type PolicySet: Array
61
+
62
+ attr_accessor :UserId, :PolicySet
63
+
64
+ def initialize(userid=nil, policyset=nil)
65
+ @UserId = userid
66
+ @PolicySet = policyset
67
+ end
68
+
69
+ def deserialize(params)
70
+ @UserId = params['UserId']
71
+ unless params['PolicySet'].nil?
72
+ @PolicySet = []
73
+ params['PolicySet'].each do |i|
74
+ policy_tmp = Policy.new
75
+ policy_tmp.deserialize(i)
76
+ @PolicySet << policy_tmp
77
+ end
78
+ end
79
+ end
80
+ end
81
+
82
+ # AttachUserPolicy返回参数结构体
83
+ class AttachUserPolicyResponse < TencentCloud::Common::AbstractModel
84
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
85
+ # @type RequestId: String
86
+
87
+ attr_accessor :RequestId
88
+
89
+ def initialize(requestid=nil)
90
+ @RequestId = requestid
91
+ end
92
+
93
+ def deserialize(params)
94
+ @RequestId = params['RequestId']
95
+ end
96
+ end
97
+
98
+ # AttachWorkGroupPolicy请求参数结构体
99
+ class AttachWorkGroupPolicyRequest < TencentCloud::Common::AbstractModel
100
+ # @param WorkGroupId: 工作组Id
101
+ # @type WorkGroupId: Integer
102
+ # @param PolicySet: 要绑定的策略集合
103
+ # @type PolicySet: Array
104
+
105
+ attr_accessor :WorkGroupId, :PolicySet
106
+
107
+ def initialize(workgroupid=nil, policyset=nil)
108
+ @WorkGroupId = workgroupid
109
+ @PolicySet = policyset
110
+ end
111
+
112
+ def deserialize(params)
113
+ @WorkGroupId = params['WorkGroupId']
114
+ unless params['PolicySet'].nil?
115
+ @PolicySet = []
116
+ params['PolicySet'].each do |i|
117
+ policy_tmp = Policy.new
118
+ policy_tmp.deserialize(i)
119
+ @PolicySet << policy_tmp
120
+ end
121
+ end
122
+ end
123
+ end
124
+
125
+ # AttachWorkGroupPolicy返回参数结构体
126
+ class AttachWorkGroupPolicyResponse < TencentCloud::Common::AbstractModel
127
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
128
+ # @type RequestId: String
129
+
130
+ attr_accessor :RequestId
131
+
132
+ def initialize(requestid=nil)
133
+ @RequestId = requestid
134
+ end
135
+
136
+ def deserialize(params)
137
+ @RequestId = params['RequestId']
138
+ end
139
+ end
140
+
141
+ # BindWorkGroupsToUser请求参数结构体
142
+ class BindWorkGroupsToUserRequest < TencentCloud::Common::AbstractModel
143
+ # @param AddInfo: 绑定的用户和工作组信息
144
+ # @type AddInfo: :class:`Tencentcloud::Dlc.v20210125.models.WorkGroupIdSetOfUserId`
145
+
146
+ attr_accessor :AddInfo
147
+
148
+ def initialize(addinfo=nil)
149
+ @AddInfo = addinfo
150
+ end
151
+
152
+ def deserialize(params)
153
+ unless params['AddInfo'].nil?
154
+ @AddInfo = WorkGroupIdSetOfUserId.new
155
+ @AddInfo.deserialize(params['AddInfo'])
156
+ end
157
+ end
158
+ end
159
+
160
+ # BindWorkGroupsToUser返回参数结构体
161
+ class BindWorkGroupsToUserResponse < TencentCloud::Common::AbstractModel
162
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
163
+ # @type RequestId: String
164
+
165
+ attr_accessor :RequestId
166
+
167
+ def initialize(requestid=nil)
168
+ @RequestId = requestid
169
+ end
170
+
171
+ def deserialize(params)
172
+ @RequestId = params['RequestId']
173
+ end
174
+ end
175
+
176
+ # CSV类型数据格式
177
+ class CSV < TencentCloud::Common::AbstractModel
178
+ # @param CodeCompress: 压缩格式,["Snappy", "Gzip", "None"选一]。
179
+ # @type CodeCompress: String
180
+ # @param CSVSerde: CSV序列化及反序列化数据结构。
181
+ # @type CSVSerde: :class:`Tencentcloud::Dlc.v20210125.models.CSVSerde`
182
+ # @param HeadLines: 标题行,默认为0。
183
+ # 注意:此字段可能返回 null,表示取不到有效值。
184
+ # @type HeadLines: Integer
185
+ # @param Format: 格式,默认值为CSV
186
+ # 注意:此字段可能返回 null,表示取不到有效值。
187
+ # @type Format: String
188
+
189
+ attr_accessor :CodeCompress, :CSVSerde, :HeadLines, :Format
190
+
191
+ def initialize(codecompress=nil, csvserde=nil, headlines=nil, format=nil)
192
+ @CodeCompress = codecompress
193
+ @CSVSerde = csvserde
194
+ @HeadLines = headlines
195
+ @Format = format
196
+ end
197
+
198
+ def deserialize(params)
199
+ @CodeCompress = params['CodeCompress']
200
+ unless params['CSVSerde'].nil?
201
+ @CSVSerde = CSVSerde.new
202
+ @CSVSerde.deserialize(params['CSVSerde'])
203
+ end
204
+ @HeadLines = params['HeadLines']
205
+ @Format = params['Format']
206
+ end
207
+ end
208
+
209
+ # CSV序列化及反序列化数据结构
210
+ class CSVSerde < TencentCloud::Common::AbstractModel
211
+ # @param Escape: CSV序列化转义符,默认为"\\",最长8个字符,如 Escape: "/\"
212
+ # @type Escape: String
213
+ # @param Quote: CSV序列化字段域符,默认为"'",最长8个字符, 如 Quote: "\""
214
+ # @type Quote: String
215
+ # @param Separator: CSV序列化分隔符,默认为"\t",最长8个字符, 如 Separator: "\t"
216
+ # @type Separator: String
217
+
218
+ attr_accessor :Escape, :Quote, :Separator
219
+
220
+ def initialize(escape=nil, quote=nil, separator=nil)
221
+ @Escape = escape
222
+ @Quote = quote
223
+ @Separator = separator
224
+ end
225
+
226
+ def deserialize(params)
227
+ @Escape = params['Escape']
228
+ @Quote = params['Quote']
229
+ @Separator = params['Separator']
230
+ end
231
+ end
232
+
233
+ # CancelTask请求参数结构体
234
+ class CancelTaskRequest < TencentCloud::Common::AbstractModel
235
+ # @param TaskId: 任务Id,全局唯一
236
+ # @type TaskId: String
237
+
238
+ attr_accessor :TaskId
239
+
240
+ def initialize(taskid=nil)
241
+ @TaskId = taskid
242
+ end
243
+
244
+ def deserialize(params)
245
+ @TaskId = params['TaskId']
246
+ end
247
+ end
248
+
249
+ # CancelTask返回参数结构体
250
+ class CancelTaskResponse < TencentCloud::Common::AbstractModel
251
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
252
+ # @type RequestId: String
253
+
254
+ attr_accessor :RequestId
255
+
256
+ def initialize(requestid=nil)
257
+ @RequestId = requestid
258
+ end
259
+
260
+ def deserialize(params)
261
+ @RequestId = params['RequestId']
262
+ end
263
+ end
264
+
265
+ # 数据表列信息。
266
+ class Column < TencentCloud::Common::AbstractModel
267
+ # @param Name: 列名称,不区分大小写,最大支持25个字符。
268
+ # @type Name: String
269
+ # @param Type: 列类型,支持如下类型定义:
270
+ # string|tinyint|smallint|int|bigint|boolean|float|double|decimal|timestamp|date|binary|array<data_type>|map<primitive_type, data_type>|struct<col_name : data_type [COMMENT col_comment], ...>|uniontype<data_type, data_type, ...>。
271
+ # @type Type: String
272
+ # @param Comment: 对该类的注释。
273
+ # 注意:此字段可能返回 null,表示取不到有效值。
274
+ # @type Comment: String
275
+ # @param Precision: 表示整个 numeric 的长度
276
+ # 注意:此字段可能返回 null,表示取不到有效值。
277
+ # @type Precision: Integer
278
+ # @param Scale: 表示小数部分的长度
279
+ # 注意:此字段可能返回 null,表示取不到有效值。
280
+ # @type Scale: Integer
281
+ # @param Nullable: 是否为null
282
+ # 注意:此字段可能返回 null,表示取不到有效值。
283
+ # @type Nullable: String
284
+
285
+ attr_accessor :Name, :Type, :Comment, :Precision, :Scale, :Nullable
286
+
287
+ def initialize(name=nil, type=nil, comment=nil, precision=nil, scale=nil, nullable=nil)
288
+ @Name = name
289
+ @Type = type
290
+ @Comment = comment
291
+ @Precision = precision
292
+ @Scale = scale
293
+ @Nullable = nullable
294
+ end
295
+
296
+ def deserialize(params)
297
+ @Name = params['Name']
298
+ @Type = params['Type']
299
+ @Comment = params['Comment']
300
+ @Precision = params['Precision']
301
+ @Scale = params['Scale']
302
+ @Nullable = params['Nullable']
303
+ end
304
+ end
305
+
306
+ # CreateDatabase请求参数结构体
307
+ class CreateDatabaseRequest < TencentCloud::Common::AbstractModel
308
+ # @param DatabaseInfo: 数据库基础信息
309
+ # @type DatabaseInfo: :class:`Tencentcloud::Dlc.v20210125.models.DatabaseInfo`
310
+ # @param DatasourceConnectionName: 数据源名称,默认为CosDataCatalog
311
+ # @type DatasourceConnectionName: String
312
+
313
+ attr_accessor :DatabaseInfo, :DatasourceConnectionName
314
+
315
+ def initialize(databaseinfo=nil, datasourceconnectionname=nil)
316
+ @DatabaseInfo = databaseinfo
317
+ @DatasourceConnectionName = datasourceconnectionname
318
+ end
319
+
320
+ def deserialize(params)
321
+ unless params['DatabaseInfo'].nil?
322
+ @DatabaseInfo = DatabaseInfo.new
323
+ @DatabaseInfo.deserialize(params['DatabaseInfo'])
324
+ end
325
+ @DatasourceConnectionName = params['DatasourceConnectionName']
326
+ end
327
+ end
328
+
329
+ # CreateDatabase返回参数结构体
330
+ class CreateDatabaseResponse < TencentCloud::Common::AbstractModel
331
+ # @param Execution: 生成的建库执行语句对象。
332
+ # @type Execution: :class:`Tencentcloud::Dlc.v20210125.models.Execution`
333
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
334
+ # @type RequestId: String
335
+
336
+ attr_accessor :Execution, :RequestId
337
+
338
+ def initialize(execution=nil, requestid=nil)
339
+ @Execution = execution
340
+ @RequestId = requestid
341
+ end
342
+
343
+ def deserialize(params)
344
+ unless params['Execution'].nil?
345
+ @Execution = Execution.new
346
+ @Execution.deserialize(params['Execution'])
347
+ end
348
+ @RequestId = params['RequestId']
349
+ end
350
+ end
351
+
352
+ # CreateScript请求参数结构体
353
+ class CreateScriptRequest < TencentCloud::Common::AbstractModel
354
+ # @param ScriptName: 脚本名称,最大不能超过255个字符。
355
+ # @type ScriptName: String
356
+ # @param SQLStatement: base64编码后的sql语句
357
+ # @type SQLStatement: String
358
+ # @param ScriptDesc: 脚本描述, 不能超过50个字符
359
+ # @type ScriptDesc: String
360
+ # @param DatabaseName: 数据库名称
361
+ # @type DatabaseName: String
362
+
363
+ attr_accessor :ScriptName, :SQLStatement, :ScriptDesc, :DatabaseName
364
+
365
+ def initialize(scriptname=nil, sqlstatement=nil, scriptdesc=nil, databasename=nil)
366
+ @ScriptName = scriptname
367
+ @SQLStatement = sqlstatement
368
+ @ScriptDesc = scriptdesc
369
+ @DatabaseName = databasename
370
+ end
371
+
372
+ def deserialize(params)
373
+ @ScriptName = params['ScriptName']
374
+ @SQLStatement = params['SQLStatement']
375
+ @ScriptDesc = params['ScriptDesc']
376
+ @DatabaseName = params['DatabaseName']
377
+ end
378
+ end
379
+
380
+ # CreateScript返回参数结构体
381
+ class CreateScriptResponse < TencentCloud::Common::AbstractModel
382
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
383
+ # @type RequestId: String
384
+
385
+ attr_accessor :RequestId
386
+
387
+ def initialize(requestid=nil)
388
+ @RequestId = requestid
389
+ end
390
+
391
+ def deserialize(params)
392
+ @RequestId = params['RequestId']
393
+ end
394
+ end
395
+
396
+ # CreateStoreLocation请求参数结构体
397
+ class CreateStoreLocationRequest < TencentCloud::Common::AbstractModel
398
+ # @param StoreLocation: 计算结果存储cos路径,如:cosn://bucketname/
399
+ # @type StoreLocation: String
400
+
401
+ attr_accessor :StoreLocation
402
+
403
+ def initialize(storelocation=nil)
404
+ @StoreLocation = storelocation
405
+ end
406
+
407
+ def deserialize(params)
408
+ @StoreLocation = params['StoreLocation']
409
+ end
410
+ end
411
+
412
+ # CreateStoreLocation返回参数结构体
413
+ class CreateStoreLocationResponse < TencentCloud::Common::AbstractModel
414
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
415
+ # @type RequestId: String
416
+
417
+ attr_accessor :RequestId
418
+
419
+ def initialize(requestid=nil)
420
+ @RequestId = requestid
421
+ end
422
+
423
+ def deserialize(params)
424
+ @RequestId = params['RequestId']
425
+ end
426
+ end
427
+
428
+ # CreateTable请求参数结构体
429
+ class CreateTableRequest < TencentCloud::Common::AbstractModel
430
+ # @param TableInfo: 数据表配置信息
431
+ # @type TableInfo: :class:`Tencentcloud::Dlc.v20210125.models.TableInfo`
432
+
433
+ attr_accessor :TableInfo
434
+
435
+ def initialize(tableinfo=nil)
436
+ @TableInfo = tableinfo
437
+ end
438
+
439
+ def deserialize(params)
440
+ unless params['TableInfo'].nil?
441
+ @TableInfo = TableInfo.new
442
+ @TableInfo.deserialize(params['TableInfo'])
443
+ end
444
+ end
445
+ end
446
+
447
+ # CreateTable返回参数结构体
448
+ class CreateTableResponse < TencentCloud::Common::AbstractModel
449
+ # @param Execution: 生成的建表执行语句对象。
450
+ # @type Execution: :class:`Tencentcloud::Dlc.v20210125.models.Execution`
451
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
452
+ # @type RequestId: String
453
+
454
+ attr_accessor :Execution, :RequestId
455
+
456
+ def initialize(execution=nil, requestid=nil)
457
+ @Execution = execution
458
+ @RequestId = requestid
459
+ end
460
+
461
+ def deserialize(params)
462
+ unless params['Execution'].nil?
463
+ @Execution = Execution.new
464
+ @Execution.deserialize(params['Execution'])
465
+ end
466
+ @RequestId = params['RequestId']
467
+ end
468
+ end
469
+
470
+ # CreateTask请求参数结构体
471
+ class CreateTaskRequest < TencentCloud::Common::AbstractModel
472
+ # @param Task: 计算任务,该参数中包含任务类型及其相关配置信息
473
+ # @type Task: :class:`Tencentcloud::Dlc.v20210125.models.Task`
474
+ # @param DatabaseName: 数据库名称。任务在执行前均会USE该数据库, 除了首次建库时,其他情况建议均添加上。
475
+ # @type DatabaseName: String
476
+ # @param DatasourceConnectionName: 默认数据源名称。
477
+ # @type DatasourceConnectionName: String
478
+
479
+ attr_accessor :Task, :DatabaseName, :DatasourceConnectionName
480
+
481
+ def initialize(task=nil, databasename=nil, datasourceconnectionname=nil)
482
+ @Task = task
483
+ @DatabaseName = databasename
484
+ @DatasourceConnectionName = datasourceconnectionname
485
+ end
486
+
487
+ def deserialize(params)
488
+ unless params['Task'].nil?
489
+ @Task = Task.new
490
+ @Task.deserialize(params['Task'])
491
+ end
492
+ @DatabaseName = params['DatabaseName']
493
+ @DatasourceConnectionName = params['DatasourceConnectionName']
494
+ end
495
+ end
496
+
497
+ # CreateTask返回参数结构体
498
+ class CreateTaskResponse < TencentCloud::Common::AbstractModel
499
+ # @param TaskId: 任务ID
500
+ # 注意:此字段可能返回 null,表示取不到有效值。
501
+ # @type TaskId: String
502
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
503
+ # @type RequestId: String
504
+
505
+ attr_accessor :TaskId, :RequestId
506
+
507
+ def initialize(taskid=nil, requestid=nil)
508
+ @TaskId = taskid
509
+ @RequestId = requestid
510
+ end
511
+
512
+ def deserialize(params)
513
+ @TaskId = params['TaskId']
514
+ @RequestId = params['RequestId']
515
+ end
516
+ end
517
+
518
+ # CreateTasksInOrder请求参数结构体
519
+ class CreateTasksInOrderRequest < TencentCloud::Common::AbstractModel
520
+ # @param DatabaseName: 数据库名称。如果SQL语句中有数据库名称,优先使用SQL语句中的数据库,否则使用该参数指定的数据库。
521
+ # @type DatabaseName: String
522
+ # @param Tasks: SQL任务信息
523
+ # @type Tasks: :class:`Tencentcloud::Dlc.v20210125.models.TasksInfo`
524
+ # @param DatasourceConnectionName: 数据源名称,默认为COSDataCatalog
525
+ # @type DatasourceConnectionName: String
526
+
527
+ attr_accessor :DatabaseName, :Tasks, :DatasourceConnectionName
528
+
529
+ def initialize(databasename=nil, tasks=nil, datasourceconnectionname=nil)
530
+ @DatabaseName = databasename
531
+ @Tasks = tasks
532
+ @DatasourceConnectionName = datasourceconnectionname
533
+ end
534
+
535
+ def deserialize(params)
536
+ @DatabaseName = params['DatabaseName']
537
+ unless params['Tasks'].nil?
538
+ @Tasks = TasksInfo.new
539
+ @Tasks.deserialize(params['Tasks'])
540
+ end
541
+ @DatasourceConnectionName = params['DatasourceConnectionName']
542
+ end
543
+ end
544
+
545
+ # CreateTasksInOrder返回参数结构体
546
+ class CreateTasksInOrderResponse < TencentCloud::Common::AbstractModel
547
+ # @param BatchId: 本批次提交的任务的批次Id
548
+ # @type BatchId: String
549
+ # @param TaskIdSet: 任务Id集合,按照执行顺序排列
550
+ # @type TaskIdSet: Array
551
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
552
+ # @type RequestId: String
553
+
554
+ attr_accessor :BatchId, :TaskIdSet, :RequestId
555
+
556
+ def initialize(batchid=nil, taskidset=nil, requestid=nil)
557
+ @BatchId = batchid
558
+ @TaskIdSet = taskidset
559
+ @RequestId = requestid
560
+ end
561
+
562
+ def deserialize(params)
563
+ @BatchId = params['BatchId']
564
+ @TaskIdSet = params['TaskIdSet']
565
+ @RequestId = params['RequestId']
566
+ end
567
+ end
568
+
569
+ # CreateTasks请求参数结构体
570
+ class CreateTasksRequest < TencentCloud::Common::AbstractModel
571
+ # @param DatabaseName: 数据库名称。如果SQL语句中有数据库名称,优先使用SQL语句中的数据库,否则使用该参数指定的数据库。
572
+ # @type DatabaseName: String
573
+ # @param Tasks: SQL任务信息
574
+ # @type Tasks: :class:`Tencentcloud::Dlc.v20210125.models.TasksInfo`
575
+ # @param DatasourceConnectionName: 数据源名称,默认为COSDataCatalog
576
+ # @type DatasourceConnectionName: String
577
+
578
+ attr_accessor :DatabaseName, :Tasks, :DatasourceConnectionName
579
+
580
+ def initialize(databasename=nil, tasks=nil, datasourceconnectionname=nil)
581
+ @DatabaseName = databasename
582
+ @Tasks = tasks
583
+ @DatasourceConnectionName = datasourceconnectionname
584
+ end
585
+
586
+ def deserialize(params)
587
+ @DatabaseName = params['DatabaseName']
588
+ unless params['Tasks'].nil?
589
+ @Tasks = TasksInfo.new
590
+ @Tasks.deserialize(params['Tasks'])
591
+ end
592
+ @DatasourceConnectionName = params['DatasourceConnectionName']
593
+ end
594
+ end
595
+
596
+ # CreateTasks返回参数结构体
597
+ class CreateTasksResponse < TencentCloud::Common::AbstractModel
598
+ # @param BatchId: 本批次提交的任务的批次Id
599
+ # @type BatchId: String
600
+ # @param TaskIdSet: 任务Id集合,按照执行顺序排列
601
+ # @type TaskIdSet: Array
602
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
603
+ # @type RequestId: String
604
+
605
+ attr_accessor :BatchId, :TaskIdSet, :RequestId
606
+
607
+ def initialize(batchid=nil, taskidset=nil, requestid=nil)
608
+ @BatchId = batchid
609
+ @TaskIdSet = taskidset
610
+ @RequestId = requestid
611
+ end
612
+
613
+ def deserialize(params)
614
+ @BatchId = params['BatchId']
615
+ @TaskIdSet = params['TaskIdSet']
616
+ @RequestId = params['RequestId']
617
+ end
618
+ end
619
+
620
+ # CreateUser请求参数结构体
621
+ class CreateUserRequest < TencentCloud::Common::AbstractModel
622
+ # @param UserId: 需要授权的子用户uin,可以通过腾讯云控制台右上角 → “账号信息” → “账号ID进行查看”。
623
+ # @type UserId: String
624
+ # @param UserDescription: 用户描述信息,方便区分不同用户
625
+ # @type UserDescription: String
626
+ # @param PolicySet: 绑定到用户的权限集合
627
+ # @type PolicySet: Array
628
+
629
+ attr_accessor :UserId, :UserDescription, :PolicySet
630
+
631
+ def initialize(userid=nil, userdescription=nil, policyset=nil)
632
+ @UserId = userid
633
+ @UserDescription = userdescription
634
+ @PolicySet = policyset
635
+ end
636
+
637
+ def deserialize(params)
638
+ @UserId = params['UserId']
639
+ @UserDescription = params['UserDescription']
640
+ unless params['PolicySet'].nil?
641
+ @PolicySet = []
642
+ params['PolicySet'].each do |i|
643
+ policy_tmp = Policy.new
644
+ policy_tmp.deserialize(i)
645
+ @PolicySet << policy_tmp
646
+ end
647
+ end
648
+ end
649
+ end
650
+
651
+ # CreateUser返回参数结构体
652
+ class CreateUserResponse < TencentCloud::Common::AbstractModel
653
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
654
+ # @type RequestId: String
655
+
656
+ attr_accessor :RequestId
657
+
658
+ def initialize(requestid=nil)
659
+ @RequestId = requestid
660
+ end
661
+
662
+ def deserialize(params)
663
+ @RequestId = params['RequestId']
664
+ end
665
+ end
666
+
667
+ # CreateWorkGroup请求参数结构体
668
+ class CreateWorkGroupRequest < TencentCloud::Common::AbstractModel
669
+ # @param WorkGroupName: 工作组名称
670
+ # @type WorkGroupName: String
671
+ # @param WorkGroupDescription: 工作组描述
672
+ # @type WorkGroupDescription: String
673
+ # @param PolicySet: 工作组绑定的鉴权策略集合
674
+ # @type PolicySet: Array
675
+
676
+ attr_accessor :WorkGroupName, :WorkGroupDescription, :PolicySet
677
+
678
+ def initialize(workgroupname=nil, workgroupdescription=nil, policyset=nil)
679
+ @WorkGroupName = workgroupname
680
+ @WorkGroupDescription = workgroupdescription
681
+ @PolicySet = policyset
682
+ end
683
+
684
+ def deserialize(params)
685
+ @WorkGroupName = params['WorkGroupName']
686
+ @WorkGroupDescription = params['WorkGroupDescription']
687
+ unless params['PolicySet'].nil?
688
+ @PolicySet = []
689
+ params['PolicySet'].each do |i|
690
+ policy_tmp = Policy.new
691
+ policy_tmp.deserialize(i)
692
+ @PolicySet << policy_tmp
693
+ end
694
+ end
695
+ end
696
+ end
697
+
698
+ # CreateWorkGroup返回参数结构体
699
+ class CreateWorkGroupResponse < TencentCloud::Common::AbstractModel
700
+ # @param WorkGroupId: 工作组Id,全局唯一
701
+ # @type WorkGroupId: Integer
702
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
703
+ # @type RequestId: String
704
+
705
+ attr_accessor :WorkGroupId, :RequestId
706
+
707
+ def initialize(workgroupid=nil, requestid=nil)
708
+ @WorkGroupId = workgroupid
709
+ @RequestId = requestid
710
+ end
711
+
712
+ def deserialize(params)
713
+ @WorkGroupId = params['WorkGroupId']
714
+ @RequestId = params['RequestId']
715
+ end
716
+ end
717
+
718
+ # 数据表数据格式。
719
+ class DataFormat < TencentCloud::Common::AbstractModel
720
+ # @param TextFile: 文本格式,TextFile。
721
+ # 注意:此字段可能返回 null,表示取不到有效值。
722
+ # @type TextFile: :class:`Tencentcloud::Dlc.v20210125.models.TextFile`
723
+ # @param CSV: 文本格式,CSV。
724
+ # 注意:此字段可能返回 null,表示取不到有效值。
725
+ # @type CSV: :class:`Tencentcloud::Dlc.v20210125.models.CSV`
726
+ # @param Json: 文本格式,Json。
727
+ # 注意:此字段可能返回 null,表示取不到有效值。
728
+ # @type Json: :class:`Tencentcloud::Dlc.v20210125.models.Other`
729
+ # @param Parquet: Parquet格式
730
+ # 注意:此字段可能返回 null,表示取不到有效值。
731
+ # @type Parquet: :class:`Tencentcloud::Dlc.v20210125.models.Other`
732
+ # @param ORC: ORC格式
733
+ # 注意:此字段可能返回 null,表示取不到有效值。
734
+ # @type ORC: :class:`Tencentcloud::Dlc.v20210125.models.Other`
735
+ # @param AVRO: AVRO格式
736
+ # 注意:此字段可能返回 null,表示取不到有效值。
737
+ # @type AVRO: :class:`Tencentcloud::Dlc.v20210125.models.Other`
738
+
739
+ attr_accessor :TextFile, :CSV, :Json, :Parquet, :ORC, :AVRO
740
+
741
+ def initialize(textfile=nil, csv=nil, json=nil, parquet=nil, orc=nil, avro=nil)
742
+ @TextFile = textfile
743
+ @CSV = csv
744
+ @Json = json
745
+ @Parquet = parquet
746
+ @ORC = orc
747
+ @AVRO = avro
748
+ end
749
+
750
+ def deserialize(params)
751
+ unless params['TextFile'].nil?
752
+ @TextFile = TextFile.new
753
+ @TextFile.deserialize(params['TextFile'])
754
+ end
755
+ unless params['CSV'].nil?
756
+ @CSV = CSV.new
757
+ @CSV.deserialize(params['CSV'])
758
+ end
759
+ unless params['Json'].nil?
760
+ @Json = Other.new
761
+ @Json.deserialize(params['Json'])
762
+ end
763
+ unless params['Parquet'].nil?
764
+ @Parquet = Other.new
765
+ @Parquet.deserialize(params['Parquet'])
766
+ end
767
+ unless params['ORC'].nil?
768
+ @ORC = Other.new
769
+ @ORC.deserialize(params['ORC'])
770
+ end
771
+ unless params['AVRO'].nil?
772
+ @AVRO = Other.new
773
+ @AVRO.deserialize(params['AVRO'])
774
+ end
775
+ end
776
+ end
777
+
778
+ # 数据库对象
779
+ class DatabaseInfo < TencentCloud::Common::AbstractModel
780
+ # @param DatabaseName: 数据库名称。
781
+ # @type DatabaseName: String
782
+ # @param Comment: 数据库描述信息,长度 0~256。
783
+ # 注意:此字段可能返回 null,表示取不到有效值。
784
+ # @type Comment: String
785
+ # @param Properties: 数据库属性列表。
786
+ # 注意:此字段可能返回 null,表示取不到有效值。
787
+ # @type Properties: Array
788
+
789
+ attr_accessor :DatabaseName, :Comment, :Properties
790
+
791
+ def initialize(databasename=nil, comment=nil, properties=nil)
792
+ @DatabaseName = databasename
793
+ @Comment = comment
794
+ @Properties = properties
795
+ end
796
+
797
+ def deserialize(params)
798
+ @DatabaseName = params['DatabaseName']
799
+ @Comment = params['Comment']
800
+ unless params['Properties'].nil?
801
+ @Properties = []
802
+ params['Properties'].each do |i|
803
+ property_tmp = Property.new
804
+ property_tmp.deserialize(i)
805
+ @Properties << property_tmp
806
+ end
807
+ end
808
+ end
809
+ end
810
+
811
+ # 数据库对象
812
+ class DatabaseResponseInfo < TencentCloud::Common::AbstractModel
813
+ # @param DatabaseName: 数据库名称。
814
+ # @type DatabaseName: String
815
+ # @param Comment: 数据库描述信息,长度 0~256。
816
+ # 注意:此字段可能返回 null,表示取不到有效值。
817
+ # @type Comment: String
818
+ # @param Properties: 数据库属性列表。
819
+ # 注意:此字段可能返回 null,表示取不到有效值。
820
+ # @type Properties: Array
821
+ # @param CreateTime: 数据库创建时间戳,单位:s。
822
+ # 注意:此字段可能返回 null,表示取不到有效值。
823
+ # @type CreateTime: String
824
+ # @param ModifiedTime: 数据库更新时间戳,单位:s。
825
+ # 注意:此字段可能返回 null,表示取不到有效值。
826
+ # @type ModifiedTime: String
827
+
828
+ attr_accessor :DatabaseName, :Comment, :Properties, :CreateTime, :ModifiedTime
829
+
830
+ def initialize(databasename=nil, comment=nil, properties=nil, createtime=nil, modifiedtime=nil)
831
+ @DatabaseName = databasename
832
+ @Comment = comment
833
+ @Properties = properties
834
+ @CreateTime = createtime
835
+ @ModifiedTime = modifiedtime
836
+ end
837
+
838
+ def deserialize(params)
839
+ @DatabaseName = params['DatabaseName']
840
+ @Comment = params['Comment']
841
+ unless params['Properties'].nil?
842
+ @Properties = []
843
+ params['Properties'].each do |i|
844
+ property_tmp = Property.new
845
+ property_tmp.deserialize(i)
846
+ @Properties << property_tmp
847
+ end
848
+ end
849
+ @CreateTime = params['CreateTime']
850
+ @ModifiedTime = params['ModifiedTime']
851
+ end
852
+ end
853
+
854
+ # DeleteScript请求参数结构体
855
+ class DeleteScriptRequest < TencentCloud::Common::AbstractModel
856
+ # @param ScriptIds: 脚本id,其可以通过DescribeScripts接口提取
857
+ # @type ScriptIds: Array
858
+
859
+ attr_accessor :ScriptIds
860
+
861
+ def initialize(scriptids=nil)
862
+ @ScriptIds = scriptids
863
+ end
864
+
865
+ def deserialize(params)
866
+ @ScriptIds = params['ScriptIds']
867
+ end
868
+ end
869
+
870
+ # DeleteScript返回参数结构体
871
+ class DeleteScriptResponse < TencentCloud::Common::AbstractModel
872
+ # @param ScriptsAffected: 删除的脚本数量
873
+ # @type ScriptsAffected: Integer
874
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
875
+ # @type RequestId: String
876
+
877
+ attr_accessor :ScriptsAffected, :RequestId
878
+
879
+ def initialize(scriptsaffected=nil, requestid=nil)
880
+ @ScriptsAffected = scriptsaffected
881
+ @RequestId = requestid
882
+ end
883
+
884
+ def deserialize(params)
885
+ @ScriptsAffected = params['ScriptsAffected']
886
+ @RequestId = params['RequestId']
887
+ end
888
+ end
889
+
890
+ # DeleteUser请求参数结构体
891
+ class DeleteUserRequest < TencentCloud::Common::AbstractModel
892
+ # @param UserIds: 需要删除的用户的Id
893
+ # @type UserIds: Array
894
+
895
+ attr_accessor :UserIds
896
+
897
+ def initialize(userids=nil)
898
+ @UserIds = userids
899
+ end
900
+
901
+ def deserialize(params)
902
+ @UserIds = params['UserIds']
903
+ end
904
+ end
905
+
906
+ # DeleteUser返回参数结构体
907
+ class DeleteUserResponse < TencentCloud::Common::AbstractModel
908
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
909
+ # @type RequestId: String
910
+
911
+ attr_accessor :RequestId
912
+
913
+ def initialize(requestid=nil)
914
+ @RequestId = requestid
915
+ end
916
+
917
+ def deserialize(params)
918
+ @RequestId = params['RequestId']
919
+ end
920
+ end
921
+
922
+ # DeleteUsersFromWorkGroup请求参数结构体
923
+ class DeleteUsersFromWorkGroupRequest < TencentCloud::Common::AbstractModel
924
+ # @param AddInfo: 要删除的用户信息
925
+ # @type AddInfo: :class:`Tencentcloud::Dlc.v20210125.models.UserIdSetOfWorkGroupId`
926
+
927
+ attr_accessor :AddInfo
928
+
929
+ def initialize(addinfo=nil)
930
+ @AddInfo = addinfo
931
+ end
932
+
933
+ def deserialize(params)
934
+ unless params['AddInfo'].nil?
935
+ @AddInfo = UserIdSetOfWorkGroupId.new
936
+ @AddInfo.deserialize(params['AddInfo'])
937
+ end
938
+ end
939
+ end
940
+
941
+ # DeleteUsersFromWorkGroup返回参数结构体
942
+ class DeleteUsersFromWorkGroupResponse < TencentCloud::Common::AbstractModel
943
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
944
+ # @type RequestId: String
945
+
946
+ attr_accessor :RequestId
947
+
948
+ def initialize(requestid=nil)
949
+ @RequestId = requestid
950
+ end
951
+
952
+ def deserialize(params)
953
+ @RequestId = params['RequestId']
954
+ end
955
+ end
956
+
957
+ # DeleteWorkGroup请求参数结构体
958
+ class DeleteWorkGroupRequest < TencentCloud::Common::AbstractModel
959
+ # @param WorkGroupIds: 要删除的工作组Id集合
960
+ # @type WorkGroupIds: Array
961
+
962
+ attr_accessor :WorkGroupIds
963
+
964
+ def initialize(workgroupids=nil)
965
+ @WorkGroupIds = workgroupids
966
+ end
967
+
968
+ def deserialize(params)
969
+ @WorkGroupIds = params['WorkGroupIds']
970
+ end
971
+ end
972
+
973
+ # DeleteWorkGroup返回参数结构体
974
+ class DeleteWorkGroupResponse < TencentCloud::Common::AbstractModel
975
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
976
+ # @type RequestId: String
977
+
978
+ attr_accessor :RequestId
979
+
980
+ def initialize(requestid=nil)
981
+ @RequestId = requestid
982
+ end
983
+
984
+ def deserialize(params)
985
+ @RequestId = params['RequestId']
986
+ end
987
+ end
988
+
989
+ # DescribeDatabases请求参数结构体
990
+ class DescribeDatabasesRequest < TencentCloud::Common::AbstractModel
991
+ # @param Limit: 返回数量,默认为10,最大值为100。
992
+ # @type Limit: Integer
993
+ # @param Offset: 数据偏移量,从0开始,默认为0。
994
+ # @type Offset: Integer
995
+ # @param KeyWord: 模糊匹配,库名关键字。
996
+ # @type KeyWord: String
997
+ # @param DatasourceConnectionName: 数据源唯名称,该名称可以通过DescribeDatasourceConnection接口查询到。默认为CosDataCatalog
998
+ # @type DatasourceConnectionName: String
999
+
1000
+ attr_accessor :Limit, :Offset, :KeyWord, :DatasourceConnectionName
1001
+
1002
+ def initialize(limit=nil, offset=nil, keyword=nil, datasourceconnectionname=nil)
1003
+ @Limit = limit
1004
+ @Offset = offset
1005
+ @KeyWord = keyword
1006
+ @DatasourceConnectionName = datasourceconnectionname
1007
+ end
1008
+
1009
+ def deserialize(params)
1010
+ @Limit = params['Limit']
1011
+ @Offset = params['Offset']
1012
+ @KeyWord = params['KeyWord']
1013
+ @DatasourceConnectionName = params['DatasourceConnectionName']
1014
+ end
1015
+ end
1016
+
1017
+ # DescribeDatabases返回参数结构体
1018
+ class DescribeDatabasesResponse < TencentCloud::Common::AbstractModel
1019
+ # @param DatabaseList: 数据库对象列表。
1020
+ # @type DatabaseList: Array
1021
+ # @param TotalCount: 实例总数。
1022
+ # @type TotalCount: Integer
1023
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1024
+ # @type RequestId: String
1025
+
1026
+ attr_accessor :DatabaseList, :TotalCount, :RequestId
1027
+
1028
+ def initialize(databaselist=nil, totalcount=nil, requestid=nil)
1029
+ @DatabaseList = databaselist
1030
+ @TotalCount = totalcount
1031
+ @RequestId = requestid
1032
+ end
1033
+
1034
+ def deserialize(params)
1035
+ unless params['DatabaseList'].nil?
1036
+ @DatabaseList = []
1037
+ params['DatabaseList'].each do |i|
1038
+ databaseresponseinfo_tmp = DatabaseResponseInfo.new
1039
+ databaseresponseinfo_tmp.deserialize(i)
1040
+ @DatabaseList << databaseresponseinfo_tmp
1041
+ end
1042
+ end
1043
+ @TotalCount = params['TotalCount']
1044
+ @RequestId = params['RequestId']
1045
+ end
1046
+ end
1047
+
1048
+ # DescribeScripts请求参数结构体
1049
+ class DescribeScriptsRequest < TencentCloud::Common::AbstractModel
1050
+ # @param Limit: 返回数量,默认为10,最大值为100。
1051
+ # @type Limit: Integer
1052
+ # @param Offset: 偏移量,默认为0。
1053
+ # @type Offset: Integer
1054
+ # @param SortBy: 按字段排序,支持如下字段类型,update-time
1055
+ # @type SortBy: String
1056
+ # @param Sorting: 排序方式,desc表示正序,asc表示反序
1057
+ # @type Sorting: String
1058
+ # @param Filters: 过滤条件,如下支持的过滤类型,传参Name应为其一
1059
+ # script-id - String - (过滤条件)script-id取值形如:157de0d1-26b4-4df2-a2d0-b64afc406c25。
1060
+ # script-name-keyword - String - (过滤条件)数据表名称,形如:script-test。
1061
+ # @type Filters: Array
1062
+
1063
+ attr_accessor :Limit, :Offset, :SortBy, :Sorting, :Filters
1064
+
1065
+ def initialize(limit=nil, offset=nil, sortby=nil, sorting=nil, filters=nil)
1066
+ @Limit = limit
1067
+ @Offset = offset
1068
+ @SortBy = sortby
1069
+ @Sorting = sorting
1070
+ @Filters = filters
1071
+ end
1072
+
1073
+ def deserialize(params)
1074
+ @Limit = params['Limit']
1075
+ @Offset = params['Offset']
1076
+ @SortBy = params['SortBy']
1077
+ @Sorting = params['Sorting']
1078
+ unless params['Filters'].nil?
1079
+ @Filters = []
1080
+ params['Filters'].each do |i|
1081
+ filter_tmp = Filter.new
1082
+ filter_tmp.deserialize(i)
1083
+ @Filters << filter_tmp
1084
+ end
1085
+ end
1086
+ end
1087
+ end
1088
+
1089
+ # DescribeScripts返回参数结构体
1090
+ class DescribeScriptsResponse < TencentCloud::Common::AbstractModel
1091
+ # @param Scripts: Script列表
1092
+ # 注意:此字段可能返回 null,表示取不到有效值。
1093
+ # @type Scripts: Array
1094
+ # @param TotalCount: 实例总数
1095
+ # @type TotalCount: Integer
1096
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1097
+ # @type RequestId: String
1098
+
1099
+ attr_accessor :Scripts, :TotalCount, :RequestId
1100
+
1101
+ def initialize(scripts=nil, totalcount=nil, requestid=nil)
1102
+ @Scripts = scripts
1103
+ @TotalCount = totalcount
1104
+ @RequestId = requestid
1105
+ end
1106
+
1107
+ def deserialize(params)
1108
+ unless params['Scripts'].nil?
1109
+ @Scripts = []
1110
+ params['Scripts'].each do |i|
1111
+ script_tmp = Script.new
1112
+ script_tmp.deserialize(i)
1113
+ @Scripts << script_tmp
1114
+ end
1115
+ end
1116
+ @TotalCount = params['TotalCount']
1117
+ @RequestId = params['RequestId']
1118
+ end
1119
+ end
1120
+
1121
+ # DescribeStoreLocation请求参数结构体
1122
+ class DescribeStoreLocationRequest < TencentCloud::Common::AbstractModel
1123
+
1124
+
1125
+ def initialize()
1126
+ end
1127
+
1128
+ def deserialize(params)
1129
+ end
1130
+ end
1131
+
1132
+ # DescribeStoreLocation返回参数结构体
1133
+ class DescribeStoreLocationResponse < TencentCloud::Common::AbstractModel
1134
+ # @param StoreLocation: 返回用户设置的结果存储位置路径,如果未设置则返回空字符串:""
1135
+ # 注意:此字段可能返回 null,表示取不到有效值。
1136
+ # @type StoreLocation: String
1137
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1138
+ # @type RequestId: String
1139
+
1140
+ attr_accessor :StoreLocation, :RequestId
1141
+
1142
+ def initialize(storelocation=nil, requestid=nil)
1143
+ @StoreLocation = storelocation
1144
+ @RequestId = requestid
1145
+ end
1146
+
1147
+ def deserialize(params)
1148
+ @StoreLocation = params['StoreLocation']
1149
+ @RequestId = params['RequestId']
1150
+ end
1151
+ end
1152
+
1153
+ # DescribeTable请求参数结构体
1154
+ class DescribeTableRequest < TencentCloud::Common::AbstractModel
1155
+ # @param TableName: 查询对象表名称
1156
+ # @type TableName: String
1157
+ # @param DatabaseName: 查询表所在的数据库名称。
1158
+ # @type DatabaseName: String
1159
+ # @param DatasourceConnectionName: 查询表所在的数据源名称
1160
+ # @type DatasourceConnectionName: String
1161
+
1162
+ attr_accessor :TableName, :DatabaseName, :DatasourceConnectionName
1163
+
1164
+ def initialize(tablename=nil, databasename=nil, datasourceconnectionname=nil)
1165
+ @TableName = tablename
1166
+ @DatabaseName = databasename
1167
+ @DatasourceConnectionName = datasourceconnectionname
1168
+ end
1169
+
1170
+ def deserialize(params)
1171
+ @TableName = params['TableName']
1172
+ @DatabaseName = params['DatabaseName']
1173
+ @DatasourceConnectionName = params['DatasourceConnectionName']
1174
+ end
1175
+ end
1176
+
1177
+ # DescribeTable返回参数结构体
1178
+ class DescribeTableResponse < TencentCloud::Common::AbstractModel
1179
+ # @param Table: 数据表对象
1180
+ # @type Table: :class:`Tencentcloud::Dlc.v20210125.models.TableResponseInfo`
1181
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1182
+ # @type RequestId: String
1183
+
1184
+ attr_accessor :Table, :RequestId
1185
+
1186
+ def initialize(table=nil, requestid=nil)
1187
+ @Table = table
1188
+ @RequestId = requestid
1189
+ end
1190
+
1191
+ def deserialize(params)
1192
+ unless params['Table'].nil?
1193
+ @Table = TableResponseInfo.new
1194
+ @Table.deserialize(params['Table'])
1195
+ end
1196
+ @RequestId = params['RequestId']
1197
+ end
1198
+ end
1199
+
1200
+ # DescribeTables请求参数结构体
1201
+ class DescribeTablesRequest < TencentCloud::Common::AbstractModel
1202
+ # @param DatabaseName: 列出该数据库下所属数据表。
1203
+ # @type DatabaseName: String
1204
+ # @param Limit: 返回数量,默认为10,最大值为100。
1205
+ # @type Limit: Integer
1206
+ # @param Offset: 数据偏移量,从0开始,默认为0。
1207
+ # @type Offset: Integer
1208
+ # @param Filters: 过滤条件,如下支持的过滤类型,传参Name应为其一
1209
+ # table-name - String - (过滤条件)数据表名称,形如:table-001。
1210
+ # table-id - String - (过滤条件)table id形如:12342。
1211
+ # @type Filters: Array
1212
+ # @param DatasourceConnectionName: 指定查询的数据源名称,默认为CosDataCatalog
1213
+ # @type DatasourceConnectionName: String
1214
+
1215
+ attr_accessor :DatabaseName, :Limit, :Offset, :Filters, :DatasourceConnectionName
1216
+
1217
+ def initialize(databasename=nil, limit=nil, offset=nil, filters=nil, datasourceconnectionname=nil)
1218
+ @DatabaseName = databasename
1219
+ @Limit = limit
1220
+ @Offset = offset
1221
+ @Filters = filters
1222
+ @DatasourceConnectionName = datasourceconnectionname
1223
+ end
1224
+
1225
+ def deserialize(params)
1226
+ @DatabaseName = params['DatabaseName']
1227
+ @Limit = params['Limit']
1228
+ @Offset = params['Offset']
1229
+ unless params['Filters'].nil?
1230
+ @Filters = []
1231
+ params['Filters'].each do |i|
1232
+ filter_tmp = Filter.new
1233
+ filter_tmp.deserialize(i)
1234
+ @Filters << filter_tmp
1235
+ end
1236
+ end
1237
+ @DatasourceConnectionName = params['DatasourceConnectionName']
1238
+ end
1239
+ end
1240
+
1241
+ # DescribeTables返回参数结构体
1242
+ class DescribeTablesResponse < TencentCloud::Common::AbstractModel
1243
+ # @param TableList: 数据表对象列表。
1244
+ # @type TableList: Array
1245
+ # @param TotalCount: 实例总数。
1246
+ # @type TotalCount: Integer
1247
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1248
+ # @type RequestId: String
1249
+
1250
+ attr_accessor :TableList, :TotalCount, :RequestId
1251
+
1252
+ def initialize(tablelist=nil, totalcount=nil, requestid=nil)
1253
+ @TableList = tablelist
1254
+ @TotalCount = totalcount
1255
+ @RequestId = requestid
1256
+ end
1257
+
1258
+ def deserialize(params)
1259
+ unless params['TableList'].nil?
1260
+ @TableList = []
1261
+ params['TableList'].each do |i|
1262
+ tableresponseinfo_tmp = TableResponseInfo.new
1263
+ tableresponseinfo_tmp.deserialize(i)
1264
+ @TableList << tableresponseinfo_tmp
1265
+ end
1266
+ end
1267
+ @TotalCount = params['TotalCount']
1268
+ @RequestId = params['RequestId']
1269
+ end
1270
+ end
1271
+
1272
+ # DescribeTasks请求参数结构体
1273
+ class DescribeTasksRequest < TencentCloud::Common::AbstractModel
1274
+ # @param Limit: 返回数量,默认为10,最大值为100。
1275
+ # @type Limit: Integer
1276
+ # @param Offset: 偏移量,默认为0。
1277
+ # @type Offset: Integer
1278
+ # @param Filters: 过滤条件,如下支持的过滤类型,传参Name应为以下其中一个,其中task-id支持最大50个过滤个数,其他过滤参数支持的总数不超过5个。
1279
+ # task-id - String - (任务ID准确过滤)task-id取值形如:e386471f-139a-4e59-877f-50ece8135b99。
1280
+ # task-state - String - (任务状态过滤)取值范围 0(初始化), 1(运行中), 2(成功), -1(失败)。
1281
+ # task-sql-keyword - String - (SQL语句关键字模糊过滤)取值形如:DROP TABLE。
1282
+ # @type Filters: Array
1283
+ # @param SortBy: 排序字段,支持如下字段类型,create-time
1284
+ # @type SortBy: String
1285
+ # @param Sorting: 排序方式,desc表示正序,asc表示反序, 默认为asc。
1286
+ # @type Sorting: String
1287
+ # @param StartTime: 起始时间点,格式为yyyy-mm-dd HH:MM:SS。默认为45天前的当前时刻
1288
+ # @type StartTime: String
1289
+ # @param EndTime: 结束时间点,格式为yyyy-mm-dd HH:MM:SS时间跨度在(0,30天],支持最近45天数据查询。默认为当前时刻
1290
+ # @type EndTime: String
1291
+
1292
+ attr_accessor :Limit, :Offset, :Filters, :SortBy, :Sorting, :StartTime, :EndTime
1293
+
1294
+ def initialize(limit=nil, offset=nil, filters=nil, sortby=nil, sorting=nil, starttime=nil, endtime=nil)
1295
+ @Limit = limit
1296
+ @Offset = offset
1297
+ @Filters = filters
1298
+ @SortBy = sortby
1299
+ @Sorting = sorting
1300
+ @StartTime = starttime
1301
+ @EndTime = endtime
1302
+ end
1303
+
1304
+ def deserialize(params)
1305
+ @Limit = params['Limit']
1306
+ @Offset = params['Offset']
1307
+ unless params['Filters'].nil?
1308
+ @Filters = []
1309
+ params['Filters'].each do |i|
1310
+ filter_tmp = Filter.new
1311
+ filter_tmp.deserialize(i)
1312
+ @Filters << filter_tmp
1313
+ end
1314
+ end
1315
+ @SortBy = params['SortBy']
1316
+ @Sorting = params['Sorting']
1317
+ @StartTime = params['StartTime']
1318
+ @EndTime = params['EndTime']
1319
+ end
1320
+ end
1321
+
1322
+ # DescribeTasks返回参数结构体
1323
+ class DescribeTasksResponse < TencentCloud::Common::AbstractModel
1324
+ # @param TaskList: 任务对象列表。
1325
+ # @type TaskList: Array
1326
+ # @param TotalCount: 实例总数。
1327
+ # @type TotalCount: Integer
1328
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1329
+ # @type RequestId: String
1330
+
1331
+ attr_accessor :TaskList, :TotalCount, :RequestId
1332
+
1333
+ def initialize(tasklist=nil, totalcount=nil, requestid=nil)
1334
+ @TaskList = tasklist
1335
+ @TotalCount = totalcount
1336
+ @RequestId = requestid
1337
+ end
1338
+
1339
+ def deserialize(params)
1340
+ unless params['TaskList'].nil?
1341
+ @TaskList = []
1342
+ params['TaskList'].each do |i|
1343
+ taskresponseinfo_tmp = TaskResponseInfo.new
1344
+ taskresponseinfo_tmp.deserialize(i)
1345
+ @TaskList << taskresponseinfo_tmp
1346
+ end
1347
+ end
1348
+ @TotalCount = params['TotalCount']
1349
+ @RequestId = params['RequestId']
1350
+ end
1351
+ end
1352
+
1353
+ # DescribeUsers请求参数结构体
1354
+ class DescribeUsersRequest < TencentCloud::Common::AbstractModel
1355
+ # @param UserId: 指定查询的子用户uin,用户需要通过CreateUser接口创建。
1356
+ # @type UserId: String
1357
+ # @param Offset: 偏移量,默认为0
1358
+ # @type Offset: Integer
1359
+ # @param Limit: 返回数量,默认20,最大值100
1360
+ # @type Limit: Integer
1361
+ # @param SortBy: 排序字段,支持如下字段类型,create-time
1362
+ # @type SortBy: String
1363
+ # @param Sorting: 排序方式,desc表示正序,asc表示反序, 默认为asc
1364
+ # @type Sorting: String
1365
+
1366
+ attr_accessor :UserId, :Offset, :Limit, :SortBy, :Sorting
1367
+
1368
+ def initialize(userid=nil, offset=nil, limit=nil, sortby=nil, sorting=nil)
1369
+ @UserId = userid
1370
+ @Offset = offset
1371
+ @Limit = limit
1372
+ @SortBy = sortby
1373
+ @Sorting = sorting
1374
+ end
1375
+
1376
+ def deserialize(params)
1377
+ @UserId = params['UserId']
1378
+ @Offset = params['Offset']
1379
+ @Limit = params['Limit']
1380
+ @SortBy = params['SortBy']
1381
+ @Sorting = params['Sorting']
1382
+ end
1383
+ end
1384
+
1385
+ # DescribeUsers返回参数结构体
1386
+ class DescribeUsersResponse < TencentCloud::Common::AbstractModel
1387
+ # @param TotalCount: 查询到的用户总数
1388
+ # @type TotalCount: Integer
1389
+ # @param UserSet: 查询到的授权用户信息集合
1390
+ # @type UserSet: Array
1391
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1392
+ # @type RequestId: String
1393
+
1394
+ attr_accessor :TotalCount, :UserSet, :RequestId
1395
+
1396
+ def initialize(totalcount=nil, userset=nil, requestid=nil)
1397
+ @TotalCount = totalcount
1398
+ @UserSet = userset
1399
+ @RequestId = requestid
1400
+ end
1401
+
1402
+ def deserialize(params)
1403
+ @TotalCount = params['TotalCount']
1404
+ unless params['UserSet'].nil?
1405
+ @UserSet = []
1406
+ params['UserSet'].each do |i|
1407
+ userinfo_tmp = UserInfo.new
1408
+ userinfo_tmp.deserialize(i)
1409
+ @UserSet << userinfo_tmp
1410
+ end
1411
+ end
1412
+ @RequestId = params['RequestId']
1413
+ end
1414
+ end
1415
+
1416
+ # DescribeViews请求参数结构体
1417
+ class DescribeViewsRequest < TencentCloud::Common::AbstractModel
1418
+ # @param DatabaseName: 列出该数据库下所属数据表。
1419
+ # @type DatabaseName: String
1420
+ # @param Limit: 返回数量,默认为10,最大值为100。
1421
+ # @type Limit: Integer
1422
+ # @param Offset: 数据偏移量,从0开始,默认为0。
1423
+ # @type Offset: Integer
1424
+ # @param Filters: 过滤条件,如下支持的过滤类型,传参Name应为其一
1425
+ # view-name - String - (过滤条件)数据表名称,形如:view-001。
1426
+ # view-id - String - (过滤条件)view id形如:12342。
1427
+ # @type Filters: Array
1428
+ # @param DatasourceConnectionName: 数据库所属的数据源名称
1429
+ # @type DatasourceConnectionName: String
1430
+
1431
+ attr_accessor :DatabaseName, :Limit, :Offset, :Filters, :DatasourceConnectionName
1432
+
1433
+ def initialize(databasename=nil, limit=nil, offset=nil, filters=nil, datasourceconnectionname=nil)
1434
+ @DatabaseName = databasename
1435
+ @Limit = limit
1436
+ @Offset = offset
1437
+ @Filters = filters
1438
+ @DatasourceConnectionName = datasourceconnectionname
1439
+ end
1440
+
1441
+ def deserialize(params)
1442
+ @DatabaseName = params['DatabaseName']
1443
+ @Limit = params['Limit']
1444
+ @Offset = params['Offset']
1445
+ unless params['Filters'].nil?
1446
+ @Filters = []
1447
+ params['Filters'].each do |i|
1448
+ filter_tmp = Filter.new
1449
+ filter_tmp.deserialize(i)
1450
+ @Filters << filter_tmp
1451
+ end
1452
+ end
1453
+ @DatasourceConnectionName = params['DatasourceConnectionName']
1454
+ end
1455
+ end
1456
+
1457
+ # DescribeViews返回参数结构体
1458
+ class DescribeViewsResponse < TencentCloud::Common::AbstractModel
1459
+ # @param ViewList: 视图对象列表。
1460
+ # @type ViewList: Array
1461
+ # @param TotalCount: 实例总数。
1462
+ # @type TotalCount: Integer
1463
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1464
+ # @type RequestId: String
1465
+
1466
+ attr_accessor :ViewList, :TotalCount, :RequestId
1467
+
1468
+ def initialize(viewlist=nil, totalcount=nil, requestid=nil)
1469
+ @ViewList = viewlist
1470
+ @TotalCount = totalcount
1471
+ @RequestId = requestid
1472
+ end
1473
+
1474
+ def deserialize(params)
1475
+ unless params['ViewList'].nil?
1476
+ @ViewList = []
1477
+ params['ViewList'].each do |i|
1478
+ viewresponseinfo_tmp = ViewResponseInfo.new
1479
+ viewresponseinfo_tmp.deserialize(i)
1480
+ @ViewList << viewresponseinfo_tmp
1481
+ end
1482
+ end
1483
+ @TotalCount = params['TotalCount']
1484
+ @RequestId = params['RequestId']
1485
+ end
1486
+ end
1487
+
1488
+ # DescribeWorkGroups请求参数结构体
1489
+ class DescribeWorkGroupsRequest < TencentCloud::Common::AbstractModel
1490
+ # @param WorkGroupId: 查询的工作组Id,不填或填0表示不过滤。
1491
+ # @type WorkGroupId: Integer
1492
+ # @param Filters: 过滤条件,当前仅支持按照工作组名称进行模糊搜索。Key为workgroup-name
1493
+ # @type Filters: Array
1494
+ # @param Offset: 偏移量,默认为0
1495
+ # @type Offset: Integer
1496
+ # @param Limit: 返回数量,默认20,最大值100
1497
+ # @type Limit: Integer
1498
+ # @param SortBy: 排序字段,支持如下字段类型,create-time
1499
+ # @type SortBy: String
1500
+ # @param Sorting: 排序方式,desc表示正序,asc表示反序, 默认为asc
1501
+ # @type Sorting: String
1502
+
1503
+ attr_accessor :WorkGroupId, :Filters, :Offset, :Limit, :SortBy, :Sorting
1504
+
1505
+ def initialize(workgroupid=nil, filters=nil, offset=nil, limit=nil, sortby=nil, sorting=nil)
1506
+ @WorkGroupId = workgroupid
1507
+ @Filters = filters
1508
+ @Offset = offset
1509
+ @Limit = limit
1510
+ @SortBy = sortby
1511
+ @Sorting = sorting
1512
+ end
1513
+
1514
+ def deserialize(params)
1515
+ @WorkGroupId = params['WorkGroupId']
1516
+ unless params['Filters'].nil?
1517
+ @Filters = []
1518
+ params['Filters'].each do |i|
1519
+ filter_tmp = Filter.new
1520
+ filter_tmp.deserialize(i)
1521
+ @Filters << filter_tmp
1522
+ end
1523
+ end
1524
+ @Offset = params['Offset']
1525
+ @Limit = params['Limit']
1526
+ @SortBy = params['SortBy']
1527
+ @Sorting = params['Sorting']
1528
+ end
1529
+ end
1530
+
1531
+ # DescribeWorkGroups返回参数结构体
1532
+ class DescribeWorkGroupsResponse < TencentCloud::Common::AbstractModel
1533
+ # @param TotalCount: 工作组总数
1534
+ # @type TotalCount: Integer
1535
+ # @param WorkGroupSet: 工作组信息集合
1536
+ # @type WorkGroupSet: Array
1537
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1538
+ # @type RequestId: String
1539
+
1540
+ attr_accessor :TotalCount, :WorkGroupSet, :RequestId
1541
+
1542
+ def initialize(totalcount=nil, workgroupset=nil, requestid=nil)
1543
+ @TotalCount = totalcount
1544
+ @WorkGroupSet = workgroupset
1545
+ @RequestId = requestid
1546
+ end
1547
+
1548
+ def deserialize(params)
1549
+ @TotalCount = params['TotalCount']
1550
+ unless params['WorkGroupSet'].nil?
1551
+ @WorkGroupSet = []
1552
+ params['WorkGroupSet'].each do |i|
1553
+ workgroupinfo_tmp = WorkGroupInfo.new
1554
+ workgroupinfo_tmp.deserialize(i)
1555
+ @WorkGroupSet << workgroupinfo_tmp
1556
+ end
1557
+ end
1558
+ @RequestId = params['RequestId']
1559
+ end
1560
+ end
1561
+
1562
+ # DetachUserPolicy请求参数结构体
1563
+ class DetachUserPolicyRequest < TencentCloud::Common::AbstractModel
1564
+ # @param UserId: 用户Id,和CAM侧Uin匹配
1565
+ # @type UserId: String
1566
+ # @param PolicySet: 解绑的权限集合
1567
+ # @type PolicySet: Array
1568
+
1569
+ attr_accessor :UserId, :PolicySet
1570
+
1571
+ def initialize(userid=nil, policyset=nil)
1572
+ @UserId = userid
1573
+ @PolicySet = policyset
1574
+ end
1575
+
1576
+ def deserialize(params)
1577
+ @UserId = params['UserId']
1578
+ unless params['PolicySet'].nil?
1579
+ @PolicySet = []
1580
+ params['PolicySet'].each do |i|
1581
+ policy_tmp = Policy.new
1582
+ policy_tmp.deserialize(i)
1583
+ @PolicySet << policy_tmp
1584
+ end
1585
+ end
1586
+ end
1587
+ end
1588
+
1589
+ # DetachUserPolicy返回参数结构体
1590
+ class DetachUserPolicyResponse < TencentCloud::Common::AbstractModel
1591
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1592
+ # @type RequestId: String
1593
+
1594
+ attr_accessor :RequestId
1595
+
1596
+ def initialize(requestid=nil)
1597
+ @RequestId = requestid
1598
+ end
1599
+
1600
+ def deserialize(params)
1601
+ @RequestId = params['RequestId']
1602
+ end
1603
+ end
1604
+
1605
+ # DetachWorkGroupPolicy请求参数结构体
1606
+ class DetachWorkGroupPolicyRequest < TencentCloud::Common::AbstractModel
1607
+ # @param WorkGroupId: 工作组Id
1608
+ # @type WorkGroupId: Integer
1609
+ # @param PolicySet: 解绑的权限集合
1610
+ # @type PolicySet: Array
1611
+
1612
+ attr_accessor :WorkGroupId, :PolicySet
1613
+
1614
+ def initialize(workgroupid=nil, policyset=nil)
1615
+ @WorkGroupId = workgroupid
1616
+ @PolicySet = policyset
1617
+ end
1618
+
1619
+ def deserialize(params)
1620
+ @WorkGroupId = params['WorkGroupId']
1621
+ unless params['PolicySet'].nil?
1622
+ @PolicySet = []
1623
+ params['PolicySet'].each do |i|
1624
+ policy_tmp = Policy.new
1625
+ policy_tmp.deserialize(i)
1626
+ @PolicySet << policy_tmp
1627
+ end
1628
+ end
1629
+ end
1630
+ end
1631
+
1632
+ # DetachWorkGroupPolicy返回参数结构体
1633
+ class DetachWorkGroupPolicyResponse < TencentCloud::Common::AbstractModel
1634
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1635
+ # @type RequestId: String
1636
+
1637
+ attr_accessor :RequestId
1638
+
1639
+ def initialize(requestid=nil)
1640
+ @RequestId = requestid
1641
+ end
1642
+
1643
+ def deserialize(params)
1644
+ @RequestId = params['RequestId']
1645
+ end
1646
+ end
1647
+
1648
+ # SQL语句对象
1649
+ class Execution < TencentCloud::Common::AbstractModel
1650
+ # @param SQL: 自动生成SQL语句。
1651
+ # @type SQL: String
1652
+
1653
+ attr_accessor :SQL
1654
+
1655
+ def initialize(sql=nil)
1656
+ @SQL = sql
1657
+ end
1658
+
1659
+ def deserialize(params)
1660
+ @SQL = params['SQL']
1661
+ end
1662
+ end
1663
+
1664
+ # 查询列表过滤条件参数
1665
+ class Filter < TencentCloud::Common::AbstractModel
1666
+ # @param Name: 属性名称, 若存在多个Filter时,Filter间的关系为逻辑或(OR)关系。
1667
+ # @type Name: String
1668
+ # @param Values: 属性值, 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。
1669
+ # @type Values: Array
1670
+
1671
+ attr_accessor :Name, :Values
1672
+
1673
+ def initialize(name=nil, values=nil)
1674
+ @Name = name
1675
+ @Values = values
1676
+ end
1677
+
1678
+ def deserialize(params)
1679
+ @Name = params['Name']
1680
+ @Values = params['Values']
1681
+ end
1682
+ end
1683
+
1684
+ # 配置格式
1685
+ class KVPair < TencentCloud::Common::AbstractModel
1686
+ # @param Key: 配置的key值
1687
+ # 注意:此字段可能返回 null,表示取不到有效值。
1688
+ # @type Key: String
1689
+ # @param Value: 配置的value值
1690
+ # 注意:此字段可能返回 null,表示取不到有效值。
1691
+ # @type Value: String
1692
+
1693
+ attr_accessor :Key, :Value
1694
+
1695
+ def initialize(key=nil, value=nil)
1696
+ @Key = key
1697
+ @Value = value
1698
+ end
1699
+
1700
+ def deserialize(params)
1701
+ @Key = params['Key']
1702
+ @Value = params['Value']
1703
+ end
1704
+ end
1705
+
1706
+ # ModifyUser请求参数结构体
1707
+ class ModifyUserRequest < TencentCloud::Common::AbstractModel
1708
+ # @param UserId: 用户Id,和CAM侧Uin匹配
1709
+ # @type UserId: String
1710
+ # @param UserDescription: 用户描述
1711
+ # @type UserDescription: String
1712
+
1713
+ attr_accessor :UserId, :UserDescription
1714
+
1715
+ def initialize(userid=nil, userdescription=nil)
1716
+ @UserId = userid
1717
+ @UserDescription = userdescription
1718
+ end
1719
+
1720
+ def deserialize(params)
1721
+ @UserId = params['UserId']
1722
+ @UserDescription = params['UserDescription']
1723
+ end
1724
+ end
1725
+
1726
+ # ModifyUser返回参数结构体
1727
+ class ModifyUserResponse < TencentCloud::Common::AbstractModel
1728
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1729
+ # @type RequestId: String
1730
+
1731
+ attr_accessor :RequestId
1732
+
1733
+ def initialize(requestid=nil)
1734
+ @RequestId = requestid
1735
+ end
1736
+
1737
+ def deserialize(params)
1738
+ @RequestId = params['RequestId']
1739
+ end
1740
+ end
1741
+
1742
+ # ModifyWorkGroup请求参数结构体
1743
+ class ModifyWorkGroupRequest < TencentCloud::Common::AbstractModel
1744
+ # @param WorkGroupId: 工作组Id
1745
+ # @type WorkGroupId: Integer
1746
+ # @param WorkGroupDescription: 工作组描述
1747
+ # @type WorkGroupDescription: String
1748
+
1749
+ attr_accessor :WorkGroupId, :WorkGroupDescription
1750
+
1751
+ def initialize(workgroupid=nil, workgroupdescription=nil)
1752
+ @WorkGroupId = workgroupid
1753
+ @WorkGroupDescription = workgroupdescription
1754
+ end
1755
+
1756
+ def deserialize(params)
1757
+ @WorkGroupId = params['WorkGroupId']
1758
+ @WorkGroupDescription = params['WorkGroupDescription']
1759
+ end
1760
+ end
1761
+
1762
+ # ModifyWorkGroup返回参数结构体
1763
+ class ModifyWorkGroupResponse < TencentCloud::Common::AbstractModel
1764
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1765
+ # @type RequestId: String
1766
+
1767
+ attr_accessor :RequestId
1768
+
1769
+ def initialize(requestid=nil)
1770
+ @RequestId = requestid
1771
+ end
1772
+
1773
+ def deserialize(params)
1774
+ @RequestId = params['RequestId']
1775
+ end
1776
+ end
1777
+
1778
+ # 数据格式其它类型。
1779
+ class Other < TencentCloud::Common::AbstractModel
1780
+ # @param Format: 枚举类型,默认值为Json,可选值为[Json, Parquet, ORC, AVRD]之一。
1781
+ # @type Format: String
1782
+
1783
+ attr_accessor :Format
1784
+
1785
+ def initialize(format=nil)
1786
+ @Format = format
1787
+ end
1788
+
1789
+ def deserialize(params)
1790
+ @Format = params['Format']
1791
+ end
1792
+ end
1793
+
1794
+ # 数据表分块信息。
1795
+ class Partition < TencentCloud::Common::AbstractModel
1796
+ # @param Name: 分区列名。
1797
+ # @type Name: String
1798
+ # @param Type: 分区类型。
1799
+ # @type Type: String
1800
+ # @param Comment: 对分区的描述。
1801
+ # @type Comment: String
1802
+
1803
+ attr_accessor :Name, :Type, :Comment
1804
+
1805
+ def initialize(name=nil, type=nil, comment=nil)
1806
+ @Name = name
1807
+ @Type = type
1808
+ @Comment = comment
1809
+ end
1810
+
1811
+ def deserialize(params)
1812
+ @Name = params['Name']
1813
+ @Type = params['Type']
1814
+ @Comment = params['Comment']
1815
+ end
1816
+ end
1817
+
1818
+ # 权限对象
1819
+ class Policy < TencentCloud::Common::AbstractModel
1820
+ # @param Database: 需要授权的数据库名,填*代表当前Catalog下所有数据库。当授权类型为管理员级别时,只允许填“*”,当授权类型为数据连接级别时只允许填空,其他类型下可以任意指定数据库。
1821
+ # @type Database: String
1822
+ # @param Catalog: 需要授权的数据源名称,管理员级别下只支持填*(代表该级别全部资源);数据源级别和数据库级别鉴权的情况下,只支持填COSDataCatalog或者*;在数据表级别鉴权下可以填写用户自定义数据源。不填情况下默认为COSDataCatalog。注意:如果是对用户自定义数据源进行鉴权,DLC能够管理的权限是用户接入数据源的时候提供的账户的子集。
1823
+ # @type Catalog: String
1824
+ # @param Table: 需要授权的表名,填*代表当前Database下所有表。当授权类型为管理员级别时,只允许填“*”,当授权类型为数据连接级别、数据库级别时只允许填空,其他类型下可以任意指定数据表。
1825
+ # @type Table: String
1826
+ # @param Operation: 授权的权限操作,对于不同级别的鉴权提供不同操作。管理员权限:ALL,不填默认为ALL;数据连接级鉴权:CRETE;数据库级别鉴权:ALL、CREATE、ALTER、DROP;数据表权限:ALL、SELECT、INSERT、ALTER、DELETE、DROP、UPDATE。注意:在数据表权限下,指定的数据源不为COSDataCatalog的时候,只支持SELECT操作。
1827
+ # @type Operation: String
1828
+ # @param PolicyType: 授权类型,现在支持四种授权类型:ADMIN:管理员级别鉴权 DATASOURCE:数据连接级别鉴权 DATABASE:数据库级别鉴权 TABLE:表级别鉴权。不填默认为管理员级别鉴权。
1829
+ # @type PolicyType: String
1830
+
1831
+ attr_accessor :Database, :Catalog, :Table, :Operation, :PolicyType
1832
+
1833
+ def initialize(database=nil, catalog=nil, table=nil, operation=nil, policytype=nil)
1834
+ @Database = database
1835
+ @Catalog = catalog
1836
+ @Table = table
1837
+ @Operation = operation
1838
+ @PolicyType = policytype
1839
+ end
1840
+
1841
+ def deserialize(params)
1842
+ @Database = params['Database']
1843
+ @Catalog = params['Catalog']
1844
+ @Table = params['Table']
1845
+ @Operation = params['Operation']
1846
+ @PolicyType = params['PolicyType']
1847
+ end
1848
+ end
1849
+
1850
+ # 数据库和数据表属性信息
1851
+ class Property < TencentCloud::Common::AbstractModel
1852
+ # @param Key: 属性key名称。
1853
+ # @type Key: String
1854
+ # @param Value: 属性key对应的value。
1855
+ # @type Value: String
1856
+
1857
+ attr_accessor :Key, :Value
1858
+
1859
+ def initialize(key=nil, value=nil)
1860
+ @Key = key
1861
+ @Value = value
1862
+ end
1863
+
1864
+ def deserialize(params)
1865
+ @Key = params['Key']
1866
+ @Value = params['Value']
1867
+ end
1868
+ end
1869
+
1870
+ # SQL查询任务
1871
+ class SQLTask < TencentCloud::Common::AbstractModel
1872
+ # @param SQL: base64加密后的SQL语句
1873
+ # @type SQL: String
1874
+ # @param Config: 任务的配置信息
1875
+ # @type Config: Array
1876
+
1877
+ attr_accessor :SQL, :Config
1878
+
1879
+ def initialize(sql=nil, config=nil)
1880
+ @SQL = sql
1881
+ @Config = config
1882
+ end
1883
+
1884
+ def deserialize(params)
1885
+ @SQL = params['SQL']
1886
+ unless params['Config'].nil?
1887
+ @Config = []
1888
+ params['Config'].each do |i|
1889
+ kvpair_tmp = KVPair.new
1890
+ kvpair_tmp.deserialize(i)
1891
+ @Config << kvpair_tmp
1892
+ end
1893
+ end
1894
+ end
1895
+ end
1896
+
1897
+ # script实例。
1898
+ class Script < TencentCloud::Common::AbstractModel
1899
+ # @param ScriptId: 脚本Id,长度36字节。
1900
+ # 注意:此字段可能返回 null,表示取不到有效值。
1901
+ # @type ScriptId: String
1902
+ # @param ScriptName: 脚本名称,长度0-25。
1903
+ # 注意:此字段可能返回 null,表示取不到有效值。
1904
+ # @type ScriptName: String
1905
+ # @param ScriptDesc: 脚本描述,长度0-50。
1906
+ # 注意:此字段可能返回 null,表示取不到有效值。
1907
+ # @type ScriptDesc: String
1908
+ # @param DatabaseName: 默认关联数据库。
1909
+ # 注意:此字段可能返回 null,表示取不到有效值。
1910
+ # @type DatabaseName: String
1911
+ # @param SQLStatement: SQL描述,长度0-10000。
1912
+ # 注意:此字段可能返回 null,表示取不到有效值。
1913
+ # @type SQLStatement: String
1914
+ # @param UpdateTime: 更新时间戳, 单位:ms。
1915
+ # 注意:此字段可能返回 null,表示取不到有效值。
1916
+ # @type UpdateTime: Integer
1917
+
1918
+ attr_accessor :ScriptId, :ScriptName, :ScriptDesc, :DatabaseName, :SQLStatement, :UpdateTime
1919
+
1920
+ def initialize(scriptid=nil, scriptname=nil, scriptdesc=nil, databasename=nil, sqlstatement=nil, updatetime=nil)
1921
+ @ScriptId = scriptid
1922
+ @ScriptName = scriptname
1923
+ @ScriptDesc = scriptdesc
1924
+ @DatabaseName = databasename
1925
+ @SQLStatement = sqlstatement
1926
+ @UpdateTime = updatetime
1927
+ end
1928
+
1929
+ def deserialize(params)
1930
+ @ScriptId = params['ScriptId']
1931
+ @ScriptName = params['ScriptName']
1932
+ @ScriptDesc = params['ScriptDesc']
1933
+ @DatabaseName = params['DatabaseName']
1934
+ @SQLStatement = params['SQLStatement']
1935
+ @UpdateTime = params['UpdateTime']
1936
+ end
1937
+ end
1938
+
1939
+ # 数据表配置信息
1940
+ class TableBaseInfo < TencentCloud::Common::AbstractModel
1941
+ # @param DatabaseName: 该数据表所属数据库名字
1942
+ # @type DatabaseName: String
1943
+ # @param TableName: 数据表名字
1944
+ # @type TableName: String
1945
+ # @param DatasourceConnectionName: 该数据表所属数据源名字
1946
+ # 注意:此字段可能返回 null,表示取不到有效值。
1947
+ # @type DatasourceConnectionName: String
1948
+
1949
+ attr_accessor :DatabaseName, :TableName, :DatasourceConnectionName
1950
+
1951
+ def initialize(databasename=nil, tablename=nil, datasourceconnectionname=nil)
1952
+ @DatabaseName = databasename
1953
+ @TableName = tablename
1954
+ @DatasourceConnectionName = datasourceconnectionname
1955
+ end
1956
+
1957
+ def deserialize(params)
1958
+ @DatabaseName = params['DatabaseName']
1959
+ @TableName = params['TableName']
1960
+ @DatasourceConnectionName = params['DatasourceConnectionName']
1961
+ end
1962
+ end
1963
+
1964
+ # 返回数据表的相关信息。
1965
+ class TableInfo < TencentCloud::Common::AbstractModel
1966
+ # @param TableBaseInfo: 数据表配置信息。
1967
+ # @type TableBaseInfo: :class:`Tencentcloud::Dlc.v20210125.models.TableBaseInfo`
1968
+ # @param DataFormat: 数据表格式。每次入参可选如下其一的KV结构,[TextFile,CSV,Json, Parquet, ORC, AVRD]。
1969
+ # @type DataFormat: :class:`Tencentcloud::Dlc.v20210125.models.DataFormat`
1970
+ # @param Columns: 数据表列信息。
1971
+ # @type Columns: Array
1972
+ # @param Partitions: 数据表分块信息。
1973
+ # @type Partitions: Array
1974
+ # @param Location: 数据存储路径。当前仅支持cos路径,格式如下:cosn://bucket-name/filepath。
1975
+ # @type Location: String
1976
+
1977
+ attr_accessor :TableBaseInfo, :DataFormat, :Columns, :Partitions, :Location
1978
+
1979
+ def initialize(tablebaseinfo=nil, dataformat=nil, columns=nil, partitions=nil, location=nil)
1980
+ @TableBaseInfo = tablebaseinfo
1981
+ @DataFormat = dataformat
1982
+ @Columns = columns
1983
+ @Partitions = partitions
1984
+ @Location = location
1985
+ end
1986
+
1987
+ def deserialize(params)
1988
+ unless params['TableBaseInfo'].nil?
1989
+ @TableBaseInfo = TableBaseInfo.new
1990
+ @TableBaseInfo.deserialize(params['TableBaseInfo'])
1991
+ end
1992
+ unless params['DataFormat'].nil?
1993
+ @DataFormat = DataFormat.new
1994
+ @DataFormat.deserialize(params['DataFormat'])
1995
+ end
1996
+ unless params['Columns'].nil?
1997
+ @Columns = []
1998
+ params['Columns'].each do |i|
1999
+ column_tmp = Column.new
2000
+ column_tmp.deserialize(i)
2001
+ @Columns << column_tmp
2002
+ end
2003
+ end
2004
+ unless params['Partitions'].nil?
2005
+ @Partitions = []
2006
+ params['Partitions'].each do |i|
2007
+ partition_tmp = Partition.new
2008
+ partition_tmp.deserialize(i)
2009
+ @Partitions << partition_tmp
2010
+ end
2011
+ end
2012
+ @Location = params['Location']
2013
+ end
2014
+ end
2015
+
2016
+ # 查询表信息对象
2017
+ class TableResponseInfo < TencentCloud::Common::AbstractModel
2018
+ # @param TableBaseInfo: 数据表基本信息。
2019
+ # @type TableBaseInfo: :class:`Tencentcloud::Dlc.v20210125.models.TableBaseInfo`
2020
+ # @param Columns: 数据表列信息。
2021
+ # 注意:此字段可能返回 null,表示取不到有效值。
2022
+ # @type Columns: Array
2023
+ # @param Partitions: 数据表分块信息。
2024
+ # 注意:此字段可能返回 null,表示取不到有效值。
2025
+ # @type Partitions: Array
2026
+ # @param Location: 数据存储路径。
2027
+ # 注意:此字段可能返回 null,表示取不到有效值。
2028
+ # @type Location: String
2029
+ # @param Properties: 数据表属性信息。
2030
+ # 注意:此字段可能返回 null,表示取不到有效值。
2031
+ # @type Properties: Array
2032
+ # @param ModifiedTime: 数据表更新时间, 单位: ms。
2033
+ # 注意:此字段可能返回 null,表示取不到有效值。
2034
+ # @type ModifiedTime: String
2035
+ # @param CreateTime: 数据表创建时间,单位: ms。
2036
+ # 注意:此字段可能返回 null,表示取不到有效值。
2037
+ # @type CreateTime: String
2038
+ # @param InputFormat: 数据格式。
2039
+ # 注意:此字段可能返回 null,表示取不到有效值。
2040
+ # @type InputFormat: String
2041
+
2042
+ attr_accessor :TableBaseInfo, :Columns, :Partitions, :Location, :Properties, :ModifiedTime, :CreateTime, :InputFormat
2043
+
2044
+ def initialize(tablebaseinfo=nil, columns=nil, partitions=nil, location=nil, properties=nil, modifiedtime=nil, createtime=nil, inputformat=nil)
2045
+ @TableBaseInfo = tablebaseinfo
2046
+ @Columns = columns
2047
+ @Partitions = partitions
2048
+ @Location = location
2049
+ @Properties = properties
2050
+ @ModifiedTime = modifiedtime
2051
+ @CreateTime = createtime
2052
+ @InputFormat = inputformat
2053
+ end
2054
+
2055
+ def deserialize(params)
2056
+ unless params['TableBaseInfo'].nil?
2057
+ @TableBaseInfo = TableBaseInfo.new
2058
+ @TableBaseInfo.deserialize(params['TableBaseInfo'])
2059
+ end
2060
+ unless params['Columns'].nil?
2061
+ @Columns = []
2062
+ params['Columns'].each do |i|
2063
+ column_tmp = Column.new
2064
+ column_tmp.deserialize(i)
2065
+ @Columns << column_tmp
2066
+ end
2067
+ end
2068
+ unless params['Partitions'].nil?
2069
+ @Partitions = []
2070
+ params['Partitions'].each do |i|
2071
+ partition_tmp = Partition.new
2072
+ partition_tmp.deserialize(i)
2073
+ @Partitions << partition_tmp
2074
+ end
2075
+ end
2076
+ @Location = params['Location']
2077
+ unless params['Properties'].nil?
2078
+ @Properties = []
2079
+ params['Properties'].each do |i|
2080
+ property_tmp = Property.new
2081
+ property_tmp.deserialize(i)
2082
+ @Properties << property_tmp
2083
+ end
2084
+ end
2085
+ @ModifiedTime = params['ModifiedTime']
2086
+ @CreateTime = params['CreateTime']
2087
+ @InputFormat = params['InputFormat']
2088
+ end
2089
+ end
2090
+
2091
+ # 任务类型,任务如SQL查询等。
2092
+ class Task < TencentCloud::Common::AbstractModel
2093
+ # @param SQLTask: SQL查询任务
2094
+ # @type SQLTask: :class:`Tencentcloud::Dlc.v20210125.models.SQLTask`
2095
+ # @param SparkSQLTask: Spark SQL查询任务
2096
+ # @type SparkSQLTask: :class:`Tencentcloud::Dlc.v20210125.models.SQLTask`
2097
+
2098
+ attr_accessor :SQLTask, :SparkSQLTask
2099
+
2100
+ def initialize(sqltask=nil, sparksqltask=nil)
2101
+ @SQLTask = sqltask
2102
+ @SparkSQLTask = sparksqltask
2103
+ end
2104
+
2105
+ def deserialize(params)
2106
+ unless params['SQLTask'].nil?
2107
+ @SQLTask = SQLTask.new
2108
+ @SQLTask.deserialize(params['SQLTask'])
2109
+ end
2110
+ unless params['SparkSQLTask'].nil?
2111
+ @SparkSQLTask = SQLTask.new
2112
+ @SparkSQLTask.deserialize(params['SparkSQLTask'])
2113
+ end
2114
+ end
2115
+ end
2116
+
2117
+ # 任务实例
2118
+ class TaskResponseInfo < TencentCloud::Common::AbstractModel
2119
+ # @param DatabaseName: 任务所属Database的名称。
2120
+ # @type DatabaseName: String
2121
+ # @param DataAmount: 任务数据量。
2122
+ # @type DataAmount: Integer
2123
+ # @param Id: 任务Id。
2124
+ # @type Id: String
2125
+ # @param UsedTime: 计算时长,单位: ms。
2126
+ # @type UsedTime: Integer
2127
+ # @param OutputPath: 任务输出路径。
2128
+ # @type OutputPath: String
2129
+ # @param CreateTime: 任务创建时间。
2130
+ # @type CreateTime: String
2131
+ # @param State: 任务状态:0 初始化, 1 执行中, 2 执行成功,-1 执行失败,-3 已取消。
2132
+ # @type State: Integer
2133
+ # @param SQLType: 任务SQL类型,DDL|DML等
2134
+ # @type SQLType: String
2135
+ # @param SQL: 任务SQL语句
2136
+ # @type SQL: String
2137
+ # @param ResultExpired: 结果是否过期。
2138
+ # @type ResultExpired: Boolean
2139
+ # @param RowAffectInfo: 数据影响统计信息。
2140
+ # @type RowAffectInfo: String
2141
+ # @param DataSet: 任务结果数据表。
2142
+ # 注意:此字段可能返回 null,表示取不到有效值。
2143
+ # @type DataSet: String
2144
+ # @param Error: 失败信息, 例如:errorMessage。该字段已废弃。
2145
+ # @type Error: String
2146
+ # @param Percentage: 任务执行进度num/100(%)
2147
+ # @type Percentage: Integer
2148
+ # @param OutputMessage: 任务执行输出信息。
2149
+ # @type OutputMessage: String
2150
+ # @param TaskType: 执行SQL的引擎类型
2151
+ # @type TaskType: String
2152
+ # @param ProgressDetail: 任务进度明细
2153
+ # 注意:此字段可能返回 null,表示取不到有效值。
2154
+ # @type ProgressDetail: String
2155
+
2156
+ attr_accessor :DatabaseName, :DataAmount, :Id, :UsedTime, :OutputPath, :CreateTime, :State, :SQLType, :SQL, :ResultExpired, :RowAffectInfo, :DataSet, :Error, :Percentage, :OutputMessage, :TaskType, :ProgressDetail
2157
+
2158
+ def initialize(databasename=nil, dataamount=nil, id=nil, usedtime=nil, outputpath=nil, createtime=nil, state=nil, sqltype=nil, sql=nil, resultexpired=nil, rowaffectinfo=nil, dataset=nil, error=nil, percentage=nil, outputmessage=nil, tasktype=nil, progressdetail=nil)
2159
+ @DatabaseName = databasename
2160
+ @DataAmount = dataamount
2161
+ @Id = id
2162
+ @UsedTime = usedtime
2163
+ @OutputPath = outputpath
2164
+ @CreateTime = createtime
2165
+ @State = state
2166
+ @SQLType = sqltype
2167
+ @SQL = sql
2168
+ @ResultExpired = resultexpired
2169
+ @RowAffectInfo = rowaffectinfo
2170
+ @DataSet = dataset
2171
+ @Error = error
2172
+ @Percentage = percentage
2173
+ @OutputMessage = outputmessage
2174
+ @TaskType = tasktype
2175
+ @ProgressDetail = progressdetail
2176
+ end
2177
+
2178
+ def deserialize(params)
2179
+ @DatabaseName = params['DatabaseName']
2180
+ @DataAmount = params['DataAmount']
2181
+ @Id = params['Id']
2182
+ @UsedTime = params['UsedTime']
2183
+ @OutputPath = params['OutputPath']
2184
+ @CreateTime = params['CreateTime']
2185
+ @State = params['State']
2186
+ @SQLType = params['SQLType']
2187
+ @SQL = params['SQL']
2188
+ @ResultExpired = params['ResultExpired']
2189
+ @RowAffectInfo = params['RowAffectInfo']
2190
+ @DataSet = params['DataSet']
2191
+ @Error = params['Error']
2192
+ @Percentage = params['Percentage']
2193
+ @OutputMessage = params['OutputMessage']
2194
+ @TaskType = params['TaskType']
2195
+ @ProgressDetail = params['ProgressDetail']
2196
+ end
2197
+ end
2198
+
2199
+ # 批量顺序执行任务集合
2200
+ class TasksInfo < TencentCloud::Common::AbstractModel
2201
+ # @param TaskType: 任务类型,SQLTask:SQL查询任务。SparkSQLTask:Spark SQL查询任务
2202
+ # @type TaskType: String
2203
+ # @param FailureTolerance: 容错策略。Proceed:前面任务出错/取消后继续执行后面的任务。Terminate:前面的任务出错/取消之后终止后面任务的执行,后面的任务全部标记为已取消。
2204
+ # @type FailureTolerance: String
2205
+ # @param SQL: base64加密后的SQL语句,用";"号分隔每个SQL语句,一次最多提交50个任务。严格按照前后顺序执行
2206
+ # @type SQL: String
2207
+ # @param Config: 任务的配置信息,当前仅支持SparkSQLTask任务。
2208
+ # @type Config: Array
2209
+
2210
+ attr_accessor :TaskType, :FailureTolerance, :SQL, :Config
2211
+
2212
+ def initialize(tasktype=nil, failuretolerance=nil, sql=nil, config=nil)
2213
+ @TaskType = tasktype
2214
+ @FailureTolerance = failuretolerance
2215
+ @SQL = sql
2216
+ @Config = config
2217
+ end
2218
+
2219
+ def deserialize(params)
2220
+ @TaskType = params['TaskType']
2221
+ @FailureTolerance = params['FailureTolerance']
2222
+ @SQL = params['SQL']
2223
+ unless params['Config'].nil?
2224
+ @Config = []
2225
+ params['Config'].each do |i|
2226
+ kvpair_tmp = KVPair.new
2227
+ kvpair_tmp.deserialize(i)
2228
+ @Config << kvpair_tmp
2229
+ end
2230
+ end
2231
+ end
2232
+ end
2233
+
2234
+ # 文本格式
2235
+ class TextFile < TencentCloud::Common::AbstractModel
2236
+ # @param Format: 文本类型,本参数取值为TextFile。
2237
+ # @type Format: String
2238
+ # @param Regex: 处理文本用的正则表达式。
2239
+ # 注意:此字段可能返回 null,表示取不到有效值。
2240
+ # @type Regex: String
2241
+
2242
+ attr_accessor :Format, :Regex
2243
+
2244
+ def initialize(format=nil, regex=nil)
2245
+ @Format = format
2246
+ @Regex = regex
2247
+ end
2248
+
2249
+ def deserialize(params)
2250
+ @Format = params['Format']
2251
+ @Regex = params['Regex']
2252
+ end
2253
+ end
2254
+
2255
+ # UnbindWorkGroupsFromUser请求参数结构体
2256
+ class UnbindWorkGroupsFromUserRequest < TencentCloud::Common::AbstractModel
2257
+ # @param AddInfo: 解绑的工作组Id和用户Id的关联关系
2258
+ # @type AddInfo: :class:`Tencentcloud::Dlc.v20210125.models.WorkGroupIdSetOfUserId`
2259
+
2260
+ attr_accessor :AddInfo
2261
+
2262
+ def initialize(addinfo=nil)
2263
+ @AddInfo = addinfo
2264
+ end
2265
+
2266
+ def deserialize(params)
2267
+ unless params['AddInfo'].nil?
2268
+ @AddInfo = WorkGroupIdSetOfUserId.new
2269
+ @AddInfo.deserialize(params['AddInfo'])
2270
+ end
2271
+ end
2272
+ end
2273
+
2274
+ # UnbindWorkGroupsFromUser返回参数结构体
2275
+ class UnbindWorkGroupsFromUserResponse < TencentCloud::Common::AbstractModel
2276
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2277
+ # @type RequestId: String
2278
+
2279
+ attr_accessor :RequestId
2280
+
2281
+ def initialize(requestid=nil)
2282
+ @RequestId = requestid
2283
+ end
2284
+
2285
+ def deserialize(params)
2286
+ @RequestId = params['RequestId']
2287
+ end
2288
+ end
2289
+
2290
+ # 绑定到同一个工作组的用户Id的集合
2291
+ class UserIdSetOfWorkGroupId < TencentCloud::Common::AbstractModel
2292
+ # @param WorkGroupId: 工作组Id
2293
+ # @type WorkGroupId: Integer
2294
+ # @param UserIds: 用户Id集合,和CAM侧Uin匹配
2295
+ # @type UserIds: Array
2296
+
2297
+ attr_accessor :WorkGroupId, :UserIds
2298
+
2299
+ def initialize(workgroupid=nil, userids=nil)
2300
+ @WorkGroupId = workgroupid
2301
+ @UserIds = userids
2302
+ end
2303
+
2304
+ def deserialize(params)
2305
+ @WorkGroupId = params['WorkGroupId']
2306
+ @UserIds = params['UserIds']
2307
+ end
2308
+ end
2309
+
2310
+ # 授权用户信息
2311
+ class UserInfo < TencentCloud::Common::AbstractModel
2312
+ # @param UserId: 用户Id,和子用户uin相同
2313
+ # @type UserId: String
2314
+ # @param UserDescription: 用户描述信息,方便区分不同用户
2315
+ # 注意:此字段可能返回 null,表示取不到有效值。
2316
+ # @type UserDescription: String
2317
+ # @param PolicySet: 单独给用户绑定的权限集合
2318
+ # 注意:此字段可能返回 null,表示取不到有效值。
2319
+ # @type PolicySet: Array
2320
+ # @param Creator: 当前用户的创建者
2321
+ # @type Creator: String
2322
+ # @param CreateTime: 创建时间,格式如2021-07-28 16:19:32
2323
+ # @type CreateTime: String
2324
+ # @param WorkGroupSet: 关联的工作组集合
2325
+ # 注意:此字段可能返回 null,表示取不到有效值。
2326
+ # @type WorkGroupSet: Array
2327
+ # @param IsOwner: 是否是管理员账号
2328
+ # 注意:此字段可能返回 null,表示取不到有效值。
2329
+ # @type IsOwner: Boolean
2330
+
2331
+ attr_accessor :UserId, :UserDescription, :PolicySet, :Creator, :CreateTime, :WorkGroupSet, :IsOwner
2332
+
2333
+ def initialize(userid=nil, userdescription=nil, policyset=nil, creator=nil, createtime=nil, workgroupset=nil, isowner=nil)
2334
+ @UserId = userid
2335
+ @UserDescription = userdescription
2336
+ @PolicySet = policyset
2337
+ @Creator = creator
2338
+ @CreateTime = createtime
2339
+ @WorkGroupSet = workgroupset
2340
+ @IsOwner = isowner
2341
+ end
2342
+
2343
+ def deserialize(params)
2344
+ @UserId = params['UserId']
2345
+ @UserDescription = params['UserDescription']
2346
+ unless params['PolicySet'].nil?
2347
+ @PolicySet = []
2348
+ params['PolicySet'].each do |i|
2349
+ policy_tmp = Policy.new
2350
+ policy_tmp.deserialize(i)
2351
+ @PolicySet << policy_tmp
2352
+ end
2353
+ end
2354
+ @Creator = params['Creator']
2355
+ @CreateTime = params['CreateTime']
2356
+ unless params['WorkGroupSet'].nil?
2357
+ @WorkGroupSet = []
2358
+ params['WorkGroupSet'].each do |i|
2359
+ workgroupmessage_tmp = WorkGroupMessage.new
2360
+ workgroupmessage_tmp.deserialize(i)
2361
+ @WorkGroupSet << workgroupmessage_tmp
2362
+ end
2363
+ end
2364
+ @IsOwner = params['IsOwner']
2365
+ end
2366
+ end
2367
+
2368
+ # 用户部分信息
2369
+ class UserMessage < TencentCloud::Common::AbstractModel
2370
+ # @param UserId: 用户Id,和CAM侧子用户Uin匹配
2371
+ # @type UserId: String
2372
+ # @param UserDescription: 用户描述
2373
+ # 注意:此字段可能返回 null,表示取不到有效值。
2374
+ # @type UserDescription: String
2375
+ # @param Creator: 当前用户的创建者
2376
+ # @type Creator: String
2377
+ # @param CreateTime: 当前用户的创建时间,形如2021-07-28 16:19:32
2378
+ # @type CreateTime: String
2379
+
2380
+ attr_accessor :UserId, :UserDescription, :Creator, :CreateTime
2381
+
2382
+ def initialize(userid=nil, userdescription=nil, creator=nil, createtime=nil)
2383
+ @UserId = userid
2384
+ @UserDescription = userdescription
2385
+ @Creator = creator
2386
+ @CreateTime = createtime
2387
+ end
2388
+
2389
+ def deserialize(params)
2390
+ @UserId = params['UserId']
2391
+ @UserDescription = params['UserDescription']
2392
+ @Creator = params['Creator']
2393
+ @CreateTime = params['CreateTime']
2394
+ end
2395
+ end
2396
+
2397
+ # 视图基本配置信息
2398
+ class ViewBaseInfo < TencentCloud::Common::AbstractModel
2399
+ # @param DatabaseName: 该视图所属数据库名字
2400
+ # @type DatabaseName: String
2401
+ # @param ViewName: 视图名称
2402
+ # @type ViewName: String
2403
+
2404
+ attr_accessor :DatabaseName, :ViewName
2405
+
2406
+ def initialize(databasename=nil, viewname=nil)
2407
+ @DatabaseName = databasename
2408
+ @ViewName = viewname
2409
+ end
2410
+
2411
+ def deserialize(params)
2412
+ @DatabaseName = params['DatabaseName']
2413
+ @ViewName = params['ViewName']
2414
+ end
2415
+ end
2416
+
2417
+ # 查询视图信息对象
2418
+ class ViewResponseInfo < TencentCloud::Common::AbstractModel
2419
+ # @param ViewBaseInfo: 视图基本信息。
2420
+ # @type ViewBaseInfo: :class:`Tencentcloud::Dlc.v20210125.models.ViewBaseInfo`
2421
+ # @param Columns: 视图列信息。
2422
+ # 注意:此字段可能返回 null,表示取不到有效值。
2423
+ # @type Columns: Array
2424
+ # @param Properties: 视图属性信息。
2425
+ # 注意:此字段可能返回 null,表示取不到有效值。
2426
+ # @type Properties: Array
2427
+ # @param CreateTime: 视图创建时间。
2428
+ # @type CreateTime: String
2429
+ # @param ModifiedTime: 视图更新时间。
2430
+ # @type ModifiedTime: String
2431
+
2432
+ attr_accessor :ViewBaseInfo, :Columns, :Properties, :CreateTime, :ModifiedTime
2433
+
2434
+ def initialize(viewbaseinfo=nil, columns=nil, properties=nil, createtime=nil, modifiedtime=nil)
2435
+ @ViewBaseInfo = viewbaseinfo
2436
+ @Columns = columns
2437
+ @Properties = properties
2438
+ @CreateTime = createtime
2439
+ @ModifiedTime = modifiedtime
2440
+ end
2441
+
2442
+ def deserialize(params)
2443
+ unless params['ViewBaseInfo'].nil?
2444
+ @ViewBaseInfo = ViewBaseInfo.new
2445
+ @ViewBaseInfo.deserialize(params['ViewBaseInfo'])
2446
+ end
2447
+ unless params['Columns'].nil?
2448
+ @Columns = []
2449
+ params['Columns'].each do |i|
2450
+ column_tmp = Column.new
2451
+ column_tmp.deserialize(i)
2452
+ @Columns << column_tmp
2453
+ end
2454
+ end
2455
+ unless params['Properties'].nil?
2456
+ @Properties = []
2457
+ params['Properties'].each do |i|
2458
+ property_tmp = Property.new
2459
+ property_tmp.deserialize(i)
2460
+ @Properties << property_tmp
2461
+ end
2462
+ end
2463
+ @CreateTime = params['CreateTime']
2464
+ @ModifiedTime = params['ModifiedTime']
2465
+ end
2466
+ end
2467
+
2468
+ # 同一个用户绑定的工作组集合
2469
+ class WorkGroupIdSetOfUserId < TencentCloud::Common::AbstractModel
2470
+ # @param UserId: 用户Id,和CAM侧Uin匹配
2471
+ # @type UserId: String
2472
+ # @param WorkGroupIds: 工作组Id集合
2473
+ # @type WorkGroupIds: Array
2474
+
2475
+ attr_accessor :UserId, :WorkGroupIds
2476
+
2477
+ def initialize(userid=nil, workgroupids=nil)
2478
+ @UserId = userid
2479
+ @WorkGroupIds = workgroupids
2480
+ end
2481
+
2482
+ def deserialize(params)
2483
+ @UserId = params['UserId']
2484
+ @WorkGroupIds = params['WorkGroupIds']
2485
+ end
2486
+ end
2487
+
2488
+ # 工作组信息
2489
+ class WorkGroupInfo < TencentCloud::Common::AbstractModel
2490
+ # @param WorkGroupId: 查询到的工作组唯一Id
2491
+ # @type WorkGroupId: Integer
2492
+ # @param WorkGroupName: 工作组名称
2493
+ # @type WorkGroupName: String
2494
+ # @param WorkGroupDescription: 工作组描述
2495
+ # 注意:此字段可能返回 null,表示取不到有效值。
2496
+ # @type WorkGroupDescription: String
2497
+ # @param UserNum: 工作组关联的用户数量
2498
+ # @type UserNum: Integer
2499
+ # @param UserSet: 工作组关联的用户集合
2500
+ # 注意:此字段可能返回 null,表示取不到有效值。
2501
+ # @type UserSet: Array
2502
+ # @param PolicySet: 工作组绑定的权限集合
2503
+ # 注意:此字段可能返回 null,表示取不到有效值。
2504
+ # @type PolicySet: Array
2505
+ # @param Creator: 工作组的创建人
2506
+ # @type Creator: String
2507
+ # @param CreateTime: 工作组的创建时间,形如2021-07-28 16:19:32
2508
+ # @type CreateTime: String
2509
+
2510
+ attr_accessor :WorkGroupId, :WorkGroupName, :WorkGroupDescription, :UserNum, :UserSet, :PolicySet, :Creator, :CreateTime
2511
+
2512
+ def initialize(workgroupid=nil, workgroupname=nil, workgroupdescription=nil, usernum=nil, userset=nil, policyset=nil, creator=nil, createtime=nil)
2513
+ @WorkGroupId = workgroupid
2514
+ @WorkGroupName = workgroupname
2515
+ @WorkGroupDescription = workgroupdescription
2516
+ @UserNum = usernum
2517
+ @UserSet = userset
2518
+ @PolicySet = policyset
2519
+ @Creator = creator
2520
+ @CreateTime = createtime
2521
+ end
2522
+
2523
+ def deserialize(params)
2524
+ @WorkGroupId = params['WorkGroupId']
2525
+ @WorkGroupName = params['WorkGroupName']
2526
+ @WorkGroupDescription = params['WorkGroupDescription']
2527
+ @UserNum = params['UserNum']
2528
+ unless params['UserSet'].nil?
2529
+ @UserSet = []
2530
+ params['UserSet'].each do |i|
2531
+ usermessage_tmp = UserMessage.new
2532
+ usermessage_tmp.deserialize(i)
2533
+ @UserSet << usermessage_tmp
2534
+ end
2535
+ end
2536
+ unless params['PolicySet'].nil?
2537
+ @PolicySet = []
2538
+ params['PolicySet'].each do |i|
2539
+ policy_tmp = Policy.new
2540
+ policy_tmp.deserialize(i)
2541
+ @PolicySet << policy_tmp
2542
+ end
2543
+ end
2544
+ @Creator = params['Creator']
2545
+ @CreateTime = params['CreateTime']
2546
+ end
2547
+ end
2548
+
2549
+ # 工作组部分信息
2550
+ class WorkGroupMessage < TencentCloud::Common::AbstractModel
2551
+ # @param WorkGroupId: 工作组唯一Id
2552
+ # @type WorkGroupId: Integer
2553
+ # @param WorkGroupName: 工作组名称
2554
+ # @type WorkGroupName: String
2555
+ # @param WorkGroupDescription: 工作组描述
2556
+ # 注意:此字段可能返回 null,表示取不到有效值。
2557
+ # @type WorkGroupDescription: String
2558
+ # @param Creator: 创建者
2559
+ # @type Creator: String
2560
+ # @param CreateTime: 工作组创建的时间,形如2021-07-28 16:19:32
2561
+ # @type CreateTime: String
2562
+
2563
+ attr_accessor :WorkGroupId, :WorkGroupName, :WorkGroupDescription, :Creator, :CreateTime
2564
+
2565
+ def initialize(workgroupid=nil, workgroupname=nil, workgroupdescription=nil, creator=nil, createtime=nil)
2566
+ @WorkGroupId = workgroupid
2567
+ @WorkGroupName = workgroupname
2568
+ @WorkGroupDescription = workgroupdescription
2569
+ @Creator = creator
2570
+ @CreateTime = createtime
2571
+ end
2572
+
2573
+ def deserialize(params)
2574
+ @WorkGroupId = params['WorkGroupId']
2575
+ @WorkGroupName = params['WorkGroupName']
2576
+ @WorkGroupDescription = params['WorkGroupDescription']
2577
+ @Creator = params['Creator']
2578
+ @CreateTime = params['CreateTime']
2579
+ end
2580
+ end
2581
+
2582
+ end
2583
+ end
2584
+ end
2585
+