mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The projection was 113 commits behind the document it claims to describe, and `generate.py --all --check` reported every one of the thirteen clients DRIFTED — the same +19 models in each, because they all fell behind the same emission. Regenerated in place from hanzo-inc/cloud openapi.yaml at 939b09d4 (sha256 087024f6…), which is the only description of this API that cannot name a route the binary does not serve. `--check` is clean across all thirteen after. .spec-lock moved with the code. The generator READS that file and never writes it — hanzoai/ci`s lane does — so a hand run leaves every lock naming the previous document. A lock that disagrees with the tree beside it is worse than no lock: the next `--check` without `--spec` fetches what production serves, compares it to a digest that was already wrong, and reports drift that is really staleness.
82 lines
4.5 KiB
C++
82 lines
4.5 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.
|
|
*/
|
|
|
|
/*
|
|
* CatalogApi.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_API_CatalogApi_H_
|
|
#define HANZO_API_CatalogApi_H_
|
|
|
|
|
|
|
|
#include "hanzo/ApiClient.h"
|
|
|
|
#include "hanzo/model/CatalogPage.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <boost/optional.hpp>
|
|
|
|
namespace hanzo {
|
|
namespace api {
|
|
|
|
using namespace hanzo::model;
|
|
|
|
|
|
|
|
class CatalogApi
|
|
{
|
|
public:
|
|
|
|
explicit CatalogApi( std::shared_ptr<const ApiClient> apiClient );
|
|
|
|
virtual ~CatalogApi();
|
|
|
|
/// <summary>
|
|
/// Browse searches AND browses the cross-org catalog: every project, app and site the fleet has built, whichever org built it.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Browse searches AND browses the cross-org catalog: every project, app and site the fleet has built, whichever org built it. It reads TWO corpora and returns them as one page — the published, world-readable catalog that every caller sees, plus the caller's OWN org's private entries when the request carries a validated principal. Each row says which it came from in `scope`, so a client can warn before sharing a link. An anonymous caller simply gets the published one; no filter can ever widen a caller into another tenant's corpus, because the query that would return it is never run for them. A request with no q is a browse rather than a search, and both answer the same shape: the page, the total before paging, and the facet counts over the whole matching set.
|
|
/// </remarks>
|
|
/// <param name="q">Q is the free-text query the lexical index scores relevance on. Empty is a browse rather than a search — the same request either way. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="org">Org narrows to one builder org: hanzo | lux | zoo. Case-insensitive. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="kind">Kind narrows to repo | site. Case-insensitive. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="origin">Origin narrows to what a row IS to you: template | community | third-party | product. This is the axis the two hanzo.app lanes are cut on. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="archetype">Archetype narrows to one project archetype. Case-insensitive. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="language">Language narrows to one implementation language. Case-insensitive. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="r_template">Template narrows a lane to ONE lineage: the id of the parent everything returned was forked from. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="forkable">Forkable is tri-state: \"true\" selects the forkable rows, \"false\" selects the rest, and anything else — including absent — applies no filter at all. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="limit">Limit caps the page at 200, default 50. A value that is not a non-negative integer falls back to the default. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="offset">Offset is where the page starts, default 0, with the same tolerance. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
pplx::task<std::shared_ptr<CatalogPage>> getCatalog(
|
|
boost::optional<utility::string_t> q,
|
|
boost::optional<utility::string_t> org,
|
|
boost::optional<utility::string_t> kind,
|
|
boost::optional<utility::string_t> origin,
|
|
boost::optional<utility::string_t> archetype,
|
|
boost::optional<utility::string_t> language,
|
|
boost::optional<utility::string_t> r_template,
|
|
boost::optional<utility::string_t> forkable,
|
|
boost::optional<utility::string_t> limit,
|
|
boost::optional<utility::string_t> offset
|
|
) const;
|
|
|
|
protected:
|
|
std::shared_ptr<const ApiClient> m_ApiClient;
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_API_CatalogApi_H_ */
|
|
|