Files
zeekay 645325a641 regenerate from cloud 939b09d4
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.
2026-08-24 23:32:53 -07:00

219 lines
6.2 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.
*/
/*
* O11y_EmailConfig.h
*
*
*/
#ifndef HANZO_MODEL_O11y_EmailConfig_H_
#define HANZO_MODEL_O11y_EmailConfig_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/O11y_TLSConfig.h"
#include "hanzo/model/O11y_ThreadingConfig.h"
#include "hanzo/AnyType.h"
#include <cpprest/details/basic_types.h>
#include <map>
#include "hanzo/model/O11y_NotifierConfig.h"
namespace hanzo {
namespace model {
class O11y_NotifierConfig;
class O11y_ThreadingConfig;
class O11y_TLSConfig;
class O11y_EmailConfig
: public ModelBase
{
public:
O11y_EmailConfig();
virtual ~O11y_EmailConfig();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// O11y_EmailConfig members
std::shared_ptr<O11y_NotifierConfig> getNotifierConfig() const;
bool notifierConfigIsSet() const;
void unsetNotifierConfig();
void setNotifierConfig(const std::shared_ptr<O11y_NotifierConfig>& value);
utility::string_t getAuthIdentity() const;
bool authIdentityIsSet() const;
void unsetAuth_identity();
void setAuthIdentity(const utility::string_t& value);
std::shared_ptr<AnyType> getAuthPassword() const;
bool authPasswordIsSet() const;
void unsetAuth_password();
void setAuthPassword(const std::shared_ptr<AnyType>& value);
utility::string_t getAuthPasswordFile() const;
bool authPasswordFileIsSet() const;
void unsetAuth_password_file();
void setAuthPasswordFile(const utility::string_t& value);
std::shared_ptr<AnyType> getAuthSecret() const;
bool authSecretIsSet() const;
void unsetAuth_secret();
void setAuthSecret(const std::shared_ptr<AnyType>& value);
utility::string_t getAuthSecretFile() const;
bool authSecretFileIsSet() const;
void unsetAuth_secret_file();
void setAuthSecretFile(const utility::string_t& value);
utility::string_t getAuthUsername() const;
bool authUsernameIsSet() const;
void unsetAuth_username();
void setAuthUsername(const utility::string_t& value);
/// <summary>
/// ForceImplicitTLS controls whether to use implicit TLS (direct TLS connection). true: force use of implicit TLS (direct TLS connection) false: force disable implicit TLS (use explicit TLS/STARTTLS if required) nil (default): auto-detect based on port (465&#x3D;implicit, other&#x3D;explicit) for backward compatibility
/// </summary>
bool isForceImplicitTls() const;
bool forceImplicitTlsIsSet() const;
void unsetForce_implicit_tls();
void setForceImplicitTls(bool value);
utility::string_t getFrom() const;
bool fromIsSet() const;
void unsetFrom();
void setFrom(const utility::string_t& value);
std::map<utility::string_t, utility::string_t> getHeaders() const;
bool headersIsSet() const;
void unsetHeaders();
void setHeaders(const std::map<utility::string_t, utility::string_t>& value);
utility::string_t getHello() const;
bool helloIsSet() const;
void unsetHello();
void setHello(const utility::string_t& value);
utility::string_t getHtml() const;
bool htmlIsSet() const;
void unsetHtml();
void setHtml(const utility::string_t& value);
bool isRequireTls() const;
bool requireTlsIsSet() const;
void unsetRequire_tls();
void setRequireTls(bool value);
std::shared_ptr<AnyType> getSmarthost() const;
bool smarthostIsSet() const;
void unsetSmarthost();
void setSmarthost(const std::shared_ptr<AnyType>& value);
utility::string_t getText() const;
bool textIsSet() const;
void unsetText();
void setText(const utility::string_t& value);
std::shared_ptr<O11y_ThreadingConfig> getThreading() const;
bool threadingIsSet() const;
void unsetThreading();
void setThreading(const std::shared_ptr<O11y_ThreadingConfig>& value);
std::shared_ptr<O11y_TLSConfig> getTlsConfig() const;
bool tlsConfigIsSet() const;
void unsetTls_config();
void setTlsConfig(const std::shared_ptr<O11y_TLSConfig>& value);
/// <summary>
/// Email address to notify.
/// </summary>
utility::string_t getTo() const;
bool toIsSet() const;
void unsetTo();
void setTo(const utility::string_t& value);
protected:
std::shared_ptr<O11y_NotifierConfig> m_NotifierConfig;
bool m_NotifierConfigIsSet;
utility::string_t m_Auth_identity;
bool m_Auth_identityIsSet;
boost::optional<std::shared_ptr<AnyType>> m_Auth_password;
utility::string_t m_Auth_password_file;
bool m_Auth_password_fileIsSet;
boost::optional<std::shared_ptr<AnyType>> m_Auth_secret;
utility::string_t m_Auth_secret_file;
bool m_Auth_secret_fileIsSet;
utility::string_t m_Auth_username;
bool m_Auth_usernameIsSet;
bool m_Force_implicit_tls;
bool m_Force_implicit_tlsIsSet;
utility::string_t m_From;
bool m_FromIsSet;
std::map<utility::string_t, utility::string_t> m_Headers;
bool m_HeadersIsSet;
utility::string_t m_Hello;
bool m_HelloIsSet;
utility::string_t m_Html;
bool m_HtmlIsSet;
bool m_Require_tls;
bool m_Require_tlsIsSet;
boost::optional<std::shared_ptr<AnyType>> m_Smarthost;
utility::string_t m_Text;
bool m_TextIsSet;
std::shared_ptr<O11y_ThreadingConfig> m_Threading;
bool m_ThreadingIsSet;
std::shared_ptr<O11y_TLSConfig> m_Tls_config;
bool m_Tls_configIsSet;
utility::string_t m_To;
bool m_ToIsSet;
};
}
}
#endif /* HANZO_MODEL_O11y_EmailConfig_H_ */