MigratorStatus#
- pydantic model nublado.controller.models.v1.migrator.MigratorStatus#
Status for a migrator pod.
- Parameters:
data (
Any)
Show JSON schema
{ "title": "MigratorStatus", "description": "Status for a migrator pod.", "type": "object", "properties": { "old_user": { "title": "Source username to copy from", "type": "string" }, "new_user": { "title": "Target username to copy to", "type": "string" }, "start_time": { "default": "2026-04-21T22:49:10.954115+00:00", "examples": [ "2026-04-25T16:57:38.825103+00:00" ], "title": "When the migrator pod was started", "type": "string" }, "end_time": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "examples": [ "2026-04-25T16:59:38.825103+00:00" ], "title": "When the migrator pod exited (if it has)" }, "running": { "default": true, "title": "Whether migrator pod is running", "type": "boolean" }, "exit_code": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Exit code (if any) for migrator pod" } }, "required": [ "old_user", "new_user" ] }
- Fields:
- Validators:
_validate_start_time»end_time_validate_start_time»start_time
-
field start_time:
Annotated[str] = '2026-04-21T22:49:10.954115+00:00'# - Validated by:
_validate_start_time
- raise_for_status()#
If the MigratorStatus indicates an error, raise the corresponding exception.
- Returns:
The input object, if it did not raise an exception
- Return type:
- Raises:
controller.exceptions.NoSourceUserDirectoryError – Raised if the source user’s directory could not be found.
controller.exceptions.NoTargetUserDirectoryError – Raised if the target user’s directory could not be found.
controller.exceptions.CopyError – Raised if there was a problem during file copy.
controller.exceptions.CopyPermissionError – Raised if there was a problem changing file ownership after copy.
RuntimeError – Raised if other constraints were violated (e.g. running but has exit code).