Class: TencentCloud::Cdn::V20180606::DescribeUrlViolationsResponse

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

Overview

DescribeUrlViolations返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(urlrecordlist = nil, totalcount = nil, requestid = nil) ⇒ DescribeUrlViolationsResponse

Returns a new instance of DescribeUrlViolationsResponse.



6179
6180
6181
6182
6183
# File 'lib/v20180606/models.rb', line 6179

def initialize(urlrecordlist=nil, totalcount=nil, requestid=nil)
  @UrlRecordList = urlrecordlist
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

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

Parameters:

  • UrlRecordList:

    违规 URL 详情

  • TotalCount:

    记录总数,用于分页

  • RequestId:

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



6177
6178
6179
# File 'lib/v20180606/models.rb', line 6177

def RequestId
  @RequestId
end

#TotalCountObject

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

Parameters:

  • UrlRecordList:

    违规 URL 详情

  • TotalCount:

    记录总数,用于分页

  • RequestId:

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



6177
6178
6179
# File 'lib/v20180606/models.rb', line 6177

def TotalCount
  @TotalCount
end

#UrlRecordListObject

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

Parameters:

  • UrlRecordList:

    违规 URL 详情

  • TotalCount:

    记录总数,用于分页

  • RequestId:

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



6177
6178
6179
# File 'lib/v20180606/models.rb', line 6177

def UrlRecordList
  @UrlRecordList
end

Instance Method Details

#deserialize(params) ⇒ Object



6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
# File 'lib/v20180606/models.rb', line 6185

def deserialize(params)
  unless params['UrlRecordList'].nil?
    @UrlRecordList = []
    params['UrlRecordList'].each do |i|
      violationurl_tmp = ViolationUrl.new
      violationurl_tmp.deserialize(i)
      @UrlRecordList << violationurl_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end