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

152 lines
3.8 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.
*/
/*
* RiskOrgFeature.h
*
*
*/
#ifndef HANZO_MODEL_RiskOrgFeature_H_
#define HANZO_MODEL_RiskOrgFeature_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class RiskOrgFeature
: public ModelBase
{
public:
RiskOrgFeature();
virtual ~RiskOrgFeature();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// RiskOrgFeature members
/// <summary>
/// Blind is true when the dimension is present in no bucket at all: this organisation&#39;s surface does not carry it, and saying so is the difference between no risk and no data.
/// </summary>
bool isBlind() const;
bool blindIsSet() const;
void unsetBlind();
void setBlind(bool value);
/// <summary>
/// Buckets is how many five-minute buckets of this organisation&#39;s surface were measured.
/// </summary>
int64_t getBuckets() const;
bool bucketsIsSet() const;
void unsetBuckets();
void setBuckets(int64_t value);
/// <summary>
/// Max is the largest value it reached in the window.
/// </summary>
double getMax() const;
bool maxIsSet() const;
void unsetMax();
void setMax(double value);
/// <summary>
/// Mean is the dimension&#39;s average where it was present.
/// </summary>
double getMean() const;
bool meanIsSet() const;
void unsetMean();
void setMean(double value);
/// <summary>
/// Name is the dimension as this API publishes it.
/// </summary>
utility::string_t getName() const;
bool nameIsSet() const;
void unsetName();
void setName(const utility::string_t& value);
/// <summary>
/// Present is in how many of them the dimension carried a value at all.
/// </summary>
int64_t getPresent() const;
bool presentIsSet() const;
void unsetPresent();
void setPresent(int64_t value);
/// <summary>
/// Source names the plane it is rolled up from, so a dimension that reads zero everywhere traces to a plane the organisation does not use rather than to a defect.
/// </summary>
utility::string_t getSource() const;
bool sourceIsSet() const;
void unsetSource();
void setSource(const utility::string_t& value);
/// <summary>
/// Unit is how to read the numbers below.
/// </summary>
utility::string_t getUnit() const;
bool unitIsSet() const;
void unsetUnit();
void setUnit(const utility::string_t& value);
protected:
bool m_Blind;
bool m_BlindIsSet;
int64_t m_Buckets;
bool m_BucketsIsSet;
double m_Max;
bool m_MaxIsSet;
double m_Mean;
bool m_MeanIsSet;
utility::string_t m_Name;
bool m_NameIsSet;
int64_t m_Present;
bool m_PresentIsSet;
utility::string_t m_Source;
bool m_SourceIsSet;
utility::string_t m_Unit;
bool m_UnitIsSet;
};
}
}
#endif /* HANZO_MODEL_RiskOrgFeature_H_ */