swh.graphql.backends.archive module#
- class swh.graphql.backends.archive.Archive[source]#
Bases:
object
- get_origin_visits(origin_url: str, order: ListOrder, after: str | None = None, first: int = 50) PagedResult[OriginVisit, str] [source]#
- get_origin_latest_visit(origin_url: str, visit_type: str | None = None, allowed_statuses: List[str] | None = None, require_snapshot: bool = False) OriginVisit | None [source]#
- get_visit_statuses(origin_url: str, visit_id: int, order: ListOrder, after: str | None = None, first: int = 50) PagedResult[OriginVisitStatus, str] [source]#
- get_latest_visit_status(origin_url: str, visit_id: int, allowed_statuses: List[str] | None = None, require_snapshot: bool = False) OriginVisitStatus | None [source]#
- get_snapshot_branches(snapshot: bytes, after: bytes = b'', first: int = 50, target_types: List[str] | None = None, name_include: bytes | None = None, name_exclude_prefix: bytes | None = None) PartialBranches | None [source]#
- get_revision_log(revision_ids: List[bytes], first: int = 50) Iterable[Dict[str, Any] | None] [source]#
- get_directory_entries(directory_id: bytes, after: bytes | None = None, first: int = 50) PagedResult[DirectoryEntry, str] | None [source]#
- is_object_available(object_id: bytes, object_type: ObjectType) bool [source]#