Files
zeekay 645325a641 regenerate from cloud 939b09d4
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.
2026-08-24 23:32:53 -07:00

390 lines
9.9 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.
*/
/*
* CaptureEvent.h
*
*
*/
#ifndef HANZO_MODEL_CaptureEvent_H_
#define HANZO_MODEL_CaptureEvent_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/ClipBody.h"
#include "hanzo/AnyType.h"
#include "hanzo/model/UTM.h"
#include "hanzo/model/SpanBody.h"
#include <cpprest/details/basic_types.h>
#include "hanzo/model/Exception.h"
#include "hanzo/model/MetricBody.h"
#include <map>
#include "hanzo/model/LogBody.h"
namespace hanzo {
namespace model {
class ClipBody;
class Exception;
class LogBody;
class MetricBody;
class SpanBody;
class UTM;
class CaptureEvent
: public ModelBase
{
public:
CaptureEvent();
virtual ~CaptureEvent();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// CaptureEvent members
utility::string_t getAnonymousId() const;
bool anonymousIdIsSet() const;
void unsetAnonymousId();
void setAnonymousId(const utility::string_t& value);
utility::string_t getChannel() const;
bool channelIsSet() const;
void unsetChannel();
void setChannel(const utility::string_t& value);
std::shared_ptr<ClipBody> getClip() const;
bool clipIsSet() const;
void unsetClip();
void setClip(const std::shared_ptr<ClipBody>& value);
utility::string_t getCurrency() const;
bool currencyIsSet() const;
void unsetCurrency();
void setCurrency(const utility::string_t& value);
utility::string_t getDistinctId() const;
bool distinctIdIsSet() const;
void unsetDistinctId();
void setDistinctId(const utility::string_t& value);
utility::string_t getEnvironment() const;
bool environmentIsSet() const;
void unsetEnvironment();
void setEnvironment(const utility::string_t& value);
std::shared_ptr<Exception> getError() const;
bool errorIsSet() const;
void unsetError();
void setError(const std::shared_ptr<Exception>& value);
utility::string_t getEvent() const;
bool eventIsSet() const;
void unsetEvent();
void setEvent(const utility::string_t& value);
utility::string_t getGroupId() const;
bool groupIdIsSet() const;
void unsetGroupId();
void setGroupId(const utility::string_t& value);
utility::string_t getGroupType() const;
bool groupTypeIsSet() const;
void unsetGroupType();
void setGroupType(const utility::string_t& value);
utility::string_t getKind() const;
bool kindIsSet() const;
void unsetKind();
void setKind(const utility::string_t& value);
utility::string_t getLevel() const;
bool levelIsSet() const;
void unsetLevel();
void setLevel(const utility::string_t& value);
utility::string_t getLibrary() const;
bool libraryIsSet() const;
void unsetLibrary();
void setLibrary(const utility::string_t& value);
utility::string_t getLibraryVersion() const;
bool libraryVersionIsSet() const;
void unsetLibraryVersion();
void setLibraryVersion(const utility::string_t& value);
std::shared_ptr<LogBody> getLog() const;
bool logIsSet() const;
void unsetLog();
void setLog(const std::shared_ptr<LogBody>& value);
utility::string_t getMessageId() const;
bool messageIdIsSet() const;
void unsetMessageId();
void setMessageId(const utility::string_t& value);
std::shared_ptr<MetricBody> getMetric() const;
bool metricIsSet() const;
void unsetMetric();
void setMetric(const std::shared_ptr<MetricBody>& value);
utility::string_t getPath() const;
bool pathIsSet() const;
void unsetPath();
void setPath(const utility::string_t& value);
utility::string_t getPersonId() const;
bool personIdIsSet() const;
void unsetPersonId();
void setPersonId(const utility::string_t& value);
utility::string_t getProduct() const;
bool productIsSet() const;
void unsetProduct();
void setProduct(const utility::string_t& value);
utility::string_t getProductId() const;
bool productIdIsSet() const;
void unsetProductId();
void setProductId(const utility::string_t& value);
std::map<utility::string_t, std::shared_ptr<AnyType>> getProperties() const;
bool propertiesIsSet() const;
void unsetProperties();
void setProperties(const std::map<utility::string_t, std::shared_ptr<AnyType>>& value);
int32_t getQuantity() const;
bool quantityIsSet() const;
void unsetQuantity();
void setQuantity(int32_t value);
utility::string_t getRefCode() const;
bool refCodeIsSet() const;
void unsetRefCode();
void setRefCode(const utility::string_t& value);
utility::string_t getReferrer() const;
bool referrerIsSet() const;
void unsetReferrer();
void setReferrer(const utility::string_t& value);
utility::string_t getRelease() const;
bool releaseIsSet() const;
void unsetRelease();
void setRelease(const utility::string_t& value);
utility::string_t getResource() const;
bool resourceIsSet() const;
void unsetResource();
void setResource(const utility::string_t& value);
double getRevenue() const;
bool revenueIsSet() const;
void unsetRevenue();
void setRevenue(double value);
utility::string_t getService() const;
bool serviceIsSet() const;
void unsetService();
void setService(const utility::string_t& value);
utility::string_t getSessionId() const;
bool sessionIdIsSet() const;
void unsetSessionId();
void setSessionId(const utility::string_t& value);
utility::string_t getSignupWeek() const;
bool signupWeekIsSet() const;
void unsetSignupWeek();
void setSignupWeek(const utility::string_t& value);
utility::string_t getSite() const;
bool siteIsSet() const;
void unsetSite();
void setSite(const utility::string_t& value);
std::shared_ptr<SpanBody> getSpan() const;
bool spanIsSet() const;
void unsetSpan();
void setSpan(const std::shared_ptr<SpanBody>& value);
utility::string_t getSpanId() const;
bool spanIdIsSet() const;
void unsetSpanId();
void setSpanId(const utility::string_t& value);
utility::string_t getTimestamp() const;
bool timestampIsSet() const;
void unsetTimestamp();
void setTimestamp(const utility::string_t& value);
utility::string_t getTraceId() const;
bool traceIdIsSet() const;
void unsetTraceId();
void setTraceId(const utility::string_t& value);
utility::string_t getType() const;
bool typeIsSet() const;
void unsetType();
void setType(const utility::string_t& value);
utility::string_t getUrl() const;
bool urlIsSet() const;
void unsetUrl();
void setUrl(const utility::string_t& value);
std::shared_ptr<UTM> getUtm() const;
bool utmIsSet() const;
void unsetUtm();
void setUtm(const std::shared_ptr<UTM>& value);
protected:
utility::string_t m_AnonymousId;
bool m_AnonymousIdIsSet;
utility::string_t m_Channel;
bool m_ChannelIsSet;
std::shared_ptr<ClipBody> m_Clip;
bool m_ClipIsSet;
utility::string_t m_Currency;
bool m_CurrencyIsSet;
utility::string_t m_DistinctId;
bool m_DistinctIdIsSet;
utility::string_t m_Environment;
bool m_EnvironmentIsSet;
std::shared_ptr<Exception> m_Error;
bool m_ErrorIsSet;
utility::string_t m_Event;
bool m_EventIsSet;
utility::string_t m_GroupId;
bool m_GroupIdIsSet;
utility::string_t m_GroupType;
bool m_GroupTypeIsSet;
utility::string_t m_Kind;
bool m_KindIsSet;
utility::string_t m_Level;
bool m_LevelIsSet;
utility::string_t m_Library;
bool m_LibraryIsSet;
utility::string_t m_LibraryVersion;
bool m_LibraryVersionIsSet;
std::shared_ptr<LogBody> m_Log;
bool m_LogIsSet;
utility::string_t m_MessageId;
bool m_MessageIdIsSet;
std::shared_ptr<MetricBody> m_Metric;
bool m_MetricIsSet;
utility::string_t m_Path;
bool m_PathIsSet;
utility::string_t m_PersonId;
bool m_PersonIdIsSet;
utility::string_t m_Product;
bool m_ProductIsSet;
utility::string_t m_ProductId;
bool m_ProductIdIsSet;
std::map<utility::string_t, std::shared_ptr<AnyType>> m_Properties;
bool m_PropertiesIsSet;
int32_t m_Quantity;
bool m_QuantityIsSet;
utility::string_t m_RefCode;
bool m_RefCodeIsSet;
utility::string_t m_Referrer;
bool m_ReferrerIsSet;
utility::string_t m_Release;
bool m_ReleaseIsSet;
utility::string_t m_Resource;
bool m_ResourceIsSet;
double m_Revenue;
bool m_RevenueIsSet;
utility::string_t m_Service;
bool m_ServiceIsSet;
utility::string_t m_SessionId;
bool m_SessionIdIsSet;
utility::string_t m_SignupWeek;
bool m_SignupWeekIsSet;
utility::string_t m_Site;
bool m_SiteIsSet;
std::shared_ptr<SpanBody> m_Span;
bool m_SpanIsSet;
utility::string_t m_SpanId;
bool m_SpanIdIsSet;
utility::string_t m_Timestamp;
bool m_TimestampIsSet;
utility::string_t m_TraceId;
bool m_TraceIdIsSet;
utility::string_t m_Type;
bool m_TypeIsSet;
utility::string_t m_Url;
bool m_UrlIsSet;
std::shared_ptr<UTM> m_Utm;
bool m_UtmIsSet;
};
}
}
#endif /* HANZO_MODEL_CaptureEvent_H_ */