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

155 lines
3.8 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.
*/
/*
* O11y_PodRecord.h
*
*
*/
#ifndef HANZO_MODEL_O11y_PodRecord_H_
#define HANZO_MODEL_O11y_PodRecord_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/AnyType.h"
#include "hanzo/model/O11y_PodCountsByPhase.h"
#include <cpprest/details/basic_types.h>
#include <map>
namespace hanzo {
namespace model {
class O11y_PodCountsByPhase;
class O11y_PodRecord
: public ModelBase
{
public:
O11y_PodRecord();
virtual ~O11y_PodRecord();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// O11y_PodRecord members
std::map<utility::string_t, utility::string_t> getMeta() const;
bool metaIsSet() const;
void unsetMeta();
void setMeta(const std::map<utility::string_t, utility::string_t>& value);
int64_t getPodAge() const;
bool podAgeIsSet() const;
void unsetPodAge();
void setPodAge(int64_t value);
double getPodCPU() const;
bool podCPUIsSet() const;
void unsetPodCPU();
void setPodCPU(double value);
double getPodCPULimit() const;
bool podCPULimitIsSet() const;
void unsetPodCPULimit();
void setPodCPULimit(double value);
double getPodCPURequest() const;
bool podCPURequestIsSet() const;
void unsetPodCPURequest();
void setPodCPURequest(double value);
std::shared_ptr<O11y_PodCountsByPhase> getPodCountsByPhase() const;
bool podCountsByPhaseIsSet() const;
void unsetPodCountsByPhase();
void setPodCountsByPhase(const std::shared_ptr<O11y_PodCountsByPhase>& value);
double getPodMemory() const;
bool podMemoryIsSet() const;
void unsetPodMemory();
void setPodMemory(double value);
double getPodMemoryLimit() const;
bool podMemoryLimitIsSet() const;
void unsetPodMemoryLimit();
void setPodMemoryLimit(double value);
double getPodMemoryRequest() const;
bool podMemoryRequestIsSet() const;
void unsetPodMemoryRequest();
void setPodMemoryRequest(double value);
std::shared_ptr<AnyType> getPodPhase() const;
bool podPhaseIsSet() const;
void unsetPodPhase();
void setPodPhase(const std::shared_ptr<AnyType>& value);
utility::string_t getPodUID() const;
bool podUIDIsSet() const;
void unsetPodUID();
void setPodUID(const utility::string_t& value);
protected:
std::map<utility::string_t, utility::string_t> m_Meta;
bool m_MetaIsSet;
int64_t m_PodAge;
bool m_PodAgeIsSet;
double m_PodCPU;
bool m_PodCPUIsSet;
double m_PodCPULimit;
bool m_PodCPULimitIsSet;
double m_PodCPURequest;
bool m_PodCPURequestIsSet;
std::shared_ptr<O11y_PodCountsByPhase> m_PodCountsByPhase;
bool m_PodCountsByPhaseIsSet;
double m_PodMemory;
bool m_PodMemoryIsSet;
double m_PodMemoryLimit;
bool m_PodMemoryLimitIsSet;
double m_PodMemoryRequest;
bool m_PodMemoryRequestIsSet;
boost::optional<std::shared_ptr<AnyType>> m_PodPhase;
utility::string_t m_PodUID;
bool m_PodUIDIsSet;
};
}
}
#endif /* HANZO_MODEL_O11y_PodRecord_H_ */