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