Class: TencentCloud::Cdn::V20180606::ListTopDataResponse

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

Overview

ListTopData返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = nil, requestid = nil) ⇒ ListTopDataResponse

Returns a new instance of ListTopDataResponse.



9231
9232
9233
9234
# File 'lib/v20180606/models.rb', line 9231

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

Instance Attribute Details

#DataObject

Parameters:

  • Data:

    各个资源的Top 访问数据详情。

  • RequestId:

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



9229
9230
9231
# File 'lib/v20180606/models.rb', line 9229

def Data
  @Data
end

#RequestIdObject

Parameters:

  • Data:

    各个资源的Top 访问数据详情。

  • RequestId:

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



9229
9230
9231
# File 'lib/v20180606/models.rb', line 9229

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
# File 'lib/v20180606/models.rb', line 9236

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