Class: TencentCloud::Dbbrain::V20210527::MongoDBIndex
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dbbrain::V20210527::MongoDBIndex
- Defined in:
- lib/v20210527/models.rb
Overview
Mongodb索引项
Instance Attribute Summary collapse
- #ClusterId ⇒ Object
- #Collection ⇒ Object
- #Db ⇒ Object
- #IndexesToBuild ⇒ Object
- #IndexesToDrop ⇒ Object
- #Level ⇒ Object
- #Score ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(clusterid = nil, collection = nil, db = nil, level = nil, score = nil, indexestobuild = nil, indexestodrop = nil) ⇒ MongoDBIndex
constructor
A new instance of MongoDBIndex.
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
#ClusterId ⇒ Object
6280 6281 6282 |
# File 'lib/v20210527/models.rb', line 6280 def ClusterId @ClusterId end |
#Collection ⇒ Object
6280 6281 6282 |
# File 'lib/v20210527/models.rb', line 6280 def Collection @Collection end |
#Db ⇒ Object
6280 6281 6282 |
# File 'lib/v20210527/models.rb', line 6280 def Db @Db end |
#IndexesToBuild ⇒ Object
6280 6281 6282 |
# File 'lib/v20210527/models.rb', line 6280 def IndexesToBuild @IndexesToBuild end |
#IndexesToDrop ⇒ Object
6280 6281 6282 |
# File 'lib/v20210527/models.rb', line 6280 def IndexesToDrop @IndexesToDrop end |
#Level ⇒ Object
6280 6281 6282 |
# File 'lib/v20210527/models.rb', line 6280 def Level @Level end |
#Score ⇒ Object
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 |