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
4.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.
*/
/*
* RiskEvent.h
*
*
*/
#ifndef HANZO_MODEL_RiskEvent_H_
#define HANZO_MODEL_RiskEvent_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class RiskEvent
: public ModelBase
{
public:
RiskEvent();
virtual ~RiskEvent();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// RiskEvent members
/// <summary>
/// At is when it happened, RFC 3339. Empty means now. It must sit inside the thirty-day window the aggregates keep and no more than two minutes ahead of this plane&#39;s clock; anything outside that is REFUSED rather than quietly accepted, because a future timestamp moves the aggregates&#39; leading edge and leaves every later event for that subject reading as though it never happened. History older than the window is folded in from your own event surface, not through this endpoint.
/// </summary>
utility::string_t getAt() const;
bool atIsSet() const;
void unsetAt();
void setAt(const utility::string_t& value);
/// <summary>
/// Device is the device fingerprint, if any. It is the axis that surfaces several nominally unrelated subjects acting as one.
/// </summary>
utility::string_t getDevice() const;
bool deviceIsSet() const;
void unsetDevice();
void setDevice(const utility::string_t& value);
/// <summary>
/// ID is the caller&#39;s own stable identifier for the event. It selects the below-the-line review sample by hash, so a counter would make the sample steerable — use the id the event already has.
/// </summary>
utility::string_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(const utility::string_t& value);
/// <summary>
/// Kind is whose behaviour this is: person, session or account. It namespaces the subject, so a person and an account that share an identifier stay two subjects.
/// </summary>
utility::string_t getKind() const;
bool kindIsSet() const;
void unsetKind();
void setKind(const utility::string_t& value);
/// <summary>
/// Nano is the value moved, in nano-USD. Omit it for an event that moves no money: the value features then read BLIND rather than being told the amount was zero, and the difference is reported on the model state.
/// </summary>
int64_t getNano() const;
bool nanoIsSet() const;
void unsetNano();
void setNano(int64_t value);
/// <summary>
/// Peer is the counterparty, if any. It is an aggregation axis of its own — \&quot;unfamiliar\&quot; is a fact about a relationship and not about either party.
/// </summary>
utility::string_t getPeer() const;
bool peerIsSet() const;
void unsetPeer();
void setPeer(const utility::string_t& value);
/// <summary>
/// Subject is the identifier on that kind.
/// </summary>
utility::string_t getSubject() const;
bool subjectIsSet() const;
void unsetSubject();
void setSubject(const utility::string_t& value);
protected:
utility::string_t m_At;
bool m_AtIsSet;
utility::string_t m_Device;
bool m_DeviceIsSet;
utility::string_t m_Id;
bool m_IdIsSet;
utility::string_t m_Kind;
bool m_KindIsSet;
int64_t m_Nano;
bool m_NanoIsSet;
utility::string_t m_Peer;
bool m_PeerIsSet;
utility::string_t m_Subject;
bool m_SubjectIsSet;
};
}
}
#endif /* HANZO_MODEL_RiskEvent_H_ */