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

185 lines
5.1 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.
*/
/*
* Durable.h
*
*
*/
#ifndef HANZO_MODEL_Durable_H_
#define HANZO_MODEL_Durable_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class Durable
: public ModelBase
{
public:
Durable();
virtual ~Durable();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Durable members
/// <summary>
/// Ack is the acknowledgment policy: explicit (default), all, or none.
/// </summary>
utility::string_t getAckPolicy() const;
bool ackPolicyIsSet() const;
void unsetAck_policy();
void setAckPolicy(const utility::string_t& value);
/// <summary>
/// AckWait is how long the broker waits for an ack before redelivering, e.g. \&quot;30s\&quot; (default).
/// </summary>
utility::string_t getAckWait() const;
bool ackWaitIsSet() const;
void unsetAck_wait();
void setAckWait(const utility::string_t& value);
/// <summary>
/// Deliver is where delivery starts: all (default), last, new, by_start_sequence, by_start_time, or last_per_subject.
/// </summary>
utility::string_t getDeliverPolicy() const;
bool deliverPolicyIsSet() const;
void unsetDeliver_policy();
void setDeliverPolicy(const utility::string_t& value);
/// <summary>
/// Description says what this consumer is for.
/// </summary>
utility::string_t getDescription() const;
bool descriptionIsSet() const;
void unsetDescription();
void setDescription(const utility::string_t& value);
/// <summary>
/// Name is the durable consumer name (alphanumeric, hyphens, underscores).
/// </summary>
utility::string_t getDurableName() const;
bool durableNameIsSet() const;
void unsetDurable_name();
void setDurableName(const utility::string_t& value);
/// <summary>
/// Filter delivers only messages on this org-relative subject (wildcards supported).
/// </summary>
utility::string_t getFilterSubject() const;
bool filterSubjectIsSet() const;
void unsetFilter_subject();
void setFilterSubject(const utility::string_t& value);
/// <summary>
/// MaxAckPending caps unacknowledged messages in flight (default 1000).
/// </summary>
int64_t getMaxAckPending() const;
bool maxAckPendingIsSet() const;
void unsetMax_ack_pending();
void setMaxAckPending(int64_t value);
/// <summary>
/// MaxDeliver caps delivery attempts per message; -1 (default) is unlimited.
/// </summary>
int64_t getMaxDeliver() const;
bool maxDeliverIsSet() const;
void unsetMax_deliver();
void setMaxDeliver(int64_t value);
/// <summary>
/// StartSeq is the starting sequence for deliver_policy by_start_sequence.
/// </summary>
int32_t getOptStartSeq() const;
bool optStartSeqIsSet() const;
void unsetOpt_start_seq();
void setOptStartSeq(int32_t value);
/// <summary>
/// StartTime is the starting instant for deliver_policy by_start_time.
/// </summary>
utility::datetime getOptStartTime() const;
bool optStartTimeIsSet() const;
void unsetOpt_start_time();
void setOptStartTime(const utility::datetime& value);
/// <summary>
/// Replay is the replay pacing: instant (default) or original.
/// </summary>
utility::string_t getReplayPolicy() const;
bool replayPolicyIsSet() const;
void unsetReplay_policy();
void setReplayPolicy(const utility::string_t& value);
protected:
utility::string_t m_Ack_policy;
bool m_Ack_policyIsSet;
utility::string_t m_Ack_wait;
bool m_Ack_waitIsSet;
utility::string_t m_Deliver_policy;
bool m_Deliver_policyIsSet;
utility::string_t m_Description;
bool m_DescriptionIsSet;
utility::string_t m_Durable_name;
bool m_Durable_nameIsSet;
utility::string_t m_Filter_subject;
bool m_Filter_subjectIsSet;
int64_t m_Max_ack_pending;
bool m_Max_ack_pendingIsSet;
int64_t m_Max_deliver;
bool m_Max_deliverIsSet;
int32_t m_Opt_start_seq;
bool m_Opt_start_seqIsSet;
utility::datetime m_Opt_start_time;
bool m_Opt_start_timeIsSet;
utility::string_t m_Replay_policy;
bool m_Replay_policyIsSet;
};
}
}
#endif /* HANZO_MODEL_Durable_H_ */