here.platform.api.registry.lookup_api_registry module

here.platform.api.registry.lookup_api_registry module

A registry for lookup apis, so that they can be managed, cached, etc.

class here.platform.api.registry.lookup_api_registry.LookupApiRegistry
Bases: object

HERE platform lookup api registry.

has_resources_apis(catalog_hrn: str) bool

Check whether a given schema has already been registered.

Parameters:
catalog_hrn – Catalog HRN

Returns:
a bool flag indicating if schema is already registered.

register(catalog_hrn: str, resources_apis: dict)

Register a new resource lookup api for a given hrn.

resources_apis(catalog_hrn: str) Dict | None

Return a schema by the provided schema HRN identifier.

Parameters:
catalog_hrn – Catalog HRN

Returns:
Schema instance for the given hrn.