Class: TencentCloud::Api::V20201106::DescribeZonesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Api::V20201106::DescribeZonesResponse
- Defined in:
- lib/v20201106/models.rb
Overview
DescribeZones返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, zoneset = nil, requestid = nil) ⇒ DescribeZonesResponse
constructor
A new instance of DescribeZonesResponse.
Constructor Details
#initialize(totalcount = nil, zoneset = nil, requestid = nil) ⇒ DescribeZonesResponse
Returns a new instance of DescribeZonesResponse.
145 146 147 148 149 |
# File 'lib/v20201106/models.rb', line 145 def initialize(totalcount=nil, zoneset=nil, requestid=nil) @TotalCount = totalcount @ZoneSet = zoneset @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
143 144 145 |
# File 'lib/v20201106/models.rb', line 143 def RequestId @RequestId end |
#TotalCount ⇒ Object
143 144 145 |
# File 'lib/v20201106/models.rb', line 143 def TotalCount @TotalCount end |
#ZoneSet ⇒ Object
143 144 145 |
# File 'lib/v20201106/models.rb', line 143 def ZoneSet @ZoneSet end |
Instance Method Details
#deserialize(params) ⇒ Object
151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/v20201106/models.rb', line 151 def deserialize(params) @TotalCount = params['TotalCount'] unless params['ZoneSet'].nil? @ZoneSet = [] params['ZoneSet'].each do |i| zoneinfo_tmp = ZoneInfo.new zoneinfo_tmp.deserialize(i) @ZoneSet << zoneinfo_tmp end end @RequestId = params['RequestId'] end |