Files
zeekay 645325a641 regenerate from cloud 939b09d4
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.
2026-08-24 23:32:53 -07:00

199 lines
5.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.
*/
/*
* BuildView.h
*
*
*/
#ifndef HANZO_MODEL_BuildView_H_
#define HANZO_MODEL_BuildView_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
#include "hanzo/model/BuildTurn.h"
#include <vector>
namespace hanzo {
namespace model {
class BuildTurn;
class BuildView
: public ModelBase
{
public:
BuildView();
virtual ~BuildView();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// BuildView members
/// <summary>
/// Agent is the label the surface that did the work calls itself by.
/// </summary>
utility::string_t getAgent() const;
bool agentIsSet() const;
void unsetAgent();
void setAgent(const utility::string_t& value);
/// <summary>
/// EndedAt is when it finished, same format. Empty means it has not — the build is still going.
/// </summary>
utility::string_t getEndedAt() const;
bool endedAtIsSet() const;
void unsetEndedAt();
void setEndedAt(const utility::string_t& value);
/// <summary>
/// Model is the model that did the work, taken from the FIRST turn whose body names one — a transcript states it, this route does not resolve it. Empty when no turn said.
/// </summary>
utility::string_t getModel() const;
bool modelIsSet() const;
void unsetModel();
void setModel(const utility::string_t& value);
/// <summary>
/// Org is the org that published this build, echoed from the URL. It is part of the build&#39;s public ADDRESS and not a tenant key — this route is anonymous, and the only rows it can reach are ones an author explicitly published.
/// </summary>
utility::string_t getOrg() const;
bool orgIsSet() const;
void unsetOrg();
void setOrg(const utility::string_t& value);
/// <summary>
/// Project is the product&#39;s slug, the other half of that address.
/// </summary>
utility::string_t getProject() const;
bool projectIsSet() const;
void unsetProject();
void setProject(const utility::string_t& value);
/// <summary>
/// Repo is the repository the work was done in, as the session reported it.
/// </summary>
utility::string_t getRepo() const;
bool repoIsSet() const;
void unsetRepo();
void setRepo(const utility::string_t& value);
/// <summary>
/// Session is the id of the agent session this story IS — the same value a produced commit carries in its &#x60;Hanzo-Session:&#x60; trailer, which is what ties the repository&#39;s history to this page.
/// </summary>
utility::string_t getSession() const;
bool sessionIsSet() const;
void unsetSession();
void setSession(const utility::string_t& value);
/// <summary>
/// StartedAt is when the session opened, RFC 3339 in UTC.
/// </summary>
utility::string_t getStartedAt() const;
bool startedAtIsSet() const;
void unsetStartedAt();
void setStartedAt(const utility::string_t& value);
/// <summary>
/// Status is the session&#39;s own: running, paused, done or error. A build can be read while it is still being written, so this is not always terminal — and an &#x60;error&#x60; build is still a readable story, not a missing page.
/// </summary>
utility::string_t getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(const utility::string_t& value);
/// <summary>
/// Title is the human line the session was opened or renamed with. Empty when nobody gave it one.
/// </summary>
utility::string_t getTitle() const;
bool titleIsSet() const;
void unsetTitle();
void setTitle(const utility::string_t& value);
/// <summary>
/// Turns is the whole transcript, oldest first, capped at 1000: a published build is a story to read down, not an archive to page.
/// </summary>
std::vector<std::shared_ptr<BuildTurn>> getTurns() const;
bool turnsIsSet() const;
void unsetTurns();
void setTurns(const std::vector<std::shared_ptr<BuildTurn>>& value);
/// <summary>
/// Verify is the exact command that re-derives every commit binding below straight from git, so nothing here has to be taken on trust.
/// </summary>
utility::string_t getVerify() const;
bool verifyIsSet() const;
void unsetVerify();
void setVerify(const utility::string_t& value);
protected:
utility::string_t m_Agent;
bool m_AgentIsSet;
utility::string_t m_EndedAt;
bool m_EndedAtIsSet;
utility::string_t m_Model;
bool m_ModelIsSet;
utility::string_t m_Org;
bool m_OrgIsSet;
utility::string_t m_Project;
bool m_ProjectIsSet;
utility::string_t m_Repo;
bool m_RepoIsSet;
utility::string_t m_Session;
bool m_SessionIsSet;
utility::string_t m_StartedAt;
bool m_StartedAtIsSet;
utility::string_t m_Status;
bool m_StatusIsSet;
utility::string_t m_Title;
bool m_TitleIsSet;
std::vector<std::shared_ptr<BuildTurn>> m_Turns;
bool m_TurnsIsSet;
utility::string_t m_Verify;
bool m_VerifyIsSet;
};
}
}
#endif /* HANZO_MODEL_BuildView_H_ */