Class: TencentCloud::Mongodb::V20180408::SpecificationInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mongodb::V20180408::SpecificationInfo
- Defined in:
- lib/v20180408/models.rb
Overview
实例规格信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(region = nil, zone = nil, specitems = nil) ⇒ SpecificationInfo
constructor
A new instance of SpecificationInfo.
Constructor Details
#initialize(region = nil, zone = nil, specitems = nil) ⇒ SpecificationInfo
Returns a new instance of SpecificationInfo.
1011 1012 1013 1014 1015 |
# File 'lib/v20180408/models.rb', line 1011 def initialize(region=nil, zone=nil, specitems=nil) @Region = region @Zone = zone @SpecItems = specitems end |
Instance Attribute Details
#Region ⇒ Object
1009 1010 1011 |
# File 'lib/v20180408/models.rb', line 1009 def Region @Region end |
#SpecItems ⇒ Object
1009 1010 1011 |
# File 'lib/v20180408/models.rb', line 1009 def SpecItems @SpecItems end |
#Zone ⇒ Object
1009 1010 1011 |
# File 'lib/v20180408/models.rb', line 1009 def Zone @Zone end |
Instance Method Details
#deserialize(params) ⇒ Object
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 |
# File 'lib/v20180408/models.rb', line 1017 def deserialize(params) @Region = params['Region'] @Zone = params['Zone'] unless params['SpecItems'].nil? @SpecItems = [] params['SpecItems'].each do |i| specitem_tmp = SpecItem.new specitem_tmp.deserialize(i) @SpecItems << specitem_tmp end end end |