Class: TencentCloud::Tcb::V20180608::IndexInfo

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

Overview

索引信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, size = nil, keys = nil, accesses = nil, unique = nil) ⇒ IndexInfo

Returns a new instance of IndexInfo.



7316
7317
7318
7319
7320
7321
7322
# File 'lib/v20180608/models.rb', line 7316

def initialize(name=nil, size=nil, keys=nil, accesses=nil, unique=nil)
  @Name = name
  @Size = size
  @Keys = keys
  @Accesses = accesses
  @Unique = unique
end

Instance Attribute Details

#AccessesObject

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

Parameters:

  • Name:

    索引名称

  • Size:

    索引大小,单位: 字节

  • Keys:

    索引键值

  • Accesses:

    索引使用信息

  • Unique:

    是否为唯一索引



7314
7315
7316
# File 'lib/v20180608/models.rb', line 7314

def Accesses
  @Accesses
end

#KeysObject

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

Parameters:

  • Name:

    索引名称

  • Size:

    索引大小,单位: 字节

  • Keys:

    索引键值

  • Accesses:

    索引使用信息

  • Unique:

    是否为唯一索引



7314
7315
7316
# File 'lib/v20180608/models.rb', line 7314

def Keys
  @Keys
end

#NameObject

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

Parameters:

  • Name:

    索引名称

  • Size:

    索引大小,单位: 字节

  • Keys:

    索引键值

  • Accesses:

    索引使用信息

  • Unique:

    是否为唯一索引



7314
7315
7316
# File 'lib/v20180608/models.rb', line 7314

def Name
  @Name
end

#SizeObject

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

Parameters:

  • Name:

    索引名称

  • Size:

    索引大小,单位: 字节

  • Keys:

    索引键值

  • Accesses:

    索引使用信息

  • Unique:

    是否为唯一索引



7314
7315
7316
# File 'lib/v20180608/models.rb', line 7314

def Size
  @Size
end

#UniqueObject

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

Parameters:

  • Name:

    索引名称

  • Size:

    索引大小,单位: 字节

  • Keys:

    索引键值

  • Accesses:

    索引使用信息

  • Unique:

    是否为唯一索引



7314
7315
7316
# File 'lib/v20180608/models.rb', line 7314

def Unique
  @Unique
end

Instance Method Details

#deserialize(params) ⇒ Object



7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
# File 'lib/v20180608/models.rb', line 7324

def deserialize(params)
  @Name = params['Name']
  @Size = params['Size']
  unless params['Keys'].nil?
    @Keys = []
    params['Keys'].each do |i|
      indexkey_tmp = Indexkey.new
      indexkey_tmp.deserialize(i)
      @Keys << indexkey_tmp
    end
  end
  unless params['Accesses'].nil?
    @Accesses = IndexAccesses.new
    @Accesses.deserialize(params['Accesses'])
  end
  @Unique = params['Unique']
end