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
3.9 KiB
C++
163 lines
3.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.
|
|
*/
|
|
|
|
/*
|
|
* State.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_State_H_
|
|
#define HANZO_MODEL_State_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class State
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
State();
|
|
virtual ~State();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// State members
|
|
|
|
|
|
/// <summary>
|
|
/// Bytes is the total stored size.
|
|
/// </summary>
|
|
int32_t getBytes() const;
|
|
bool bytesIsSet() const;
|
|
void unsetBytes();
|
|
void setBytes(int32_t value);
|
|
|
|
/// <summary>
|
|
/// Consumers is the number of consumers attached to this stream.
|
|
/// </summary>
|
|
int64_t getConsumerCount() const;
|
|
bool consumerCountIsSet() const;
|
|
void unsetConsumer_count();
|
|
void setConsumerCount(int64_t value);
|
|
|
|
/// <summary>
|
|
/// FirstSeq is the sequence of the first stored message.
|
|
/// </summary>
|
|
int32_t getFirstSeq() const;
|
|
bool firstSeqIsSet() const;
|
|
void unsetFirst_seq();
|
|
void setFirstSeq(int32_t value);
|
|
|
|
/// <summary>
|
|
/// FirstTS is the timestamp of the first stored message.
|
|
/// </summary>
|
|
utility::datetime getFirstTs() const;
|
|
bool firstTsIsSet() const;
|
|
void unsetFirst_ts();
|
|
void setFirstTs(const utility::datetime& value);
|
|
|
|
/// <summary>
|
|
/// LastSeq is the sequence of the last stored message.
|
|
/// </summary>
|
|
int32_t getLastSeq() const;
|
|
bool lastSeqIsSet() const;
|
|
void unsetLast_seq();
|
|
void setLastSeq(int32_t value);
|
|
|
|
/// <summary>
|
|
/// LastTS is the timestamp of the last stored message.
|
|
/// </summary>
|
|
utility::datetime getLastTs() const;
|
|
bool lastTsIsSet() const;
|
|
void unsetLast_ts();
|
|
void setLastTs(const utility::datetime& value);
|
|
|
|
/// <summary>
|
|
/// Messages is the number of messages currently stored.
|
|
/// </summary>
|
|
int32_t getMessages() const;
|
|
bool messagesIsSet() const;
|
|
void unsetMessages();
|
|
void setMessages(int32_t value);
|
|
|
|
/// <summary>
|
|
/// Deleted is the number of deleted messages (sequence gaps).
|
|
/// </summary>
|
|
int64_t getNumDeleted() const;
|
|
bool numDeletedIsSet() const;
|
|
void unsetNum_deleted();
|
|
void setNumDeleted(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Subjects is the number of distinct subjects stored.
|
|
/// </summary>
|
|
int32_t getNumSubjects() const;
|
|
bool numSubjectsIsSet() const;
|
|
void unsetNum_subjects();
|
|
void setNumSubjects(int32_t value);
|
|
|
|
|
|
protected:
|
|
int32_t m_Bytes;
|
|
bool m_BytesIsSet;
|
|
|
|
int64_t m_Consumer_count;
|
|
bool m_Consumer_countIsSet;
|
|
|
|
int32_t m_First_seq;
|
|
bool m_First_seqIsSet;
|
|
|
|
utility::datetime m_First_ts;
|
|
bool m_First_tsIsSet;
|
|
|
|
int32_t m_Last_seq;
|
|
bool m_Last_seqIsSet;
|
|
|
|
utility::datetime m_Last_ts;
|
|
bool m_Last_tsIsSet;
|
|
|
|
int32_t m_Messages;
|
|
bool m_MessagesIsSet;
|
|
|
|
int64_t m_Num_deleted;
|
|
bool m_Num_deletedIsSet;
|
|
|
|
int32_t m_Num_subjects;
|
|
bool m_Num_subjectsIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_State_H_ */
|