Files
zeekay 189ce08e51 Regenerate against the document the deployment answers for
The projection these were generated from was a month old and predated the
compute migration, so every one of them described /v1/visor — which the API
serves at zero paths now. That is why a hand-written console client and a
generated one had drifted the same way at the same time.

No /v1/visor path survives here. The word still appears as a source-plane
value and inside gvisor and supervisor, which are not this rename.
2026-09-05 18:07:13 -07:00

174 lines
4.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.
*/
/*
* BuildSummary.h
*
*
*/
#ifndef HANZO_MODEL_BuildSummary_H_
#define HANZO_MODEL_BuildSummary_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class BuildSummary
: public ModelBase
{
public:
BuildSummary();
virtual ~BuildSummary();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// BuildSummary 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 is still going.
/// </summary>
utility::string_t getEndedAt() const;
bool endedAtIsSet() const;
void unsetEndedAt();
void setEndedAt(const utility::string_t& value);
/// <summary>
/// Org and Project are the build&#39;s public ADDRESS — the pair the full story is read at, and the pair a visitor sees in the URL bar. Not a tenant key: this index is anonymous and lists only what authors 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 second 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 agent session behind the build, and the value its commits name in their &#x60;Hanzo-Session:&#x60; trailer.
/// </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 — so a card can show a build still being written.
/// </summary>
utility::string_t getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(const utility::string_t& value);
/// <summary>
/// Title is the human line for the card. Sent even when empty, like every field here, because that is what this route has always sent.
/// </summary>
utility::string_t getTitle() const;
bool titleIsSet() const;
void unsetTitle();
void setTitle(const utility::string_t& value);
/// <summary>
/// Turns is HOW MANY turns the transcript holds — a COUNT, unlike the &#x60;turn&#x60; on each turn of the full story, which is that turn&#39;s position. The full read returns at most 1000 of them; this number is not capped.
/// </summary>
int64_t getTurns() const;
bool turnsIsSet() const;
void unsetTurns();
void setTurns(int64_t value);
protected:
utility::string_t m_Agent;
bool m_AgentIsSet;
utility::string_t m_EndedAt;
bool m_EndedAtIsSet;
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;
int64_t m_Turns;
bool m_TurnsIsSet;
};
}
}
#endif /* HANZO_MODEL_BuildSummary_H_ */