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.
230 lines
6.1 KiB
C++
230 lines
6.1 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.
|
|
*/
|
|
|
|
/*
|
|
* TraceView.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_TraceView_H_
|
|
#define HANZO_MODEL_TraceView_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/Object.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class TraceView
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
TraceView();
|
|
virtual ~TraceView();
|
|
|
|
/////////////////////////////////////////////
|
|
/// ModelBase overrides
|
|
|
|
void validate() override;
|
|
|
|
web::json::value toJson() const override;
|
|
bool fromJson(const web::json::value& json) override;
|
|
|
|
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
|
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// TraceView members
|
|
|
|
|
|
/// <summary>
|
|
/// APIKeyHash is the non-reversible credential ref (never a plaintext key), so a trace correlates to the key that drove it without the store holding a secret.
|
|
/// </summary>
|
|
utility::string_t getApiKeyHash() const;
|
|
bool apiKeyHashIsSet() const;
|
|
void unsetApiKeyHash();
|
|
void setApiKeyHash(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ItemID is the example the call answered.
|
|
/// </summary>
|
|
utility::string_t getDatasetItemId() const;
|
|
bool datasetItemIdIsSet() const;
|
|
void unsetDatasetItemId();
|
|
void setDatasetItemId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Dataset is the set the graded example came from.
|
|
/// </summary>
|
|
utility::string_t getDatasetName() const;
|
|
bool datasetNameIsSet() const;
|
|
void unsetDatasetName();
|
|
void setDatasetName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// EndTime is when it returned.
|
|
/// </summary>
|
|
utility::string_t getEndTime() const;
|
|
bool endTimeIsSet() const;
|
|
void unsetEndTime();
|
|
void setEndTime(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ID is the trace's handle, the value a score points at.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Input is what the model was given.
|
|
/// </summary>
|
|
std::shared_ptr<Object> getInput() const;
|
|
bool inputIsSet() const;
|
|
void unsetInput();
|
|
void setInput(const std::shared_ptr<Object>& value);
|
|
|
|
/// <summary>
|
|
/// LatencyMs is EndTime-StartTime in milliseconds, nil when the trace carries no timing (so the console renders \"—\", never a fabricated 0).
|
|
/// </summary>
|
|
double getLatencyMs() const;
|
|
bool latencyMsIsSet() const;
|
|
void unsetLatencyMs();
|
|
void setLatencyMs(double value);
|
|
|
|
/// <summary>
|
|
/// Model is the model that answered.
|
|
/// </summary>
|
|
utility::string_t getModel() const;
|
|
bool modelIsSet() const;
|
|
void unsetModel();
|
|
void setModel(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Name is the trace's label, \"eval:<run>\" for a call a run made.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Output is what it answered.
|
|
/// </summary>
|
|
utility::string_t getOutput() const;
|
|
bool outputIsSet() const;
|
|
void unsetOutput();
|
|
void setOutput(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ProjectID is the sub-scope within the org the call was made under.
|
|
/// </summary>
|
|
utility::string_t getProjectId() const;
|
|
bool projectIdIsSet() const;
|
|
void unsetProjectId();
|
|
void setProjectId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// RunName is the run the call belongs to.
|
|
/// </summary>
|
|
utility::string_t getRunName() const;
|
|
bool runNameIsSet() const;
|
|
void unsetRunName();
|
|
void setRunName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// SessionID groups the calls of one run.
|
|
/// </summary>
|
|
utility::string_t getSessionId() const;
|
|
bool sessionIdIsSet() const;
|
|
void unsetSessionId();
|
|
void setSessionId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// StartTime is when the call began.
|
|
/// </summary>
|
|
utility::string_t getStartTime() const;
|
|
bool startTimeIsSet() const;
|
|
void unsetStartTime();
|
|
void setStartTime(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Timestamp is the trace's own clock, equal to StartTime for a timed call.
|
|
/// </summary>
|
|
utility::string_t getTimestamp() const;
|
|
bool timestampIsSet() const;
|
|
void unsetTimestamp();
|
|
void setTimestamp(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_ApiKeyHash;
|
|
bool m_ApiKeyHashIsSet;
|
|
|
|
utility::string_t m_DatasetItemId;
|
|
bool m_DatasetItemIdIsSet;
|
|
|
|
utility::string_t m_DatasetName;
|
|
bool m_DatasetNameIsSet;
|
|
|
|
utility::string_t m_EndTime;
|
|
bool m_EndTimeIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
std::shared_ptr<Object> m_Input;
|
|
bool m_InputIsSet;
|
|
|
|
double m_LatencyMs;
|
|
bool m_LatencyMsIsSet;
|
|
|
|
utility::string_t m_Model;
|
|
bool m_ModelIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
utility::string_t m_Output;
|
|
bool m_OutputIsSet;
|
|
|
|
utility::string_t m_ProjectId;
|
|
bool m_ProjectIdIsSet;
|
|
|
|
utility::string_t m_RunName;
|
|
bool m_RunNameIsSet;
|
|
|
|
utility::string_t m_SessionId;
|
|
bool m_SessionIdIsSet;
|
|
|
|
utility::string_t m_StartTime;
|
|
bool m_StartTimeIsSet;
|
|
|
|
utility::string_t m_Timestamp;
|
|
bool m_TimestampIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_TraceView_H_ */
|