models.cassandra_protection_source module¶
-
class
models.cassandra_protection_source.
CassandraProtectionSource
(cluster_info=None, keyspace_info=None, name=None, mtype=None, uuid=None)[source]¶ Bases:
object
Implementation of the ‘CassandraProtectionSource’ model.
Specifies an Object representing Cassandra.
- Attributes:
- cluster_info (CassandraCluster): Information of a Cassandra cluster,
only valid for an entity of type kCluster.
- keyspace_info (CassandraKeyspace): Information of a cassandra
keyspapce, only valid for an entity of type kKeyspace.
name (string): Specifies the instance name of the Cassandra entity. mtype (TypeCassandraProtectionSourceEnum): Specifies the type of the
managed Object in Cassandra Protection Source. Replication strategy options for a keyspace. ‘kCluster’ indicates a Cassandra cluster distributed over several physical nodes. ‘kKeyspace’ indicates a Keyspace enclosing one or more tables. ‘kTable’ indicates a Table in the Cassandra environment.
- uuid (string): Specifies the UUID for the Cassandra entity.
Note : For each entity an ID unique within top level entity should be assigned by imanis backend. Example, UUID for a table can be the string <keyspace_name>.<table_name>
-
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.