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.
196 lines
6.4 KiB
C++
196 lines
6.4 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.
|
|
*/
|
|
|
|
/*
|
|
* ProjectsUpdate.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_ProjectsUpdate_H_
|
|
#define HANZO_MODEL_ProjectsUpdate_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/ProjectsUpdate_repo.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <map>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class ProjectsUpdate_repo;
|
|
|
|
|
|
class ProjectsUpdate
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
ProjectsUpdate();
|
|
virtual ~ProjectsUpdate();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// ProjectsUpdate members
|
|
|
|
|
|
/// <summary>
|
|
/// CacheControl replaces the Cache-Control policy the edge serves this site's HTML under. Absent leaves it.
|
|
/// </summary>
|
|
utility::string_t getCacheControl() const;
|
|
bool cacheControlIsSet() const;
|
|
void unsetCacheControl();
|
|
void setCacheControl(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Description replaces the one-line summary. Absent leaves it.
|
|
/// </summary>
|
|
utility::string_t getDescription() const;
|
|
bool descriptionIsSet() const;
|
|
void unsetDescription();
|
|
void setDescription(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Framework replaces the build hint. It affects the NEXT build only — nothing already deployed is rebuilt.
|
|
/// </summary>
|
|
utility::string_t getFramework() const;
|
|
bool frameworkIsSet() const;
|
|
void unsetFramework();
|
|
void setFramework(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Hidden is MODERATION, and the only admin-gated field on this body: it pulls a public project out of the catalogue from admin.hanzo.ai without editing the publisher's own visibility choice, so un-hiding restores exactly what they asked for. A tenant sending it is ignored.
|
|
/// </summary>
|
|
bool isHidden() const;
|
|
bool hiddenIsSet() const;
|
|
void unsetHidden();
|
|
void setHidden(bool value);
|
|
|
|
/// <summary>
|
|
/// HiddenReason records WHY moderation hid it, so the action can be explained and reviewed later. Admin-gated like hidden itself.
|
|
/// </summary>
|
|
utility::string_t getHiddenReason() const;
|
|
bool hiddenReasonIsSet() const;
|
|
void unsetHiddenReason();
|
|
void setHiddenReason(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// License is the terms that upstream work carries, with the same clear-versus- leave rule.
|
|
/// </summary>
|
|
utility::string_t getLicense() const;
|
|
bool licenseIsSet() const;
|
|
void unsetLicense();
|
|
void setLicense(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Name replaces the display name. Absent leaves it; the slug never moves with it.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
std::shared_ptr<ProjectsUpdate_repo> getRepo() const;
|
|
bool repoIsSet() const;
|
|
void unsetRepo();
|
|
void setRepo(const std::shared_ptr<ProjectsUpdate_repo>& value);
|
|
|
|
/// <summary>
|
|
/// Slug is the project to update, from the path. The URL is the addressing authority — a `slug` in the body cannot move the write to another project.
|
|
/// </summary>
|
|
utility::string_t getSlug() const;
|
|
bool slugIsSet() const;
|
|
void unsetSlug();
|
|
void setSlug(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Tags sets the site's browser tag config: platform slug → non-secret pixel id (e.g. {\"ga4\":\"G-…\",\"meta\":\"…\"}). track.js injects these first-party and the server CAPI reads them, per site. Absent LEAVES them; a present object REPLACES the set (send {} to clear). The ids are public — they ship in the page — so this is not the SECRET path (a CAPI token is sealed via POST /v1/destination).
|
|
/// </summary>
|
|
std::map<utility::string_t, utility::string_t> getTags() const;
|
|
bool tagsIsSet() const;
|
|
void unsetTags();
|
|
void setTags(const std::map<utility::string_t, utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Upstream credits the third-party work this project was published from, and is settable after the fact because the live demos are the ones that most need crediting. An explicit empty string CLEARS the credit; absent leaves it.
|
|
/// </summary>
|
|
utility::string_t getUpstream() const;
|
|
bool upstreamIsSet() const;
|
|
void unsetUpstream();
|
|
void setUpstream(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Visibility flips an existing project between \"public\" and \"private\". Same ONE rule as at create: public is free, private needs a paid plan.
|
|
/// </summary>
|
|
utility::string_t getVisibility() const;
|
|
bool visibilityIsSet() const;
|
|
void unsetVisibility();
|
|
void setVisibility(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_CacheControl;
|
|
bool m_CacheControlIsSet;
|
|
|
|
utility::string_t m_Description;
|
|
bool m_DescriptionIsSet;
|
|
|
|
utility::string_t m_Framework;
|
|
bool m_FrameworkIsSet;
|
|
|
|
bool m_Hidden;
|
|
bool m_HiddenIsSet;
|
|
|
|
utility::string_t m_HiddenReason;
|
|
bool m_HiddenReasonIsSet;
|
|
|
|
utility::string_t m_License;
|
|
bool m_LicenseIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
std::shared_ptr<ProjectsUpdate_repo> m_Repo;
|
|
bool m_RepoIsSet;
|
|
|
|
utility::string_t m_Slug;
|
|
bool m_SlugIsSet;
|
|
|
|
std::map<utility::string_t, utility::string_t> m_Tags;
|
|
bool m_TagsIsSet;
|
|
|
|
utility::string_t m_Upstream;
|
|
bool m_UpstreamIsSet;
|
|
|
|
utility::string_t m_Visibility;
|
|
bool m_VisibilityIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_ProjectsUpdate_H_ */
|