Class: TencentCloud::Billing::V20180709::DescribeAllocationSummaryByItemResponse

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

Overview

DescribeAllocationSummaryByItem返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(recordnum = nil, total = nil, detail = nil, requestid = nil) ⇒ DescribeAllocationSummaryByItemResponse

Returns a new instance of DescribeAllocationSummaryByItemResponse.



6642
6643
6644
6645
6646
6647
# File 'lib/v20180709/models.rb', line 6642

def initialize(recordnum=nil, total=nil, detail=nil, requestid=nil)
  @RecordNum = recordnum
  @Total = total
  @Detail = detail
  @RequestId = requestid
end

Instance Attribute Details

#DetailObject

Parameters:

  • RecordNum:

    总条数

  • Total:

    分账账单概览金额汇总

  • Detail:

    分账账单按组件汇总明细

  • RequestId:

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



6640
6641
6642
# File 'lib/v20180709/models.rb', line 6640

def Detail
  @Detail
end

#RecordNumObject

Parameters:

  • RecordNum:

    总条数

  • Total:

    分账账单概览金额汇总

  • Detail:

    分账账单按组件汇总明细

  • RequestId:

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



6640
6641
6642
# File 'lib/v20180709/models.rb', line 6640

def RecordNum
  @RecordNum
end

#RequestIdObject

Parameters:

  • RecordNum:

    总条数

  • Total:

    分账账单概览金额汇总

  • Detail:

    分账账单按组件汇总明细

  • RequestId:

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



6640
6641
6642
# File 'lib/v20180709/models.rb', line 6640

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • RecordNum:

    总条数

  • Total:

    分账账单概览金额汇总

  • Detail:

    分账账单按组件汇总明细

  • RequestId:

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



6640
6641
6642
# File 'lib/v20180709/models.rb', line 6640

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
# File 'lib/v20180709/models.rb', line 6649

def deserialize(params)
  @RecordNum = params['RecordNum']
  unless params['Total'].nil?
    @Total = AllocationOverviewTotal.new
    @Total.deserialize(params['Total'])
  end
  unless params['Detail'].nil?
    @Detail = []
    params['Detail'].each do |i|
      allocationsummarybyitem_tmp = AllocationSummaryByItem.new
      allocationsummarybyitem_tmp.deserialize(i)
      @Detail << allocationsummarybyitem_tmp
    end
  end
  @RequestId = params['RequestId']
end