cafe.engine.models package¶
cafe.engine.models.base module¶
-
class
cafe.engine.models.base.AutoMarshallingDictModel[source]¶ Bases:
dict,cafe.engine.models.base.AutoMarshallingModelDict-like AutoMarshallingModel used for some special cases
-
class
cafe.engine.models.base.AutoMarshallingListModel[source]¶ Bases:
list,cafe.engine.models.base.AutoMarshallingModelList-like AutoMarshallingModel used for some special cases
-
class
cafe.engine.models.base.AutoMarshallingModel[source]¶ Bases:
cafe.engine.models.base.BaseModel,cafe.engine.models.base.CommonToolsMixin,cafe.engine.models.base.JSON_ToolsMixin,cafe.engine.models.base.XML_ToolsMixin- @summary: A class used as a base to build and contain the logic necessary
- to automatically create serialized requests and automatically deserialize responses in a format-agnostic way.
-
class
cafe.engine.models.base.CommonToolsMixin[source]¶ Bases:
objectMethods used to make building data models easier, common to all types
cafe.engine.models.behavior_response module¶
-
class
cafe.engine.models.behavior_response.BehaviorResponse[source]¶ Bases:
objectAn object to represent the result of behavior. @ivar response: Last response returned from last client call @ivar ok: Represents the success state of the behavior call @type ok:C{bool} @ivar entity: Data model created via behavior calls, if applicable
cafe.engine.models.commandline_response module¶
@summary: Responses directly from the command line
-
class
cafe.engine.models.commandline_response.CommandLineResponse[source]¶ Bases:
cafe.engine.models.base.BaseModelBare bones object for any Command Line Connector response @ivar Command: The full original command string for this response @type Command: C{str} @ivar StandardOut: The Standard Out generated by this command @type StandardOut: C{list} of C{str} @ivar StandardError: The Standard Error generated by this command @type StandardError: C{list} of C{str} @ivar ReturnCode: The command’s return code @type ReturnCode: C{int}
cafe.engine.models.data_interfaces module¶
-
class
cafe.engine.models.data_interfaces.BaseConfigSectionInterface(config_file_path, section_name)[source]¶ Bases:
objectBase class for building an interface for the data contained in a SafeConfigParser object, as loaded from the config file as defined by the engine’s config file.
-
exception
cafe.engine.models.data_interfaces.ConfigDataException[source]¶ Bases:
exceptions.Exception
-
exception
cafe.engine.models.data_interfaces.ConfigEnvironmentVariableError[source]¶ Bases:
exceptions.Exception
-
class
cafe.engine.models.data_interfaces.ConfigParserDataSource(config_file_path, section_name)[source]¶
-
class
cafe.engine.models.data_interfaces.ConfigSectionInterface(config_file_path=None, section_name=None)[source]¶ Bases:
cafe.engine.models.data_interfaces.BaseConfigSectionInterface
-
class
cafe.engine.models.data_interfaces.JSONDataSource(config_file_path, section_name)[source]¶ Bases:
cafe.engine.models.data_interfaces.DictionaryDataSource
-
class
cafe.engine.models.data_interfaces.MongoDataSource(hostname, db_name, username, password, config_name, section_name)[source]¶ Bases:
cafe.engine.models.data_interfaces.DictionaryDataSource