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.
189 lines
6.1 KiB
C++
189 lines
6.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.
|
|
*/
|
|
|
|
/*
|
|
* DestinationStatus.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_DestinationStatus_H_
|
|
#define HANZO_MODEL_DestinationStatus_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/DestinationField.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class DestinationField;
|
|
|
|
|
|
class DestinationStatus
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
DestinationStatus();
|
|
virtual ~DestinationStatus();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// DestinationStatus members
|
|
|
|
|
|
/// <summary>
|
|
/// Account is the operator's own label for the connected account, as supplied on connect. Absent when unset.
|
|
/// </summary>
|
|
utility::string_t getAccount() const;
|
|
bool accountIsSet() const;
|
|
void unsetAccount();
|
|
void setAccount(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// groups the card: Analytics | Advertising
|
|
/// </summary>
|
|
utility::string_t getCategory() const;
|
|
bool categoryIsSet() const;
|
|
void unsetCategory();
|
|
void setCategory(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Config is the org's stored NON-SECRET configuration — the measurement/pixel ids keyed by DestinationField.Key. A secret is never in here; secrets live in KMS and only their names are published, in Secrets.
|
|
/// </summary>
|
|
std::map<utility::string_t, utility::string_t> getConfig() const;
|
|
bool configIsSet() const;
|
|
void unsetConfig();
|
|
void setConfig(const std::map<utility::string_t, utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Connected is true when this org has a stored row for the platform — it has been configured here at least once. It says nothing about whether a credential still resolves; that is Live.
|
|
/// </summary>
|
|
bool isConnected() const;
|
|
bool connectedIsSet() const;
|
|
void unsetConnected();
|
|
void setConnected(bool value);
|
|
|
|
/// <summary>
|
|
/// Enabled is whether the fan-out forwards to this destination. False on a destination that is connected but paused, and on one never connected.
|
|
/// </summary>
|
|
bool isEnabled() const;
|
|
bool enabledIsSet() const;
|
|
void unsetEnabled();
|
|
void setEnabled(bool value);
|
|
|
|
/// <summary>
|
|
/// Fields are the non-secret inputs this platform needs, which the console card renders and the connect body fills.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<DestinationField>> getFields() const;
|
|
bool fieldsIsSet() const;
|
|
void unsetFields();
|
|
void setFields(const std::vector<std::shared_ptr<DestinationField>>& value);
|
|
|
|
/// <summary>
|
|
/// Live is whether a credential resolves RIGHT NOW: a KMS-sealed secret for this org, else the integrations connection named by the platform's Fallback, else no credential needed at all (a public-ingest sink like Analytics). False on a connected destination whose secret has gone missing — Connected && !Live is exactly the \"reconnect me\" state.
|
|
/// </summary>
|
|
bool isLive() const;
|
|
bool liveIsSet() const;
|
|
void unsetLive();
|
|
void setLive(bool value);
|
|
|
|
/// <summary>
|
|
/// the platform's display name (\"Google Analytics 4\")
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Pixel is whether the hosted tag can inject a browser pixel for this platform, so a console offers a per-SITE pixel input for exactly these. False means the platform receives conversions server-side only, and an input would promise an injection that never happens. Derived from the tag's own map (event.BrowserTags), never restated — a second list is how a console offers a pixel nothing fires.
|
|
/// </summary>
|
|
bool isPixel() const;
|
|
bool pixelIsSet() const;
|
|
void unsetPixel();
|
|
void setPixel(bool value);
|
|
|
|
/// <summary>
|
|
/// the platform slug, and the path segment every route addresses it by
|
|
/// </summary>
|
|
utility::string_t getPlatform() const;
|
|
bool platformIsSet() const;
|
|
void unsetPlatform();
|
|
void setPlatform(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Secrets are the KMS secret NAMES this platform custodies for the org — names only, never values. The connect body accepts each under its camelCase form.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getSecrets() const;
|
|
bool secretsIsSet() const;
|
|
void unsetSecrets();
|
|
void setSecrets(const std::vector<utility::string_t>& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Account;
|
|
bool m_AccountIsSet;
|
|
|
|
utility::string_t m_Category;
|
|
bool m_CategoryIsSet;
|
|
|
|
std::map<utility::string_t, utility::string_t> m_Config;
|
|
bool m_ConfigIsSet;
|
|
|
|
bool m_Connected;
|
|
bool m_ConnectedIsSet;
|
|
|
|
bool m_Enabled;
|
|
bool m_EnabledIsSet;
|
|
|
|
std::vector<std::shared_ptr<DestinationField>> m_Fields;
|
|
bool m_FieldsIsSet;
|
|
|
|
bool m_Live;
|
|
bool m_LiveIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
bool m_Pixel;
|
|
bool m_PixelIsSet;
|
|
|
|
utility::string_t m_Platform;
|
|
bool m_PlatformIsSet;
|
|
|
|
std::vector<utility::string_t> m_Secrets;
|
|
bool m_SecretsIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_DestinationStatus_H_ */
|