Class: TencentCloud::Billing::V20180709::DataForBudgetInfoPage

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) ⇒ DataForBudgetInfoPage

Returns a new instance of DataForBudgetInfoPage.



5073
5074
5075
5076
5077
5078
5079
# File 'lib/v20180709/models.rb', line 5073

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:

    当前页



5071
5072
5073
# File 'lib/v20180709/models.rb', line 5071

def Current
  @Current
end

#PagesObject

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

Parameters:

  • Pages:

    分页

  • Size:

    分页大小

  • Total:

    总量

  • Records:

    查询数据列表

  • Current:

    当前页



5071
5072
5073
# File 'lib/v20180709/models.rb', line 5071

def Pages
  @Pages
end

#RecordsObject

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

Parameters:

  • Pages:

    分页

  • Size:

    分页大小

  • Total:

    总量

  • Records:

    查询数据列表

  • Current:

    当前页



5071
5072
5073
# File 'lib/v20180709/models.rb', line 5071

def Records
  @Records
end

#SizeObject

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

Parameters:

  • Pages:

    分页

  • Size:

    分页大小

  • Total:

    总量

  • Records:

    查询数据列表

  • Current:

    当前页



5071
5072
5073
# File 'lib/v20180709/models.rb', line 5071

def Size
  @Size
end

#TotalObject

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

Parameters:

  • Pages:

    分页

  • Size:

    分页大小

  • Total:

    总量

  • Records:

    查询数据列表

  • Current:

    当前页



5071
5072
5073
# File 'lib/v20180709/models.rb', line 5071

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
# File 'lib/v20180709/models.rb', line 5081

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