Changeset View
Changeset View
Standalone View
Standalone View
swh/web/utils/typing.py
Show First 20 Lines • Show All 242 Lines • ▼ Show 20 Lines | class SaveOriginRequestInfo(TypedDict, total=False): | ||||
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] | note: Optional[str] | ||||
"""Optional note associated to the request, for instance rejection reason""" | """Optional note associated to the request, for instance rejection reason""" | ||||
from_webhook: bool | |||||
"""Indicates if request was created from a webhook receiver""" | |||||
webhook_origin: Optional[str] | |||||
"""Indicates from which forge type a webhook was received""" | |||||
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)""" |