tencentcloud-sdk-dlc 1.0.276 → 1.0.279

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20210125/models.rb +100 -17
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3302b8ce9ab77627d180a0b73191b66783b9103
4
- data.tar.gz: 59e26f2e2a3a83b93c1699c29e421d86b768a6d8
3
+ metadata.gz: 07254f70ddbac52596af1337e178a1b17c42e789
4
+ data.tar.gz: 913d12a2c1fc9293b71e3a534a46c13a97a92f0f
5
5
  SHA512:
6
- metadata.gz: 4174f088a2cd9c9b3137e6264566d53aafbce9af822d80570d0219e2fc56152d91a4c7342a31bf6cfa03ea3e1f864c06fe2cfcaaba3274fb08f7eb180b8b4e38
7
- data.tar.gz: 831c5dcba23281ccbddd8ea06241003ad5bc002e663a2fd172372bb003e62a3f1a05354512f714e6e45a0e988f907d908d04659cb0cd03304f071a53148428a6
6
+ metadata.gz: d4c976347c38817ff03635ab3c705b6fd300cf3bd8ce25a6582fe235527ca1838a844d8040a0f6400c2168f5b78694bcd8f18635c2372729665fba17d900d157
7
+ data.tar.gz: 5a548bfd58fe94e8396d31de5eb1e0c1b7ec27c7c184ee852f0f158a299a5832d2f80d36bfbe17669417bf47e7c710d3e8d763ed7e8253c149b4ea381acc717c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.276
1
+ 1.0.279
@@ -281,7 +281,7 @@ module TencentCloud
281
281
  # @param Nullable: 是否为null
282
282
  # 注意:此字段可能返回 null,表示取不到有效值。
283
283
  # @type Nullable: String
284
- # @param Position: 字段位置
284
+ # @param Position: 字段位置,小的在前
285
285
  # 注意:此字段可能返回 null,表示取不到有效值。
286
286
  # @type Position: Integer
287
287
  # @param CreateTime: 字段创建时间
@@ -648,13 +648,19 @@ module TencentCloud
648
648
  # @type UserDescription: String
649
649
  # @param PolicySet: 绑定到用户的权限集合
650
650
  # @type PolicySet: Array
651
+ # @param UserType: 用户类型。ADMIN:管理员 COMMON:一般用户。当用户类型为管理员的时候,不能设置权限集合和绑定的工作组集合,管理员默认拥有所有权限。该参数不填默认为COMMON
652
+ # @type UserType: String
653
+ # @param WorkGroupIds: 绑定到用户的工作组ID集合。
654
+ # @type WorkGroupIds: Array
651
655
 
652
- attr_accessor :UserId, :UserDescription, :PolicySet
656
+ attr_accessor :UserId, :UserDescription, :PolicySet, :UserType, :WorkGroupIds
653
657
 
654
- def initialize(userid=nil, userdescription=nil, policyset=nil)
658
+ def initialize(userid=nil, userdescription=nil, policyset=nil, usertype=nil, workgroupids=nil)
655
659
  @UserId = userid
656
660
  @UserDescription = userdescription
657
661
  @PolicySet = policyset
662
+ @UserType = usertype
663
+ @WorkGroupIds = workgroupids
658
664
  end
659
665
 
660
666
  def deserialize(params)
@@ -668,6 +674,8 @@ module TencentCloud
668
674
  @PolicySet << policy_tmp
669
675
  end
670
676
  end
677
+ @UserType = params['UserType']
678
+ @WorkGroupIds = params['WorkGroupIds']
671
679
  end
672
680
  end
673
681
 
@@ -695,13 +703,16 @@ module TencentCloud
695
703
  # @type WorkGroupDescription: String
696
704
  # @param PolicySet: 工作组绑定的鉴权策略集合
697
705
  # @type PolicySet: Array
706
+ # @param UserIds: 需要绑定到工作组的用户Id集合
707
+ # @type UserIds: Array
698
708
 
699
- attr_accessor :WorkGroupName, :WorkGroupDescription, :PolicySet
709
+ attr_accessor :WorkGroupName, :WorkGroupDescription, :PolicySet, :UserIds
700
710
 
701
- def initialize(workgroupname=nil, workgroupdescription=nil, policyset=nil)
711
+ def initialize(workgroupname=nil, workgroupdescription=nil, policyset=nil, userids=nil)
702
712
  @WorkGroupName = workgroupname
703
713
  @WorkGroupDescription = workgroupdescription
704
714
  @PolicySet = policyset
715
+ @UserIds = userids
705
716
  end
706
717
 
707
718
  def deserialize(params)
@@ -715,6 +726,7 @@ module TencentCloud
715
726
  @PolicySet << policy_tmp
