mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
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.
240 lines
6.0 KiB
C++
240 lines
6.0 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.
|
|
*/
|
|
|
|
/*
|
|
* FunctionView.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_FunctionView_H_
|
|
#define HANZO_MODEL_FunctionView_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class FunctionView
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
FunctionView();
|
|
virtual ~FunctionView();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// FunctionView members
|
|
|
|
|
|
/// <summary>
|
|
/// mean wall-clock of those runs
|
|
/// </summary>
|
|
double getAvgDurationMs() const;
|
|
bool avgDurationMsIsSet() const;
|
|
void unsetAvgDurationMs();
|
|
void setAvgDurationMs(double value);
|
|
|
|
/// <summary>
|
|
/// when it was first published
|
|
/// </summary>
|
|
utility::string_t getCreatedAt() const;
|
|
bool createdAtIsSet() const;
|
|
void unsetCreatedAt();
|
|
void setCreatedAt(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// the path that invokes it
|
|
/// </summary>
|
|
utility::string_t getEndpoint() const;
|
|
bool endpointIsSet() const;
|
|
void unsetEndpoint();
|
|
void setEndpoint(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// how many secret NAMES it mounts; values are never carried
|
|
/// </summary>
|
|
int64_t getEnvCount() const;
|
|
bool envCountIsSet() const;
|
|
void unsetEnvCount();
|
|
void setEnvCount(int64_t value);
|
|
|
|
/// <summary>
|
|
/// the language it runs under
|
|
/// </summary>
|
|
utility::string_t getEnvironment() const;
|
|
bool environmentIsSet() const;
|
|
void unsetEnvironment();
|
|
void setEnvironment(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// how many of those runs failed
|
|
/// </summary>
|
|
int64_t getErrors7d() const;
|
|
bool errors7dIsSet() const;
|
|
void unsetErrors7d();
|
|
void setErrors7d(int64_t value);
|
|
|
|
/// <summary>
|
|
/// the prebuilt image it runs, when it runs one instead of source
|
|
/// </summary>
|
|
utility::string_t getImage() const;
|
|
bool imageIsSet() const;
|
|
void unsetImage();
|
|
void setImage(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// runs in the last 7 days; ABSENT, never 0, when it has not run
|
|
/// </summary>
|
|
int64_t getInvocations7d() const;
|
|
bool invocations7dIsSet() const;
|
|
void unsetInvocations7d();
|
|
void setInvocations7d(int64_t value);
|
|
|
|
/// <summary>
|
|
/// when its code last changed
|
|
/// </summary>
|
|
utility::string_t getLastDeployedAt() const;
|
|
bool lastDeployedAtIsSet() const;
|
|
void unsetLastDeployedAt();
|
|
void setLastDeployedAt(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// the memory it runs with, and the multiplier on its compute charge
|
|
/// </summary>
|
|
utility::string_t getMemoryLimit() const;
|
|
bool memoryLimitIsSet() const;
|
|
void unsetMemoryLimit();
|
|
void setMemoryLimit(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// the function's org-unique handle
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// the display group it belongs to; the org is the isolation key
|
|
/// </summary>
|
|
utility::string_t getRNamespace() const;
|
|
bool rNamespaceIsSet() const;
|
|
void unsetr_namespace();
|
|
void setRNamespace(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// whether it is ready to serve
|
|
/// </summary>
|
|
utility::string_t getStatus() const;
|
|
bool statusIsSet() const;
|
|
void unsetStatus();
|
|
void setStatus(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// share of those runs that succeeded, 0..1
|
|
/// </summary>
|
|
double getSuccessRate() const;
|
|
bool successRateIsSet() const;
|
|
void unsetSuccessRate();
|
|
void setSuccessRate(double value);
|
|
|
|
/// <summary>
|
|
/// where it runs: empty for the sandbox, \"fleet\" for the org's GPU fleet
|
|
/// </summary>
|
|
utility::string_t getTarget() const;
|
|
bool targetIsSet() const;
|
|
void unsetTarget();
|
|
void setTarget(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// its per-invocation deadline
|
|
/// </summary>
|
|
int64_t getTimeoutSec() const;
|
|
bool timeoutSecIsSet() const;
|
|
void unsetTimeoutSec();
|
|
void setTimeoutSec(int64_t value);
|
|
|
|
|
|
protected:
|
|
double m_AvgDurationMs;
|
|
bool m_AvgDurationMsIsSet;
|
|
|
|
utility::string_t m_CreatedAt;
|
|
bool m_CreatedAtIsSet;
|
|
|
|
utility::string_t m_Endpoint;
|
|
bool m_EndpointIsSet;
|
|
|
|
int64_t m_EnvCount;
|
|
bool m_EnvCountIsSet;
|
|
|
|
utility::string_t m_Environment;
|
|
bool m_EnvironmentIsSet;
|
|
|
|
int64_t m_Errors7d;
|
|
bool m_Errors7dIsSet;
|
|
|
|
utility::string_t m_Image;
|
|
bool m_ImageIsSet;
|
|
|
|
int64_t m_Invocations7d;
|
|
bool m_Invocations7dIsSet;
|
|
|
|
utility::string_t m_LastDeployedAt;
|
|
bool m_LastDeployedAtIsSet;
|
|
|
|
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_Status;
|
|
bool m_StatusIsSet;
|
|
|
|
double m_SuccessRate;
|
|
bool m_SuccessRateIsSet;
|
|
|
|
utility::string_t m_Target;
|
|
bool m_TargetIsSet;
|
|
|
|
int64_t m_TimeoutSec;
|
|
bool m_TimeoutSecIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_FunctionView_H_ */
|