25#include <olp/core/CoreApi.h>
26#include <olp/core/client/ApiError.h>
27#include <olp/core/client/ApiResponse.h>
28#include <olp/core/client/CancellationContext.h>
29#include <olp/core/client/FetchOptions.h>
30#include <olp/core/client/HRN.h>
31#include <olp/core/client/OlpClient.h>
32#include <olp/core/client/OlpClientSettings.h>
36class ApiLookupClientImpl;
72 const std::string& service_version,
97 const std::string& service_version,
101 std::shared_ptr<ApiLookupClientImpl> impl_;
A client for API lookup requests.
Definition ApiLookupClient.h:39
ApiLookupClient(const HRN &catalog, const OlpClientSettings &settings)
Creates the ApiLookupClient instance.
std::function< void(LookupApiResponse)> LookupApiCallback
Alias for the lookup API callback.
Definition ApiLookupClient.h:44
CancellationToken LookupApi(const std::string &service, const std::string &service_version, FetchOptions options, LookupApiCallback callback)
Gets an API for a single service asynchronously.
LookupApiResponse LookupApi(const std::string &service, const std::string &service_version, FetchOptions options, CancellationContext context)
Gets a API for a single service sync, internally uses ApiLookupSettings from OlpClientSettings.
Represents a request outcome.
Definition ApiResponse.h:65
A wrapper that manages the cancellation state of an asynchronous operation in a thread-safe way.
Definition CancellationContext.h:40
Cancels service requests.
Definition CancellationToken.h:33
Allows a Here Resource Name (HRN) to be passed to the operations that require it.
Definition HRN.h:34
FetchOptions
Fetch options that control how requests are handled.
Definition FetchOptions.h:26
Rules all the other namespaces.
Definition AppleSignInProperties.h:24
Configures the behavior of the OlpClient class.
Definition OlpClientSettings.h:178