Class: TencentCloud::Billing::V20180709::DescribeCostSummaryByProjectResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::DescribeCostSummaryByProjectResponse
- Defined in:
- lib/v20180709/models.rb
Overview
DescribeCostSummaryByProject返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(ready = nil, total = nil, data = nil, recordnum = nil, requestid = nil) ⇒ DescribeCostSummaryByProjectResponse
constructor
A new instance of DescribeCostSummaryByProjectResponse.
Constructor Details
#initialize(ready = nil, total = nil, data = nil, recordnum = nil, requestid = nil) ⇒ DescribeCostSummaryByProjectResponse
Returns a new instance of DescribeCostSummaryByProjectResponse.
8719 8720 8721 8722 8723 8724 8725 |
# File 'lib/v20180709/models.rb', line 8719 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
8717 8718 8719 |
# File 'lib/v20180709/models.rb', line 8717 def Data @Data end |
#Ready ⇒ Object
8717 8718 8719 |
# File 'lib/v20180709/models.rb', line 8717 def Ready @Ready end |
#RecordNum ⇒ Object
8717 8718 8719 |
# File 'lib/v20180709/models.rb', line 8717 def RecordNum @RecordNum end |
#RequestId ⇒ Object
8717 8718 8719 |
# File 'lib/v20180709/models.rb', line 8717 def RequestId @RequestId end |
#Total ⇒ Object
8717 8718 8719 |
# File 'lib/v20180709/models.rb', line 8717 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 |
# File 'lib/v20180709/models.rb', line 8727 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| consumptionprojectsummarydataitem_tmp = ConsumptionProjectSummaryDataItem.new consumptionprojectsummarydataitem_tmp.deserialize(i) @Data << consumptionprojectsummarydataitem_tmp end end @RecordNum = params['RecordNum'] @RequestId = params['RequestId'] end |