tencentcloud-sdk-wedata 3.0.1030 → 3.0.1031

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: 17e9715c0d7add4681f7489a3a8022897bb4e000
4
- data.tar.gz: c3bf10fc407b43e523fb332b4a4b0bc31e22d6dc
3
+ metadata.gz: c80fff1242d55aca7bdeee71f1c41698ee4fb1ab
4
+ data.tar.gz: 20dc02a2520548d13f79e0b3dcb584f53102712a
5
5
  SHA512:
6
- metadata.gz: 9c556372c1536c3b2e4e0b2f25e9b086484474a48a082817b8285e67a5ab234ff894b7af5543b0fce6db2f08fa74e5723adefb4b06608f0da4247190b0ce0a6d
7
- data.tar.gz: eed7fc79ed86569c22fe5de21e40851dae0fa70c2fcb12bf492865d17a7e8b8d39c14e9c04dab77631185764429401d3630fce999ed8fb892ad439ea58264aaa
6
+ metadata.gz: c4d8506e2d580017814232ea270943e49df7128dd3d486040b4f25168cc9b5ce7b7b683816b1c4eeeb76b1fb20b0d3ceef81f82c285d460dc78fe1a3d0bc4396
7
+ data.tar.gz: d0f754cba2559e4d9779dcb926e7804932227ed6a8a468d0c69862a2c593cffd76e8652491daca7283744c73a9670e381f75fe136429354e95689d6519ad5e4f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1030
1
+ 3.0.1031
@@ -3151,6 +3151,30 @@ module TencentCloud
3151
3151
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3152
3152
  end
3153
3153
 
3154
+ # 获取角色列表信息
3155
+
3156
+ # @param request: Request instance for DescribeRoleList.
3157
+ # @type request: :class:`Tencentcloud::wedata::V20210820::DescribeRoleListRequest`
3158
+ # @rtype: :class:`Tencentcloud::wedata::V20210820::DescribeRoleListResponse`
3159
+ def DescribeRoleList(request)
3160
+ body = send_request('DescribeRoleList', request.serialize)
3161
+ response = JSON.parse(body)
3162
+ if response['Response'].key?('Error') == false
3163
+ model = DescribeRoleListResponse.new
3164
+ model.deserialize(response['Response'])
3165
+ model
3166
+ else
3167
+ code = response['Response']['Error']['Code']
3168
+ message = response['Response']['Error']['Message']
3169
+ reqid = response['Response']['RequestId']
3170
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3171
+ end
3172
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3173
+ raise e
3174
+ rescue StandardError => e
3175
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3176
+ end
3177
+
3154
3178
  # 查询规则详情
3155
3179
 
3156
3180
  # @param request: Request instance for DescribeRule.
@@ -5854,6 +5878,30 @@ module TencentCloud
5854
5878
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
5855
5879
  end
5856
5880
 
5881
+ # 修改项目用户角色
5882
+
5883
+ # @param request: Request instance for UpdateProjectUserRole.
5884
+ # @type request: :class:`Tencentcloud::wedata::V20210820::UpdateProjectUserRoleRequest`
5885
+ # @rtype: :class:`Tencentcloud::wedata::V20210820::UpdateProjectUserRoleResponse`
5886
+ def UpdateProjectUserRole(request)
5887
+ body = send_request('UpdateProjectUserRole', request.serialize)
5888
+ response = JSON.parse(body)
5889
+ if response['Response'].key?('Error') == false
5890
+ model = UpdateProjectUserRoleResponse.new
5891
+ model.deserialize(response['Response'])
5892
+ model
5893
+ else
5894
+ code = response['Response']['Error']['Code']
5895
+ message = response['Response']['Error']['Message']
5896
+ reqid = response['Response']['RequestId']
5897
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
5898
+ end
5899
+ rescue TencentCloud::Common::TencentCloudSDKException => e
5900
+ raise e
5901
+ rescue StandardError => e
5902
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
5903
+ end
5904
+
5857
5905
  # 修改工作流责任人
5858
5906
 
5859
5907
  # @param request: Request instance for UpdateWorkflowOwner.
@@ -961,6 +961,112 @@ module TencentCloud
961
961
  end
962
962
  end
963
963
 
964
+ # 基础角色对象
965
+ class BaseRole < TencentCloud::Common::AbstractModel
966
+ # @param RoleId: 角色id
967
+ # @type RoleId: String
968
+ # @param RoleName: 角色名称
969
+ # 注意:此字段可能返回 null,表示取不到有效值。
970
+ # @type RoleName: String
971
+ # @param DisplayName: 角色昵称
972
+ # 注意:此字段可能返回 null,表示取不到有效值。
973
+ # @type DisplayName: String
974
+ # @param Description: 描述
975
+ # 注意:此字段可能返回 null,表示取不到有效值。
976
+ # @type Description: String
977
+ # @param RoleType: 角色类型, 分为System,Tenant,Project,Commercial
978
+ # 注意:此字段可能返回 null,表示取不到有效值。
979
+ # @type RoleType: String
980
+ # @param SystemDefault: 系统预设
981
+ # 注意:此字段可能返回 null,表示取不到有效值。
982
+ # @type SystemDefault: Boolean
983
+ # @param Parameters: 自定义参数
984
+ # 注意:此字段可能返回 null,表示取不到有效值。
985
+ # @type Parameters: String
986
+ # @param MemberCount: 成员统计
987
+ # 注意:此字段可能返回 null,表示取不到有效值。
988
+ # @type MemberCount: Integer
989
+ # @param Privileges: 权限
990
+ # 注意:此字段可能返回 null,表示取不到有效值。
991
+ # @type Privileges: Array
992
+ # @param Operator: 操作者
993
+ # 注意:此字段可能返回 null,表示取不到有效值。
994
+ # @type Operator: :class:`Tencentcloud::Wedata.v20210820.models.BaseUser`
995
+ # @param OperateTime: 操作时间
996
+ # 注意:此字段可能返回 null,表示取不到有效值。
997
+ # @type OperateTime: Integer
998
+ # @param CreateTime: 创建时间
999
+ # 注意:此字段可能返回 null,表示取不到有效值。
1000
+ # @type CreateTime: Integer
1001
+ # @param CreateTimeStr: 创建时间
1002
+ # 注意:此字段可能返回 null,表示取不到有效值。
1003
+ # @type CreateTimeStr: String
1004
+ # @param UpdateTimeStr: 更新时间
1005
+ # 注意:此字段可能返回 null,表示取不到有效值。
1006
+ # @type UpdateTimeStr: String
1007
+ # @param ProjectId: 项目id
1008
+ # 注意:此字段可能返回 null,表示取不到有效值。
1009
+ # @type ProjectId: String
1010
+ # @param UpdateTime: 更新时间
1011
+ # 注意:此字段可能返回 null,表示取不到有效值。
1012
+ # @type UpdateTime: String
1013
+ # @param Creator: 创建人
1014
+ # 注意:此字段可能返回 null,表示取不到有效值。
1015
+ # @type Creator: String
1016
+
1017
+ attr_accessor :RoleId, :RoleName, :DisplayName, :Description, :RoleType, :SystemDefault, :Parameters, :MemberCount, :Privileges, :Operator, :OperateTime, :CreateTime, :CreateTimeStr, :UpdateTimeStr, :ProjectId, :UpdateTime, :Creator
1018
+
1019
+ def initialize(roleid=nil, rolename=nil, displayname=nil, description=nil, roletype=nil, systemdefault=nil, parameters=nil, membercount=nil, privileges=nil, operator=nil, operatetime=nil, createtime=nil, createtimestr=nil, updatetimestr=nil, projectid=nil, updatetime=nil, creator=nil)
1020
+ @RoleId = roleid
1021
+ @RoleName = rolename
1022
+ @DisplayName = displayname
1023
+ @Description = description
1024
+ @RoleType = roletype
1025
+ @SystemDefault = systemdefault
1026
+ @Parameters = parameters
1027
+ @MemberCount = membercount
1028
+ @Privileges = privileges
1029
+ @Operator = operator
1030
+ @OperateTime = operatetime
1031
+ @CreateTime = createtime
1032
+ @CreateTimeStr = createtimestr
1033
+ @UpdateTimeStr = updatetimestr
1034
+ @ProjectId = projectid
1035
+ @UpdateTime = updatetime
1036
+ @Creator = creator
1037
+ end
1038
+
1039
+ def deserialize(params)
1040
+ @RoleId = params['RoleId']
1041
+ @RoleName = params['RoleName']
1042
+ @DisplayName = params['DisplayName']
1043
+ @Description = params['Description']
1044
+ @RoleType = params['RoleType']
1045
+ @SystemDefault = params['SystemDefault']
1046
+ @Parameters = params['Parameters']
1047
+ @MemberCount = params['MemberCount']
1048
+ unless params['Privileges'].nil?
1049
+ @Privileges = []
1050
+ params['Privileges'].each do |i|
1051
+ roleprivilege_tmp = RolePrivilege.new
1052
+ roleprivilege_tmp.deserialize(i)
1053
+ @Privileges << roleprivilege_tmp
1054
+ end
1055
+ end
1056
+ unless params['Operator'].nil?
1057
+ @Operator = BaseUser.new
1058
+ @Operator.deserialize(params['Operator'])
1059
+ end
1060
+ @OperateTime = params['OperateTime']
1061
+ @CreateTime = params['CreateTime']
1062
+ @CreateTimeStr = params['CreateTimeStr']
1063
+ @UpdateTimeStr = params['UpdateTimeStr']
1064
+ @ProjectId = params['ProjectId']
1065
+ @UpdateTime = params['UpdateTime']
1066
+ @Creator = params['Creator']
1067
+ end
1068
+ end
1069
+
964
1070
  # 租户基础信息
965
1071
  class BaseTenant < TencentCloud::Common::AbstractModel
966
1072
  # @param TenantId: 租户id
@@ -11980,6 +12086,107 @@ module TencentCloud
11980
12086
  end
11981
12087
  end
11982
12088
 
12089
+ # DescribeRoleList请求参数结构体
12090
+ class DescribeRoleListRequest < TencentCloud::Common::AbstractModel
12091
+ # @param ShowAllRoles: 返回所有角色。
12092
+ # @type ShowAllRoles: Boolean
12093
+ # @param IncludeRoleTypes: 需要返回的角色类型(system,tenant,project)
12094
+ # @type IncludeRoleTypes: Array
12095
+ # @param DescribeMemberCount: 返回角色绑定人员统计,仅私有化版本支持
12096
+ # @type DescribeMemberCount: Boolean
12097
+ # @param DescribeOperator: 返回操作者信息,私有化多租户版本
12098
+ # @type DescribeOperator: Boolean
12099
+ # @param DescribeSystemRoleOnly: 系统角色
12100
+ # @type DescribeSystemRoleOnly: Boolean
12101
+ # @param DescribeCustomRoleOnly: 自定义角色
12102
+ # @type DescribeCustomRoleOnly: Boolean
12103
+ # @param DescribePrivileges: 查看权限
12104
+ # @type DescribePrivileges: Boolean
12105
+ # @param RoleIds: 筛选角色id
12106
+ # @type RoleIds: Array
12107
+ # @param ProjectId: 项目id
12108
+ # @type ProjectId: String
12109
+ # @param PageNumber: 页码
12110
+ # @type PageNumber: Integer
12111
+ # @param PageSize: 分页信息
12112
+ # @type PageSize: Integer
12113
+ # @param Filters: 查询字段
12114
+ # @type Filters: Array
12115
+ # @param OrderFields: 排序字段
12116
+ # @type OrderFields: Array
12117
+
12118
+ attr_accessor :ShowAllRoles, :IncludeRoleTypes, :DescribeMemberCount, :DescribeOperator, :DescribeSystemRoleOnly, :DescribeCustomRoleOnly, :DescribePrivileges, :RoleIds, :ProjectId, :PageNumber, :PageSize, :Filters, :OrderFields
12119
+
12120
+ def initialize(showallroles=nil, includeroletypes=nil, describemembercount=nil, describeoperator=nil, describesystemroleonly=nil, describecustomroleonly=nil, describeprivileges=nil, roleids=nil, projectid=nil, pagenumber=nil, pagesize=nil, filters=nil, orderfields=nil)
12121
+ @ShowAllRoles = showallroles
12122
+ @IncludeRoleTypes = includeroletypes
12123
+ @DescribeMemberCount = describemembercount
12124
+ @DescribeOperator = describeoperator
12125
+ @DescribeSystemRoleOnly = describesystemroleonly
12126
+ @DescribeCustomRoleOnly = describecustomroleonly
12127
+ @DescribePrivileges = describeprivileges
12128
+ @RoleIds = roleids
12129
+ @ProjectId = projectid
12130
+ @PageNumber = pagenumber
12131
+ @PageSize = pagesize
12132
+ @Filters = filters
12133
+ @OrderFields = orderfields
12134
+ end
12135
+
12136
+ def deserialize(params)
12137
+ @ShowAllRoles = params['ShowAllRoles']
12138
+ @IncludeRoleTypes = params['IncludeRoleTypes']
12139
+ @DescribeMemberCount = params['DescribeMemberCount']
12140
+ @DescribeOperator = params['DescribeOperator']
12141
+ @DescribeSystemRoleOnly = params['DescribeSystemRoleOnly']
12142
+ @DescribeCustomRoleOnly = params['DescribeCustomRoleOnly']
12143
+ @DescribePrivileges = params['DescribePrivileges']
12144
+ @RoleIds = params['RoleIds']
12145
+ @ProjectId = params['ProjectId']
12146
+ @PageNumber = params['PageNumber']
12147
+ @PageSize = params['PageSize']
12148
+ unless params['Filters'].nil?
12149
+ @Filters = []
12150
+ params['Filters'].each do |i|
12151
+ filter_tmp = Filter.new
12152
+ filter_tmp.deserialize(i)
12153
+ @Filters << filter_tmp
12154
+ end
12155
+ end
12156
+ unless params['OrderFields'].nil?
12157
+ @OrderFields = []
12158
+ params['OrderFields'].each do |i|
12159
+ orderfields_tmp = OrderFields.new
12160
+ orderfields_tmp.deserialize(i)
12161
+ @OrderFields << orderfields_tmp
12162
+ end
12163
+ end
12164
+ end
12165
+ end
12166
+
12167
+ # DescribeRoleList返回参数结构体
12168
+ class DescribeRoleListResponse < TencentCloud::Common::AbstractModel
12169
+ # @param Data: 角色列表
12170
+ # @type Data: :class:`Tencentcloud::Wedata.v20210820.models.PageRoles`
12171
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
12172
+ # @type RequestId: String
12173
+
12174
+ attr_accessor :Data, :RequestId
12175
+
12176
+ def initialize(data=nil, requestid=nil)
12177
+ @Data = data
12178
+ @RequestId = requestid
12179
+ end
12180
+
12181
+ def deserialize(params)
12182
+ unless params['Data'].nil?
12183
+ @Data = PageRoles.new
12184
+ @Data.deserialize(params['Data'])
12185
+ end
12186
+ @RequestId = params['RequestId']
12187
+ end
12188
+ end
12189
+
11983
12190
  # DescribeRuleDimStat请求参数结构体
