lories.data.retention#

Exceptions#

RetentionException

Raise if an error occurred while processing retention policy.

Classes#

Retentions

All the operations on a read-write sequence.

Module Contents#

exception lories.data.retention.RetentionException[source]#

Bases: lories.ResourceError

Inheritance diagram of lories.data.retention.RetentionException

Raise if an error occurred while processing retention policy.

Initialize self. See help(type(self)) for accurate signature.

class lories.data.retention.Retentions(*retentions: Retention)[source]#

Bases: MutableSequence[Retention]

Inheritance diagram of lories.data.retention.Retentions

All the operations on a read-write sequence.

Concrete subclasses must provide __new__ or __init__, __getitem__, __setitem__, __delitem__, __len__, and insert().

extend(retentions: Iterable[Retention], unique: bool = False)[source]#

S.extend(iterable) – extend sequence by appending elements from the iterable

insert(index: int, retention: Retention)[source]#

S.insert(index, value) – insert value before index