Class: TencentCloud::Cfs::V20190719::AvailableZone
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cfs::V20190719::AvailableZone
- Defined in:
- lib/v20190719/models.rb
Overview
版本控制-可用区数组
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(zone = nil, zoneid = nil, zonecnname = nil, types = nil, zonename = nil) ⇒ AvailableZone
constructor
A new instance of AvailableZone.
Constructor Details
#initialize(zone = nil, zoneid = nil, zonecnname = nil, types = nil, zonename = nil) ⇒ AvailableZone
Returns a new instance of AvailableZone.
234 235 236 237 238 239 240 |
# File 'lib/v20190719/models.rb', line 234 def initialize(zone=nil, zoneid=nil, zonecnname=nil, types=nil, zonename=nil) @Zone = zone @ZoneId = zoneid @ZoneCnName = zonecnname @Types = types @ZoneName = zonename end |
Instance Attribute Details
#Types ⇒ Object
232 233 234 |
# File 'lib/v20190719/models.rb', line 232 def Types @Types end |
#Zone ⇒ Object
232 233 234 |
# File 'lib/v20190719/models.rb', line 232 def Zone @Zone end |
#ZoneCnName ⇒ Object
232 233 234 |
# File 'lib/v20190719/models.rb', line 232 def ZoneCnName @ZoneCnName end |
#ZoneId ⇒ Object
232 233 234 |
# File 'lib/v20190719/models.rb', line 232 def ZoneId @ZoneId end |
#ZoneName ⇒ Object
232 233 234 |
# File 'lib/v20190719/models.rb', line 232 def ZoneName @ZoneName end |
Instance Method Details
#deserialize(params) ⇒ Object
242 243 244 245 246 247 248 249 250 251 252 253 254 255 |
# File 'lib/v20190719/models.rb', line 242 def deserialize(params) @Zone = params['Zone'] @ZoneId = params['ZoneId'] @ZoneCnName = params['ZoneCnName'] unless params['Types'].nil? @Types = [] params['Types'].each do |i| availabletype_tmp = AvailableType.new availabletype_tmp.deserialize(i) @Types << availabletype_tmp end end @ZoneName = params['ZoneName'] end |