models.mongo_db_collection module¶
-
class
models.mongo_db_collection.
MongoDBCollection
(is_capped_collection=None, is_mongo_view=None, size_bytes=None)[source]¶ Bases:
object
Implementation of the ‘MongoDBCollection’ model.
Specifies an Object containing information about a mongodb collection.
- Attributes:
- is_capped_collection (bool): Set to true if this is a capped
Collection.
is_mongo_view (bool): Set to true if this Collection is a view. size_bytes (int|long): Size of this Collection.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.