716
727
  end
717
728
  end
729
+ @UserIds = params['UserIds']
718
730
  end
719
731
  end
720
732
 
@@ -1471,15 +1483,18 @@ module TencentCloud
1471
1483
  # @type SortBy: String
1472
1484
  # @param Sorting: 排序方式,desc表示正序,asc表示反序, 默认为asc
1473
1485
  # @type Sorting: String
1486
+ # @param Filters: 过滤条件,支持如下字段类型,user-type:根据用户类型过滤。
1487
+ # @type Filters: Array
1474
1488
 
1475
- attr_accessor :UserId, :Offset, :Limit, :SortBy, :Sorting
1489
+ attr_accessor :UserId, :Offset, :Limit, :SortBy, :Sorting, :Filters
1476
1490
 
1477
- def initialize(userid=nil, offset=nil, limit=nil, sortby=nil, sorting=nil)
1491
+ def initialize(userid=nil, offset=nil, limit=nil, sortby=nil, sorting=nil, filters=nil)
1478
1492
  @UserId = userid
1479
1493
  @Offset = offset
1480
1494
  @Limit = limit
1481
1495
  @SortBy = sortby
1482
1496
  @Sorting = sorting
1497
+ @Filters = filters
1483
1498
  end
1484
1499
 
1485
1500
  def deserialize(params)
@@ -1488,6 +1503,14 @@ module TencentCloud
1488
1503
  @Limit = params['Limit']
1489
1504
  @SortBy = params['SortBy']
1490
1505
  @Sorting = params['Sorting']
1506
+ unless params['Filters'].nil?
1507
+ @Filters = []
1508
+ params['Filters'].each do |i|
1509
+ filter_tmp = Filter.new
1510
+ filter_tmp.deserialize(i)
1511
+ @Filters << filter_tmp
1512
+ end
1513
+ end
1491
1514
  end
1492
1515
  end
1493
1516
 
@@ -1944,23 +1967,59 @@ module TencentCloud
1944
1967
  class Policy < TencentCloud::Common::AbstractModel
1945
1968
  # @param Database: 需要授权的数据库名,填*代表当前Catalog下所有数据库。当授权类型为管理员级别时,只允许填“*”,当授权类型为数据连接级别时只允许填空,其他类型下可以任意指定数据库。
1946
1969
  # @type Database: String
1947
- # @param Catalog: 需要授权的数据源名称,管理员级别下只支持填*(代表该级别全部资源);数据源级别和数据库级别鉴权的情况下,只支持填COSDataCatalog或者*;在数据表级别鉴权下可以填写用户自定义数据源。不填情况下默认为COSDataCatalog。注意:如果是对用户自定义数据源进行鉴权,DLC能够管理的权限是用户接入数据源的时候提供的账户的子集。
1970
+ # @param Catalog: 需要授权的数据源名称,管理员级别下只支持填*(代表该级别全部资源);数据源级别和数据库级别鉴权的情况下,只支持填COSDataCatalog或者*;在数据表级别鉴权下可以填写用户自定义数据源。不填情况下默认为DataLakeCatalog。注意:如果是对用户自定义数据源进行鉴权,DLC能够管理的权限是用户接入数据源的时候提供的账户的子集。
1948
1971
  # @type Catalog: String
1949
1972
  # @param Table: 需要授权的表名,填*代表当前Database下所有表。当授权类型为管理员级别时,只允许填“*”,当授权类型为数据连接级别、数据库级别时只允许填空,其他类型下可以任意指定数据表。
1950
1973
  # @type Table: String
1951
- # @param Operation: 授权的权限操作,对于不同级别的鉴权提供不同操作。管理员权限:ALL,不填默认为ALL;数据连接级鉴权:CRETE;数据库级别鉴权:ALL、CREATE、ALTER、DROP;数据表权限:ALL、SELECT、INSERT、ALTER、DELETE、DROP、UPDATE。注意:在数据表权限下,指定的数据源不为COSDataCatalog的时候,只支持SELECT操作。
1974
+ # @param Operation: 授权的权限操作,对于不同级别的鉴权提供不同操作。管理员权限:ALL,不填默认为ALL;数据连接级鉴权:CREATE;数据库级别鉴权:ALL、CREATE、ALTER、DROP;数据表权限:ALL、SELECT、INSERT、ALTER、DELETE、DROP、UPDATE。注意:在数据表权限下,指定的数据源不为COSDataCatalog的时候,只支持SELECT操作。
1952
1975
  # @type Operation: String
