Class: TencentCloud::Sqlserver::V20180328::AccountPrivilegeModifyInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Sqlserver::V20180328::AccountPrivilegeModifyInfo
- Defined in:
- lib/v20180328/models.rb
Overview
数据库账号权限变更信息
Instance Attribute Summary collapse
- #AccAllDB ⇒ Object
- #AccountType ⇒ Object
- #DBPrivileges ⇒ Object
- #IsAdmin ⇒ Object
- #UserName ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(username = nil, dbprivileges = nil, isadmin = nil, accounttype = nil, accalldb = nil) ⇒ AccountPrivilegeModifyInfo
constructor
A new instance of AccountPrivilegeModifyInfo.
Constructor Details
#initialize(username = nil, dbprivileges = nil, isadmin = nil, accounttype = nil, accalldb = nil) ⇒ AccountPrivilegeModifyInfo
Returns a new instance of AccountPrivilegeModifyInfo.
209 210 211 212 213 214 215 |
# File 'lib/v20180328/models.rb', line 209 def initialize(username=nil, dbprivileges=nil, isadmin=nil, accounttype=nil, accalldb=nil) @UserName = username @DBPrivileges = dbprivileges @IsAdmin = isadmin @AccountType = accounttype @AccAllDB = accalldb end |
Instance Attribute Details
#AccAllDB ⇒ Object
207 208 209 |
# File 'lib/v20180328/models.rb', line 207 def AccAllDB @AccAllDB end |
#AccountType ⇒ Object
207 208 209 |
# File 'lib/v20180328/models.rb', line 207 def AccountType @AccountType end |
#DBPrivileges ⇒ Object
207 208 209 |
# File 'lib/v20180328/models.rb', line 207 def DBPrivileges @DBPrivileges end |
#IsAdmin ⇒ Object
207 208 209 |
# File 'lib/v20180328/models.rb', line 207 def IsAdmin @IsAdmin end |
#UserName ⇒ Object
207 208 209 |
# File 'lib/v20180328/models.rb', line 207 def UserName @UserName end |
Instance Method Details
#deserialize(params) ⇒ Object
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/v20180328/models.rb', line 217 def deserialize(params) @UserName = params['UserName'] unless params['DBPrivileges'].nil? @DBPrivileges = [] params['DBPrivileges'].each do |i| = DBPrivilegeModifyInfo.new .deserialize(i) @DBPrivileges << end end @IsAdmin = params['IsAdmin'] @AccountType = params['AccountType'] unless params['AccAllDB'].nil? @AccAllDB = SelectAllDB.new @AccAllDB.deserialize(params['AccAllDB']) end end |