mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
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.
141 lines
4.3 KiB
C++
141 lines
4.3 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.
|
|
*/
|
|
|
|
/*
|
|
* BuildTurn.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_BuildTurn_H_
|
|
#define HANZO_MODEL_BuildTurn_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class BuildTurn
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
BuildTurn();
|
|
virtual ~BuildTurn();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// BuildTurn members
|
|
|
|
|
|
/// <summary>
|
|
/// Actor is who took the turn. A deploy turn's actor is the literal \"deploy\", because nobody took it.
|
|
/// </summary>
|
|
utility::string_t getActor() const;
|
|
bool actorIsSet() const;
|
|
void unsetActor();
|
|
void setActor(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// At is when the turn was recorded, RFC 3339 in UTC to the second.
|
|
/// </summary>
|
|
utility::string_t getAt() const;
|
|
bool atIsSet() const;
|
|
void unsetAt();
|
|
void setAt(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Body is the readable text of the turn, taken from the stored event's `text`. Empty when the event carried a payload of some other shape — this route reads transcripts and does not invent prose for turns that are not one.
|
|
/// </summary>
|
|
utility::string_t getBody() const;
|
|
bool bodyIsSet() const;
|
|
void unsetBody();
|
|
void setBody(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Commit is the full sha this turn produced, empty when the turn changed nothing. It is ECHOED from the transcript, and the authority is the commit itself: it carries the `Hanzo-Session:`/`Hanzo-Turn:` trailer, or a note under refs/notes/hanzo-provenance saying the same, so the claim is checkable at source with the command in `verify`.
|
|
/// </summary>
|
|
utility::string_t getCommit() const;
|
|
bool commitIsSet() const;
|
|
void unsetCommit();
|
|
void setCommit(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Kind is what the turn was, from the log's closed six: message, tool-call, spawn, log, status, control. A deploy arrives as a `status` turn.
|
|
/// </summary>
|
|
utility::string_t getKind() const;
|
|
bool kindIsSet() const;
|
|
void unsetKind();
|
|
void setKind(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Subject is that commit's subject line, from the same transcript, so a reader sees what the commit says without fetching the repository.
|
|
/// </summary>
|
|
utility::string_t getSubject() const;
|
|
bool subjectIsSet() const;
|
|
void unsetSubject();
|
|
void setSubject(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Seq is this turn's POSITION in the session's log — monotonic from 1, per session — and it is what a commit's `Hanzo-Turn:` trailer names. It is not a count of anything: the count is `turns` on the summary beside it.
|
|
/// </summary>
|
|
int64_t getTurn() const;
|
|
bool turnIsSet() const;
|
|
void unsetTurn();
|
|
void setTurn(int64_t value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Actor;
|
|
bool m_ActorIsSet;
|
|
|
|
utility::string_t m_At;
|
|
bool m_AtIsSet;
|
|
|
|
utility::string_t m_Body;
|
|
bool m_BodyIsSet;
|
|
|
|
utility::string_t m_Commit;
|
|
bool m_CommitIsSet;
|
|
|
|
utility::string_t m_Kind;
|
|
bool m_KindIsSet;
|
|
|
|
utility::string_t m_Subject;
|
|
bool m_SubjectIsSet;
|
|
|
|
int64_t m_Turn;
|
|
bool m_TurnIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_BuildTurn_H_ */
|