Files
sdk/include/hanzo/model/O11y_DeploymentRecord.h
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
4.2 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_DeploymentRecord.h
*
*
*/
#ifndef HANZO_MODEL_O11y_DeploymentRecord_H_
#define HANZO_MODEL_O11y_DeploymentRecord_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_DeploymentRecord
: public ModelBase
{
public:
O11y_DeploymentRecord();
virtual ~O11y_DeploymentRecord();
/////////////////////////////////////////////
/// 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_DeploymentRecord members
int64_t getAvailablePods() const;
bool availablePodsIsSet() const;
void unsetAvailablePods();
void setAvailablePods(int64_t value);
double getDeploymentCPU() const;
bool deploymentCPUIsSet() const;
void unsetDeploymentCPU();
void setDeploymentCPU(double value);
double getDeploymentCPULimit() const;
bool deploymentCPULimitIsSet() const;
void unsetDeploymentCPULimit();
void setDeploymentCPULimit(double value);
double getDeploymentCPURequest() const;
bool deploymentCPURequestIsSet() const;
void unsetDeploymentCPURequest();
void setDeploymentCPURequest(double value);
double getDeploymentMemory() const;
bool deploymentMemoryIsSet() const;
void unsetDeploymentMemory();
void setDeploymentMemory(double value);
double getDeploymentMemoryLimit() const;
bool deploymentMemoryLimitIsSet() const;
void unsetDeploymentMemoryLimit();
void setDeploymentMemoryLimit(double value);
double getDeploymentMemoryRequest() const;
bool deploymentMemoryRequestIsSet() const;
void unsetDeploymentMemoryRequest();
void setDeploymentMemoryRequest(double value);
utility::string_t getDeploymentName() const;
bool deploymentNameIsSet() const;
void unsetDeploymentName();
void setDeploymentName(const utility::string_t& value);
int64_t getDesiredPods() const;
bool desiredPodsIsSet() const;
void unsetDesiredPods();
void setDesiredPods(int64_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);
protected:
int64_t m_AvailablePods;
bool m_AvailablePodsIsSet;
double m_DeploymentCPU;
bool m_DeploymentCPUIsSet;
double m_DeploymentCPULimit;
bool m_DeploymentCPULimitIsSet;
double m_DeploymentCPURequest;
bool m_DeploymentCPURequestIsSet;
double m_DeploymentMemory;
bool m_DeploymentMemoryIsSet;
double m_DeploymentMemoryLimit;
bool m_DeploymentMemoryLimitIsSet;
double m_DeploymentMemoryRequest;
bool m_DeploymentMemoryRequestIsSet;
utility::string_t m_DeploymentName;
bool m_DeploymentNameIsSet;
int64_t m_DesiredPods;
bool m_DesiredPodsIsSet;
std::map<utility::string_t, utility::string_t> m_Meta;
bool m_MetaIsSet;
std::shared_ptr<O11y_PodCountsByPhase> m_PodCountsByPhase;
bool m_PodCountsByPhaseIsSet;
};
}
}
#endif /* HANZO_MODEL_O11y_DeploymentRecord_H_ */