tencentcloud-sdk-dlc 3.0.628 → 3.0.630

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0213317f75f1e34811f36d9040141469a5ef13fd
4
- data.tar.gz: e425c820b5d2f1b0bd98361be67968418fe2319d
3
+ metadata.gz: 9f3e6d2b0086aff70a5e74f1e0b0af43c7f8e539
4
+ data.tar.gz: e5aae13b72f54caa7160ab1eeabfc3507dcaec06
5
5
  SHA512:
6
- metadata.gz: e7c832661a785769b2175680f8acb005e6c3c0c2735de79ac56e18796556d714f66637f0b2708b4ba731604b745278c6b972ebe7bc8da525b9ea48c7f3d24d5f
7
- data.tar.gz: afdded00662b2bbdbe177276c2ce9a51f4f943b29bba944f16a1b43fbdd75092c1e9cd728e20528e535fb59bbacf6269e2f6b30b5f372148ade02f0cfaf0df58
6
+ metadata.gz: ccbfd0f749b5a7304cf0690eba700a4677484e87649ead9b263d9fa3b23e7289af027ad0e4e85f66bc89ed4c1f6bd73b9ef2e82bb9a183fc9644a586d3530556
7
+ data.tar.gz: a77edc0629ee04f4a7f0643004dd8ce9cdb02abfd575c6c7635cbdbffda88b1bdc2c98b0b6603b4450d6224625bbc421434c84ece0cb6e7ef79b8276d338e662
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.628
1
+ 3.0.630
@@ -1661,6 +1661,30 @@ module TencentCloud
1661
1661
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1662
1662
  end
1663
1663
 
1664
+ # 列举用户角色信息
1665
+
1666
+ # @param request: Request instance for DescribeUserRoles.
1667
+ # @type request: :class:`Tencentcloud::dlc::V20210125::DescribeUserRolesRequest`
1668
+ # @rtype: :class:`Tencentcloud::dlc::V20210125::DescribeUserRolesResponse`
1669
+ def DescribeUserRoles(request)
1670
+ body = send_request('DescribeUserRoles', request.serialize)
1671
+ response = JSON.parse(body)
1672
+ if response['Response'].key?('Error') == false
1673
+ model = DescribeUserRolesResponse.new
1674
+ model.deserialize(response['Response'])
1675
+ model
1676
+ else
1677
+ code = response['Response']['Error']['Code']
1678
+ message = response['Response']['Error']['Message']
1679
+ reqid = response['Response']['RequestId']
1680
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1681
+ end
1682
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1683
+ raise e
1684
+ rescue StandardError => e
1685
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1686
+ end
1687
+
1664
1688
  # 获取用户列表信息
1665
1689
 
1666
1690
  # @param request: Request instance for DescribeUsers.
@@ -912,6 +912,28 @@ module TencentCloud
912
912
  end
913
913
  end
914
914
 
915
+ # cos权限描述
916
+ class CosPermission < TencentCloud::Common::AbstractModel
917
+ # @param CosPath: cos路径
918
+ # 注意:此字段可能返回 null,表示取不到有效值。
919
+ # @type CosPath: String
920
+ # @param Permissions: 权限【"read","write"】
921
+ # 注意:此字段可能返回 null,表示取不到有效值。
922
+ # @type Permissions: Array
923
+
924
+ attr_accessor :CosPath, :Permissions
925
+
926
+ def initialize(cospath=nil, permissions=nil)
927
+ @CosPath = cospath
928
+ @Permissions = permissions
929
+ end
930
+
931
+ def deserialize(params)
932
+ @CosPath = params['CosPath']
933
+ @Permissions = params['Permissions']
934
+ end
935
+ end
936
+
915
937
  # CreateDMSDatabase请求参数结构体
916
938
  class CreateDMSDatabaseRequest < TencentCloud::Common::AbstractModel
917
939
  # @param Asset: 基础元数据对象
@@ -5257,6 +5279,69 @@ module TencentCloud
5257
5279
  end
5258
5280
  end
5259
5281
 
