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

230 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.
*/
/*
* FunctionDetail.h
*
*
*/
#ifndef HANZO_MODEL_FunctionDetail_H_
#define HANZO_MODEL_FunctionDetail_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/InvocationView.h"
#include "hanzo/model/TriggerView.h"
#include <cpprest/details/basic_types.h>
#include <vector>
namespace hanzo {
namespace model {
class InvocationView;
class TriggerView;
class FunctionDetail
: public ModelBase
{
public:
FunctionDetail();
virtual ~FunctionDetail();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// FunctionDetail members
double getAvgDurationMs() const;
bool avgDurationMsIsSet() const;
void unsetAvgDurationMs();
void setAvgDurationMs(double value);
utility::string_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreatedAt();
void setCreatedAt(const utility::string_t& value);
utility::string_t getEndpoint() const;
bool endpointIsSet() const;
void unsetEndpoint();
void setEndpoint(const utility::string_t& value);
int64_t getEnvCount() const;
bool envCountIsSet() const;
void unsetEnvCount();
void setEnvCount(int64_t value);
utility::string_t getEnvironment() const;
bool environmentIsSet() const;
void unsetEnvironment();
void setEnvironment(const utility::string_t& value);
int64_t getErrors7d() const;
bool errors7dIsSet() const;
void unsetErrors7d();
void setErrors7d(int64_t value);
utility::string_t getImage() const;
bool imageIsSet() const;
void unsetImage();
void setImage(const utility::string_t& value);
int64_t getInvocations7d() const;
bool invocations7dIsSet() const;
void unsetInvocations7d();
void setInvocations7d(int64_t value);
utility::string_t getLastDeployedAt() const;
bool lastDeployedAtIsSet() const;
void unsetLastDeployedAt();
void setLastDeployedAt(const utility::string_t& value);
utility::string_t getMemoryLimit() const;
bool memoryLimitIsSet() const;
void unsetMemoryLimit();
void setMemoryLimit(const utility::string_t& value);
utility::string_t getName() const;
bool nameIsSet() const;
void unsetName();
void setName(const utility::string_t& value);
utility::string_t getRNamespace() const;
bool rNamespaceIsSet() const;
void unsetr_namespace();
void setRNamespace(const utility::string_t& value);
/// <summary>
/// RecentInvocations is its twenty most recent runs, newest first.
/// </summary>
std::vector<std::shared_ptr<InvocationView>> getRecentInvocations() const;
bool recentInvocationsIsSet() const;
void unsetRecentInvocations();
void setRecentInvocations(const std::vector<std::shared_ptr<InvocationView>>& value);
/// <summary>
/// Secrets are the NAMES it mounts. Values are never read or returned.
/// </summary>
std::vector<utility::string_t> getSecrets() const;
bool secretsIsSet() const;
void unsetSecrets();
void setSecrets(const std::vector<utility::string_t>& value);
utility::string_t getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(const utility::string_t& value);
double getSuccessRate() const;
bool successRateIsSet() const;
void unsetSuccessRate();
void setSuccessRate(double value);
utility::string_t getTarget() const;
bool targetIsSet() const;
void unsetTarget();
void setTarget(const utility::string_t& value);
int64_t getTimeoutSec() const;
bool timeoutSecIsSet() const;
void unsetTimeoutSec();
void setTimeoutSec(int64_t value);
/// <summary>
/// Triggers is how this function is reached.
/// </summary>
std::vector<std::shared_ptr<TriggerView>> getTriggers() const;
bool triggersIsSet() const;
void unsetTriggers();
void setTriggers(const std::vector<std::shared_ptr<TriggerView>>& 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;
std::vector<std::shared_ptr<InvocationView>> m_RecentInvocations;
bool m_RecentInvocationsIsSet;
std::vector<utility::string_t> m_Secrets;
bool m_SecretsIsSet;
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;
std::vector<std::shared_ptr<TriggerView>> m_Triggers;
bool m_TriggersIsSet;
};
}
}
#endif /* HANZO_MODEL_FunctionDetail_H_ */