Changeset View
Changeset View
Standalone View
Standalone View
swh/web/common/typing.py
Show First 20 Lines • Show All 255 Lines • ▼ Show 20 Lines | 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)""" | ||||
class AddForgeRequestInfo(TypedDict): | |||||
id: int | |||||
"""Unique key""" | |||||
request_date: str | |||||
"""Date of the creation request""" | |||||
forge_type: str | |||||
"""Type of the forge""" | |||||
request_status: Optional[str] | |||||
"""Status of the request""" | |||||
forge_url: str | |||||
"""Forge to list""" | |||||
task_id: Optional[int] | |||||
"""Identifier of the loading task in the scheduler if scheduled""" | |||||
task_date: Optional[str] | |||||
"""End of the listing if terminated""" | |||||
task_status: Optional[str] | |||||
"""Status of the scheduled task""" | |||||
note: Optional[str] | |||||
"""Optional note associated to the request, for instance rejection reason""" |