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.
256 lines
9.1 KiB
C++
256 lines
9.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.
|
|
*/
|
|
|
|
/*
|
|
* O11y_Receiver.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_O11y_Receiver_H_
|
|
#define HANZO_MODEL_O11y_Receiver_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/O11y_MSTeamsConfig.h"
|
|
#include "hanzo/model/O11y_VictorOpsConfig.h"
|
|
#include "hanzo/model/O11y_WebexConfig.h"
|
|
#include "hanzo/model/O11y_WebhookConfig.h"
|
|
#include "hanzo/model/O11y_MattermostConfig.h"
|
|
#include <vector>
|
|
#include "hanzo/model/O11y_IncidentioConfig.h"
|
|
#include "hanzo/model/O11y_JiraConfig.h"
|
|
#include "hanzo/model/O11y_RocketchatConfig.h"
|
|
#include "hanzo/model/O11y_OpsGenieConfig.h"
|
|
#include "hanzo/model/O11y_PushoverConfig.h"
|
|
#include "hanzo/model/O11y_PagerdutyConfig.h"
|
|
#include "hanzo/model/O11y_SlackConfig.h"
|
|
#include "hanzo/model/O11y_DiscordConfig.h"
|
|
#include "hanzo/model/O11y_SNSConfig.h"
|
|
#include "hanzo/model/O11y_TelegramConfig.h"
|
|
#include "hanzo/model/O11y_EmailConfig.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include "hanzo/model/O11y_WechatConfig.h"
|
|
#include "hanzo/model/O11y_MSTeamsV2Config.h"
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class O11y_DiscordConfig;
|
|
class O11y_EmailConfig;
|
|
class O11y_IncidentioConfig;
|
|
class O11y_JiraConfig;
|
|
class O11y_MattermostConfig;
|
|
class O11y_MSTeamsConfig;
|
|
class O11y_MSTeamsV2Config;
|
|
class O11y_OpsGenieConfig;
|
|
class O11y_PagerdutyConfig;
|
|
class O11y_PushoverConfig;
|
|
class O11y_RocketchatConfig;
|
|
class O11y_SlackConfig;
|
|
class O11y_SNSConfig;
|
|
class O11y_TelegramConfig;
|
|
class O11y_VictorOpsConfig;
|
|
class O11y_WebexConfig;
|
|
class O11y_WebhookConfig;
|
|
class O11y_WechatConfig;
|
|
|
|
|
|
class O11y_Receiver
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
O11y_Receiver();
|
|
virtual ~O11y_Receiver();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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_Receiver members
|
|
|
|
|
|
std::vector<std::shared_ptr<O11y_DiscordConfig>> getDiscordConfigs() const;
|
|
bool discordConfigsIsSet() const;
|
|
void unsetDiscord_configs();
|
|
void setDiscordConfigs(const std::vector<std::shared_ptr<O11y_DiscordConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_EmailConfig>> getEmailConfigs() const;
|
|
bool emailConfigsIsSet() const;
|
|
void unsetEmail_configs();
|
|
void setEmailConfigs(const std::vector<std::shared_ptr<O11y_EmailConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_IncidentioConfig>> getIncidentioConfigs() const;
|
|
bool incidentioConfigsIsSet() const;
|
|
void unsetIncidentio_configs();
|
|
void setIncidentioConfigs(const std::vector<std::shared_ptr<O11y_IncidentioConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_JiraConfig>> getJiraConfigs() const;
|
|
bool jiraConfigsIsSet() const;
|
|
void unsetJira_configs();
|
|
void setJiraConfigs(const std::vector<std::shared_ptr<O11y_JiraConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_MattermostConfig>> getMattermostConfigs() const;
|
|
bool mattermostConfigsIsSet() const;
|
|
void unsetMattermost_configs();
|
|
void setMattermostConfigs(const std::vector<std::shared_ptr<O11y_MattermostConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_MSTeamsConfig>> getMsteamsConfigs() const;
|
|
bool msteamsConfigsIsSet() const;
|
|
void unsetMsteams_configs();
|
|
void setMsteamsConfigs(const std::vector<std::shared_ptr<O11y_MSTeamsConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_MSTeamsV2Config>> getMsteamsv2Configs() const;
|
|
bool msteamsv2ConfigsIsSet() const;
|
|
void unsetMsteamsv2_configs();
|
|
void setMsteamsv2Configs(const std::vector<std::shared_ptr<O11y_MSTeamsV2Config>>& value);
|
|
|
|
/// <summary>
|
|
/// A unique identifier for this receiver.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_OpsGenieConfig>> getOpsgenieConfigs() const;
|
|
bool opsgenieConfigsIsSet() const;
|
|
void unsetOpsgenie_configs();
|
|
void setOpsgenieConfigs(const std::vector<std::shared_ptr<O11y_OpsGenieConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_PagerdutyConfig>> getPagerdutyConfigs() const;
|
|
bool pagerdutyConfigsIsSet() const;
|
|
void unsetPagerduty_configs();
|
|
void setPagerdutyConfigs(const std::vector<std::shared_ptr<O11y_PagerdutyConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_PushoverConfig>> getPushoverConfigs() const;
|
|
bool pushoverConfigsIsSet() const;
|
|
void unsetPushover_configs();
|
|
void setPushoverConfigs(const std::vector<std::shared_ptr<O11y_PushoverConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_RocketchatConfig>> getRocketchatConfigs() const;
|
|
bool rocketchatConfigsIsSet() const;
|
|
void unsetRocketchat_configs();
|
|
void setRocketchatConfigs(const std::vector<std::shared_ptr<O11y_RocketchatConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_SlackConfig>> getSlackConfigs() const;
|
|
bool slackConfigsIsSet() const;
|
|
void unsetSlack_configs();
|
|
void setSlackConfigs(const std::vector<std::shared_ptr<O11y_SlackConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_SNSConfig>> getSnsConfigs() const;
|
|
bool snsConfigsIsSet() const;
|
|
void unsetSns_configs();
|
|
void setSnsConfigs(const std::vector<std::shared_ptr<O11y_SNSConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_TelegramConfig>> getTelegramConfigs() const;
|
|
bool telegramConfigsIsSet() const;
|
|
void unsetTelegram_configs();
|
|
void setTelegramConfigs(const std::vector<std::shared_ptr<O11y_TelegramConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_VictorOpsConfig>> getVictoropsConfigs() const;
|
|
bool victoropsConfigsIsSet() const;
|
|
void unsetVictorops_configs();
|
|
void setVictoropsConfigs(const std::vector<std::shared_ptr<O11y_VictorOpsConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_WebexConfig>> getWebexConfigs() const;
|
|
bool webexConfigsIsSet() const;
|
|
void unsetWebex_configs();
|
|
void setWebexConfigs(const std::vector<std::shared_ptr<O11y_WebexConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_WebhookConfig>> getWebhookConfigs() const;
|
|
bool webhookConfigsIsSet() const;
|
|
void unsetWebhook_configs();
|
|
void setWebhookConfigs(const std::vector<std::shared_ptr<O11y_WebhookConfig>>& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_WechatConfig>> getWechatConfigs() const;
|
|
bool wechatConfigsIsSet() const;
|
|
void unsetWechat_configs();
|
|
void setWechatConfigs(const std::vector<std::shared_ptr<O11y_WechatConfig>>& value);
|
|
|
|
|
|
protected:
|
|
std::vector<std::shared_ptr<O11y_DiscordConfig>> m_Discord_configs;
|
|
bool m_Discord_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_EmailConfig>> m_Email_configs;
|
|
bool m_Email_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_IncidentioConfig>> m_Incidentio_configs;
|
|
bool m_Incidentio_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_JiraConfig>> m_Jira_configs;
|
|
bool m_Jira_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_MattermostConfig>> m_Mattermost_configs;
|
|
bool m_Mattermost_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_MSTeamsConfig>> m_Msteams_configs;
|
|
bool m_Msteams_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_MSTeamsV2Config>> m_Msteamsv2_configs;
|
|
bool m_Msteamsv2_configsIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_OpsGenieConfig>> m_Opsgenie_configs;
|
|
bool m_Opsgenie_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_PagerdutyConfig>> m_Pagerduty_configs;
|
|
bool m_Pagerduty_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_PushoverConfig>> m_Pushover_configs;
|
|
bool m_Pushover_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_RocketchatConfig>> m_Rocketchat_configs;
|
|
bool m_Rocketchat_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_SlackConfig>> m_Slack_configs;
|
|
bool m_Slack_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_SNSConfig>> m_Sns_configs;
|
|
bool m_Sns_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_TelegramConfig>> m_Telegram_configs;
|
|
bool m_Telegram_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_VictorOpsConfig>> m_Victorops_configs;
|
|
bool m_Victorops_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_WebexConfig>> m_Webex_configs;
|
|
bool m_Webex_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_WebhookConfig>> m_Webhook_configs;
|
|
bool m_Webhook_configsIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_WechatConfig>> m_Wechat_configs;
|
|
bool m_Wechat_configsIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_O11y_Receiver_H_ */
|