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.
152 lines
4.6 KiB
C++
152 lines
4.6 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.
|
|
*/
|
|
|
|
/*
|
|
* TrustPublish.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_TrustPublish_H_
|
|
#define HANZO_MODEL_TrustPublish_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class TrustPublish
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
TrustPublish();
|
|
virtual ~TrustPublish();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// TrustPublish members
|
|
|
|
|
|
/// <summary>
|
|
/// Attester is who vouched for it: \"self\" for anything the org states itself, or \"auditor\" for anything an independent auditor put their name to. REQUIRED, and anything other than \"self\" is read as \"auditor\" — the safe direction, since an auditor-signed item can only ever be released on request.
|
|
/// </summary>
|
|
utility::string_t getAttester() const;
|
|
bool attesterIsSet() const;
|
|
void unsetAttester();
|
|
void setAttester(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Body is the item's content for the kinds that are text rather than a file: an article, a subprocessor entry, a dated note.
|
|
/// </summary>
|
|
utility::string_t getBody() const;
|
|
bool bodyIsSet() const;
|
|
void unsetBody();
|
|
void setBody(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Document is a data-room document holding the item's bytes, uploaded first through POST /v1/dataroom/documents. Optional: an item can be content with no file. The document must already exist in the caller org's own store.
|
|
/// </summary>
|
|
utility::string_t getDocument() const;
|
|
bool documentIsSet() const;
|
|
void unsetDocument();
|
|
void setDocument(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Framework is the standard it speaks to. Optional and free text — the value is the org's own, not a list this API keeps.
|
|
/// </summary>
|
|
utility::string_t getFramework() const;
|
|
bool frameworkIsSet() const;
|
|
void unsetFramework();
|
|
void setFramework(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Kind is what the item is: report, letter, policy, questionnaire, subprocessor, article or update. Required.
|
|
/// </summary>
|
|
utility::string_t getKind() const;
|
|
bool kindIsSet() const;
|
|
void unsetKind();
|
|
void setKind(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Name is the item's title. Required.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Summary is a line about it. Optional.
|
|
/// </summary>
|
|
utility::string_t getSummary() const;
|
|
bool summaryIsSet() const;
|
|
void unsetSummary();
|
|
void setSummary(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Tier is who may read it: \"public\" or \"gated\". It DEFAULTS TO GATED and anything that is not exactly \"public\" is gated, so an item published by a caller that says nothing is private and someone has to release it on purpose. \"public\" is refused for an auditor-signed item.
|
|
/// </summary>
|
|
utility::string_t getTier() const;
|
|
bool tierIsSet() const;
|
|
void unsetTier();
|
|
void setTier(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Attester;
|
|
bool m_AttesterIsSet;
|
|
|
|
utility::string_t m_Body;
|
|
bool m_BodyIsSet;
|
|
|
|
utility::string_t m_Document;
|
|
bool m_DocumentIsSet;
|
|
|
|
utility::string_t m_Framework;
|
|
bool m_FrameworkIsSet;
|
|
|
|
utility::string_t m_Kind;
|
|
bool m_KindIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
utility::string_t m_Summary;
|
|
bool m_SummaryIsSet;
|
|
|
|
utility::string_t m_Tier;
|
|
bool m_TierIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_TrustPublish_H_ */
|