mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The projection was 113 commits behind the document it claims to describe, and `generate.py --all --check` reported every one of the thirteen clients DRIFTED — the same +19 models in each, because they all fell behind the same emission. Regenerated in place from hanzo-inc/cloud openapi.yaml at 939b09d4 (sha256 087024f6…), which is the only description of this API that cannot name a route the binary does not serve. `--check` is clean across all thirteen after. .spec-lock moved with the code. The generator READS that file and never writes it — hanzoai/ci`s lane does — so a hand run leaves every lock naming the previous document. A lock that disagrees with the tree beside it is worse than no lock: the next `--check` without `--spec` fetches what production serves, compares it to a digest that was already wrong, and reports drift that is really staleness.
174 lines
4.7 KiB
C++
174 lines
4.7 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.
|
|
*/
|
|
|
|
/*
|
|
* RiskCause.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_RiskCause_H_
|
|
#define HANZO_MODEL_RiskCause_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class RiskCause
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
RiskCause();
|
|
virtual ~RiskCause();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// RiskCause members
|
|
|
|
|
|
/// <summary>
|
|
/// Baseline is the number it was measured against — always this organisation's own history, never a fixed limit and never another organisation's.
|
|
/// </summary>
|
|
double getBaseline() const;
|
|
bool baselineIsSet() const;
|
|
void unsetBaseline();
|
|
void setBaseline(double value);
|
|
|
|
/// <summary>
|
|
/// Citation is where those words come from, so the claim is checkable rather than asserted — which is what a chargeback network or a regulator asks for.
|
|
/// </summary>
|
|
utility::string_t getCitation() const;
|
|
bool citationIsSet() const;
|
|
void unsetCitation();
|
|
void setCitation(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Feature is the dimension that contributed.
|
|
/// </summary>
|
|
utility::string_t getFeature() const;
|
|
bool featureIsSet() const;
|
|
void unsetFeature();
|
|
void setFeature(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Indicator is the supervisor's own words for the thing being looked for.
|
|
/// </summary>
|
|
utility::string_t getIndicator() const;
|
|
bool indicatorIsSet() const;
|
|
void unsetIndicator();
|
|
void setIndicator(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Observed is the raw number the coordinate was computed from.
|
|
/// </summary>
|
|
double getObserved() const;
|
|
bool observedIsSet() const;
|
|
void unsetObserved();
|
|
void setObserved(double value);
|
|
|
|
/// <summary>
|
|
/// Severity is how much weight this dimension carries.
|
|
/// </summary>
|
|
utility::string_t getSeverity() const;
|
|
bool severityIsSet() const;
|
|
void unsetSeverity();
|
|
void setSeverity(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Share is this feature's part of the score, in [0,1]. Zero across every cause means no single feature accounts for the alert and the combination does; the causes are then ordered by how far each sits from unremarkable.
|
|
/// </summary>
|
|
double getShare() const;
|
|
bool shareIsSet() const;
|
|
void unsetShare();
|
|
void setShare(double value);
|
|
|
|
/// <summary>
|
|
/// Typology is the laundering or abuse pattern this dimension detects.
|
|
/// </summary>
|
|
utility::string_t getTypology() const;
|
|
bool typologyIsSet() const;
|
|
void unsetTypology();
|
|
void setTypology(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Unit is how to read Observed, which is what turns a coordinate into a sentence.
|
|
/// </summary>
|
|
utility::string_t getUnit() const;
|
|
bool unitIsSet() const;
|
|
void unsetUnit();
|
|
void setUnit(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Without is the score the same event would have received with this coordinate at its neutral value — the counterfactual itself.
|
|
/// </summary>
|
|
double getWithout() const;
|
|
bool withoutIsSet() const;
|
|
void unsetWithout();
|
|
void setWithout(double value);
|
|
|
|
|
|
protected:
|
|
double m_Baseline;
|
|
bool m_BaselineIsSet;
|
|
|
|
utility::string_t m_Citation;
|
|
bool m_CitationIsSet;
|
|
|
|
utility::string_t m_Feature;
|
|
bool m_FeatureIsSet;
|
|
|
|
utility::string_t m_Indicator;
|
|
bool m_IndicatorIsSet;
|
|
|
|
double m_Observed;
|
|
bool m_ObservedIsSet;
|
|
|
|
utility::string_t m_Severity;
|
|
bool m_SeverityIsSet;
|
|
|
|
double m_Share;
|
|
bool m_ShareIsSet;
|
|
|
|
utility::string_t m_Typology;
|
|
bool m_TypologyIsSet;
|
|
|
|
utility::string_t m_Unit;
|
|
bool m_UnitIsSet;
|
|
|
|
double m_Without;
|
|
bool m_WithoutIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_RiskCause_H_ */
|