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

130 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.
*/
/*
* Leased.h
*
*
*/
#ifndef HANZO_MODEL_Leased_H_
#define HANZO_MODEL_Leased_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class Leased
: public ModelBase
{
public:
Leased();
virtual ~Leased();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Leased members
/// <summary>
/// Class is what was actually leased, from the closed set LeaseIn.Class names: exec | dev | desktop | android. A request that named none leased an &#x60;exec&#x60;, so this is where a caller learns which kind of computer it is holding, and it is what Workdir below follows from.
/// </summary>
utility::string_t getRClass() const;
bool rClassIsSet() const;
void unsetr_class();
void setRClass(const utility::string_t& value);
/// <summary>
/// Cluster is the attached cluster this sandbox runs on, when one was named. Empty is the home cluster.
/// </summary>
utility::string_t getCluster() const;
bool clusterIsSet() const;
void unsetCluster();
void setCluster(const utility::string_t& value);
/// <summary>
/// ID names this computer for every later call — run, read, write, stop and end all take it, and a LeaseIn carrying it resumes THIS sandbox instead of leasing a second one. Minted here; a caller cannot choose it, and a resumed lease that had expired comes back under a new one.
/// </summary>
utility::string_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(const utility::string_t& value);
/// <summary>
/// Runtime is the boundary this sandbox GOT, which need not be the one asked for — carried for the same reason Workdir is, that it is a fact only the owner knows and a caller assuming it would be holding a second copy. Empty is the node&#39;s default runtime, and a real answer.
/// </summary>
utility::string_t getRuntime() const;
bool runtimeIsSet() const;
void unsetRuntime();
void setRuntime(const utility::string_t& value);
/// <summary>
/// Status is where the pod stands, from the store&#39;s three: pending | running | error. A lease that ANSWERS has already waited for the pod, so this reads &#x60;running&#x60; — a start that failed is a 503 and no sandbox at all. Read it anyway: exec refuses a sandbox that is not running, so anything else here is the reason the next call will not work.
/// </summary>
utility::string_t getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(const utility::string_t& value);
/// <summary>
/// Workdir is the absolute directory this sandbox keeps files in, and what a relative path in a later read, write or run resolves against — /work for dev, desktop and android (the project volume&#39;s mount point), /mnt/data for exec (the artifact directory the code tool tells the model to write to). A path that climbs above it is refused rather than rewritten.
/// </summary>
utility::string_t getWorkdir() const;
bool workdirIsSet() const;
void unsetWorkdir();
void setWorkdir(const utility::string_t& value);
protected:
utility::string_t m_r_class;
bool m_r_classIsSet;
utility::string_t m_Cluster;
bool m_ClusterIsSet;
utility::string_t m_Id;
bool m_IdIsSet;
utility::string_t m_Runtime;
bool m_RuntimeIsSet;
utility::string_t m_Status;
bool m_StatusIsSet;
utility::string_t m_Workdir;
bool m_WorkdirIsSet;
};
}
}
#endif /* HANZO_MODEL_Leased_H_ */