Class: TencentCloud::Tem::V20210701::NamespacePage

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

Overview

命名空间分页

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NamespacePage.



3923
3924
3925
3926
3927
3928
3929
# File 'lib/v20210701/models.rb', line 3923

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

Instance Attribute Details

#CurrentObject

Parameters:

  • Records:

    分页内容

  • Total:

    总数

  • Size:

    条目数

  • Pages:

    页数

  • Current:

    当前条目



3921
3922
3923
# File 'lib/v20210701/models.rb', line 3921

def Current
  @Current
end

#PagesObject

Parameters:

  • Records:

    分页内容

  • Total:

    总数

  • Size:

    条目数

  • Pages:

    页数

  • Current:

    当前条目



3921
3922
3923
# File 'lib/v20210701/models.rb', line 3921

def Pages
  @Pages
end

#RecordsObject

Parameters:

  • Records:

    分页内容

  • Total:

    总数

  • Size:

    条目数

  • Pages:

    页数

  • Current:

    当前条目



3921
3922
3923
# File 'lib/v20210701/models.rb', line 3921

def Records
  @Records
end

#SizeObject

Parameters:

  • Records:

    分页内容

  • Total:

    总数

  • Size:

    条目数

  • Pages:

    页数

  • Current:

    当前条目



3921
3922
3923
# File 'lib/v20210701/models.rb', line 3921

def Size
  @Size
end

#TotalObject

Parameters:

  • Records:

    分页内容

  • Total:

    总数

  • Size:

    条目数

  • Pages:

    页数

  • Current:

    当前条目



3921
3922
3923
# File 'lib/v20210701/models.rb', line 3921

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
# File 'lib/v20210701/models.rb', line 3931

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