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

186 lines
5.3 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.
*/
/*
* Definition.h
*
*
*/
#ifndef HANZO_MODEL_Definition_H_
#define HANZO_MODEL_Definition_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
#include <vector>
namespace hanzo {
namespace model {
class Definition
: public ModelBase
{
public:
Definition();
virtual ~Definition();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Definition members
/// <summary>
/// Code is the source to run, capped so one function cannot amplify the store.
/// </summary>
utility::string_t getCode() const;
bool codeIsSet() const;
void unsetCode();
void setCode(const utility::string_t& value);
/// <summary>
/// EnvNames are the secret NAMES to mount. Values live in the secret store and are never carried here.
/// </summary>
std::vector<utility::string_t> getEnvNames() const;
bool envNamesIsSet() const;
void unsetEnvNames();
void setEnvNames(const std::vector<utility::string_t>& value);
/// <summary>
/// Environment is a second spelling of runtime, accepted so a console that says \&quot;environment\&quot; needs no translation.
/// </summary>
utility::string_t getEnvironment() const;
bool environmentIsSet() const;
void unsetEnvironment();
void setEnvironment(const utility::string_t& value);
/// <summary>
/// Handler is the entry point within the code.
/// </summary>
utility::string_t getHandler() const;
bool handlerIsSet() const;
void unsetHandler();
void setHandler(const utility::string_t& value);
/// <summary>
/// Image names a prebuilt image to run instead of source.
/// </summary>
utility::string_t getImage() const;
bool imageIsSet() const;
void unsetImage();
void setImage(const utility::string_t& value);
/// <summary>
/// MemoryLimit is the memory the function runs with, defaulting to 256Mi. It is also the multiplier on the GB-seconds compute charge.
/// </summary>
utility::string_t getMemoryLimit() const;
bool memoryLimitIsSet() const;
void unsetMemoryLimit();
void setMemoryLimit(const utility::string_t& value);
/// <summary>
/// Name is the function&#39;s org-unique handle and the segment that addresses it, matching ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$. The names that would shadow a collection route are reserved.
/// </summary>
utility::string_t getName() const;
bool nameIsSet() const;
void unsetName();
void setName(const utility::string_t& value);
/// <summary>
/// Namespace groups functions for display. It is cosmetic — the org is the isolation key — and is normalised to a DNS-safe label.
/// </summary>
utility::string_t getRNamespace() const;
bool rNamespaceIsSet() const;
void unsetr_namespace();
void setRNamespace(const utility::string_t& value);
/// <summary>
/// Runtime is the language the code runs under: node, python or deno.
/// </summary>
utility::string_t getRuntime() const;
bool runtimeIsSet() const;
void unsetRuntime();
void setRuntime(const utility::string_t& value);
/// <summary>
/// Target is where the function runs: sandbox (the default) or fleet, the org&#39;s own GPU fleet. fleet supports runtime&#x3D;python only.
/// </summary>
utility::string_t getTarget() const;
bool targetIsSet() const;
void unsetTarget();
void setTarget(const utility::string_t& value);
/// <summary>
/// TimeoutSec is the per-invocation deadline, defaulting to 30 and clamped at 900 — a larger value is capped rather than reset to the default.
/// </summary>
int64_t getTimeoutSec() const;
bool timeoutSecIsSet() const;
void unsetTimeoutSec();
void setTimeoutSec(int64_t value);
protected:
utility::string_t m_Code;
bool m_CodeIsSet;
std::vector<utility::string_t> m_EnvNames;
bool m_EnvNamesIsSet;
utility::string_t m_Environment;
bool m_EnvironmentIsSet;
utility::string_t m_Handler;
bool m_HandlerIsSet;
utility::string_t m_Image;
bool m_ImageIsSet;
utility::string_t m_MemoryLimit;
bool m_MemoryLimitIsSet;
utility::string_t m_Name;
bool m_NameIsSet;
utility::string_t m_r_namespace;
bool m_r_namespaceIsSet;
utility::string_t m_Runtime;
bool m_RuntimeIsSet;
utility::string_t m_Target;
bool m_TargetIsSet;
int64_t m_TimeoutSec;
bool m_TimeoutSecIsSet;
};
}
}
#endif /* HANZO_MODEL_Definition_H_ */