models.cassandra_keyspace module

class models.cassandra_keyspace.CassandraKeyspace(children_count=None, dc_list=None, replication_strategy=None)[source]

Bases: object

Implementation of the ‘CassandraKeyspace’ model.

Specifies an Object containing information about a Cassandra Keyspace.

Attributes: children_count (int): Number of documents in this bucket. dc_list (list of string): If the replication strategy is set as kNetwork,

then dc_list will have a list of data centers to which the keyspace is being replicated to.

replication_strategy (ReplicationStrategyEnum): Replication stragegy for

the keyspace. Specifies the type of an Cassandra source 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.