here.platform.api.lookup_api module

here.platform.api.lookup_api module

This module contains an LookupApi class to perform API operations.

The HERE API reference documentation used in this module can be found here: Lookup API Reference # noqa E501

class here.platform.api.lookup_api.LookupApi(auth: Auth | None, platform_config: PlatformConfig, application_config: ApplicationConfig, lookup_api_registry: LookupApiRegistry, proxies: dict | None = None)
Bases: BaseApi

This class provides access to HERE platform Lookup APIs.

Instances can call only to those API endpoints relevant for accessing catalog and layer metadata, as well as those needed to access the data contained in different types of layers.

api_version_impl = {'blob':</span> <span class="pre">['v1',</span> <span class="pre">'v2'],</span> <span class="pre">'index':</span> <span class="pre">['v1'],</span> <span class="pre">'ingest':</span> <span class="pre">['v1'],</span> <span class="pre">'interactive':</span> <span class="pre">['v1'],</span> <span class="pre">'lookup':</span> <span class="pre">['v1'],</span> <span class="pre">'metadata':</span> <span class="pre">['v1'],</span> <span class="pre">'notification':</span> <span class="pre">['v2'],</span> <span class="pre">'publish':</span> <span class="pre">['v2'],</span> <span class="pre">'query':</span> <span class="pre">['v1'],</span> <span class="pre">'statistics':</span> <span class="pre">['v1'],</span> <span class="pre">'stream':</span> <span class="pre">['v2'],</span> <span class="pre">'volatile-blob':</span> <span class="pre">['v1']}

get_impl_platform_api_list() dict

Lookup implemented platform APIs.

get_platform_api(api: str, version: str) dict

Return details of a single platform API.

Parameters:

  • api – The identifier of the API

  • version – The version of the API

Returns:
Details of the requested API for the resource

Raises:
PlatformException – If platform responds with an HTTP error.

get_platform_api_list() list

Return the list of the platform APIs.

Returns:
The list of APIs of the platform

Raises:
PlatformException – If platform responds with an HTTP error.

get_resource_api(hrn: str, api: str, version: str, region: str | None = None) dict

Return details of a single API for a given resource identified by hrn, api and version.

Parameters:

  • hrn – a HERE Resource Name identifying the resource

  • api – The identifier of the API

  • version – The version of the API

  • region – an Optional param to look up a specific region for a given resource

Returns:
Details of the requested API for the resource

Raises:
PlatformException – If platform responds with an HTTP error.

get_resource_api_list(hrn: str, region: str | None = None) dict

Lookup all available APIs for given HRN.

Parameters:

  • hrn – a HERE Resource Name identifying the resource

  • region – an Optional param to look up a specific region for a given resource

Returns:
The list of APIs that can be used with the resource

Raises:
PlatformException – If platform responds with an HTTP error.

platform_api_version_impl = {'artifact':</span> <span class="pre">'v1',</span> <span class="pre">'config':</span> <span class="pre">'v1',</span> <span class="pre">'location-service-registry':</span> <span class="pre">'v1',</span> <span class="pre">'lookup':</span> <span class="pre">'v1'}