Planned consolidation for a single source bucket.
| 58 | |
| 59 | @dataclass |
| 60 | class BucketPlan: |
| 61 | """Planned consolidation for a single source bucket.""" |
| 62 | |
| 63 | source_bucket: str |
| 64 | source_path: Path |
| 65 | source_cwd: Path |
| 66 | target_bucket: str |
| 67 | target_path: Path |
| 68 | target_cwd: Path |
| 69 | source_memory_entries: int |
| 70 | pending_count: int |
| 71 | |
| 72 | def to_dict(self) -> dict[str, Any]: |
| 73 | return { |
| 74 | "source_bucket": self.source_bucket, |
| 75 | "source_path": str(self.source_path), |
| 76 | "source_cwd": str(self.source_cwd), |
| 77 | "target_bucket": self.target_bucket, |
| 78 | "target_path": str(self.target_path), |
| 79 | "target_cwd": str(self.target_cwd), |
| 80 | "source_memory_entries": self.source_memory_entries, |
| 81 | "pending_count": self.pending_count, |
| 82 | } |
| 83 | |
| 84 | |
| 85 | @dataclass |