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:
field end_time: Annotated[Optional[str]] = None#
Validated by:
  • _validate_start_time

field exit_code: Annotated[Optional[int]] = None#
field new_user: Annotated[str] [Required]#
field old_user: Annotated[str] [Required]#
field running: Annotated[bool] = True#
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:

MigratorStatus

Raises: