Class: TencentCloud::Billing::V20180709::DescribeVoucherInfoResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::DescribeVoucherInfoResponse
- Defined in:
- lib/v20180709/models.rb
Overview
DescribeVoucherInfo返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, totalbalance = nil, voucherinfos = nil, requestid = nil) ⇒ DescribeVoucherInfoResponse
constructor
A new instance of DescribeVoucherInfoResponse.
Constructor Details
#initialize(totalcount = nil, totalbalance = nil, voucherinfos = nil, requestid = nil) ⇒ DescribeVoucherInfoResponse
Returns a new instance of DescribeVoucherInfoResponse.
9747 9748 9749 9750 9751 9752 |
# File 'lib/v20180709/models.rb', line 9747 def initialize(totalcount=nil, totalbalance=nil, voucherinfos=nil, requestid=nil) @TotalCount = totalcount @TotalBalance = totalbalance @VoucherInfos = voucherinfos @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
9745 9746 9747 |
# File 'lib/v20180709/models.rb', line 9745 def RequestId @RequestId end |
#TotalBalance ⇒ Object
9745 9746 9747 |
# File 'lib/v20180709/models.rb', line 9745 def TotalBalance @TotalBalance end |
#TotalCount ⇒ Object
9745 9746 9747 |
# File 'lib/v20180709/models.rb', line 9745 def TotalCount @TotalCount end |
#VoucherInfos ⇒ Object
9745 9746 9747 |
# File 'lib/v20180709/models.rb', line 9745 def VoucherInfos @VoucherInfos end |
Instance Method Details
#deserialize(params) ⇒ Object
9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 |
# File 'lib/v20180709/models.rb', line 9754 def deserialize(params) @TotalCount = params['TotalCount'] @TotalBalance = params['TotalBalance'] unless params['VoucherInfos'].nil? @VoucherInfos = [] params['VoucherInfos'].each do |i| voucherinfos_tmp = VoucherInfos.new voucherinfos_tmp.deserialize(i) @VoucherInfos << voucherinfos_tmp end end @RequestId = params['RequestId'] end |