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.
179 lines
4.6 KiB
C++
179 lines
4.6 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_MattermostAttachment.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_O11y_MattermostAttachment_H_
|
|
#define HANZO_MODEL_O11y_MattermostAttachment_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include "hanzo/model/O11y_MattermostField.h"
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class O11y_MattermostField;
|
|
|
|
|
|
class O11y_MattermostAttachment
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
O11y_MattermostAttachment();
|
|
virtual ~O11y_MattermostAttachment();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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_MattermostAttachment members
|
|
|
|
|
|
utility::string_t getAuthorIcon() const;
|
|
bool authorIconIsSet() const;
|
|
void unsetAuthor_icon();
|
|
void setAuthorIcon(const utility::string_t& value);
|
|
|
|
utility::string_t getAuthorLink() const;
|
|
bool authorLinkIsSet() const;
|
|
void unsetAuthor_link();
|
|
void setAuthorLink(const utility::string_t& value);
|
|
|
|
utility::string_t getAuthorName() const;
|
|
bool authorNameIsSet() const;
|
|
void unsetAuthor_name();
|
|
void setAuthorName(const utility::string_t& value);
|
|
|
|
utility::string_t getColor() const;
|
|
bool colorIsSet() const;
|
|
void unsetColor();
|
|
void setColor(const utility::string_t& value);
|
|
|
|
utility::string_t getFallback() const;
|
|
bool fallbackIsSet() const;
|
|
void unsetFallback();
|
|
void setFallback(const utility::string_t& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_MattermostField>> getFields() const;
|
|
bool fieldsIsSet() const;
|
|
void unsetFields();
|
|
void setFields(const std::vector<std::shared_ptr<O11y_MattermostField>>& value);
|
|
|
|
utility::string_t getFooter() const;
|
|
bool footerIsSet() const;
|
|
void unsetFooter();
|
|
void setFooter(const utility::string_t& value);
|
|
|
|
utility::string_t getFooterIcon() const;
|
|
bool footerIconIsSet() const;
|
|
void unsetFooter_icon();
|
|
void setFooterIcon(const utility::string_t& value);
|
|
|
|
utility::string_t getImageUrl() const;
|
|
bool imageUrlIsSet() const;
|
|
void unsetImage_url();
|
|
void setImageUrl(const utility::string_t& value);
|
|
|
|
utility::string_t getPretext() const;
|
|
bool pretextIsSet() const;
|
|
void unsetPretext();
|
|
void setPretext(const utility::string_t& value);
|
|
|
|
utility::string_t getText() const;
|
|
bool textIsSet() const;
|
|
void unsetText();
|
|
void setText(const utility::string_t& value);
|
|
|
|
utility::string_t getThumbUrl() const;
|
|
bool thumbUrlIsSet() const;
|
|
void unsetThumb_url();
|
|
void setThumbUrl(const utility::string_t& value);
|
|
|
|
utility::string_t getTitle() const;
|
|
bool titleIsSet() const;
|
|
void unsetTitle();
|
|
void setTitle(const utility::string_t& value);
|
|
|
|
utility::string_t getTitleLink() const;
|
|
bool titleLinkIsSet() const;
|
|
void unsetTitle_link();
|
|
void setTitleLink(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Author_icon;
|
|
bool m_Author_iconIsSet;
|
|
|
|
utility::string_t m_Author_link;
|
|
bool m_Author_linkIsSet;
|
|
|
|
utility::string_t m_Author_name;
|
|
bool m_Author_nameIsSet;
|
|
|
|
utility::string_t m_Color;
|
|
bool m_ColorIsSet;
|
|
|
|
utility::string_t m_Fallback;
|
|
bool m_FallbackIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_MattermostField>> m_Fields;
|
|
bool m_FieldsIsSet;
|
|
|
|
utility::string_t m_Footer;
|
|
bool m_FooterIsSet;
|
|
|
|
utility::string_t m_Footer_icon;
|
|
bool m_Footer_iconIsSet;
|
|
|
|
utility::string_t m_Image_url;
|
|
bool m_Image_urlIsSet;
|
|
|
|
utility::string_t m_Pretext;
|
|
bool m_PretextIsSet;
|
|
|
|
utility::string_t m_Text;
|
|
bool m_TextIsSet;
|
|
|
|
utility::string_t m_Thumb_url;
|
|
bool m_Thumb_urlIsSet;
|
|
|
|
utility::string_t m_Title;
|
|
bool m_TitleIsSet;
|
|
|
|
utility::string_t m_Title_link;
|
|
bool m_Title_linkIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_O11y_MattermostAttachment_H_ */
|