Class: TencentCloud::Waf::V20180125::DescribeHostsResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180125/models.rb

Overview

DescribeHosts返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, hostlist = nil, requestid = nil) ⇒ DescribeHostsResponse

Returns a new instance of DescribeHostsResponse.



4865
4866
4867
4868
4869
# File 'lib/v20180125/models.rb', line 4865

def initialize(totalcount=nil, hostlist=nil, requestid=nil)
  @TotalCount = totalcount
  @HostList = hostlist
  @RequestId = requestid
end

Instance Attribute Details

#HostListObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    防护域名列表的长度

  • HostList:

    防护域名的列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



4863
4864
4865
# File 'lib/v20180125/models.rb', line 4863

def HostList
  @HostList
end

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    防护域名列表的长度

  • HostList:

    防护域名的列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



4863
4864
4865
# File 'lib/v20180125/models.rb', line 4863

def RequestId
  @RequestId
end

#TotalCountObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    防护域名列表的长度

  • HostList:

    防护域名的列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



4863
4864
4865
# File 'lib/v20180125/models.rb', line 4863

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
# File 'lib/v20180125/models.rb', line 4871

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