Class: TencentCloud::Bm::V20180423::RegionInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Bm::V20180423::RegionInfo
- Defined in:
- lib/v20180423/models.rb
Overview
地域信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(region = nil, regionid = nil, regiondescription = nil, zoneinfoset = nil) ⇒ RegionInfo
constructor
A new instance of RegionInfo.
Constructor Details
#initialize(region = nil, regionid = nil, regiondescription = nil, zoneinfoset = nil) ⇒ RegionInfo
Returns a new instance of RegionInfo.
3394 3395 3396 3397 3398 3399 |
# File 'lib/v20180423/models.rb', line 3394 def initialize(region=nil, regionid=nil, regiondescription=nil, zoneinfoset=nil) @Region = region @RegionId = regionid @RegionDescription = regiondescription @ZoneInfoSet = zoneinfoset end |
Instance Attribute Details
#Region ⇒ Object
3392 3393 3394 |
# File 'lib/v20180423/models.rb', line 3392 def Region @Region end |
#RegionDescription ⇒ Object
3392 3393 3394 |
# File 'lib/v20180423/models.rb', line 3392 def RegionDescription @RegionDescription end |
#RegionId ⇒ Object
3392 3393 3394 |
# File 'lib/v20180423/models.rb', line 3392 def RegionId @RegionId end |
#ZoneInfoSet ⇒ Object
3392 3393 3394 |
# File 'lib/v20180423/models.rb', line 3392 def ZoneInfoSet @ZoneInfoSet end |
Instance Method Details
#deserialize(params) ⇒ Object
3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 |
# File 'lib/v20180423/models.rb', line 3401 def deserialize(params) @Region = params['Region'] @RegionId = params['RegionId'] @RegionDescription = params['RegionDescription'] unless params['ZoneInfoSet'].nil? @ZoneInfoSet = [] params['ZoneInfoSet'].each do |i| zoneinfo_tmp = ZoneInfo.new zoneinfo_tmp.deserialize(i) @ZoneInfoSet << zoneinfo_tmp end end end |