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.
6218 6219 6220 6221 6222 6223 6224 6225 6226 |
# File 'lib/v20210527/models.rb', line 6218 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
6216 6217 6218 |
# File 'lib/v20210527/models.rb', line 6216 def ClusterId @ClusterId end |
#Collection ⇒ Object
6216 6217 6218 |
# File 'lib/v20210527/models.rb', line 6216 def Collection @Collection end |
#Db ⇒ Object
6216 6217 6218 |
# File 'lib/v20210527/models.rb', line 6216 def Db @Db end |
#IndexesToBuild ⇒ Object
6216 6217 6218 |
# File 'lib/v20210527/models.rb', line 6216 def IndexesToBuild @IndexesToBuild end |
#IndexesToDrop ⇒ Object
6216 6217 6218 |
# File 'lib/v20210527/models.rb', line 6216 def IndexesToDrop @IndexesToDrop end |
#Level ⇒ Object
6216 6217 6218 |
# File 'lib/v20210527/models.rb', line 6216 def Level @Level end |
#Score ⇒ Object
6216 6217 6218 |
# File 'lib/v20210527/models.rb', line 6216 def Score @Score end |
Instance Method Details
#deserialize(params) ⇒ Object
6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 |
# File 'lib/v20210527/models.rb', line 6228 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 |