Class: TencentCloud::Waf::V20180125::DescribeHostsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::DescribeHostsResponse
- Defined in:
- lib/v20180125/models.rb
Overview
DescribeHosts返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, hostlist = nil, requestid = nil) ⇒ DescribeHostsResponse
constructor
A new instance of DescribeHostsResponse.
Constructor Details
#initialize(totalcount = nil, hostlist = nil, requestid = nil) ⇒ DescribeHostsResponse
Returns a new instance of DescribeHostsResponse.
7908 7909 7910 7911 7912 |
# File 'lib/v20180125/models.rb', line 7908 def initialize(totalcount=nil, hostlist=nil, requestid=nil) @TotalCount = totalcount @HostList = hostlist @RequestId = requestid end |
Instance Attribute Details
#HostList ⇒ Object
7906 7907 7908 |
# File 'lib/v20180125/models.rb', line 7906 def HostList @HostList end |
#RequestId ⇒ Object
7906 7907 7908 |
# File 'lib/v20180125/models.rb', line 7906 def RequestId @RequestId end |
#TotalCount ⇒ Object
7906 7907 7908 |
# File 'lib/v20180125/models.rb', line 7906 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 |
# File 'lib/v20180125/models.rb', line 7914 def deserialize(params) @TotalCount = params['TotalCount'] unless params['HostList'].nil? @HostList = [] params['HostList'].each do |i| hostrecord_tmp = HostRecord.new hostrecord_tmp.deserialize(i) @HostList << hostrecord_tmp end end @RequestId = params['RequestId'] end |