Class: TencentCloud::Billing::V20180709::DescribeVoucherUsageDetailsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::DescribeVoucherUsageDetailsResponse
- Defined in:
- lib/v20180709/models.rb
Overview
DescribeVoucherUsageDetails返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, totalusedamount = nil, usagerecords = nil, requestid = nil) ⇒ DescribeVoucherUsageDetailsResponse
constructor
A new instance of DescribeVoucherUsageDetailsResponse.
Constructor Details
#initialize(totalcount = nil, totalusedamount = nil, usagerecords = nil, requestid = nil) ⇒ DescribeVoucherUsageDetailsResponse
Returns a new instance of DescribeVoucherUsageDetailsResponse.
9810 9811 9812 9813 9814 9815 |
# File 'lib/v20180709/models.rb', line 9810 def initialize(totalcount=nil, totalusedamount=nil, usagerecords=nil, requestid=nil) @TotalCount = totalcount @TotalUsedAmount = totalusedamount @UsageRecords = usagerecords @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
9808 9809 9810 |
# File 'lib/v20180709/models.rb', line 9808 def RequestId @RequestId end |
#TotalCount ⇒ Object
9808 9809 9810 |
# File 'lib/v20180709/models.rb', line 9808 def TotalCount @TotalCount end |
#TotalUsedAmount ⇒ Object
9808 9809 9810 |
# File 'lib/v20180709/models.rb', line 9808 def TotalUsedAmount @TotalUsedAmount end |
#UsageRecords ⇒ Object
9808 9809 9810 |
# File 'lib/v20180709/models.rb', line 9808 def UsageRecords @UsageRecords end |
Instance Method Details
#deserialize(params) ⇒ Object
9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 |
# File 'lib/v20180709/models.rb', line 9817 def deserialize(params) @TotalCount = params['TotalCount'] @TotalUsedAmount = params['TotalUsedAmount'] unless params['UsageRecords'].nil? @UsageRecords = [] params['UsageRecords'].each do |i| usagerecords_tmp = UsageRecords.new usagerecords_tmp.deserialize(i) @UsageRecords << usagerecords_tmp end end @RequestId = params['RequestId'] end |