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

143 lines
3.6 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.
*/
/*
* Delivery.h
*
*
*/
#ifndef HANZO_MODEL_Delivery_H_
#define HANZO_MODEL_Delivery_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
#include <map>
#include <vector>
namespace hanzo {
namespace model {
class Delivery
: public ModelBase
{
public:
Delivery();
virtual ~Delivery();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Delivery members
/// <summary>
/// Data is the payload, base64-encoded.
/// </summary>
utility::string_t getData() const;
bool dataIsSet() const;
void unsetData();
void setData(const utility::string_t& value);
/// <summary>
/// Headers are the message headers, when any were published.
/// </summary>
std::map<utility::string_t, std::vector<utility::string_t>> getHeaders() const;
bool headersIsSet() const;
void unsetHeaders();
void setHeaders(const std::map<utility::string_t, std::vector<utility::string_t>>& value);
/// <summary>
/// Delivered is how many times a consumer has been handed this message (pulls only).
/// </summary>
int64_t getNumDelivered() const;
bool numDeliveredIsSet() const;
void unsetNum_delivered();
void setNumDelivered(int64_t value);
/// <summary>
/// Remaining is how many messages follow this one for the consumer (pulls only).
/// </summary>
int32_t getNumPending() const;
bool numPendingIsSet() const;
void unsetNum_pending();
void setNumPending(int32_t value);
/// <summary>
/// Sequence is the message&#39;s stream sequence.
/// </summary>
int32_t getSequence() const;
bool sequenceIsSet() const;
void unsetSequence();
void setSequence(int32_t value);
/// <summary>
/// Subject is the org-relative subject the message was stored under.
/// </summary>
utility::string_t getSubject() const;
bool subjectIsSet() const;
void unsetSubject();
void setSubject(const utility::string_t& value);
/// <summary>
/// Timestamp is when the broker stored the message.
/// </summary>
utility::datetime getTimestamp() const;
bool timestampIsSet() const;
void unsetTimestamp();
void setTimestamp(const utility::datetime& value);
protected:
utility::string_t m_Data;
bool m_DataIsSet;
std::map<utility::string_t, std::vector<utility::string_t>> m_Headers;
bool m_HeadersIsSet;
int64_t m_Num_delivered;
bool m_Num_deliveredIsSet;
int32_t m_Num_pending;
bool m_Num_pendingIsSet;
int32_t m_Sequence;
bool m_SequenceIsSet;
utility::string_t m_Subject;
bool m_SubjectIsSet;
utility::datetime m_Timestamp;
bool m_TimestampIsSet;
};
}
}
#endif /* HANZO_MODEL_Delivery_H_ */