Class: TencentCloud::Billing::V20180709::DescribeAllocationTrendByMonthResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::DescribeAllocationTrendByMonthResponse
- Defined in:
- lib/v20180709/models.rb
Overview
DescribeAllocationTrendByMonth返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(current = nil, previous = nil, stat = nil, requestid = nil) ⇒ DescribeAllocationTrendByMonthResponse
constructor
A new instance of DescribeAllocationTrendByMonthResponse.
Constructor Details
#initialize(current = nil, previous = nil, stat = nil, requestid = nil) ⇒ DescribeAllocationTrendByMonthResponse
Returns a new instance of DescribeAllocationTrendByMonthResponse.
6908 6909 6910 6911 6912 6913 |
# File 'lib/v20180709/models.rb', line 6908 def initialize(current=nil, previous=nil, stat=nil, requestid=nil) @Current = current @Previous = previous @Stat = stat @RequestId = requestid end |
Instance Attribute Details
#Current ⇒ Object
6906 6907 6908 |
# File 'lib/v20180709/models.rb', line 6906 def Current @Current end |
#Previous ⇒ Object
6906 6907 6908 |
# File 'lib/v20180709/models.rb', line 6906 def Previous @Previous end |
#RequestId ⇒ Object
6906 6907 6908 |
# File 'lib/v20180709/models.rb', line 6906 def RequestId @RequestId end |
#Stat ⇒ Object
6906 6907 6908 |
# File 'lib/v20180709/models.rb', line 6906 def Stat @Stat end |
Instance Method Details
#deserialize(params) ⇒ Object
6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 |
# File 'lib/v20180709/models.rb', line 6915 def deserialize(params) unless params['Current'].nil? @Current = AllocationBillTrendDetail.new @Current.deserialize(params['Current']) end unless params['Previous'].nil? @Previous = [] params['Previous'].each do |i| allocationbilltrenddetail_tmp = AllocationBillTrendDetail.new allocationbilltrenddetail_tmp.deserialize(i) @Previous << allocationbilltrenddetail_tmp end end unless params['Stat'].nil? @Stat = AllocationStat.new @Stat.deserialize(params['Stat']) end @RequestId = params['RequestId'] end |