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.
300 301 302 303 304 305 306 |
# File 'lib/v20190719/models.rb', line 300 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
298 299 300 |
# File 'lib/v20190719/models.rb', line 298 def Types @Types end |
#Zone ⇒ Object
298 299 300 |
# File 'lib/v20190719/models.rb', line 298 def Zone @Zone end |
#ZoneCnName ⇒ Object
298 299 300 |
# File 'lib/v20190719/models.rb', line 298 def ZoneCnName @ZoneCnName end |
#ZoneId ⇒ Object
298 299 300 |
# File 'lib/v20190719/models.rb', line 298 def ZoneId @ZoneId end |
#ZoneName ⇒ Object
298 299 300 |
# File 'lib/v20190719/models.rb', line 298 def ZoneName @ZoneName end |
Instance Method Details
#deserialize(params) ⇒ Object
308 309 310 311 312 313 314 315 316 317 318 319 320 321 |
# File 'lib/v20190719/models.rb', line 308 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 |