Changeset View
Changeset View
Standalone View
Standalone View
swh/web/common/typing.py
Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | class SaveOriginRequestInfo(TypedDict): | ||||
save_request_status: str | save_request_status: str | ||||
"""Status of the request""" | """Status of the request""" | ||||
loading_task_id: Optional[int] | loading_task_id: Optional[int] | ||||
"""Identifier of the loading task in the scheduler if scheduled""" | """Identifier of the loading task in the scheduler if scheduled""" | ||||
visit_date: Optional[str] | visit_date: Optional[str] | ||||
"""End of the visit if terminated""" | """End of the visit if terminated""" | ||||
save_task_status: str | save_task_status: str | ||||
"""Status of the scheduled task""" | """Status of the scheduled task""" | ||||
note: Optional[str] | |||||
"""Optional note associated to the request, for instance rejection reason""" | |||||
class OriginExistenceCheckInfo(TypedDict): | class OriginExistenceCheckInfo(TypedDict): | ||||
origin_url: str | origin_url: str | ||||
"""Origin to check""" | """Origin to check""" | ||||
exists: bool | exists: bool | ||||
"""Does the url exist?""" | """Does the url exist?""" | ||||
content_length: Optional[int] | content_length: Optional[int] | ||||
"""content length of the artifact""" | """content length of the artifact""" | ||||
last_modified: Optional[str] | last_modified: Optional[str] | ||||
"""Last modification time reported by the server (as iso8601 string)""" | """Last modification time reported by the server (as iso8601 string)""" |