Class: TencentCloud::Dlc::V20210125::UserRole
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dlc::V20210125::UserRole
- Defined in:
- lib/v20210125/models.rb
Overview
用户角色
Instance Attribute Summary collapse
- #AppId ⇒ Object
- #Arn ⇒ Object
- #CosPermissionList ⇒ Object
- #Creator ⇒ Object
- #Desc ⇒ Object
- #IsDefault ⇒ Object
- #ModifyTime ⇒ Object
- #PermissionJson ⇒ Object
- #RoleId ⇒ Object
- #RoleName ⇒ Object
- #Uin ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(roleid = nil, appid = nil, uin = nil, arn = nil, modifytime = nil, desc = nil, rolename = nil, creator = nil, cospermissionlist = nil, permissionjson = nil, isdefault = nil) ⇒ UserRole
constructor
A new instance of UserRole.
Constructor Details
#initialize(roleid = nil, appid = nil, uin = nil, arn = nil, modifytime = nil, desc = nil, rolename = nil, creator = nil, cospermissionlist = nil, permissionjson = nil, isdefault = nil) ⇒ UserRole
Returns a new instance of UserRole.
17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 |
# File 'lib/v20210125/models.rb', line 17447 def initialize(roleid=nil, appid=nil, uin=nil, arn=nil, modifytime=nil, desc=nil, rolename=nil, creator=nil, =nil, =nil, isdefault=nil) @RoleId = roleid @AppId = appid @Uin = uin @Arn = arn @ModifyTime = modifytime @Desc = desc @RoleName = rolename @Creator = creator @CosPermissionList = @PermissionJson = @IsDefault = isdefault end |
Instance Attribute Details
#AppId ⇒ Object
17445 17446 17447 |
# File 'lib/v20210125/models.rb', line 17445 def AppId @AppId end |
#Arn ⇒ Object
17445 17446 17447 |
# File 'lib/v20210125/models.rb', line 17445 def Arn @Arn end |
#CosPermissionList ⇒ Object
17445 17446 17447 |
# File 'lib/v20210125/models.rb', line 17445 def CosPermissionList @CosPermissionList end |
#Creator ⇒ Object
17445 17446 17447 |
# File 'lib/v20210125/models.rb', line 17445 def Creator @Creator end |
#Desc ⇒ Object
17445 17446 17447 |
# File 'lib/v20210125/models.rb', line 17445 def Desc @Desc end |
#IsDefault ⇒ Object
17445 17446 17447 |
# File 'lib/v20210125/models.rb', line 17445 def IsDefault @IsDefault end |
#ModifyTime ⇒ Object
17445 17446 17447 |
# File 'lib/v20210125/models.rb', line 17445 def ModifyTime @ModifyTime end |
#PermissionJson ⇒ Object
17445 17446 17447 |
# File 'lib/v20210125/models.rb', line 17445 def PermissionJson @PermissionJson end |
#RoleId ⇒ Object
17445 17446 17447 |
# File 'lib/v20210125/models.rb', line 17445 def RoleId @RoleId end |
#RoleName ⇒ Object
17445 17446 17447 |
# File 'lib/v20210125/models.rb', line 17445 def RoleName @RoleName end |
#Uin ⇒ Object
17445 17446 17447 |
# File 'lib/v20210125/models.rb', line 17445 def Uin @Uin end |
Instance Method Details
#deserialize(params) ⇒ Object
17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 |
# File 'lib/v20210125/models.rb', line 17461 def deserialize(params) @RoleId = params['RoleId'] @AppId = params['AppId'] @Uin = params['Uin'] @Arn = params['Arn'] @ModifyTime = params['ModifyTime'] @Desc = params['Desc'] @RoleName = params['RoleName'] @Creator = params['Creator'] unless params['CosPermissionList'].nil? @CosPermissionList = [] params['CosPermissionList'].each do |i| = CosPermission.new .deserialize(i) @CosPermissionList << end end @PermissionJson = params['PermissionJson'] @IsDefault = params['IsDefault'] end |