Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/interface.py
Show First 20 Lines • Show All 1,206 Lines • ▼ Show 20 Lines | |||||
@remote_api_endpoint("metadata_authority/get") | @remote_api_endpoint("metadata_authority/get") | ||||
def metadata_authority_get( | def metadata_authority_get( | ||||
self, type: MetadataAuthorityType, url: str | self, type: MetadataAuthorityType, url: str | ||||
) -> Optional[MetadataAuthority]: | ) -> Optional[MetadataAuthority]: | ||||
"""Retrieve information about an authority | """Retrieve information about an authority | ||||
Args: | Args: | ||||
type: one of "deposit", "forge", or "registry" | type: one of "deposit_client", "forge", or "registry" | ||||
url: unique URI identifying the authority | url: unique URI identifying the authority | ||||
Returns: | Returns: | ||||
a MetadataAuthority object (with a non-None metadata field) if it is known, | a MetadataAuthority object (with a non-None metadata field) if it is known, | ||||
else None. | else None. | ||||
""" | """ | ||||
... | ... | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |