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

319 lines
8.5 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.
*/
/*
* SessionDetail.h
*
*
*/
#ifndef HANZO_MODEL_SessionDetail_H_
#define HANZO_MODEL_SessionDetail_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/LastEventView.h"
#include "hanzo/model/SessionView.h"
#include "hanzo/model/EventView.h"
#include <cpprest/details/basic_types.h>
#include "hanzo/model/SessionProgress.h"
#include <vector>
namespace hanzo {
namespace model {
class SessionView;
class LastEventView;
class SessionProgress;
class EventView;
class SessionDetail
: public ModelBase
{
public:
SessionDetail();
virtual ~SessionDetail();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// SessionDetail members
utility::string_t getAccount() const;
bool accountIsSet() const;
void unsetAccount();
void setAccount(const utility::string_t& value);
utility::string_t getActor() const;
bool actorIsSet() const;
void unsetActor();
void setActor(const utility::string_t& value);
utility::string_t getAgent() const;
bool agentIsSet() const;
void unsetAgent();
void setAgent(const utility::string_t& value);
/// <summary>
/// Children is the session&#39;s DIRECT children, one level down, each with its own counts. The promoted &#x60;children&#x60; integer beside it is how many there are; this is who they are. For the whole subtree, read the tree.
/// </summary>
std::vector<std::shared_ptr<SessionView>> getChildSessions() const;
bool childSessionsIsSet() const;
void unsetChildSessions();
void setChildSessions(const std::vector<std::shared_ptr<SessionView>>& value);
int64_t getChildren() const;
bool childrenIsSet() const;
void unsetChildren();
void setChildren(int64_t value);
utility::string_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreatedAt();
void setCreatedAt(const utility::string_t& value);
utility::string_t getCwd() const;
bool cwdIsSet() const;
void unsetCwd();
void setCwd(const utility::string_t& value);
utility::string_t getEndedAt() const;
bool endedAtIsSet() const;
void unsetEndedAt();
void setEndedAt(const utility::string_t& value);
int64_t getEvents() const;
bool eventsIsSet() const;
void unsetEvents();
void setEvents(int64_t value);
utility::string_t getHost() const;
bool hostIsSet() const;
void unsetHost();
void setHost(const utility::string_t& value);
utility::string_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(const utility::string_t& value);
std::shared_ptr<LastEventView> getLastEvent() const;
bool lastEventIsSet() const;
void unsetLastEvent();
void setLastEvent(const std::shared_ptr<LastEventView>& value);
utility::string_t getOrg() const;
bool orgIsSet() const;
void unsetOrg();
void setOrg(const utility::string_t& value);
utility::string_t getParentSessionId() const;
bool parentSessionIdIsSet() const;
void unsetParentSessionId();
void setParentSessionId(const utility::string_t& value);
std::shared_ptr<SessionProgress> getProgress() const;
bool progressIsSet() const;
void unsetProgress();
void setProgress(const std::shared_ptr<SessionProgress>& value);
utility::string_t getProject() const;
bool projectIsSet() const;
void unsetProject();
void setProject(const utility::string_t& value);
utility::string_t getProvider() const;
bool providerIsSet() const;
void unsetProvider();
void setProvider(const utility::string_t& value);
bool isPublished() const;
bool publishedIsSet() const;
void unsetPublished();
void setPublished(bool value);
/// <summary>
/// RecentEvents is the 50 most recent turns, OLDEST of those first — a transcript to read down, not a feed. The promoted &#x60;events&#x60; integer says how many the log holds in total; page the rest from a seq.
/// </summary>
std::vector<std::shared_ptr<EventView>> getRecentEvents() const;
bool recentEventsIsSet() const;
void unsetRecentEvents();
void setRecentEvents(const std::vector<std::shared_ptr<EventView>>& value);
utility::string_t getRepo() const;
bool repoIsSet() const;
void unsetRepo();
void setRepo(const utility::string_t& value);
utility::string_t getRoom() const;
bool roomIsSet() const;
void unsetRoom();
void setRoom(const utility::string_t& value);
utility::string_t getRootSessionId() const;
bool rootSessionIdIsSet() const;
void unsetRootSessionId();
void setRootSessionId(const utility::string_t& value);
utility::string_t getStartedAt() const;
bool startedAtIsSet() const;
void unsetStartedAt();
void setStartedAt(const utility::string_t& value);
utility::string_t getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(const utility::string_t& value);
utility::string_t getTarget() const;
bool targetIsSet() const;
void unsetTarget();
void setTarget(const utility::string_t& value);
utility::string_t getTaskRunId() const;
bool taskRunIdIsSet() const;
void unsetTaskRunId();
void setTaskRunId(const utility::string_t& value);
utility::string_t getTaskWorkflowId() const;
bool taskWorkflowIdIsSet() const;
void unsetTaskWorkflowId();
void setTaskWorkflowId(const utility::string_t& value);
utility::string_t getTerminal() const;
bool terminalIsSet() const;
void unsetTerminal();
void setTerminal(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 getUpdatedAt() const;
bool updatedAtIsSet() const;
void unsetUpdatedAt();
void setUpdatedAt(const utility::string_t& value);
protected:
utility::string_t m_Account;
bool m_AccountIsSet;
utility::string_t m_Actor;
bool m_ActorIsSet;
utility::string_t m_Agent;
bool m_AgentIsSet;
std::vector<std::shared_ptr<SessionView>> m_ChildSessions;
bool m_ChildSessionsIsSet;
int64_t m_Children;
bool m_ChildrenIsSet;
utility::string_t m_CreatedAt;
bool m_CreatedAtIsSet;
utility::string_t m_Cwd;
bool m_CwdIsSet;
utility::string_t m_EndedAt;
bool m_EndedAtIsSet;
int64_t m_Events;
bool m_EventsIsSet;
utility::string_t m_Host;
bool m_HostIsSet;
utility::string_t m_Id;
bool m_IdIsSet;
std::shared_ptr<LastEventView> m_LastEvent;
bool m_LastEventIsSet;
utility::string_t m_Org;
bool m_OrgIsSet;
utility::string_t m_ParentSessionId;
bool m_ParentSessionIdIsSet;
std::shared_ptr<SessionProgress> m_Progress;
bool m_ProgressIsSet;
utility::string_t m_Project;
bool m_ProjectIsSet;
utility::string_t m_Provider;
bool m_ProviderIsSet;
bool m_Published;
bool m_PublishedIsSet;
std::vector<std::shared_ptr<EventView>> m_RecentEvents;
bool m_RecentEventsIsSet;
utility::string_t m_Repo;
bool m_RepoIsSet;
utility::string_t m_Room;
bool m_RoomIsSet;
utility::string_t m_RootSessionId;
bool m_RootSessionIdIsSet;
utility::string_t m_StartedAt;
bool m_StartedAtIsSet;
utility::string_t m_Status;
bool m_StatusIsSet;
utility::string_t m_Target;
bool m_TargetIsSet;
utility::string_t m_TaskRunId;
bool m_TaskRunIdIsSet;
utility::string_t m_TaskWorkflowId;
bool m_TaskWorkflowIdIsSet;
utility::string_t m_Terminal;
bool m_TerminalIsSet;
utility::string_t m_Title;
bool m_TitleIsSet;
utility::string_t m_UpdatedAt;
bool m_UpdatedAtIsSet;
};
}
}
#endif /* HANZO_MODEL_SessionDetail_H_ */