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
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.
*/
/*
* LeaseIn.h
*
*
*/
#ifndef HANZO_MODEL_LeaseIn_H_
#define HANZO_MODEL_LeaseIn_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class LeaseIn
: public ModelBase
{
public:
LeaseIn();
virtual ~LeaseIn();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// LeaseIn members
/// <summary>
/// Class is what the sandbox is FOR: \&quot;exec\&quot; for a code-interpreter call, \&quot;dev\&quot; for a workspace bound to a project, \&quot;desktop\&quot; for one with a screen. It decides the image, the working directory and the isolation.
/// </summary>
utility::string_t getRClass() const;
bool rClassIsSet() const;
void unsetr_class();
void setRClass(const utility::string_t& value);
/// <summary>
/// Cluster names one of the org&#39;s attached clusters to run the sandbox on — the fleet-local name it was registered under. Empty runs on the home cluster. The named cluster must carry the sandbox namespace and the gvisor runtime class; a name the org has not attached is 404.
/// </summary>
utility::string_t getCluster() const;
bool clusterIsSet() const;
void unsetCluster();
void setCluster(const utility::string_t& value);
/// <summary>
/// Image overrides the image the class would pick. Honoured only for a caller the policy admits, and the sandbox that comes back names the image it GOT.
/// </summary>
utility::string_t getImage() const;
bool imageIsSet() const;
void unsetImage();
void setImage(const utility::string_t& value);
/// <summary>
/// Project binds the sandbox to one of the org&#39;s projects. Required for a dev or desktop class, which are single-attach per project; an exec sandbox carries none.
/// </summary>
utility::string_t getProject() const;
bool projectIsSet() const;
void unsetProject();
void setProject(const utility::string_t& value);
/// <summary>
/// Runtime asks for an isolation: runc, gvisor, kata-clh or kata-fc. It is a REQUEST, not a guarantee — the sandbox that comes back carries the runtime it was actually given, which is the field to read.
/// </summary>
utility::string_t getRuntime() const;
bool runtimeIsSet() const;
void unsetRuntime();
void setRuntime(const utility::string_t& value);
/// <summary>
/// TTLSec is how long the lease runs before the reaper may take it, in seconds. Zero takes the class&#39;s own default.
/// </summary>
int64_t getTtlSec() const;
bool ttlSecIsSet() const;
void unsetTtlSec();
void setTtlSec(int64_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_Image;
bool m_ImageIsSet;
utility::string_t m_Project;
bool m_ProjectIsSet;
utility::string_t m_Runtime;
bool m_RuntimeIsSet;
int64_t m_TtlSec;
bool m_TtlSecIsSet;
};
}
}
#endif /* HANZO_MODEL_LeaseIn_H_ */