Class: TencentCloud::Dbdc::V20201029::DescribeHostListResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dbdc::V20201029::DescribeHostListResponse
- Defined in:
- lib/v20201029/models.rb
Overview
DescribeHostList返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, hosts = nil, requestid = nil) ⇒ DescribeHostListResponse
constructor
A new instance of DescribeHostListResponse.
Constructor Details
#initialize(totalcount = nil, hosts = nil, requestid = nil) ⇒ DescribeHostListResponse
Returns a new instance of DescribeHostListResponse.
222 223 224 225 226 |
# File 'lib/v20201029/models.rb', line 222 def initialize(totalcount=nil, hosts=nil, requestid=nil) @TotalCount = totalcount @Hosts = hosts @RequestId = requestid end |
Instance Attribute Details
#Hosts ⇒ Object
220 221 222 |
# File 'lib/v20201029/models.rb', line 220 def Hosts @Hosts end |
#RequestId ⇒ Object
220 221 222 |
# File 'lib/v20201029/models.rb', line 220 def RequestId @RequestId end |
#TotalCount ⇒ Object
220 221 222 |
# File 'lib/v20201029/models.rb', line 220 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
228 229 230 231 232 233 234 235 236 237 238 239 |
# File 'lib/v20201029/models.rb', line 228 def deserialize(params) @TotalCount = params['TotalCount'] unless params['Hosts'].nil? @Hosts = [] params['Hosts'].each do |i| hostdetail_tmp = HostDetail.new hostdetail_tmp.deserialize(i) @Hosts << hostdetail_tmp end end @RequestId = params['RequestId'] end |