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
-
#HostList ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#RequestId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TotalCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
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.
5469 5470 5471 5472 5473 |
# File 'lib/v20180125/models.rb', line 5469 def initialize(totalcount=nil, hostlist=nil, requestid=nil) @TotalCount = totalcount @HostList = hostlist @RequestId = requestid end |
Instance Attribute Details
#HostList ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5467 5468 5469 |
# File 'lib/v20180125/models.rb', line 5467 def HostList @HostList end |
#RequestId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5467 5468 5469 |
# File 'lib/v20180125/models.rb', line 5467 def RequestId @RequestId end |
#TotalCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5467 5468 5469 |
# File 'lib/v20180125/models.rb', line 5467 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 |
# File 'lib/v20180125/models.rb', line 5475 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 |