Models / Effects
Effect
EffectDocument
- class teksi_hooks.models.effects.EffectDocument(source: 'EffectSource', effects: 'tuple[Effect, ...]'=<factory>, created_at: 'datetime' = <factory>, version: 'int' = 1)[source]
- Parameters:
source (EffectSource)
effects (tuple[Effect, ...])
created_at (datetime)
version (int)
Fields
sourceType:
EffectSourceSource object from which the effects were generated.
effectsType:
tuple[Effect, ...]Effects generated from the source object.
created_atType:
datetimeTimestamp when the effect document was created.
versionType:
intVersion of the effect-document contract.
EffectEvaluationResult
- class teksi_hooks.models.effects.EffectEvaluationResult(effect_index, status, findings=<factory>, metadata=<factory>)[source]
Evaluation result for one desired-state effect.
The result refers to an effect by its zero-based index in the corresponding effect document. It records whether the effect is already satisfied, requires an accepted persistence action, or is blocked.
Evaluation results do not indicate that persistence has occurred. A remediable result means that the effect may be reconciled later by a persistence implementation.
Blocking findings should explain why the effect cannot safely be applied. Remediable findings may explain which discrepancy will be resolved during persistence. Satisfied effects normally have no findings.
- Parameters:
effect_index (int)
status (EffectEvaluationStatus)
findings (tuple[ValidationFinding, ...])
metadata (dict[str, Any])
Fields
effect_indexType:
intZero-based index of the evaluated effect in the corresponding EffectDocument.effects sequence.
statusType:
EffectEvaluationStatusEvaluation status describing whether the desired-state effect is satisfied, remediable through persistence, or blocked.
findingsType:
tuple[ValidationFinding, ...]Ordered validation findings produced while evaluating the effect. Remediable findings describe discrepancies that may be reconciled during persistence. Blocking findings explain why the effect cannot safely be applied.
metadataType:
dict[str, Any]Optional implementation-specific evaluation metadata. This may include observed canonical values, resolved identities, mapping provenance, target classifications or diagnostic context. Generic consumers must not assign semantics to these entries.
EffectSource
- class teksi_hooks.models.effects.EffectSource(model: 'str', class_id: 'str', object_id: 'str')[source]
- Parameters:
model (str)
class_id (str)
object_id (str)
Fields
modelType:
strSource model identifier.
class_idType:
strSource class identifier.
object_idType:
strSource object identifier.
EnforceExistsEffect
- class teksi_hooks.models.effects.EnforceExistsEffect(identity: 'CanonicalObjectIdentity')[source]
- Parameters:
identity (CanonicalObjectIdentity)
Base class: Effect
Fields
kindType:
EffectKindEffect kind discriminator.
identityType:
CanonicalObjectIdentityCanonical object identity used to locate the target object.
EnforceNotExistsEffect
- class teksi_hooks.models.effects.EnforceNotExistsEffect(identity: 'CanonicalObjectIdentity')[source]
- Parameters:
identity (CanonicalObjectIdentity)
Base class: Effect
Fields
kindType:
EffectKindEffect kind discriminator.
identityType:
CanonicalObjectIdentityCanonical object identity used to locate the target object.
UpdateAttributeEffect
- class teksi_hooks.models.effects.UpdateAttributeEffect(identity: 'CanonicalObjectIdentity', attribute_id: 'str', value: 'Any')[source]
- Parameters:
identity (CanonicalObjectIdentity)
attribute_id (str)
value (Any)
Base class: Effect
Fields
kindType:
EffectKindEffect kind discriminator.
identityType:
CanonicalObjectIdentityCanonical object identity used to locate the target object.
attribute_idType:
strCanonical attribute identifier being updated.
valueType:
AnyNew value that should be assigned to the target attribute.