mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The projection was 113 commits behind the document it claims to describe, and `generate.py --all --check` reported every one of the thirteen clients DRIFTED — the same +19 models in each, because they all fell behind the same emission. Regenerated in place from hanzo-inc/cloud openapi.yaml at 939b09d4 (sha256 087024f6…), which is the only description of this API that cannot name a route the binary does not serve. `--check` is clean across all thirteen after. .spec-lock moved with the code. The generator READS that file and never writes it — hanzoai/ci`s lane does — so a hand run leaves every lock naming the previous document. A lock that disagrees with the tree beside it is worse than no lock: the next `--check` without `--spec` fetches what production serves, compares it to a digest that was already wrong, and reports drift that is really staleness.
161 lines
4.8 KiB
C++
161 lines
4.8 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.
|
|
*/
|
|
|
|
/*
|
|
* NotifySend.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_NotifySend_H_
|
|
#define HANZO_MODEL_NotifySend_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/AnyType.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class NotifySend
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
NotifySend();
|
|
virtual ~NotifySend();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// NotifySend members
|
|
|
|
|
|
/// <summary>
|
|
/// Body is the message text, sent verbatim when present — the no-template path.
|
|
/// </summary>
|
|
utility::string_t getBody() const;
|
|
bool bodyIsSet() const;
|
|
void unsetBody();
|
|
void setBody(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Channel selects the delivery channel, sms or email. The per-channel routes (/send/sms, /send/email) pin it, overriding whatever the body names; on the generic route it is required.
|
|
/// </summary>
|
|
utility::string_t getChannel() const;
|
|
bool channelIsSet() const;
|
|
void unsetChannel();
|
|
void setChannel(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Event is the event name, which doubles as the template id when TemplateID is empty — the IAM OTP path sends event=iam.otp_sent and nothing else.
|
|
/// </summary>
|
|
utility::string_t getEvent() const;
|
|
bool eventIsSet() const;
|
|
void unsetEvent();
|
|
void setEvent(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Provider pins a provider service name (twilio, plivo, twilio_email, mail). Empty picks the one whose org credentials are actually configured in KMS.
|
|
/// </summary>
|
|
utility::string_t getProvider() const;
|
|
bool providerIsSet() const;
|
|
void unsetProvider();
|
|
void setProvider(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Subject is the message subject, carried on the email channel only.
|
|
/// </summary>
|
|
utility::string_t getSubject() const;
|
|
bool subjectIsSet() const;
|
|
void unsetSubject();
|
|
void setSubject(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Sync must be exactly \"true\": delivery here is synchronous, and anything else answers 503 because the queue plane that would run an async dispatch is owned elsewhere. Over REST it rides as ?sync=true (the URL binds over the body); a by-name call states it in its arguments.
|
|
/// </summary>
|
|
utility::string_t getSync() const;
|
|
bool syncIsSet() const;
|
|
void unsetSync();
|
|
void setSync(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// TemplateID selects a built-in template when Body is empty.
|
|
/// </summary>
|
|
utility::string_t getTemplateId() const;
|
|
bool templateIdIsSet() const;
|
|
void unsetTemplate_id();
|
|
void setTemplateId(const utility::string_t& value);
|
|
|
|
std::shared_ptr<AnyType> getTemplateVars() const;
|
|
bool templateVarsIsSet() const;
|
|
void unsetTemplate_vars();
|
|
void setTemplateVars(const std::shared_ptr<AnyType>& value);
|
|
|
|
/// <summary>
|
|
/// To is the destination address per recipient — a phone number for sms, an email address for email. Several recipients fan out into one provider call each, and the response shape follows the count (see the items field).
|
|
/// </summary>
|
|
std::vector<utility::string_t> getTo() const;
|
|
bool toIsSet() const;
|
|
void unsetTo();
|
|
void setTo(const std::vector<utility::string_t>& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Body;
|
|
bool m_BodyIsSet;
|
|
|
|
utility::string_t m_Channel;
|
|
bool m_ChannelIsSet;
|
|
|
|
utility::string_t m_Event;
|
|
bool m_EventIsSet;
|
|
|
|
utility::string_t m_Provider;
|
|
bool m_ProviderIsSet;
|
|
|
|
utility::string_t m_Subject;
|
|
bool m_SubjectIsSet;
|
|
|
|
utility::string_t m_Sync;
|
|
bool m_SyncIsSet;
|
|
|
|
utility::string_t m_Template_id;
|
|
bool m_Template_idIsSet;
|
|
|
|
boost::optional<std::shared_ptr<AnyType>> m_Template_vars;
|
|
|
|
std::vector<utility::string_t> m_To;
|
|
bool m_ToIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_NotifySend_H_ */
|