Files
sdk/include/hanzo/model/ClusterDetailView.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

176 lines
4.5 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.
*/
/*
* ClusterDetailView.h
*
*
*/
#ifndef HANZO_MODEL_ClusterDetailView_H_
#define HANZO_MODEL_ClusterDetailView_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/MachineView.h"
#include <cpprest/details/basic_types.h>
#include "hanzo/model/NodePoolView.h"
#include <vector>
namespace hanzo {
namespace model {
class NodePoolView;
class MachineView;
class ClusterDetailView
: public ModelBase
{
public:
ClusterDetailView();
virtual ~ClusterDetailView();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// ClusterDetailView members
int64_t getAmdGpu() const;
bool amdGpuIsSet() const;
void unsetAmdGpu();
void setAmdGpu(int64_t value);
utility::string_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreatedAt();
void setCreatedAt(const utility::string_t& value);
utility::string_t getDoClusterId() const;
bool doClusterIdIsSet() const;
void unsetDoClusterId();
void setDoClusterId(const utility::string_t& value);
utility::string_t getDoksClusterId() const;
bool doksClusterIdIsSet() const;
void unsetDoksClusterId();
void setDoksClusterId(const utility::string_t& value);
utility::string_t getKind() const;
bool kindIsSet() const;
void unsetKind();
void setKind(const utility::string_t& value);
utility::string_t getName() const;
bool nameIsSet() const;
void unsetName();
void setName(const utility::string_t& value);
int64_t getNodeCount() const;
bool nodeCountIsSet() const;
void unsetNodeCount();
void setNodeCount(int64_t value);
std::vector<std::shared_ptr<NodePoolView>> getNodePools() const;
bool nodePoolsIsSet() const;
void unsetNodePools();
void setNodePools(const std::vector<std::shared_ptr<NodePoolView>>& value);
utility::string_t getNodeSize() const;
bool nodeSizeIsSet() const;
void unsetNodeSize();
void setNodeSize(const utility::string_t& value);
/// <summary>
/// Nodes is every worker node in the cluster, each in the same shape the machines surface uses — a node IS a machine, addressable by its own id. This is the individual hardware behind the pool counts above.
/// </summary>
std::vector<std::shared_ptr<MachineView>> getNodes() const;
bool nodesIsSet() const;
void unsetNodes();
void setNodes(const std::vector<std::shared_ptr<MachineView>>& value);
int64_t getNvidiaGpu() const;
bool nvidiaGpuIsSet() const;
void unsetNvidiaGpu();
void setNvidiaGpu(int64_t value);
utility::string_t getRegion() const;
bool regionIsSet() const;
void unsetRegion();
void setRegion(const utility::string_t& value);
utility::string_t getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(const utility::string_t& value);
protected:
int64_t m_AmdGpu;
bool m_AmdGpuIsSet;
utility::string_t m_CreatedAt;
bool m_CreatedAtIsSet;
utility::string_t m_DoClusterId;
bool m_DoClusterIdIsSet;
utility::string_t m_DoksClusterId;
bool m_DoksClusterIdIsSet;
utility::string_t m_Kind;
bool m_KindIsSet;
utility::string_t m_Name;
bool m_NameIsSet;
int64_t m_NodeCount;
bool m_NodeCountIsSet;
std::vector<std::shared_ptr<NodePoolView>> m_NodePools;
bool m_NodePoolsIsSet;
utility::string_t m_NodeSize;
bool m_NodeSizeIsSet;
std::vector<std::shared_ptr<MachineView>> m_Nodes;
bool m_NodesIsSet;
int64_t m_NvidiaGpu;
bool m_NvidiaGpuIsSet;
utility::string_t m_Region;
bool m_RegionIsSet;
utility::string_t m_Status;
bool m_StatusIsSet;
};
}
}
#endif /* HANZO_MODEL_ClusterDetailView_H_ */