Enums Module
- class action_triggers.enums.ActionTriggerType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
EnumRepresents the top level action trigger types supported by the application.
- ACTIONS = 'actions'
- BROKERS = 'brokers'
- class action_triggers.enums.HTTPMethodChoices(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
TextChoicesRepresents the supported HTTP methods for webhooks.
- DELETE = 'DELETE'
- GET = 'GET'
- PATCH = 'PATCH'
- POST = 'POST'
- PUT = 'PUT'
- class action_triggers.enums.SignalChoices(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
TextChoicesRepresents the supported signals for action triggers.
- POST_DELETE = 'post_delete'
- POST_SAVE = 'post_save'
- PRE_DELETE = 'pre_delete'
- PRE_SAVE = 'pre_save'
- classmethod for_signal(signal: ModelSignal) SignalChoices[source]
Return the SignalChoices instance for the given signal.
- Parameters:
signal (signals.ModelSignal) – The signal to map to a SignalChoices instance.
- Returns:
The SignalChoices instance for the given signal.
- Return type: