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.
119 lines
3.2 KiB
C++
119 lines
3.2 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.
|
|
*/
|
|
|
|
/*
|
|
* LastEventView.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_LastEventView_H_
|
|
#define HANZO_MODEL_LastEventView_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class LastEventView
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
LastEventView();
|
|
virtual ~LastEventView();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// LastEventView members
|
|
|
|
|
|
/// <summary>
|
|
/// Actor is who produced the turn, defaulted to the calling principal when the writer named nobody.
|
|
/// </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>
|
|
/// Kind is what the turn was, from the log's closed six: message, tool-call, spawn, log, status, control.
|
|
/// </summary>
|
|
utility::string_t getKind() const;
|
|
bool kindIsSet() const;
|
|
void unsetKind();
|
|
void setKind(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Preview is the first 240 bytes of the event's payload, cut without regard for the JSON inside it — it is a string to SHOW, never a value to parse. Read the detail or the stream for the whole payload.
|
|
/// </summary>
|
|
utility::string_t getPreview() const;
|
|
bool previewIsSet() const;
|
|
void unsetPreview();
|
|
void setPreview(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Seq is that event's position in the session's log — monotonic from 1, per session. A reader holding it can ask the detail or stream reads for everything after it, so this doubles as the list's resume cursor.
|
|
/// </summary>
|
|
int64_t getSeq() const;
|
|
bool seqIsSet() const;
|
|
void unsetSeq();
|
|
void setSeq(int64_t value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Actor;
|
|
bool m_ActorIsSet;
|
|
|
|
utility::string_t m_At;
|
|
bool m_AtIsSet;
|
|
|
|
utility::string_t m_Kind;
|
|
bool m_KindIsSet;
|
|
|
|
utility::string_t m_Preview;
|
|
bool m_PreviewIsSet;
|
|
|
|
int64_t m_Seq;
|
|
bool m_SeqIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_LastEventView_H_ */
|