Class: TencentCloud::Billing::V20180709::DataForBudgetOperationLogPage

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

Overview

预算修改记录信息分页数据

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pages = nil, size = nil, total = nil, records = nil, current = nil) ⇒ DataForBudgetOperationLogPage

Returns a new instance of DataForBudgetOperationLogPage.



5113
5114
5115
5116
5117
5118
5119
# File 'lib/v20180709/models.rb', line 5113

def initialize(pages=nil, size=nil, total=nil, records=nil, current=nil)
  @Pages = pages
  @Size = size
  @Total = total
  @Records = records
  @Current = current
end

Instance Attribute Details

#CurrentObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Pages:

    分页

  • Size:

    分页大小

  • Total:

    总量

  • Records:

    查询数据列表

  • Current:

    当前页



5111
5112
5113
# File 'lib/v20180709/models.rb', line 5111

def Current
  @Current
end

#PagesObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Pages:

    分页

  • Size:

    分页大小

  • Total:

    总量

  • Records:

    查询数据列表

  • Current:

    当前页



5111
5112
5113
# File 'lib/v20180709/models.rb', line 5111

def Pages
  @Pages
end

#RecordsObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Pages:

    分页

  • Size:

    分页大小

  • Total:

    总量

  • Records:

    查询数据列表

  • Current:

    当前页



5111
5112
5113
# File 'lib/v20180709/models.rb', line 5111

def Records
  @Records
end

#SizeObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Pages:

    分页

  • Size:

    分页大小

  • Total:

    总量

  • Records:

    查询数据列表

  • Current:

    当前页



5111
5112
5113
# File 'lib/v20180709/models.rb', line 5111

def Size
  @Size
end

#TotalObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Pages:

    分页

  • Size:

    分页大小

  • Total:

    总量

  • Records:

    查询数据列表

  • Current:

    当前页



5111
5112
5113
# File 'lib/v20180709/models.rb', line 5111

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
# File 'lib/v20180709/models.rb', line 5121

def deserialize(params)
  @Pages = params['Pages']
  @Size = params['Size']
  @Total = params['Total']
  unless params['Records'].nil?
    @Records = []
    params['Records'].each do |i|
      budgetoperationlogentity_tmp = BudgetOperationLogEntity.new
      budgetoperationlogentity_tmp.deserialize(i)
      @Records << budgetoperationlogentity_tmp
    end
  end
  @Current = params['Current']
end