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

152 lines
4.4 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.
*/
/*
* RoutedRunOut.h
*
*
*/
#ifndef HANZO_MODEL_RoutedRunOut_H_
#define HANZO_MODEL_RoutedRunOut_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class RoutedRunOut
: public ModelBase
{
public:
RoutedRunOut();
virtual ~RoutedRunOut();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// RoutedRunOut members
/// <summary>
/// Base is the branch to start FROM. Empty means the repository&#39;s default — resolve it on the machine, since the machine is the one holding the clone.
/// </summary>
utility::string_t getBase() const;
bool baseIsSet() const;
void unsetBase();
void setBase(const utility::string_t& value);
/// <summary>
/// Branch is the ref the run must push its work to, and the ONLY one it is permitted to write: the forge&#39;s ref policy refuses anything else from this run&#39;s credential. It is decided at dispatch and exists before the work does.
/// </summary>
utility::string_t getBranch() const;
bool branchIsSet() const;
void unsetBranch();
void setBranch(const utility::string_t& value);
/// <summary>
/// CloneURL is how to fetch the repository. It carries NO credential — the machine authenticates with the git identity it already holds — which is why this whole shape is safe to hand to a claimed runner.
/// </summary>
utility::string_t getCloneUrl() const;
bool cloneUrlIsSet() const;
void unsetCloneUrl();
void setCloneUrl(const utility::string_t& value);
/// <summary>
/// Project is the product slug the run is filed under, so the machine can tag what it produces. Empty when the dispatch named none.
/// </summary>
utility::string_t getProject() const;
bool projectIsSet() const;
void unsetProject();
void setProject(const utility::string_t& value);
/// <summary>
/// Prompt is the task, in full, as the person wrote it. There is no second field for context.
/// </summary>
utility::string_t getPrompt() const;
bool promptIsSet() const;
void unsetPrompt();
void setPrompt(const utility::string_t& value);
/// <summary>
/// Repo is the repository to work in and CloneURL is how to fetch it.
/// </summary>
utility::string_t getRepo() const;
bool repoIsSet() const;
void unsetRepo();
void setRepo(const utility::string_t& value);
/// <summary>
/// SessionID is the live session opened at dispatch; the machine streams its turns into it.
/// </summary>
utility::string_t getSessionId() const;
bool sessionIdIsSet() const;
void unsetSessionId();
void setSessionId(const utility::string_t& value);
/// <summary>
/// TimeoutSeconds bounds the run on the machine; 0 means the machine&#39;s own default.
/// </summary>
int64_t getTimeoutSeconds() const;
bool timeoutSecondsIsSet() const;
void unsetTimeoutSeconds();
void setTimeoutSeconds(int64_t value);
protected:
utility::string_t m_Base;
bool m_BaseIsSet;
utility::string_t m_Branch;
bool m_BranchIsSet;
utility::string_t m_CloneUrl;
bool m_CloneUrlIsSet;
utility::string_t m_Project;
bool m_ProjectIsSet;
utility::string_t m_Prompt;
bool m_PromptIsSet;
utility::string_t m_Repo;
bool m_RepoIsSet;
utility::string_t m_SessionId;
bool m_SessionIdIsSet;
int64_t m_TimeoutSeconds;
bool m_TimeoutSecondsIsSet;
};
}
}
#endif /* HANZO_MODEL_RoutedRunOut_H_ */