Class: TencentCloud::Billing::V20180709::DescribeAllocationSummaryByItemResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::DescribeAllocationSummaryByItemResponse
- Defined in:
- lib/v20180709/models.rb
Overview
DescribeAllocationSummaryByItem返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(recordnum = nil, total = nil, detail = nil, requestid = nil) ⇒ DescribeAllocationSummaryByItemResponse
constructor
A new instance of DescribeAllocationSummaryByItemResponse.
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
#Detail ⇒ Object
6640 6641 6642 |
# File 'lib/v20180709/models.rb', line 6640 def Detail @Detail end |
#RecordNum ⇒ Object
6640 6641 6642 |
# File 'lib/v20180709/models.rb', line 6640 def RecordNum @RecordNum end |
#RequestId ⇒ Object
6640 6641 6642 |
# File 'lib/v20180709/models.rb', line 6640 def RequestId @RequestId end |
#Total ⇒ Object
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 |