Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/interface.py
# Copyright (C) 2015-2021 The Software Heritage developers | # Copyright (C) 2015-2022 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import datetime | import datetime | ||||
from typing import Any, Dict, Iterable, List, Optional, Tuple, Union | from typing import Any, Dict, Iterable, List, Optional, Tuple, Union | ||||
from uuid import UUID | from uuid import UUID | ||||
▲ Show 20 Lines • Show All 370 Lines • ▼ Show 20 Lines | ) -> List[ListedOrigin]: | ||||
""" | """ | ||||
... | ... | ||||
@remote_api_endpoint("origins/get") | @remote_api_endpoint("origins/get") | ||||
def get_listed_origins( | def get_listed_origins( | ||||
self, | self, | ||||
lister_id: Optional[UUID] = None, | lister_id: Optional[UUID] = None, | ||||
url: Optional[str] = None, | url: Optional[str] = None, | ||||
enabled_only: bool = True, | |||||
limit: int = 1000, | limit: int = 1000, | ||||
page_token: Optional[ListedOriginPageToken] = None, | page_token: Optional[ListedOriginPageToken] = None, | ||||
) -> PaginatedListedOriginList: | ) -> PaginatedListedOriginList: | ||||
"""Get information on the listed origins matching either the `url` or | """Get information on the listed origins matching either the `url` or | ||||
`lister_id`, or both arguments. | `lister_id`, or both arguments. | ||||
Use the `limit` and `page_token` arguments for continuation. The next | Use the `limit` and `page_token` arguments for continuation. The next | ||||
page token, if any, is returned in the PaginatedListedOriginList object. | page token, if any, is returned in the PaginatedListedOriginList object. | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |