Class: TencentCloud::Sqlserver::V20180328::DBCreateInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Sqlserver::V20180328::DBCreateInfo
- Defined in:
- lib/v20180328/models.rb
Overview
数据库创建信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(dbname = nil, charset = nil, accounts = nil, remark = nil) ⇒ DBCreateInfo
constructor
A new instance of DBCreateInfo.
Constructor Details
#initialize(dbname = nil, charset = nil, accounts = nil, remark = nil) ⇒ DBCreateInfo
Returns a new instance of DBCreateInfo.
2135 2136 2137 2138 2139 2140 |
# File 'lib/v20180328/models.rb', line 2135 def initialize(dbname=nil, charset=nil, accounts=nil, remark=nil) @DBName = dbname @Charset = charset @Accounts = accounts @Remark = remark end |
Instance Attribute Details
#Accounts ⇒ Object
2133 2134 2135 |
# File 'lib/v20180328/models.rb', line 2133 def Accounts @Accounts end |
#Charset ⇒ Object
2133 2134 2135 |
# File 'lib/v20180328/models.rb', line 2133 def Charset @Charset end |
#DBName ⇒ Object
2133 2134 2135 |
# File 'lib/v20180328/models.rb', line 2133 def DBName @DBName end |
#Remark ⇒ Object
2133 2134 2135 |
# File 'lib/v20180328/models.rb', line 2133 def Remark @Remark end |
Instance Method Details
#deserialize(params) ⇒ Object
2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 |
# File 'lib/v20180328/models.rb', line 2142 def deserialize(params) @DBName = params['DBName'] @Charset = params['Charset'] unless params['Accounts'].nil? @Accounts = [] params['Accounts'].each do |i| accountprivilege_tmp = AccountPrivilege.new accountprivilege_tmp.deserialize(i) @Accounts << accountprivilege_tmp end end @Remark = params['Remark'] end |