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

187 lines
4.7 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.
*/
/*
* Execution.h
*
*
*/
#ifndef HANZO_MODEL_Execution_H_
#define HANZO_MODEL_Execution_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class Execution
: public ModelBase
{
public:
Execution();
virtual ~Execution();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Execution members
utility::string_t getActor() const;
bool actorIsSet() const;
void unsetActor();
void setActor(const utility::string_t& value);
utility::string_t getBranch() const;
bool branchIsSet() const;
void unsetBranch();
void setBranch(const utility::string_t& value);
utility::string_t getConclusion() const;
bool conclusionIsSet() const;
void unsetConclusion();
void setConclusion(const utility::string_t& value);
utility::datetime getEndedAt() const;
bool endedAtIsSet() const;
void unsetEndedAt();
void setEndedAt(const utility::datetime& value);
utility::string_t getEvent() const;
bool eventIsSet() const;
void unsetEvent();
void setEvent(const utility::string_t& value);
int64_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(int64_t value);
int64_t getNumber() const;
bool numberIsSet() const;
void unsetnumber();
void setNumber(int64_t value);
utility::string_t getOrg() const;
bool orgIsSet() const;
void unsetOrg();
void setOrg(const utility::string_t& value);
utility::string_t getRepo() const;
bool repoIsSet() const;
void unsetRepo();
void setRepo(const utility::string_t& value);
utility::string_t getSha() const;
bool shaIsSet() const;
void unsetSha();
void setSha(const utility::string_t& value);
utility::datetime getStartedAt() const;
bool startedAtIsSet() const;
void unsetStartedAt();
void setStartedAt(const utility::datetime& value);
/// <summary>
/// Status and Conclusion are BOTH required to know how a run went, and reading only one is wrong in a way that looks fine. Status answers \&quot;is it over\&quot; (queued | in_progress | completed); Conclusion answers \&quot;how did it end\&quot; and is empty until it is over. A view that buckets on Status alone sees &#x60;completed&#x60; and cannot tell a pass from a failure, so it draws every finished run — successes and cancellations included — the same way.
/// </summary>
utility::string_t getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(const utility::string_t& value);
utility::string_t getTitle() const;
bool titleIsSet() const;
void unsetTitle();
void setTitle(const utility::string_t& value);
utility::string_t getUrl() const;
bool urlIsSet() const;
void unsetUrl();
void setUrl(const utility::string_t& value);
utility::string_t getWorkflow() const;
bool workflowIsSet() const;
void unsetWorkflow();
void setWorkflow(const utility::string_t& value);
protected:
utility::string_t m_Actor;
bool m_ActorIsSet;
utility::string_t m_Branch;
bool m_BranchIsSet;
utility::string_t m_Conclusion;
bool m_ConclusionIsSet;
utility::datetime m_EndedAt;
bool m_EndedAtIsSet;
utility::string_t m_Event;
bool m_EventIsSet;
int64_t m_Id;
bool m_IdIsSet;
int64_t m_number;
bool m_numberIsSet;
utility::string_t m_Org;
bool m_OrgIsSet;
utility::string_t m_Repo;
bool m_RepoIsSet;
utility::string_t m_Sha;
bool m_ShaIsSet;
utility::datetime m_StartedAt;
bool m_StartedAtIsSet;
utility::string_t m_Status;
bool m_StatusIsSet;
utility::string_t m_Title;
bool m_TitleIsSet;
utility::string_t m_Url;
bool m_UrlIsSet;
utility::string_t m_Workflow;
bool m_WorkflowIsSet;
};
}
}
#endif /* HANZO_MODEL_Execution_H_ */