Class: TencentCloud::Cdn::V20180606::DescribeScdnBotRecordsResponse

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

Overview

DescribeScdnBotRecords返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = nil, totalcount = nil, requestid = nil) ⇒ DescribeScdnBotRecordsResponse

Returns a new instance of DescribeScdnBotRecordsResponse.



5694
5695
5696
5697
5698
# File 'lib/v20180606/models.rb', line 5694

def initialize(data=nil, totalcount=nil, requestid=nil)
  @Data = data
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#DataObject

Parameters:

  • Data:

    BOT拦截结果数组

  • TotalCount:

    记录数量

  • RequestId:

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



5692
5693
5694
# File 'lib/v20180606/models.rb', line 5692

def Data
  @Data
end

#RequestIdObject

Parameters:

  • Data:

    BOT拦截结果数组

  • TotalCount:

    记录数量

  • RequestId:

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



5692
5693
5694
# File 'lib/v20180606/models.rb', line 5692

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • Data:

    BOT拦截结果数组

  • TotalCount:

    记录数量

  • RequestId:

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



5692
5693
5694
# File 'lib/v20180606/models.rb', line 5692

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
# File 'lib/v20180606/models.rb', line 5700

def deserialize(params)
  unless params['Data'].nil?
    @Data = []
    params['Data'].each do |i|
      botrecord_tmp = BotRecord.new
      botrecord_tmp.deserialize(i)
      @Data << botrecord_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end