Class: TencentCloud::Dbbrain::V20210527::MongoDBIndex

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

Overview

Mongodb索引项

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, collection = nil, db = nil, level = nil, score = nil, indexestobuild = nil, indexestodrop = nil) ⇒ MongoDBIndex

Returns a new instance of MongoDBIndex.



6282
6283
6284
6285
6286
6287
6288
6289
6290
# File 'lib/v20210527/models.rb', line 6282

def initialize(clusterid=nil, collection=nil, db=nil, level=nil, score=nil, indexestobuild=nil, indexestodrop=nil)
  @ClusterId = clusterid
  @Collection = collection
  @Db = db
  @Level = level
  @Score = score
  @IndexesToBuild = indexestobuild
  @IndexesToDrop = indexestodrop
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    实例id。

  • Collection:

    表名。

  • Db:

    库名。

  • Level:

    优化级别,1-4,优先级从高到低。

  • Score:

    得分。

  • IndexesToBuild:

    推荐索引列表。

  • IndexesToDrop:

    无效索引列表。



6280
6281
6282
# File 'lib/v20210527/models.rb', line 6280

def ClusterId
  @ClusterId
end

#CollectionObject

Parameters:

  • ClusterId:

    实例id。

  • Collection:

    表名。

  • Db:

    库名。

  • Level:

    优化级别,1-4,优先级从高到低。

  • Score:

    得分。

  • IndexesToBuild:

    推荐索引列表。

  • IndexesToDrop:

    无效索引列表。



6280
6281
6282
# File 'lib/v20210527/models.rb', line 6280

def Collection
  @Collection
end

#DbObject

Parameters:

  • ClusterId:

    实例id。

  • Collection:

    表名。

  • Db:

    库名。

  • Level:

    优化级别,1-4,优先级从高到低。

  • Score:

    得分。

  • IndexesToBuild:

    推荐索引列表。

  • IndexesToDrop:

    无效索引列表。



6280
6281
6282
# File 'lib/v20210527/models.rb', line 6280

def Db
  @Db
end

#IndexesToBuildObject

Parameters:

  • ClusterId:

    实例id。

  • Collection:

    表名。

  • Db:

    库名。

  • Level:

    优化级别,1-4,优先级从高到低。

  • Score:

    得分。

  • IndexesToBuild:

    推荐索引列表。

  • IndexesToDrop:

    无效索引列表。



6280
6281
6282
# File 'lib/v20210527/models.rb', line 6280

def IndexesToBuild
  @IndexesToBuild
end

#IndexesToDropObject

Parameters:

  • ClusterId:

    实例id。

  • Collection:

    表名。

  • Db:

    库名。

  • Level:

    优化级别,1-4,优先级从高到低。

  • Score:

    得分。

  • IndexesToBuild:

    推荐索引列表。

  • IndexesToDrop:

    无效索引列表。



6280
6281
6282
# File 'lib/v20210527/models.rb', line 6280

def IndexesToDrop
  @IndexesToDrop
end

#LevelObject

Parameters:

  • ClusterId:

    实例id。

  • Collection:

    表名。

  • Db:

    库名。

  • Level:

    优化级别,1-4,优先级从高到低。

  • Score:

    得分。

  • IndexesToBuild:

    推荐索引列表。

  • IndexesToDrop:

    无效索引列表。



6280
6281
6282
# File 'lib/v20210527/models.rb', line 6280

def Level
  @Level
end

#ScoreObject

Parameters:

  • ClusterId:

    实例id。

  • Collection:

    表名。

  • Db:

    库名。

  • Level:

    优化级别,1-4,优先级从高到低。

  • Score:

    得分。

  • IndexesToBuild:

    推荐索引列表。

  • IndexesToDrop:

    无效索引列表。



6280
6281
6282
# File 'lib/v20210527/models.rb', line 6280

def Score
  @Score
end

Instance Method Details

#deserialize(params) ⇒ Object



6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
# File 'lib/v20210527/models.rb', line 6292

def deserialize(params)
  @ClusterId = params['ClusterId']
  @Collection = params['Collection']
  @Db = params['Db']
  @Level = params['Level']
  @Score = params['Score']
  unless params['IndexesToBuild'].nil?
    @IndexesToBuild = []
    params['IndexesToBuild'].each do |i|
      indexestobuild_tmp = IndexesToBuild.new
      indexestobuild_tmp.deserialize(i)
      @IndexesToBuild << indexestobuild_tmp
    end
  end
  unless params['IndexesToDrop'].nil?
    @IndexesToDrop = []
    params['IndexesToDrop'].each do |i|
      indexestodrop_tmp = IndexesToDrop.new
      indexestodrop_tmp.deserialize(i)
      @IndexesToDrop << indexestodrop_tmp
    end
  end
end