Core Modules
Note: This is not used in the current implementation. It is a work in progress and a placeholder for future work.
- class action_triggers.core.config.ConnectionCore(*args, **kwargs)[source]
Bases:
ConnectionValidationMixin,ConnectionBaseThe core connection class with some common validation that should be applied to all connections.
- class action_triggers.core.config.ConnectionValidationMixin(*args, **kwargs)[source]
Bases:
objectThe core validation class for the configuration. This class should cover the basic validation requirements for any connection.
- config: Dict[str, Any]
- conn_details: Dict[str, Any]
- params: Dict[str, Any]
- required_conn_detail_fields: Sequence[RequiredFieldBase]
- required_params_fields: Sequence[RequiredFieldBase]
- validate_connection_details_not_overwritten() None[source]
Validate that the base connection details are not overwritten.
- validate_params_not_overwritten() None[source]
Validate that the base parameters are not overwritten.
- action_triggers.core.config.validate_context_not_overwritten(context: Dict[str, Any] | None, user_context: Dict[str, Any], error_handler: Callable[[str, str], None]) None[source]
Validate that the context is not overwritten.
- Parameters:
context – The context to check.
user_context – The user context to check.
error_handler – The function to call if the required fields are not
- action_triggers.core.config.validate_required_keys(required_fields: Sequence[RequiredFieldBase], context: Dict[str, Any], error_handler: Callable[[str, str], None]) None[source]
Validate that the required keys are present in the provided context.
- Parameters:
required_fields – The required fields to check.
context – The context to check.
error_handler – The function to call if the required fields are not