Class: TencentCloud::Cam::V20190116::CreateRoleRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cam::V20190116::CreateRoleRequest
- Defined in:
- lib/v20190116/models.rb
Overview
CreateRole请求参数结构体
Instance Attribute Summary collapse
- #ConsoleLogin ⇒ Object
- #Description ⇒ Object
- #PolicyDocument ⇒ Object
- #RoleName ⇒ Object
- #SessionDuration ⇒ Object
- #Tags ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rolename = nil, policydocument = nil, description = nil, consolelogin = nil, sessionduration = nil, tags = nil) ⇒ CreateRoleRequest
constructor
A new instance of CreateRoleRequest.
Constructor Details
#initialize(rolename = nil, policydocument = nil, description = nil, consolelogin = nil, sessionduration = nil, tags = nil) ⇒ CreateRoleRequest
Returns a new instance of CreateRoleRequest.
961 962 963 964 965 966 967 968 |
# File 'lib/v20190116/models.rb', line 961 def initialize(rolename=nil, policydocument=nil, description=nil, consolelogin=nil, sessionduration=nil, =nil) @RoleName = rolename @PolicyDocument = policydocument @Description = description @ConsoleLogin = consolelogin @SessionDuration = sessionduration @Tags = end |
Instance Attribute Details
#ConsoleLogin ⇒ Object
959 960 961 |
# File 'lib/v20190116/models.rb', line 959 def ConsoleLogin @ConsoleLogin end |
#Description ⇒ Object
959 960 961 |
# File 'lib/v20190116/models.rb', line 959 def Description @Description end |
#PolicyDocument ⇒ Object
959 960 961 |
# File 'lib/v20190116/models.rb', line 959 def PolicyDocument @PolicyDocument end |
#RoleName ⇒ Object
959 960 961 |
# File 'lib/v20190116/models.rb', line 959 def RoleName @RoleName end |
#SessionDuration ⇒ Object
959 960 961 |
# File 'lib/v20190116/models.rb', line 959 def SessionDuration @SessionDuration end |
#Tags ⇒ Object
959 960 961 |
# File 'lib/v20190116/models.rb', line 959 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 |
# File 'lib/v20190116/models.rb', line 970 def deserialize(params) @RoleName = params['RoleName'] @PolicyDocument = params['PolicyDocument'] @Description = params['Description'] @ConsoleLogin = params['ConsoleLogin'] @SessionDuration = params['SessionDuration'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| = RoleTags.new .deserialize(i) @Tags << end end end |