Class: TencentCloud::Dcdb::V20180411::RegionInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dcdb::V20180411::RegionInfo
- Defined in:
- lib/v20180411/models.rb
Overview
售卖可用区信息
Instance Attribute Summary collapse
- #AvailableChoice ⇒ Object
- #CpuType ⇒ Object
- #HostType ⇒ Object
- #Region ⇒ Object
- #RegionId ⇒ Object
- #RegionName ⇒ Object
- #ZoneList ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(region = nil, regionid = nil, regionname = nil, zonelist = nil, availablechoice = nil, hosttype = nil, cputype = nil) ⇒ RegionInfo
constructor
A new instance of RegionInfo.
Constructor Details
#initialize(region = nil, regionid = nil, regionname = nil, zonelist = nil, availablechoice = nil, hosttype = nil, cputype = nil) ⇒ RegionInfo
Returns a new instance of RegionInfo.
5622 5623 5624 5625 5626 5627 5628 5629 5630 |
# File 'lib/v20180411/models.rb', line 5622 def initialize(region=nil, regionid=nil, regionname=nil, zonelist=nil, availablechoice=nil, hosttype=nil, cputype=nil) @Region = region @RegionId = regionid @RegionName = regionname @ZoneList = zonelist @AvailableChoice = availablechoice @HostType = hosttype @CpuType = cputype end |
Instance Attribute Details
#AvailableChoice ⇒ Object
5620 5621 5622 |
# File 'lib/v20180411/models.rb', line 5620 def AvailableChoice @AvailableChoice end |
#CpuType ⇒ Object
5620 5621 5622 |
# File 'lib/v20180411/models.rb', line 5620 def CpuType @CpuType end |
#HostType ⇒ Object
5620 5621 5622 |
# File 'lib/v20180411/models.rb', line 5620 def HostType @HostType end |
#Region ⇒ Object
5620 5621 5622 |
# File 'lib/v20180411/models.rb', line 5620 def Region @Region end |
#RegionId ⇒ Object
5620 5621 5622 |
# File 'lib/v20180411/models.rb', line 5620 def RegionId @RegionId end |
#RegionName ⇒ Object
5620 5621 5622 |
# File 'lib/v20180411/models.rb', line 5620 def RegionName @RegionName end |
#ZoneList ⇒ Object
5620 5621 5622 |
# File 'lib/v20180411/models.rb', line 5620 def ZoneList @ZoneList end |
Instance Method Details
#deserialize(params) ⇒ Object
5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 |
# File 'lib/v20180411/models.rb', line 5632 def deserialize(params) @Region = params['Region'] @RegionId = params['RegionId'] @RegionName = params['RegionName'] unless params['ZoneList'].nil? @ZoneList = [] params['ZoneList'].each do |i| zonesinfo_tmp = ZonesInfo.new zonesinfo_tmp.deserialize(i) @ZoneList << zonesinfo_tmp end end unless params['AvailableChoice'].nil? @AvailableChoice = [] params['AvailableChoice'].each do |i| shardzonechooseinfo_tmp = ShardZoneChooseInfo.new shardzonechooseinfo_tmp.deserialize(i) @AvailableChoice << shardzonechooseinfo_tmp end end @HostType = params['HostType'] @CpuType = params['CpuType'] end |