1953
- # @param PolicyType: 授权类型,现在支持四种授权类型:ADMIN:管理员级别鉴权 DATASOURCE:数据连接级别鉴权 DATABASE:数据库级别鉴权 TABLE:表级别鉴权。不填默认为管理员级别鉴权。
1976
+ # @param PolicyType: 授权类型,现在支持八种授权类型:ADMIN:管理员级别鉴权 DATASOURCE:数据连接级别鉴权 DATABASE:数据库级别鉴权 TABLE:表级别鉴权 VIEW:视图级别鉴权 FUNCTION:函数级别鉴权 COLUMN:列级别鉴权 ENGINE:数据引擎鉴权。不填默认为管理员级别鉴权。
1954
1977
  # @type PolicyType: String
1978
+ # @param Function: 需要授权的函数名,填*代表当前Catalog下所有函数。当授权类型为管理员级别时,只允许填“*”,当授权类型为数据连接级别时只允许填空,其他类型下可以任意指定函数。
1979
+ # 注意:此字段可能返回 null,表示取不到有效值。
1980
+ # @type Function: String
1981
+ # @param View: 需要授权的视图,填*代表当前Database下所有视图。当授权类型为管理员级别时,只允许填“*”,当授权类型为数据连接级别、数据库级别时只允许填空,其他类型下可以任意指定视图。
1982
+ # 注意:此字段可能返回 null,表示取不到有效值。
1983
+ # @type View: String
1984
+ # @param Column: 需要授权的列,填*代表当前所有列。当授权类型为管理员级别时,只允许填“*”
1985
+ # 注意:此字段可能返回 null,表示取不到有效值。
1986
+ # @type Column: String
1987
+ # @param DataEngine: 需要授权的数据引擎,填*代表当前所有引擎。当授权类型为管理员级别时,只允许填“*”
1988
+ # 注意:此字段可能返回 null,表示取不到有效值。
1989
+ # @type DataEngine: String
1990
+ # @param ReAuth: 用户是否可以进行二次授权。当为true的时候,被授权的用户可以将本次获取的权限再次授权给其他子用户。默认为false
1991
+ # 注意:此字段可能返回 null,表示取不到有效值。
1992
+ # @type ReAuth: Boolean
1993
+ # @param Source: 权限来源,入参不填。USER:权限来自用户本身;WORKGROUP:权限来自绑定的工作组
1994
+ # 注意:此字段可能返回 null,表示取不到有效值。
1995
+ # @type Source: String
1996
+ # @param Mode: 授权模式,入参不填。COMMON:普通模式;SENIOR:高级模式。
1997
+ # 注意:此字段可能返回 null,表示取不到有效值。
1998
+ # @type Mode: String
1999
+ # @param Operator: 操作者,入参不填。
2000
+ # 注意:此字段可能返回 null,表示取不到有效值。
2001
+ # @type Operator: String
2002
+ # @param CreateTime: 权限创建的时间,入参不填
2003
+ # 注意:此字段可能返回 null,表示取不到有效值。
2004
+ # @type CreateTime: String
1955
2005
 
1956
- attr_accessor :Database, :Catalog, :Table, :Operation, :PolicyType
2006
+ attr_accessor :Database, :Catalog, :Table, :Operation, :PolicyType, :Function, :View, :Column, :DataEngine, :ReAuth, :Source, :Mode, :Operator, :CreateTime
1957
2007
 
1958
- def initialize(database=nil, catalog=nil, table=nil, operation=nil, policytype=nil)
2008
+ def initialize(database=nil, catalog=nil, table=nil, operation=nil, policytype=nil, function=nil, view=nil, column=nil, dataengine=nil, reauth=nil, source=nil, mode=nil, operator=nil, createtime=nil)
1959
2009
  @Database = database
1960
2010
  @Catalog = catalog
1961
2011
  @Table = table
1962
2012
  @Operation = operation
1963
2013
  @PolicyType = policytype
2014
+ @Function = function
2015
+ @View = view
2016
+ @Column = column
2017
+ @DataEngine = dataengine
2018
+ @ReAuth = reauth
2019
+ @Source = source
2020
+ @Mode = mode
2021
+ @Operator = operator
2022
+ @CreateTime = createtime
1964
2023
  end
1965
2024
 
1966
2025
  def deserialize(params)
@@ -1969,6 +2028,15 @@ module TencentCloud
1969
2028
  @Table = params['Table']
1970
2029
  @Operation = params['Operation']
1971
2030
  @PolicyType = params['PolicyType']
2031
+ @Function = params['Function']
2032
+ @View = params['View']
2033
+ @Column = params['Column']
2034
+ @DataEngine = params['DataEngine']
2035
+ @ReAuth = params['ReAuth']
2036
+ @Source = params['Source']
2037
+ @Mode = params['Mode']
2038
+ @Operator = params['Operator']
2039
+ @CreateTime = params['CreateTime']
1972
2040
  end
