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.
155 lines
4.2 KiB
C++
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_StatefulSetRecord.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_O11y_StatefulSetRecord_H_
|
|
#define HANZO_MODEL_O11y_StatefulSetRecord_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_StatefulSetRecord
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
O11y_StatefulSetRecord();
|
|
virtual ~O11y_StatefulSetRecord();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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_StatefulSetRecord members
|
|
|
|
|
|
int64_t getCurrentPods() const;
|
|
bool currentPodsIsSet() const;
|
|
void unsetCurrentPods();
|
|
void setCurrentPods(int64_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);
|
|
|
|
double getStatefulSetCPU() const;
|
|
bool statefulSetCPUIsSet() const;
|
|
void unsetStatefulSetCPU();
|
|
void setStatefulSetCPU(double value);
|
|
|
|
double getStatefulSetCPULimit() const;
|
|
bool statefulSetCPULimitIsSet() const;
|
|
void unsetStatefulSetCPULimit();
|
|
void setStatefulSetCPULimit(double value);
|
|
|
|
double getStatefulSetCPURequest() const;
|
|
bool statefulSetCPURequestIsSet() const;
|
|
void unsetStatefulSetCPURequest();
|
|
void setStatefulSetCPURequest(double value);
|
|
|
|
double getStatefulSetMemory() const;
|
|
bool statefulSetMemoryIsSet() const;
|
|
void unsetStatefulSetMemory();
|
|
void setStatefulSetMemory(double value);
|
|
|
|
double getStatefulSetMemoryLimit() const;
|
|
bool statefulSetMemoryLimitIsSet() const;
|
|
void unsetStatefulSetMemoryLimit();
|
|
void setStatefulSetMemoryLimit(double value);
|
|
|
|
double getStatefulSetMemoryRequest() const;
|
|
bool statefulSetMemoryRequestIsSet() const;
|
|
void unsetStatefulSetMemoryRequest();
|
|
void setStatefulSetMemoryRequest(double value);
|
|
|
|
utility::string_t getStatefulSetName() const;
|
|
bool statefulSetNameIsSet() const;
|
|
void unsetStatefulSetName();
|
|
void setStatefulSetName(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
int64_t m_CurrentPods;
|
|
bool m_CurrentPodsIsSet;
|
|
|
|
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;
|
|
|
|
double m_StatefulSetCPU;
|
|
bool m_StatefulSetCPUIsSet;
|
|
|
|
double m_StatefulSetCPULimit;
|
|
bool m_StatefulSetCPULimitIsSet;
|
|
|
|
double m_StatefulSetCPURequest;
|
|
bool m_StatefulSetCPURequestIsSet;
|
|
|
|
double m_StatefulSetMemory;
|
|
bool m_StatefulSetMemoryIsSet;
|
|
|
|
double m_StatefulSetMemoryLimit;
|
|
bool m_StatefulSetMemoryLimitIsSet;
|
|
|
|
double m_StatefulSetMemoryRequest;
|
|
bool m_StatefulSetMemoryRequestIsSet;
|
|
|
|
utility::string_t m_StatefulSetName;
|
|
bool m_StatefulSetNameIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_O11y_StatefulSetRecord_H_ */
|