Class: TencentCloud::Sqlserver::V20180328::AccountCreateInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Sqlserver::V20180328::AccountCreateInfo
- Defined in:
- lib/v20180328/models.rb
Overview
账号创建信息
Instance Attribute Summary collapse
- #AccountType ⇒ Object
- #Authentication ⇒ Object
- #DBPrivileges ⇒ Object
- #EncryptedVersion ⇒ Object
- #IsAdmin ⇒ Object
- #IsCam ⇒ Object
- #Password ⇒ Object
- #Remark ⇒ Object
- #UserName ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(username = nil, password = nil, dbprivileges = nil, remark = nil, isadmin = nil, authentication = nil, accounttype = nil, iscam = nil, encryptedversion = nil) ⇒ AccountCreateInfo
constructor
A new instance of AccountCreateInfo.
Constructor Details
#initialize(username = nil, password = nil, dbprivileges = nil, remark = nil, isadmin = nil, authentication = nil, accounttype = nil, iscam = nil, encryptedversion = nil) ⇒ AccountCreateInfo
Returns a new instance of AccountCreateInfo.
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/v20180328/models.rb', line 43 def initialize(username=nil, password=nil, dbprivileges=nil, remark=nil, isadmin=nil, authentication=nil, accounttype=nil, iscam=nil, encryptedversion=nil) @UserName = username @Password = password @DBPrivileges = dbprivileges @Remark = remark @IsAdmin = isadmin @Authentication = authentication @AccountType = accounttype @IsCam = iscam @EncryptedVersion = encryptedversion end |
Instance Attribute Details
#AccountType ⇒ Object
41 42 43 |
# File 'lib/v20180328/models.rb', line 41 def AccountType @AccountType end |
#Authentication ⇒ Object
41 42 43 |
# File 'lib/v20180328/models.rb', line 41 def Authentication @Authentication end |
#DBPrivileges ⇒ Object
41 42 43 |
# File 'lib/v20180328/models.rb', line 41 def DBPrivileges @DBPrivileges end |
#EncryptedVersion ⇒ Object
41 42 43 |
# File 'lib/v20180328/models.rb', line 41 def EncryptedVersion @EncryptedVersion end |
#IsAdmin ⇒ Object
41 42 43 |
# File 'lib/v20180328/models.rb', line 41 def IsAdmin @IsAdmin end |
#IsCam ⇒ Object
41 42 43 |
# File 'lib/v20180328/models.rb', line 41 def IsCam @IsCam end |
#Password ⇒ Object
41 42 43 |
# File 'lib/v20180328/models.rb', line 41 def Password @Password end |
#Remark ⇒ Object
41 42 43 |
# File 'lib/v20180328/models.rb', line 41 def Remark @Remark end |
#UserName ⇒ Object
41 42 43 |
# File 'lib/v20180328/models.rb', line 41 def UserName @UserName end |
Instance Method Details
#deserialize(params) ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/v20180328/models.rb', line 55 def deserialize(params) @UserName = params['UserName'] @Password = params['Password'] unless params['DBPrivileges'].nil? @DBPrivileges = [] params['DBPrivileges'].each do |i| dbprivilege_tmp = DBPrivilege.new dbprivilege_tmp.deserialize(i) @DBPrivileges << dbprivilege_tmp end end @Remark = params['Remark'] @IsAdmin = params['IsAdmin'] @Authentication = params['Authentication'] @AccountType = params['AccountType'] @IsCam = params['IsCam'] @EncryptedVersion = params['EncryptedVersion'] end |