(self, sandbox_name: str)
| 436 | return [item.id for item in self.list(limit=limit, offset=offset)] |
| 437 | |
| 438 | def delete(self, sandbox_name: str) -> bool: |
| 439 | response = self._stub.DeleteSandbox( |
| 440 | openshell_pb2.DeleteSandboxRequest(name=sandbox_name), |
| 441 | timeout=self._timeout, |
| 442 | ) |
| 443 | return bool(response.deleted) |
| 444 | |
| 445 | def wait_deleted(self, sandbox_name: str, *, timeout_seconds: float = 60.0) -> None: |
| 446 | deadline = time.time() + timeout_seconds |