mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
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.
163 lines
4.5 KiB
C++
163 lines
4.5 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.
|
|
*/
|
|
|
|
/*
|
|
* DeliveryRow.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_DeliveryRow_H_
|
|
#define HANZO_MODEL_DeliveryRow_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class DeliveryRow
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
DeliveryRow();
|
|
virtual ~DeliveryRow();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// DeliveryRow members
|
|
|
|
|
|
/// <summary>
|
|
/// Attempt is which try this row is, starting at 1. The ladder waits 1s, then 5s, then 25s before the next one.
|
|
/// </summary>
|
|
int64_t getAttempt() const;
|
|
bool attemptIsSet() const;
|
|
void unsetAttempt();
|
|
void setAttempt(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Created is when the attempt was made, RFC3339 in UTC.
|
|
/// </summary>
|
|
utility::string_t getCreated() const;
|
|
bool createdIsSet() const;
|
|
void unsetCreated();
|
|
void setCreated(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// DeliveryID groups the attempts for ONE event to ONE endpoint. Rows sharing it are the same delivery being retried, not separate events.
|
|
/// </summary>
|
|
utility::string_t getDelivery() const;
|
|
bool deliveryIsSet() const;
|
|
void unsetDelivery();
|
|
void setDelivery(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// DurationMs is how long this attempt took end to end, in MILLISECONDS.
|
|
/// </summary>
|
|
int64_t getDurationMs() const;
|
|
bool durationMsIsSet() const;
|
|
void unsetDurationMs();
|
|
void setDurationMs(int64_t value);
|
|
|
|
/// <summary>
|
|
/// EndpointID is which subscriber this attempt was for.
|
|
/// </summary>
|
|
utility::string_t getEndpoint() const;
|
|
bool endpointIsSet() const;
|
|
void unsetEndpoint();
|
|
void setEndpoint(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Error says what went wrong on a non-ok attempt. Empty on success.
|
|
/// </summary>
|
|
utility::string_t getError() const;
|
|
bool errorIsSet() const;
|
|
void unsetError();
|
|
void setError(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// HTTPStatus is what the subscriber answered. ZERO means it never answered — a refused connection, a DNS failure or a timeout — which is why a zero here is not a 200.
|
|
/// </summary>
|
|
int64_t getHttpStatus() const;
|
|
bool httpStatusIsSet() const;
|
|
void unsetHttpStatus();
|
|
void setHttpStatus(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Status is \"ok\" when the subscriber accepted it, \"retrying\" while a further attempt will follow, and \"failed\" when none will. Exactly one row of a delivery is terminal.
|
|
/// </summary>
|
|
utility::string_t getStatus() const;
|
|
bool statusIsSet() const;
|
|
void unsetStatus();
|
|
void setStatus(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Subject is the event that was delivered (\"commerce.order.created\"). A manual test send carries \"webhook.test\".
|
|
/// </summary>
|
|
utility::string_t getSubject() const;
|
|
bool subjectIsSet() const;
|
|
void unsetSubject();
|
|
void setSubject(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
int64_t m_Attempt;
|
|
bool m_AttemptIsSet;
|
|
|
|
utility::string_t m_Created;
|
|
bool m_CreatedIsSet;
|
|
|
|
utility::string_t m_Delivery;
|
|
bool m_DeliveryIsSet;
|
|
|
|
int64_t m_DurationMs;
|
|
bool m_DurationMsIsSet;
|
|
|
|
utility::string_t m_Endpoint;
|
|
bool m_EndpointIsSet;
|
|
|
|
utility::string_t m_Error;
|
|
bool m_ErrorIsSet;
|
|
|
|
int64_t m_HttpStatus;
|
|
bool m_HttpStatusIsSet;
|
|
|
|
utility::string_t m_Status;
|
|
bool m_StatusIsSet;
|
|
|
|
utility::string_t m_Subject;
|
|
bool m_SubjectIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_DeliveryRow_H_ */
|