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

164 lines
5.3 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.
*/
/*
* RiskDatasetSpec.h
*
*
*/
#ifndef HANZO_MODEL_RiskDatasetSpec_H_
#define HANZO_MODEL_RiskDatasetSpec_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
#include <vector>
namespace hanzo {
namespace model {
class RiskDatasetSpec
: public ModelBase
{
public:
RiskDatasetSpec();
virtual ~RiskDatasetSpec();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// RiskDatasetSpec members
/// <summary>
/// Cuts are the two RFC 3339 instants dividing train | val | test. Omit them to take 70% and 85% of the window by time. Splitting is TEMPORAL and then grouped by subject — a random split puts one device on both sides of the line and the model memorises the entity instead of the behaviour.
/// </summary>
std::vector<utility::string_t> getCuts() const;
bool cutsIsSet() const;
void unsetCuts();
void setCuts(const std::vector<utility::string_t>& value);
/// <summary>
/// Dims are the coordinates to carry, by published name. Empty takes the whole surface. They are stored in the plane&#39;s own order, never the order given, so two requests naming the same dims produce identical rows.
/// </summary>
std::vector<utility::string_t> getDims() const;
bool dimsIsSet() const;
void unsetDims();
void setDims(const std::vector<utility::string_t>& value);
/// <summary>
/// From is where the event window opens, RFC 3339, INCLUSIVE. The window may not be longer than the source&#39;s own retention: past that, its older half is already gone and the dataset would silently be shorter than it says.
/// </summary>
utility::string_t getFrom() const;
bool fromIsSet() const;
void unsetFrom();
void setFrom(const utility::string_t& value);
/// <summary>
/// Horizon is how many days a row must have aged before it may be admitted. It is what keeps a fact that was not yet knowable at scoring time out of a training set: a chargeback lands 30 to 120 days after the transaction it condemns, so 120 for the payment lane and 14 for signup abuse. Zero admits the whole window and is honest only where the outcome is immediate.
/// </summary>
int64_t getHorizon() const;
bool horizonIsSet() const;
void unsetHorizon();
void setHorizon(int64_t value);
/// <summary>
/// Kind narrows to one subject kind — person, session or account. Empty takes every kind.
/// </summary>
utility::string_t getKind() const;
bool kindIsSet() const;
void unsetKind();
void setKind(const utility::string_t& value);
/// <summary>
/// Name identifies the dataset across its versions: lower-case letters, digits and hyphens, starting with a letter.
/// </summary>
utility::string_t getName() const;
bool nameIsSet() const;
void unsetName();
void setName(const utility::string_t& value);
/// <summary>
/// Rows caps the materialisation. Zero takes the plane&#39;s own bound.
/// </summary>
int64_t getRows() const;
bool rowsIsSet() const;
void unsetRows();
void setRows(int64_t value);
/// <summary>
/// Seed decides WHICH subjects are admitted when the window holds more rows than the cap allows. It is recorded on the version, so a capped dataset is reproducible rather than being whichever rows the store returned first. Omit it to seed from the dataset&#39;s name.
/// </summary>
utility::string_t getSeed() const;
bool seedIsSet() const;
void unsetSeed();
void setSeed(const utility::string_t& value);
/// <summary>
/// To is where the window ends, EXCLUSIVE, so two datasets meeting at one instant share no row. A materialisation reads less than this — the end is pulled back by Horizon, and the lineage reports the window it actually read.
/// </summary>
utility::string_t getTo() const;
bool toIsSet() const;
void unsetTo();
void setTo(const utility::string_t& value);
protected:
std::vector<utility::string_t> m_Cuts;
bool m_CutsIsSet;
std::vector<utility::string_t> m_Dims;
bool m_DimsIsSet;
utility::string_t m_From;
bool m_FromIsSet;
int64_t m_Horizon;
bool m_HorizonIsSet;
utility::string_t m_Kind;
bool m_KindIsSet;
utility::string_t m_Name;
bool m_NameIsSet;
int64_t m_Rows;
bool m_RowsIsSet;
utility::string_t m_Seed;
bool m_SeedIsSet;
utility::string_t m_To;
bool m_ToIsSet;
};
}
}
#endif /* HANZO_MODEL_RiskDatasetSpec_H_ */