Class: TencentCloud::Cdn::V20180606::ResourceOriginData

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

Overview

查询对象及其对应的回源明细数据

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource = nil, origindata = nil) ⇒ ResourceOriginData

Returns a new instance of ResourceOriginData.



11554
11555
11556
11557
# File 'lib/v20180606/models.rb', line 11554

def initialize(resource=nil, origindata=nil)
  @Resource = resource
  @OriginData = origindata
end

Instance Attribute Details

#OriginDataObject

具体域名:表示该域名明细数据 multiDomains:表示多域名汇总明细数据 项目 ID:指定项目查询时,显示为项目 ID all:账号维度明细数据

Parameters:

  • Resource:

    资源名称,根据查询条件不同分为以下几类:

  • OriginData:

    回源数据详情



11552
11553
11554
# File 'lib/v20180606/models.rb', line 11552

def OriginData
  @OriginData
end

#ResourceObject

具体域名:表示该域名明细数据 multiDomains:表示多域名汇总明细数据 项目 ID:指定项目查询时,显示为项目 ID all:账号维度明细数据

Parameters:

  • Resource:

    资源名称,根据查询条件不同分为以下几类:

  • OriginData:

    回源数据详情



11552
11553
11554
# File 'lib/v20180606/models.rb', line 11552

def Resource
  @Resource
end

Instance Method Details

#deserialize(params) ⇒ Object



11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
# File 'lib/v20180606/models.rb', line 11559

def deserialize(params)
  @Resource = params['Resource']
  unless params['OriginData'].nil?
    @OriginData = []
    params['OriginData'].each do |i|
      cdndata_tmp = CdnData.new
      cdndata_tmp.deserialize(i)
      @OriginData << cdndata_tmp
    end
  end
end