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

141 lines
3.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.
*/
/*
* SampleIngest.h
*
*
*/
#ifndef HANZO_MODEL_SampleIngest_H_
#define HANZO_MODEL_SampleIngest_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class SampleIngest
: public ModelBase
{
public:
SampleIngest();
virtual ~SampleIngest();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// SampleIngest members
/// <summary>
/// GPUModel names the representative accelerator (\&quot;GB10\&quot;); GPUs carries how many. A heterogeneous host names its first card rather than inventing a summary.
/// </summary>
utility::string_t getGpuModel() const;
bool gpuModelIsSet() const;
void unsetGpuModel();
void setGpuModel(const utility::string_t& value);
/// <summary>
/// GPUUtil is accelerator utilization as a fraction 0..1; the warehouse clamps anything outside that.
/// </summary>
double getGpuUtil() const;
bool gpuUtilIsSet() const;
void unsetGpuUtil();
void setGpuUtil(double value);
/// <summary>
/// GPUs is how many accelerators this reading covers.
/// </summary>
int64_t getGpus() const;
bool gpusIsSet() const;
void unsetGpus();
void setGpus(int64_t value);
/// <summary>
/// Host is the node&#39;s hostname, for display.
/// </summary>
utility::string_t getHost() const;
bool hostIsSet() const;
void unsetHost();
void setHost(const utility::string_t& value);
/// <summary>
/// MemFree is host memory still available, in BYTES.
/// </summary>
int64_t getMemFree() const;
bool memFreeIsSet() const;
void unsetMemFree();
void setMemFree(int64_t value);
/// <summary>
/// MemUsed is host memory in use, in BYTES.
/// </summary>
int64_t getMemUsed() const;
bool memUsedIsSet() const;
void unsetMemUsed();
void setMemUsed(int64_t value);
/// <summary>
/// Unit is the reporting node&#39;s own id — the same id it registered under, and the key the board joins this series onto. Required.
/// </summary>
utility::string_t getUnit() const;
bool unitIsSet() const;
void unsetUnit();
void setUnit(const utility::string_t& value);
protected:
utility::string_t m_GpuModel;
bool m_GpuModelIsSet;
double m_GpuUtil;
bool m_GpuUtilIsSet;
int64_t m_Gpus;
bool m_GpusIsSet;
utility::string_t m_Host;
bool m_HostIsSet;
int64_t m_MemFree;
bool m_MemFreeIsSet;
int64_t m_MemUsed;
bool m_MemUsedIsSet;
utility::string_t m_Unit;
bool m_UnitIsSet;
};
}
}
#endif /* HANZO_MODEL_SampleIngest_H_ */