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

177 lines
5.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.
*/
/*
* Strategy.h
*
*
*/
#ifndef HANZO_MODEL_Strategy_H_
#define HANZO_MODEL_Strategy_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/Blog.h"
#include <cpprest/details/basic_types.h>
#include <vector>
namespace hanzo {
namespace model {
class Blog;
class Strategy
: public ModelBase
{
public:
Strategy();
virtual ~Strategy();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Strategy members
/// <summary>
/// Action is the tactic itself: the thing to go and do, stated imperatively.
/// </summary>
utility::string_t getAction() const;
bool actionIsSet() const;
void unsetAction();
void setAction(const utility::string_t& value);
/// <summary>
/// Blog is the tactic&#39;s long-form explainer; absent for tactics that have none.
/// </summary>
std::shared_ptr<Blog> getBlog() const;
bool blogIsSet() const;
void unsetBlog();
void setBlog(const std::shared_ptr<Blog>& value);
/// <summary>
/// Category is the growth discipline the tactic belongs to — the axis &#x60;?category&#x3D;&#x60; narrows the corpus on, and one of the facets a caller browses by.
/// </summary>
utility::string_t getCategory() const;
bool categoryIsSet() const;
void unsetCategory();
void setCategory(const utility::string_t& value);
/// <summary>
/// Enabled is the admin lever. Absent reads as ON; an explicit false drops the tactic from every org-facing corpus read while leaving it in the document.
/// </summary>
bool isEnabled() const;
bool enabledIsSet() const;
void unsetEnabled();
void setEnabled(bool value);
/// <summary>
/// Era separates an AI-era tactic (&#x60;modern&#x60;) from a classical one (&#x60;heritage&#x60;).
/// </summary>
utility::string_t getEra() const;
bool eraIsSet() const;
void unsetEra();
void setEra(const utility::string_t& value);
/// <summary>
/// ID is the tactic&#39;s stable slug, unique across the corpus.
/// </summary>
utility::string_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(const utility::string_t& value);
/// <summary>
/// Principle is the spine slug this tactic files under (a Principle.Slug).
/// </summary>
utility::string_t getPrinciple() const;
bool principleIsSet() const;
void unsetPrinciple();
void setPrinciple(const utility::string_t& value);
/// <summary>
/// Source is where the tactic came from — the attribution a reader is owed.
/// </summary>
utility::string_t getSource() const;
bool sourceIsSet() const;
void unsetSource();
void setSource(const utility::string_t& value);
/// <summary>
/// Tags are PRECONDITIONS, not labels — every one must be satisfied by the org&#39;s observed profile before the tactic surfaces, so an untagged tactic is universally applicable. Two vocabularies: &#x60;stage:&lt;research|formed|launched| activated|scaling&gt;&#x60; reads the org&#39;s growth stage, &#x60;has:&lt;capability&gt;&#x60; reads an observed signal.
/// </summary>
std::vector<utility::string_t> getTags() const;
bool tagsIsSet() const;
void unsetTags();
void setTags(const std::vector<utility::string_t>& value);
/// <summary>
/// Workload is how much effort running the tactic costs, so a corpus can be narrowed to what an org has the hands for right now.
/// </summary>
utility::string_t getWorkload() const;
bool workloadIsSet() const;
void unsetWorkload();
void setWorkload(const utility::string_t& value);
protected:
utility::string_t m_Action;
bool m_ActionIsSet;
std::shared_ptr<Blog> m_Blog;
bool m_BlogIsSet;
utility::string_t m_Category;
bool m_CategoryIsSet;
bool m_Enabled;
bool m_EnabledIsSet;
utility::string_t m_Era;
bool m_EraIsSet;
utility::string_t m_Id;
bool m_IdIsSet;
utility::string_t m_Principle;
bool m_PrincipleIsSet;
utility::string_t m_Source;
bool m_SourceIsSet;
std::vector<utility::string_t> m_Tags;
bool m_TagsIsSet;
utility::string_t m_Workload;
bool m_WorkloadIsSet;
};
}
}
#endif /* HANZO_MODEL_Strategy_H_ */