11984
12191
  class DescribeRuleDimStatRequest < TencentCloud::Common::AbstractModel
11985
12192
  # @param ProjectId: 项目id
@@ -22682,6 +22889,50 @@ module TencentCloud
22682
22889
  end
22683
22890
  end
22684
22891
 
22892
+ # 角色列表分页信息
22893
+ class PageRoles < TencentCloud::Common::AbstractModel
22894
+ # @param Rows: 角色信息
22895
+ # 注意:此字段可能返回 null,表示取不到有效值。
22896
+ # @type Rows: Array
22897
+ # @param PageNumber: 页码
22898
+ # 注意:此字段可能返回 null,表示取不到有效值。
22899
+ # @type PageNumber: Integer
22900
+ # @param PageSize: 分页大小
22901
+ # 注意:此字段可能返回 null,表示取不到有效值。
22902
+ # @type PageSize: Integer
22903
+ # @param TotalCount: 总个数
22904
+ # 注意:此字段可能返回 null,表示取不到有效值。
22905
+ # @type TotalCount: Integer
22906
+ # @param TotalPageNumber: 总分页页码
22907
+ # 注意:此字段可能返回 null,表示取不到有效值。
22908
+ # @type TotalPageNumber: Integer
22909
+
22910
+ attr_accessor :Rows, :PageNumber, :PageSize, :TotalCount, :TotalPageNumber
22911
+
22912
+ def initialize(rows=nil, pagenumber=nil, pagesize=nil, totalcount=nil, totalpagenumber=nil)
22913
+ @Rows = rows
22914
+ @PageNumber = pagenumber
22915
+ @PageSize = pagesize
22916
+ @TotalCount = totalcount
22917
+ @TotalPageNumber = totalpagenumber
22918
+ end
22919
+
22920
+ def deserialize(params)
22921
+ unless params['Rows'].nil?
22922
+ @Rows = []
22923
+ params['Rows'].each do |i|
22924
+ baserole_tmp = BaseRole.new
22925
+ baserole_tmp.deserialize(i)
22926
+ @Rows << baserole_tmp
22927
+ end
22928
+ end
22929
+ @PageNumber = params['PageNumber']
22930
+ @PageSize = params['PageSize']
22931
+ @TotalCount = params['TotalCount']
22932
+ @TotalPageNumber = params['TotalPageNumber']
22933
+ end
22934
+ end
22935
+
22685
22936
  # 键值对
