tencentcloud-sdk-dlc 1.0.277 → 1.0.280
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210125/models.rb +100 -17
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5601928ee3bcbcb8e16228eefaa6e391d0305a5
|
4
|
+
data.tar.gz: f2076382809f44a21aea5985c9dc460074e81e9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ba87e05a93c5e70d77d6c701c400dc17ce0fa3f0cf34f547c78fa7d1c2b45dcc6e372871f3f297cf65a10c603e79a858bad7e9366fb150a79a09b628594bbfe
|
7
|
+
data.tar.gz: a14106b28b3c827b9bb9835e0a1387820c2452077ef85e8c4451845e7209097f4854c65ab4ea7a98914e0da6104d83914914a10a43770b41016ce96249b45edc
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.280
|
data/lib/v20210125/models.rb
CHANGED
@@ -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或者*;在数据表级别鉴权下可以填写用户自定义数据源。不填情况下默认为
|
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;数据连接级鉴权:
|
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:
|
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.
|
4
|
+
version: 1.0.280
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|