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.
80 lines
3.9 KiB
C++
80 lines
3.9 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.
|
|
*/
|
|
|
|
/*
|
|
* AuditApi.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_API_AuditApi_H_
|
|
#define HANZO_API_AuditApi_H_
|
|
|
|
|
|
|
|
#include "hanzo/ApiClient.h"
|
|
|
|
#include "hanzo/model/TrailPage.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <boost/optional.hpp>
|
|
|
|
namespace hanzo {
|
|
namespace api {
|
|
|
|
using namespace hanzo::model;
|
|
|
|
|
|
|
|
class AuditApi
|
|
{
|
|
public:
|
|
|
|
explicit AuditApi( std::shared_ptr<const ApiClient> apiClient );
|
|
|
|
virtual ~AuditApi();
|
|
|
|
/// <summary>
|
|
/// List reads the caller's OWN org audit trail, newest first, with the total the filter matched so a console can page it.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// List reads the caller's OWN org audit trail, newest first, with the total the filter matched so a console can page it. Every filter is optional and applies WITHIN the caller's org — the org itself is the validated principal's and can never be widened by a request. Fails closed: an absent principal is a true \"not signed in\" (401), and a deployment with no local tamper-evident store answers an honest 501 rather than silently serving somebody else's trail.
|
|
/// </remarks>
|
|
/// <param name="sub">Sub narrows the trail to one actor — the validated subject that made the request. Blank means every actor in the org. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="action">Action narrows it to one action name, e.g. \"machine.create\". (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="resource">Resource narrows it to one resource TYPE, e.g. \"apikey\". (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="resourceId">ResourceID narrows it to one resource instance. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="result">Result narrows it to one outcome: \"success\", \"deny\" or \"error\". (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="since">Since is the inclusive lower time bound, RFC3339. An unparseable value is ignored rather than refused — one malformed filter must not hide the trail. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="until">Until is the upper time bound, RFC3339, with the same tolerance. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="pageSize">PageSize is rows per page, default 100. A value that is not a positive integer falls back to the default. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
/// <param name="p">Page is the 1-based page number, driving the offset. Anything below 2 reads the first page. (optional, default to utility::conversions::to_string_t(""))</param>
|
|
pplx::task<std::shared_ptr<TrailPage>> getAudit(
|
|
boost::optional<utility::string_t> sub,
|
|
boost::optional<utility::string_t> action,
|
|
boost::optional<utility::string_t> resource,
|
|
boost::optional<utility::string_t> resourceId,
|
|
boost::optional<utility::string_t> result,
|
|
boost::optional<utility::string_t> since,
|
|
boost::optional<utility::string_t> until,
|
|
boost::optional<utility::string_t> pageSize,
|
|
boost::optional<utility::string_t> p
|
|
) const;
|
|
|
|
protected:
|
|
std::shared_ptr<const ApiClient> m_ApiClient;
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_API_AuditApi_H_ */
|
|
|