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.



3933
3934
3935
3936
3937
3938
3939
# File 'lib/v20210701/models.rb', line 3933

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

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

Parameters:

  • Records:

    分页内容

  • Total:

    总数

  • Size:

    条目数

  • Pages:

    页数

  • Current:

    当前条目



3931
3932
3933
# File 'lib/v20210701/models.rb', line 3931

def Current
  @Current
end

#PagesObject

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

Parameters:

  • Records:

    分页内容

  • Total:

    总数

  • Size:

    条目数

  • Pages:

    页数

  • Current:

    当前条目



3931
3932
3933
# File 'lib/v20210701/models.rb', line 3931

def Pages
  @Pages
end

#RecordsObject

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

Parameters:

  • Records:

    分页内容

  • Total:

    总数

  • Size:

    条目数

  • Pages:

    页数

  • Current:

    当前条目



3931
3932
3933
# File 'lib/v20210701/models.rb', line 3931

def Records
  @Records
end

#SizeObject

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

Parameters:

  • Records:

    分页内容

  • Total:

    总数

  • Size:

    条目数

  • Pages:

    页数

  • Current:

    当前条目



3931
3932
3933
# File 'lib/v20210701/models.rb', line 3931

def Size
  @Size
end

#TotalObject

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

Parameters:

  • Records:

    分页内容

  • Total:

    总数

  • Size:

    条目数

  • Pages:

    页数

  • Current:

    当前条目



3931
3932
3933
# File 'lib/v20210701/models.rb', line 3931

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
# File 'lib/v20210701/models.rb', line 3941

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