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.



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

#HostListObject

Parameters:

  • TotalCount:

    防护域名列表的长度

  • HostList:

    防护域名的列表

  • RequestId:

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



7906
7907
7908
# File 'lib/v20180125/models.rb', line 7906

def HostList
  @HostList
end

#RequestIdObject

Parameters:

  • TotalCount:

    防护域名列表的长度

  • HostList:

    防护域名的列表

  • RequestId:

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



7906
7907
7908
# File 'lib/v20180125/models.rb', line 7906

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    防护域名列表的长度

  • HostList:

    防护域名的列表

  • RequestId:

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



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