Map of sessionId -> bytes freed by removing the session's workspace directory.
| 6397 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 6398 | @dataclass |
| 6399 | class SessionBulkDeleteResult: |
| 6400 | """Map of sessionId -> bytes freed by removing the session's workspace directory.""" |
| 6401 | |
| 6402 | freed_bytes: dict[str, int] |
| 6403 | """Map of sessionId -> bytes freed by removing the session's workspace directory. Sessions |
| 6404 | whose deletion failed are omitted from this map (failures are logged on the server but |
| 6405 | not surfaced per-id; check the map for absent IDs to detect them). |
| 6406 | """ |
| 6407 | |
| 6408 | @staticmethod |
| 6409 | def from_dict(obj: Any) -> 'SessionBulkDeleteResult': |
| 6410 | assert isinstance(obj, dict) |
| 6411 | freed_bytes = from_dict(from_int, obj.get("freedBytes")) |
| 6412 | return SessionBulkDeleteResult(freed_bytes) |
| 6413 | |
| 6414 | def to_dict(self) -> dict: |
| 6415 | result: dict = {} |
| 6416 | result["freedBytes"] = from_dict(from_int, self.freed_bytes) |
| 6417 | return result |
| 6418 | |
| 6419 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 6420 | class SessionCapability(Enum): |
no outgoing calls
no test coverage detected
searching dependent graphs…