Class: TencentCloud::Billing::V20180709::DescribeCostSummaryByProductResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::DescribeCostSummaryByProductResponse
- Defined in:
- lib/v20180709/models.rb
Overview
DescribeCostSummaryByProduct返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(ready = nil, total = nil, data = nil, recordnum = nil, requestid = nil) ⇒ DescribeCostSummaryByProductResponse
constructor
A new instance of DescribeCostSummaryByProductResponse.
Constructor Details
#initialize(ready = nil, total = nil, data = nil, recordnum = nil, requestid = nil) ⇒ DescribeCostSummaryByProductResponse
Returns a new instance of DescribeCostSummaryByProductResponse.
8641 8642 8643 8644 8645 8646 8647 |
# File 'lib/v20180709/models.rb', line 8641 def initialize(ready=nil, total=nil, data=nil, recordnum=nil, requestid=nil) @Ready = ready @Total = total @Data = data @RecordNum = recordnum @RequestId = requestid end |
Instance Attribute Details
#Data ⇒ Object
8639 8640 8641 |
# File 'lib/v20180709/models.rb', line 8639 def Data @Data end |
#Ready ⇒ Object
8639 8640 8641 |
# File 'lib/v20180709/models.rb', line 8639 def Ready @Ready end |
#RecordNum ⇒ Object
8639 8640 8641 |
# File 'lib/v20180709/models.rb', line 8639 def RecordNum @RecordNum end |
#RequestId ⇒ Object
8639 8640 8641 |
# File 'lib/v20180709/models.rb', line 8639 def RequestId @RequestId end |
#Total ⇒ Object
8639 8640 8641 |
# File 'lib/v20180709/models.rb', line 8639 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 |
# File 'lib/v20180709/models.rb', line 8649 def deserialize(params) @Ready = params['Ready'] unless params['Total'].nil? @Total = ConsumptionSummaryTotal.new @Total.deserialize(params['Total']) end unless params['Data'].nil? @Data = [] params['Data'].each do |i| consumptionbusinesssummarydataitem_tmp = ConsumptionBusinessSummaryDataItem.new consumptionbusinesssummarydataitem_tmp.deserialize(i) @Data << consumptionbusinesssummarydataitem_tmp end end @RecordNum = params['RecordNum'] @RequestId = params['RequestId'] end |