cayu.snapshots.AgentSnapshotPutReceipt
Part of cayu.snapshots.base. Read the Python API overview and install the required extra.
from cayu.snapshots import AgentSnapshotPutReceiptBases: _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 |
|---|---|---|
record_type |
Literal['cayu.agent-snapshot-put-receipt'] |
'cayu.agent-snapshot-put-receipt' |
schema_version |
Literal[1] |
1 |
receipt_id |
StrictStr |
required |
snapshot |
AgentSnapshotRef |
required |
binding_id |
StrictStr |
required |
node_digests |
tuple[StrictStr, ...] |
required |
validate_digests (method)
Section titled “validate_digests (method)”AgentSnapshotPutReceipt.validate_digests(value: str, info) -> strvalidate_node_digests_input (method)
Section titled “validate_node_digests_input (method)”AgentSnapshotPutReceipt.validate_node_digests_input(value: object) -> objectvalidate_receipt (method)
Section titled “validate_receipt (method)”AgentSnapshotPutReceipt.validate_receipt() -> AgentSnapshotPutReceiptidentity_material (method)
Section titled “identity_material (method)”AgentSnapshotPutReceipt.identity_material() -> dict[str, object]create (method)
Section titled “create (method)”AgentSnapshotPutReceipt.create(*, snapshot: AgentSnapshotRef, binding_id: str, node_digests: Iterable[str]) -> AgentSnapshotPutReceipt