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

171 lines
4.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.
*/
/*
* O11y_JobRecord.h
*
*
*/
#ifndef HANZO_MODEL_O11y_JobRecord_H_
#define HANZO_MODEL_O11y_JobRecord_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/O11y_PodCountsByPhase.h"
#include <cpprest/details/basic_types.h>
#include <map>
namespace hanzo {
namespace model {
class O11y_PodCountsByPhase;
class O11y_JobRecord
: public ModelBase
{
public:
O11y_JobRecord();
virtual ~O11y_JobRecord();
/////////////////////////////////////////////
/// 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_JobRecord members
int64_t getActivePods() const;
bool activePodsIsSet() const;
void unsetActivePods();
void setActivePods(int64_t value);
int64_t getDesiredSuccessfulPods() const;
bool desiredSuccessfulPodsIsSet() const;
void unsetDesiredSuccessfulPods();
void setDesiredSuccessfulPods(int64_t value);
int64_t getFailedPods() const;
bool failedPodsIsSet() const;
void unsetFailedPods();
void setFailedPods(int64_t value);
double getJobCPU() const;
bool jobCPUIsSet() const;
void unsetJobCPU();
void setJobCPU(double value);
double getJobCPULimit() const;
bool jobCPULimitIsSet() const;
void unsetJobCPULimit();
void setJobCPULimit(double value);
double getJobCPURequest() const;
bool jobCPURequestIsSet() const;
void unsetJobCPURequest();
void setJobCPURequest(double value);
double getJobMemory() const;
bool jobMemoryIsSet() const;
void unsetJobMemory();
void setJobMemory(double value);
double getJobMemoryLimit() const;
bool jobMemoryLimitIsSet() const;
void unsetJobMemoryLimit();
void setJobMemoryLimit(double value);
double getJobMemoryRequest() const;
bool jobMemoryRequestIsSet() const;
void unsetJobMemoryRequest();
void setJobMemoryRequest(double value);
utility::string_t getJobName() const;
bool jobNameIsSet() const;
void unsetJobName();
void setJobName(const utility::string_t& value);
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);
std::shared_ptr<O11y_PodCountsByPhase> getPodCountsByPhase() const;
bool podCountsByPhaseIsSet() const;
void unsetPodCountsByPhase();
void setPodCountsByPhase(const std::shared_ptr<O11y_PodCountsByPhase>& value);
int64_t getSuccessfulPods() const;
bool successfulPodsIsSet() const;
void unsetSuccessfulPods();
void setSuccessfulPods(int64_t value);
protected:
int64_t m_ActivePods;
bool m_ActivePodsIsSet;
int64_t m_DesiredSuccessfulPods;
bool m_DesiredSuccessfulPodsIsSet;
int64_t m_FailedPods;
bool m_FailedPodsIsSet;
double m_JobCPU;
bool m_JobCPUIsSet;
double m_JobCPULimit;
bool m_JobCPULimitIsSet;
double m_JobCPURequest;
bool m_JobCPURequestIsSet;
double m_JobMemory;
bool m_JobMemoryIsSet;
double m_JobMemoryLimit;
bool m_JobMemoryLimitIsSet;
double m_JobMemoryRequest;
bool m_JobMemoryRequestIsSet;
utility::string_t m_JobName;
bool m_JobNameIsSet;
std::map<utility::string_t, utility::string_t> m_Meta;
bool m_MetaIsSet;
std::shared_ptr<O11y_PodCountsByPhase> m_PodCountsByPhase;
bool m_PodCountsByPhaseIsSet;
int64_t m_SuccessfulPods;
bool m_SuccessfulPodsIsSet;
};
}
}
#endif /* HANZO_MODEL_O11y_JobRecord_H_ */