Class: TencentCloud::Billing::V20180709::DescribeAllocationTrendByMonthResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180709/models.rb

Overview

DescribeAllocationTrendByMonth返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#CurrentObject

Parameters:

  • Current:

    当月费用信息

  • Previous:

    之前月份费用信息

  • Stat:

    费用统计信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



6906
6907
6908
# File 'lib/v20180709/models.rb', line 6906

def Current
  @Current
end

#PreviousObject

Parameters:

  • Current:

    当月费用信息

  • Previous:

    之前月份费用信息

  • Stat:

    费用统计信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



6906
6907
6908
# File 'lib/v20180709/models.rb', line 6906

def Previous
  @Previous
end

#RequestIdObject

Parameters:

  • Current:

    当月费用信息

  • Previous:

    之前月份费用信息

  • Stat:

    费用统计信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



6906
6907
6908
# File 'lib/v20180709/models.rb', line 6906

def RequestId
  @RequestId
end

#StatObject

Parameters:

  • Current:

    当月费用信息

  • Previous:

    之前月份费用信息

  • Stat:

    费用统计信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



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