cadrumo.application.bucket_maintenance.contracts module¶
Pydantic command + result records for BucketMaintenanceService.
Used by: _service to implement bucket operations.
The contract records sit at the package boundary so a programmatic
caller (a CLI handler or another adapter) gets the same typed
input + output shape that the service consumes. Closed-value axes are
typed as their core enums per the architecture-boundaries discipline.
Every bucket selector is a BucketId.
- class AssessBucketDeletionCommand(**data)[source]¶
Bases:
BaseModelRead-only deletion-assessment intent for one explicit bucket.
- Parameters:
data (Any)
- bucket_id: BucketId¶
- class BucketDeletionAssessment(**data)[source]¶
Bases:
BaseModelAssessment of an explicit bucket target before deletion.
The existing and absent forms are mutually exclusive. An existing assessment carries the bucket label, optional profile setup state, deletion fingerprint, and
RetentionFloorAssessment; an absent assessment carries none of those values.- Parameters:
data (Any)
- bucket_id: BucketId¶
- exists: bool¶
- label: str | None¶
- setup_state: ProfileSetupState | None¶
- fingerprint: BucketDeletionFingerprint | None¶
- retention: RetentionFloorAssessment | None¶