models.mongodb_protection_source module

class models.mongodb_protection_source.MongoDBProtectionSource(cluster_info=None, collection_info=None, database_info=None, name=None, mtype=None, uuid=None)[source]

Bases: object

Implementation of the ‘MongoDBProtectionSource’ model.

Specifies an Object representing MongoDB.

Attributes:
cluster_info (MongoDBCluster): Information of a mongodb cluster, only

valid for an entity of type kCluster.

collection_info (MongoDBCollection): Information about a mongodb

collection, only valid for an entity of type kCollection.

database_info (MongoDBDatabase): Information of a mongodb database,

only valid for an entity of type kDatabase.

name (string): Specifies the instance name of the MongoDB entity. mtype (TypeMongoDBProtectionSourceEnum): Specifies the type of the

managed Object in MongoDB Protection Source. Specifies the type of an MongoDB source entity. ‘kCluster’ indicates a mongodb cluster distributed over several physical nodes. ‘kDatabase’ indicates a Database within the MongoDB environment. ‘kCollection’ indicates a Collection in the MongoDB enironment.

uuid (string): Specifies the UUID for the MongoDB entity.

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.