Models Python Module¶
Models module.
This class contains the data structure models for the dispatcher.
-
class
pacifica.dispatcher.models.PacificaModel[source]¶ Abstract base class for all Dispatcher models.
Contains method interface definitions for all model classes.
-
_abc_cache= <_weakrefset.WeakSet object>¶
-
_abc_negative_cache= <_weakrefset.WeakSet object>¶
-
_abc_negative_cache_version= 42¶
-
_abc_registry= <_weakrefset.WeakSet object>¶
-
-
class
pacifica.dispatcher.models.File(**attrs)[source]¶ File model class.
This holds all information about a file from a cloud event.
-
_abc_cache= <_weakrefset.WeakSet object>¶
-
_abc_negative_cache= <_weakrefset.WeakSet object>¶
-
_abc_negative_cache_version= 42¶
-
_abc_registry= <_weakrefset.WeakSet object>¶
-
_id= None¶
-
ctime= None¶
-
encoding= None¶
-
classmethod
from_cloudevents_model(event: cloudevents.model.Event) → List[pacifica.dispatcher.models.File][source]¶ Factory creating instances of File from a cloud event.
-
hashsum= None¶
-
hashtype= None¶
-
mimetype= None¶
-
mtime= None¶
-
name= None¶
-
path¶ Path property accessor.
-
size= None¶
-
subdir= None¶
-
suspense_date= None¶
-
-
class
pacifica.dispatcher.models.Transaction(**attrs)[source]¶ Transaction model clas.
This class holds all the information about a transaction from a cloud event.
-
_abc_cache= <_weakrefset.WeakSet object>¶
-
_abc_negative_cache= <_weakrefset.WeakSet object>¶
-
_abc_negative_cache_version= 42¶
-
_abc_registry= <_weakrefset.WeakSet object>¶
-
_id= None¶
-
analytical_tool= None¶
-
description= None¶
-
classmethod
from_cloudevents_model(event: cloudevents.model.Event) → pacifica.dispatcher.models.Transaction[source]¶ Factory creating a transaction class from a cloud event.
-
instrument= None¶
-
project= None¶
-
submitter= None¶
-
suspense_date= None¶
-
-
class
pacifica.dispatcher.models.TransactionKeyValue(**attrs)[source]¶ Transaction key value model.
This holds the transaction key value pairs from a cloud event.
-
_abc_cache= <_weakrefset.WeakSet object>¶
-
_abc_negative_cache= <_weakrefset.WeakSet object>¶
-
_abc_negative_cache_version= 42¶
-
_abc_registry= <_weakrefset.WeakSet object>¶
-