Class: TencentCloud::Billing::V20180709::DescribeAllocationSummaryByBusinessResponse

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

Overview

DescribeAllocationSummaryByBusiness返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribeAllocationSummaryByBusinessResponse.



6485
6486
6487
6488
6489
6490
# File 'lib/v20180709/models.rb', line 6485

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。



6483
6484
6485
# File 'lib/v20180709/models.rb', line 6483

def Detail
  @Detail
end

#RecordNumObject

Parameters:

  • RecordNum:

    总条数

  • Total:

    分账账单概览金额汇总

  • Detail:

    分账账单按产品汇总明细

  • RequestId:

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



6483
6484
6485
# File 'lib/v20180709/models.rb', line 6483

def RecordNum
  @RecordNum
end

#RequestIdObject

Parameters:

  • RecordNum:

    总条数

  • Total:

    分账账单概览金额汇总

  • Detail:

    分账账单按产品汇总明细

  • RequestId:

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



6483
6484
6485
# File 'lib/v20180709/models.rb', line 6483

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • RecordNum:

    总条数

  • Total:

    分账账单概览金额汇总

  • Detail:

    分账账单按产品汇总明细

  • RequestId:

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



6483
6484
6485
# File 'lib/v20180709/models.rb', line 6483

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
# File 'lib/v20180709/models.rb', line 6492

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|
      allocationsummarybybusiness_tmp = AllocationSummaryByBusiness.new
      allocationsummarybybusiness_tmp.deserialize(i)
      @Detail << allocationsummarybybusiness_tmp
    end
  end
  @RequestId = params['RequestId']
end