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.
178 lines
4.5 KiB
C++
178 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.
|
|
*/
|
|
|
|
/*
|
|
* Consumer.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Consumer_H_
|
|
#define HANZO_MODEL_Consumer_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/Durable.h"
|
|
#include "hanzo/model/Sequences.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class Sequences;
|
|
class Durable;
|
|
|
|
|
|
class Consumer
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Consumer();
|
|
virtual ~Consumer();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Consumer members
|
|
|
|
|
|
/// <summary>
|
|
/// AckFloor is the highest contiguously acknowledged sequence pair.
|
|
/// </summary>
|
|
std::shared_ptr<Sequences> getAckFloor() const;
|
|
bool ackFloorIsSet() const;
|
|
void unsetAck_floor();
|
|
void setAckFloor(const std::shared_ptr<Sequences>& value);
|
|
|
|
/// <summary>
|
|
/// Config is the consumer's configuration.
|
|
/// </summary>
|
|
std::shared_ptr<Durable> getConfig() const;
|
|
bool configIsSet() const;
|
|
void unsetConfig();
|
|
void setConfig(const std::shared_ptr<Durable>& value);
|
|
|
|
/// <summary>
|
|
/// Created is when the consumer was created.
|
|
/// </summary>
|
|
utility::datetime getCreated() const;
|
|
bool createdIsSet() const;
|
|
void unsetCreated();
|
|
void setCreated(const utility::datetime& value);
|
|
|
|
/// <summary>
|
|
/// Delivered is the highest delivered sequence pair.
|
|
/// </summary>
|
|
std::shared_ptr<Sequences> getDelivered() const;
|
|
bool deliveredIsSet() const;
|
|
void unsetDelivered();
|
|
void setDelivered(const std::shared_ptr<Sequences>& value);
|
|
|
|
/// <summary>
|
|
/// Name is the consumer name.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// AckPending is the number of delivered, not yet acknowledged messages.
|
|
/// </summary>
|
|
int64_t getNumAckPending() const;
|
|
bool numAckPendingIsSet() const;
|
|
void unsetNum_ack_pending();
|
|
void setNumAckPending(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Pending is the number of messages yet to be delivered.
|
|
/// </summary>
|
|
int32_t getNumPending() const;
|
|
bool numPendingIsSet() const;
|
|
void unsetNum_pending();
|
|
void setNumPending(int32_t value);
|
|
|
|
/// <summary>
|
|
/// Redelivered is the number of messages currently being redelivered.
|
|
/// </summary>
|
|
int64_t getNumRedelivered() const;
|
|
bool numRedeliveredIsSet() const;
|
|
void unsetNum_redelivered();
|
|
void setNumRedelivered(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Waiting is the number of pull requests waiting for messages.
|
|
/// </summary>
|
|
int64_t getNumWaiting() const;
|
|
bool numWaitingIsSet() const;
|
|
void unsetNum_waiting();
|
|
void setNumWaiting(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Stream is the stream this consumer reads.
|
|
/// </summary>
|
|
utility::string_t getStreamName() const;
|
|
bool streamNameIsSet() const;
|
|
void unsetStream_name();
|
|
void setStreamName(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
std::shared_ptr<Sequences> m_Ack_floor;
|
|
bool m_Ack_floorIsSet;
|
|
|
|
std::shared_ptr<Durable> m_Config;
|
|
bool m_ConfigIsSet;
|
|
|
|
utility::datetime m_Created;
|
|
bool m_CreatedIsSet;
|
|
|
|
std::shared_ptr<Sequences> m_Delivered;
|
|
bool m_DeliveredIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
int64_t m_Num_ack_pending;
|
|
bool m_Num_ack_pendingIsSet;
|
|
|
|
int32_t m_Num_pending;
|
|
bool m_Num_pendingIsSet;
|
|
|
|
int64_t m_Num_redelivered;
|
|
bool m_Num_redeliveredIsSet;
|
|
|
|
int64_t m_Num_waiting;
|
|
bool m_Num_waitingIsSet;
|
|
|
|
utility::string_t m_Stream_name;
|
|
bool m_Stream_nameIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Consumer_H_ */
|