Class: TencentCloud::Trocket::V20230308::RoleItem
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Trocket::V20230308::RoleItem
- Defined in:
- lib/v20230308/models.rb
Overview
角色信息
Instance Attribute Summary collapse
-
#AccessKey ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#CreatedTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#DetailedRolePerms ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ModifiedTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#PermRead ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#PermType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#PermWrite ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Remark ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#RoleName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#SecretKey ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rolename = nil, permread = nil, permwrite = nil, accesskey = nil, secretkey = nil, remark = nil, createdtime = nil, modifiedtime = nil, permtype = nil, detailedroleperms = nil) ⇒ RoleItem
constructor
A new instance of RoleItem.
Constructor Details
#initialize(rolename = nil, permread = nil, permwrite = nil, accesskey = nil, secretkey = nil, remark = nil, createdtime = nil, modifiedtime = nil, permtype = nil, detailedroleperms = nil) ⇒ RoleItem
Returns a new instance of RoleItem.
5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 |
# File 'lib/v20230308/models.rb', line 5796 def initialize(rolename=nil, permread=nil, permwrite=nil, accesskey=nil, secretkey=nil, remark=nil, createdtime=nil, modifiedtime=nil, permtype=nil, detailedroleperms=nil) @RoleName = rolename @PermRead = permread @PermWrite = permwrite @AccessKey = accesskey @SecretKey = secretkey @Remark = remark @CreatedTime = createdtime @ModifiedTime = modifiedtime @PermType = permtype @DetailedRolePerms = detailedroleperms end |
Instance Attribute Details
#AccessKey ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5794 5795 5796 |
# File 'lib/v20230308/models.rb', line 5794 def AccessKey @AccessKey end |
#CreatedTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5794 5795 5796 |
# File 'lib/v20230308/models.rb', line 5794 def CreatedTime @CreatedTime end |
#DetailedRolePerms ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5794 5795 5796 |
# File 'lib/v20230308/models.rb', line 5794 def DetailedRolePerms @DetailedRolePerms end |
#ModifiedTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5794 5795 5796 |
# File 'lib/v20230308/models.rb', line 5794 def ModifiedTime @ModifiedTime end |
#PermRead ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5794 5795 5796 |
# File 'lib/v20230308/models.rb', line 5794 def PermRead @PermRead end |
#PermType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5794 5795 5796 |
# File 'lib/v20230308/models.rb', line 5794 def PermType @PermType end |
#PermWrite ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5794 5795 5796 |
# File 'lib/v20230308/models.rb', line 5794 def PermWrite @PermWrite end |
#Remark ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5794 5795 5796 |
# File 'lib/v20230308/models.rb', line 5794 def Remark @Remark end |
#RoleName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5794 5795 5796 |
# File 'lib/v20230308/models.rb', line 5794 def RoleName @RoleName end |
#SecretKey ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5794 5795 5796 |
# File 'lib/v20230308/models.rb', line 5794 def SecretKey @SecretKey end |
Instance Method Details
#deserialize(params) ⇒ Object
5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 |
# File 'lib/v20230308/models.rb', line 5809 def deserialize(params) @RoleName = params['RoleName'] @PermRead = params['PermRead'] @PermWrite = params['PermWrite'] @AccessKey = params['AccessKey'] @SecretKey = params['SecretKey'] @Remark = params['Remark'] @CreatedTime = params['CreatedTime'] @ModifiedTime = params['ModifiedTime'] @PermType = params['PermType'] unless params['DetailedRolePerms'].nil? @DetailedRolePerms = [] params['DetailedRolePerms'].each do |i| detailedroleperm_tmp = DetailedRolePerm.new detailedroleperm_tmp.deserialize(i) @DetailedRolePerms << detailedroleperm_tmp end end end |