cayu.snapshots.AgentSnapshotProtection
Part of cayu.snapshots.base. Read the Python API overview and install the required extra.
from cayu.snapshots import AgentSnapshotProtectionBases: _SnapshotModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
protection_id |
StrictStr |
required |
operation_id |
StrictStr |
Field(max_length=256) |
access |
AgentSnapshotAccess |
required |
kind |
AgentSnapshotProtectionKind |
required |
owner |
StrictStr |
Field(max_length=256) |
reason |
StrictStr |
Field(max_length=256) |
validate_protection_id (method)
Section titled “validate_protection_id (method)”AgentSnapshotProtection.validate_protection_id(value: str, info) -> strvalidate_text (method)
Section titled “validate_text (method)”AgentSnapshotProtection.validate_text(value: str, info) -> strvalidate_protection (method)
Section titled “validate_protection (method)”AgentSnapshotProtection.validate_protection() -> AgentSnapshotProtectionidentity_material (method)
Section titled “identity_material (method)”AgentSnapshotProtection.identity_material() -> dict[str, object]create (method)
Section titled “create (method)”AgentSnapshotProtection.create(*, operation_id: str, access: AgentSnapshotAccess, kind: AgentSnapshotProtectionKind, owner: str, reason: str) -> AgentSnapshotProtection