1973
2041
  end
1974
2042
 
@@ -2178,10 +2246,16 @@ module TencentCloud
2178
2246
  # @param InputFormat: 数据格式。
2179
2247
  # 注意:此字段可能返回 null,表示取不到有效值。
2180
2248
  # @type InputFormat: String
2249
+ # @param StorageSize: 数据表存储大小(单位:Byte)
2250
+ # 注意:此字段可能返回 null,表示取不到有效值。
2251
+ # @type StorageSize: Integer
2252
+ # @param RecordCount: 数据表行数
2253
+ # 注意:此字段可能返回 null,表示取不到有效值。
2254
+ # @type RecordCount: Integer
2181
2255
 
2182
- attr_accessor :TableBaseInfo, :Columns, :Partitions, :Location, :Properties, :ModifiedTime, :CreateTime, :InputFormat
2256
+ attr_accessor :TableBaseInfo, :Columns, :Partitions, :Location, :Properties, :ModifiedTime, :CreateTime, :InputFormat, :StorageSize, :RecordCount
2183
2257
 
2184
- def initialize(tablebaseinfo=nil, columns=nil, partitions=nil, location=nil, properties=nil, modifiedtime=nil, createtime=nil, inputformat=nil)
2258
+ def initialize(tablebaseinfo=nil, columns=nil, partitions=nil, location=nil, properties=nil, modifiedtime=nil, createtime=nil, inputformat=nil, storagesize=nil, recordcount=nil)
2185
2259
  @TableBaseInfo = tablebaseinfo
2186
2260
  @Columns = columns
2187
2261
  @Partitions = partitions
@@ -2190,6 +2264,8 @@ module TencentCloud
2190
2264
  @ModifiedTime = modifiedtime
2191
2265
  @CreateTime = createtime
2192
2266
  @InputFormat = inputformat
2267
+ @StorageSize = storagesize
2268
+ @RecordCount = recordcount
2193
2269
  end
2194
2270
 
2195
2271
  def deserialize(params)
@@ -2225,6 +2301,8 @@ module TencentCloud
2225
2301
  @ModifiedTime = params['ModifiedTime']
2226
2302
  @CreateTime = params['CreateTime']
2227
2303
  @InputFormat = params['InputFormat']
2304
+ @StorageSize = params['StorageSize']
2305
+ @RecordCount = params['RecordCount']
2228
2306
  end
2229
2307
  end
2230
2308
 
@@ -2599,13 +2677,16 @@ module TencentCloud
2599
2677
  # @param WorkGroupSet: 关联的工作组集合
2600
2678
  # 注意:此字段可能返回 null,表示取不到有效值。
2601
2679
  # @type WorkGroupSet: Array
2602
- # @param IsOwner: 是否是管理员账号
2680
+ # @param IsOwner: 是否是主账号
2603
2681
  # 注意:此字段可能返回 null,表示取不到有效值。
2604
2682
  # @type IsOwner: Boolean
2683
+ # @param UserType: 用户类型。ADMIN:管理员 COMMON:普通用户。
2684
+ # 注意:此字段可能返回 null,表示取不到有效值。
2685
+ # @type UserType: String
2605
2686
 
2606
- attr_accessor :UserId, :UserDescription, :PolicySet, :Creator, :CreateTime, :WorkGroupSet, :IsOwner
2687
+ attr_accessor :UserId, :UserDescription, :PolicySet, :Creator, :CreateTime, :WorkGroupSet, :IsOwner, :UserType
2607
2688
 
2608
- def initialize(userid=nil, userdescription=nil, policyset=nil, creator=nil, createtime=nil, workgroupset=nil, isowner=nil)
2689
+ def initialize(userid=nil, userdescription=nil, policyset=nil, creator=nil, createtime=nil, workgroupset=nil, isowner=nil, usertype=nil)
2609
2690
  @UserId = userid
2610
2691
  @UserDescription = userdescription
2611
2692
  @PolicySet = policyset
@@ -2613,6 +2694,7 @@ module TencentCloud
2613
2694
  @CreateTime = createtime
2614
2695
  @WorkGroupSet = workgroupset
2615
2696
  @IsOwner = isowner
2697
+ @UserType = usertype
2616
2698
  end
2617
2699
 
2618
2700
  def deserialize(params)
@@ -2637,6 +2719,7 @@ module TencentCloud
2637
2719
  end
2638
2720
  end
2639
2721
  @IsOwner = params['IsOwner']
2722
+ @UserType = params['UserType']
2640
2723
  end
2641
2724
  end
2642
2725
 
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.276
4
+ version: 1.0.279
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-15 00:00:00.000000000 Z
11
+ date: 2022-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common