5282
+ # DescribeUserRoles请求参数结构体
5283
+ class DescribeUserRolesRequest < TencentCloud::Common::AbstractModel
5284
+ # @param Limit: 列举的数量限制
5285
+ # @type Limit: Integer
5286
+ # @param Offset: 列举的偏移位置
5287
+ # @type Offset: Integer
5288
+ # @param Fuzzy: 按照arn模糊列举
5289
+ # @type Fuzzy: String
5290
+ # @param SortBy: 返回结果按照该字段排序
5291
+ # @type SortBy: String
5292
+ # @param Sorting: 正序或者倒序,例如:desc
5293
+ # @type Sorting: String
5294
+
5295
+ attr_accessor :Limit, :Offset, :Fuzzy, :SortBy, :Sorting
5296
+
5297
+ def initialize(limit=nil, offset=nil, fuzzy=nil, sortby=nil, sorting=nil)
5298
+ @Limit = limit
5299
+ @Offset = offset
5300
+ @Fuzzy = fuzzy
5301
+ @SortBy = sortby
5302
+ @Sorting = sorting
5303
+ end
5304
+
5305
+ def deserialize(params)
5306
+ @Limit = params['Limit']
5307
+ @Offset = params['Offset']
5308
+ @Fuzzy = params['Fuzzy']
5309
+ @SortBy = params['SortBy']
5310
+ @Sorting = params['Sorting']
5311
+ end
5312
+ end
5313
+
5314
+ # DescribeUserRoles返回参数结构体
5315
+ class DescribeUserRolesResponse < TencentCloud::Common::AbstractModel
5316
+ # @param Total: 符合列举条件的总数量
5317
+ # @type Total: Integer
5318
+ # @param UserRoles: 用户角色信息
5319
+ # @type UserRoles: Array
5320
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5321
+ # @type RequestId: String
5322
+
5323
+ attr_accessor :Total, :UserRoles, :RequestId
5324
+
5325
+ def initialize(total=nil, userroles=nil, requestid=nil)
5326
+ @Total = total
5327
+ @UserRoles = userroles
5328
+ @RequestId = requestid
5329
+ end
5330
+
5331
+ def deserialize(params)
5332
+ @Total = params['Total']
5333
+ unless params['UserRoles'].nil?
5334
+ @UserRoles = []
5335
+ params['UserRoles'].each do |i|
5336
+ userrole_tmp = UserRole.new
5337
+ userrole_tmp.deserialize(i)
5338
+ @UserRoles << userrole_tmp
5339
+ end
5340
+ end
5341
+ @RequestId = params['RequestId']
5342
+ end
5343
+ end
5344
+
5260
5345
  # DescribeUsers请求参数结构体
5261
5346
  class DescribeUsersRequest < TencentCloud::Common::AbstractModel
5262
5347
  # @param UserId: 指定查询的子用户uin,用户需要通过CreateUser接口创建。
@@ -8546,6 +8631,69 @@ module TencentCloud
8546
8631
  end
8547
8632
  end
8548
8633
 
8634
+ # 用户角色
8635
+ class UserRole < TencentCloud::Common::AbstractModel
8636
+ # @param RoleId: 角色ID
8637
+ # @type RoleId: Integer
8638
+ # @param AppId: 用户app ID
8639
+ # @type AppId: String
8640
+ # @param Uin: 用户ID
8641
+ # @type Uin: String
8642
+ # @param Arn: 角色权限
8643
+ # @type Arn: String
8644
+ # @param ModifyTime: 最近修改时间戳
8645
+ # @type ModifyTime: Integer
8646
+ # @param Desc: 角色描述信息
8647
+ # @type Desc: String
8648
+ # @param RoleName: 角色名称
8649
+ # 注意:此字段可能返回 null,表示取不到有效值。
8650
+ # @type RoleName: String
8651
+ # @param Creator: 创建者UIN
8652
+ # 注意:此字段可能返回 null,表示取不到有效值。
8653
+ # @type Creator: String
8654
+ # @param CosPermissionList: cos授权路径列表
8655
+ # 注意:此字段可能返回 null,表示取不到有效值。
8656
+ # @type CosPermissionList: Array
8657
+ # @param PermissionJson: cam策略json
8658
+ # 注意:此字段可能返回 null,表示取不到有效值。
8659
+ # @type PermissionJson: String
8660
+
8661
+ attr_accessor :RoleId, :AppId, :Uin, :Arn, :ModifyTime, :Desc, :RoleName, :Creator, :CosPermissionList, :PermissionJson
8662
+
8663
+ def initialize(roleid=nil, appid=nil, uin=nil, arn=nil, modifytime=nil, desc=nil, rolename=nil, creator=nil, cospermissionlist=nil, permissionjson=nil)
8664
+ @RoleId = roleid
8665
+ @AppId = appid
8666
+ @Uin = uin
8667
+ @Arn = arn
8668
+ @ModifyTime = modifytime
8669
+ @Desc = desc
8670
+ @RoleName = rolename
8671
+ @Creator = creator
8672
+ @CosPermissionList = cospermissionlist
8673
+ @PermissionJson = permissionjson
8674
+ end
8675
+
8676
+ def deserialize(params)
8677
+ @RoleId = params['RoleId']
8678
+ @AppId = params['AppId']
8679
+ @Uin = params['Uin']
8680
+ @Arn = params['Arn']
8681
+ @ModifyTime = params['ModifyTime']
8682
+ @Desc = params['Desc']
8683
+ @RoleName = params['RoleName']
8684
+ @Creator = params['Creator']
8685
+ unless params['CosPermissionList'].nil?
8686
+ @CosPermissionList = []
8687
+ params['CosPermissionList'].each do |i|
8688
+ cospermission_tmp = CosPermission.new
8689
+ cospermission_tmp.deserialize(i)
8690
+ @CosPermissionList << cospermission_tmp
8691
+ end
8692
+ end
8693
+ @PermissionJson = params['PermissionJson']
8694
+ end
8695
+ end
8696
+
8549
8697
  # 视图基本配置信息
8550
8698
  class ViewBaseInfo < TencentCloud::Common::AbstractModel
8551
8699
  # @param DatabaseName: 该视图所属数据库名字
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: 3.0.628
4
+ version: 3.0.630
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-04 00:00:00.000000000 Z
11
+ date: 2023-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common