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

119 lines
3.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.
*/
/*
* SessionProgress.h
*
*
*/
#ifndef HANZO_MODEL_SessionProgress_H_
#define HANZO_MODEL_SessionProgress_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class SessionProgress
: public ModelBase
{
public:
SessionProgress();
virtual ~SessionProgress();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// SessionProgress members
/// <summary>
/// Activity is the one line saying what the run is doing right now (\&quot;running the reaper&#39;s tests\&quot;), up to 120 characters, in the model&#39;s words. Empty when nothing has estimated it yet.
/// </summary>
utility::string_t getActivity() const;
bool activityIsSet() const;
void unsetActivity();
void setActivity(const utility::string_t& value);
/// <summary>
/// At is when this was determined, RFC 3339 in UTC to the second. Read it as the estimate&#39;s AGE: an estimate is not refreshed while nothing has happened, and a stale one beside a run that is still moving is itself worth seeing. Empty when nothing has estimated it yet.
/// </summary>
utility::string_t getAt() const;
bool atIsSet() const;
void unsetAt();
void setAt(const utility::string_t& value);
/// <summary>
/// Estimated says a MODEL produced this, from the run&#39;s transcript, and it may be wrong. False means the session&#39;s own row said it: a finished run is 100% because it finished, not because anything guessed. Never treat a true here as a measurement — it is the reason to look, not the answer.
/// </summary>
bool isEstimated() const;
bool estimatedIsSet() const;
void unsetEstimated();
void setEstimated(bool value);
/// <summary>
/// Pct is how much of the run is done, 0 to 100. THE KEY IS ABSENT when progress is indeterminate — a run nobody can estimate is not a run that has done nothing, and rendering the second for the first is the mistake this omission exists to make impossible. Read &#x60;phase&#x60; before reaching for it.
/// </summary>
int64_t getPct() const;
bool pctIsSet() const;
void unsetPct();
void setPct(int64_t value);
/// <summary>
/// Phase is what shape the run is in: running, blocked, done, error, or unknown when nothing has estimated it yet. blocked means the transcript shows the run waiting on something — an approval, a credential, an answer — which is the one state the running surface cannot report about itself. error only ever comes from the session&#39;s own terminal status.
/// </summary>
utility::string_t getPhase() const;
bool phaseIsSet() const;
void unsetPhase();
void setPhase(const utility::string_t& value);
protected:
utility::string_t m_Activity;
bool m_ActivityIsSet;
utility::string_t m_At;
bool m_AtIsSet;
bool m_Estimated;
bool m_EstimatedIsSet;
int64_t m_Pct;
bool m_PctIsSet;
utility::string_t m_Phase;
bool m_PhaseIsSet;
};
}
}
#endif /* HANZO_MODEL_SessionProgress_H_ */