minos.saga.definitions.operations module¶
- class minos.saga.definitions.operations.SagaOperation(callback, parameters=None, **kwargs)[source]¶
Bases:
Generic[minos.saga.definitions.operations.T]Saga Step Operation class.
- classmethod from_raw(raw, **kwargs)[source]¶
Build a new instance from a raw representation.
- Parameters
raw (
typing.Union[dict[str,typing.Any],minos.saga.definitions.operations.SagaOperation[~T],None]) – A raw representation.kwargs – Additional named arguments.
- Return type
typing.Optional[minos.saga.definitions.operations.SagaOperation[~T]]- Returns
A
SagaStepOperationinstance if therawargument is notNone,Noneotherwise.
- property parameterized: bool¶
parameterized getter.
- Return type
bool- Returns
Trueif parameters are provided orFalseotherwise.
- property raw: dict[str, typing.Any]¶
Generate a rew representation of the instance.
- Return type
dict[str,typing.Any]- Returns
A
dictinstance.