mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
Hanzo CI/CD / test (linux-amd64) (push) Skipped
Hanzo CI/CD / test (linux-arm64) (push) Skipped
Hanzo CI/CD / test-advisory (push) Skipped
Hanzo CI/CD / test-amd64 (push) Failing after 42s
Hanzo CI/CD / cicd (push) Skipped
CI/CD / cicd (push) Failing after 43s
64 lines
1.4 KiB
C++
64 lines
1.4 KiB
C++
/**
|
|
* Hanzo Cloud API
|
|
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
*
|
|
* The version of the OpenAPI document: v1
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI-Generator 7.14.0.
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
/*
|
|
* SearchApi.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_API_SearchApi_H_
|
|
#define HANZO_API_SearchApi_H_
|
|
|
|
|
|
|
|
#include "hanzo/ApiClient.h"
|
|
|
|
#include "hanzo/model/Fusion.h"
|
|
#include "hanzo/model/Request.h"
|
|
#include <boost/optional.hpp>
|
|
|
|
namespace hanzo {
|
|
namespace api {
|
|
|
|
using namespace hanzo::model;
|
|
|
|
|
|
|
|
class SearchApi
|
|
{
|
|
public:
|
|
|
|
explicit SearchApi( std::shared_ptr<const ApiClient> apiClient );
|
|
|
|
virtual ~SearchApi();
|
|
|
|
/// <summary>
|
|
/// Hybrid search over the org's own corpora
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Is the typed op behind POST /v1/search. It does exactly two things the in-process entry point must not do: resolve the tenant from the validated principal, and refuse when there is none. Everything else is ForOrg.
|
|
/// </remarks>
|
|
/// <param name="request"></param>
|
|
pplx::task<std::shared_ptr<Fusion>> search(
|
|
std::shared_ptr<Request> request
|
|
) const;
|
|
|
|
protected:
|
|
std::shared_ptr<const ApiClient> m_ApiClient;
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_API_SearchApi_H_ */
|
|
|