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.
174 lines
5.2 KiB
C++
174 lines
5.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.
|
|
*/
|
|
|
|
/*
|
|
* Blueprint.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Blueprint_H_
|
|
#define HANZO_MODEL_Blueprint_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/Strategy.h"
|
|
#include "hanzo/model/Page.h"
|
|
#include "hanzo/model/JourneyStep.h"
|
|
#include "hanzo/model/Principle.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
#include "hanzo/model/Section.h"
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class Principle;
|
|
class Section;
|
|
class JourneyStep;
|
|
class Strategy;
|
|
class Page;
|
|
|
|
|
|
class Blueprint
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Blueprint();
|
|
virtual ~Blueprint();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Blueprint members
|
|
|
|
|
|
/// <summary>
|
|
/// Brand is the white-label key this playbook serves. Empty is the shared default every unbranded deployment falls back to.
|
|
/// </summary>
|
|
utility::string_t getBrand() const;
|
|
bool brandIsSet() const;
|
|
void unsetBrand();
|
|
void setBrand(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Enabled is the whole-playbook lever. Absent reads as ON; an explicit false makes resolution skip this playbook entirely and fall through to the next tier, rather than serving an empty journey.
|
|
/// </summary>
|
|
bool isEnabled() const;
|
|
bool enabledIsSet() const;
|
|
void unsetEnabled();
|
|
void setEnabled(bool value);
|
|
|
|
/// <summary>
|
|
/// Principles are the fixed 64-archetype spine a tactic files under. It is authored data an operator organises the corpus by; nothing in the checklist engine reads it.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<Principle>> getPrinciples() const;
|
|
bool principlesIsSet() const;
|
|
void unsetPrinciples();
|
|
void setPrinciples(const std::vector<std::shared_ptr<Principle>>& value);
|
|
|
|
/// <summary>
|
|
/// Sections are the journey's ordered phases.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<Section>> getSections() const;
|
|
bool sectionsIsSet() const;
|
|
void unsetSections();
|
|
void setSections(const std::vector<std::shared_ptr<Section>>& value);
|
|
|
|
/// <summary>
|
|
/// Steps are every checklist item, disabled ones included — this is the authored document, not the projection an org runs.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<JourneyStep>> getSteps() const;
|
|
bool stepsIsSet() const;
|
|
void unsetSteps();
|
|
void setSteps(const std::vector<std::shared_ptr<JourneyStep>>& value);
|
|
|
|
/// <summary>
|
|
/// Strategies are the tactics corpus the recommendation reads narrow.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<Strategy>> getStrategies() const;
|
|
bool strategiesIsSet() const;
|
|
void unsetStrategies();
|
|
void setStrategies(const std::vector<std::shared_ptr<Strategy>>& value);
|
|
|
|
/// <summary>
|
|
/// Templates are the reusable prompts and snippets steps reference by id.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<Page>> getTemplates() const;
|
|
bool templatesIsSet() const;
|
|
void unsetTemplates();
|
|
void setTemplates(const std::vector<std::shared_ptr<Page>>& value);
|
|
|
|
/// <summary>
|
|
/// Title is the playbook's name as a person reads it.
|
|
/// </summary>
|
|
utility::string_t getTitle() const;
|
|
bool titleIsSet() const;
|
|
void unsetTitle();
|
|
void setTitle(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Version is the playbook's own name for this edition of its content, chosen by whoever authored it. It travels onto every journey projected from it. The store's numeric revision is a separate value and lives beside it.
|
|
/// </summary>
|
|
utility::string_t getVersion() const;
|
|
bool versionIsSet() const;
|
|
void unsetVersion();
|
|
void setVersion(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Brand;
|
|
bool m_BrandIsSet;
|
|
|
|
bool m_Enabled;
|
|
bool m_EnabledIsSet;
|
|
|
|
std::vector<std::shared_ptr<Principle>> m_Principles;
|
|
bool m_PrinciplesIsSet;
|
|
|
|
std::vector<std::shared_ptr<Section>> m_Sections;
|
|
bool m_SectionsIsSet;
|
|
|
|
std::vector<std::shared_ptr<JourneyStep>> m_Steps;
|
|
bool m_StepsIsSet;
|
|
|
|
std::vector<std::shared_ptr<Strategy>> m_Strategies;
|
|
bool m_StrategiesIsSet;
|
|
|
|
std::vector<std::shared_ptr<Page>> m_Templates;
|
|
bool m_TemplatesIsSet;
|
|
|
|
utility::string_t m_Title;
|
|
bool m_TitleIsSet;
|
|
|
|
utility::string_t m_Version;
|
|
bool m_VersionIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Blueprint_H_ */
|