Class: TencentCloud::Billing::V20180709::DescribeCostSummaryByRegionResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::DescribeCostSummaryByRegionResponse
- Defined in:
- lib/v20180709/models.rb
Overview
DescribeCostSummaryByRegion返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(ready = nil, total = nil, data = nil, recordnum = nil, requestid = nil) ⇒ DescribeCostSummaryByRegionResponse
constructor
A new instance of DescribeCostSummaryByRegionResponse.
Constructor Details
#initialize(ready = nil, total = nil, data = nil, recordnum = nil, requestid = nil) ⇒ DescribeCostSummaryByRegionResponse
Returns a new instance of DescribeCostSummaryByRegionResponse.
8797 8798 8799 8800 8801 8802 8803 |
# File 'lib/v20180709/models.rb', line 8797 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
8795 8796 8797 |
# File 'lib/v20180709/models.rb', line 8795 def Data @Data end |
#Ready ⇒ Object
8795 8796 8797 |
# File 'lib/v20180709/models.rb', line 8795 def Ready @Ready end |
#RecordNum ⇒ Object
8795 8796 8797 |
# File 'lib/v20180709/models.rb', line 8795 def RecordNum @RecordNum end |
#RequestId ⇒ Object
8795 8796 8797 |
# File 'lib/v20180709/models.rb', line 8795 def RequestId @RequestId end |
#Total ⇒ Object
8795 8796 8797 |
# File 'lib/v20180709/models.rb', line 8795 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 |
# File 'lib/v20180709/models.rb', line 8805 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| consumptionregionsummarydataitem_tmp = ConsumptionRegionSummaryDataItem.new consumptionregionsummarydataitem_tmp.deserialize(i) @Data << consumptionregionsummarydataitem_tmp end end @RecordNum = params['RecordNum'] @RequestId = params['RequestId'] end |