22686
22937
  class Pair < TencentCloud::Common::AbstractModel
22687
22938
  # @param Key: 键名
@@ -31027,6 +31278,46 @@ module TencentCloud
31027
31278
  end
31028
31279
  end
31029
31280
 
31281
+ # UpdateProjectUserRole请求参数结构体
31282
+ class UpdateProjectUserRoleRequest < TencentCloud::Common::AbstractModel
31283
+ # @param ProjectId: 项目id
31284
+ # @type ProjectId: String
31285
+ # @param UserIds: 用户id
31286
+ # @type UserIds: Array
31287
+ # @param RoleIds: 角色id
31288
+ # @type RoleIds: Array
31289
+
31290
+ attr_accessor :ProjectId, :UserIds, :RoleIds
31291
+
31292
+ def initialize(projectid=nil, userids=nil, roleids=nil)
31293
+ @ProjectId = projectid
31294
+ @UserIds = userids
31295
+ @RoleIds = roleids
31296
+ end
31297
+
31298
+ def deserialize(params)
31299
+ @ProjectId = params['ProjectId']
31300
+ @UserIds = params['UserIds']
31301
+ @RoleIds = params['RoleIds']
31302
+ end
31303
+ end
31304
+
31305
+ # UpdateProjectUserRole返回参数结构体
31306
+ class UpdateProjectUserRoleResponse < TencentCloud::Common::AbstractModel
31307
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
31308
+ # @type RequestId: String
31309
+
31310
+ attr_accessor :RequestId
31311
+
31312
+ def initialize(requestid=nil)
31313
+ @RequestId = requestid
31314
+ end
31315
+
31316
+ def deserialize(params)
31317
+ @RequestId = params['RequestId']
31318
+ end
31319
+ end
31320
+
31030
31321
  # UpdateWorkflowOwner请求参数结构体
31031
31322
  class UpdateWorkflowOwnerRequest < TencentCloud::Common::AbstractModel
31032
31323
  # @param ProjectId: 项目Id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-wedata
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1030
4
+ version: 3.0.1031
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-30 00:00:00.000000000 Z
11
+ date: 2025-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,8 +33,8 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20210820/models.rb
37
36
  - lib/v20210820/client.rb
37
+ - lib/v20210820/models.rb
38
38
  - lib/tencentcloud-sdk-wedata.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby