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.
208 lines
5.8 KiB
C++
208 lines
5.8 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.
|
|
*/
|
|
|
|
/*
|
|
* ReferenceAnswer.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_ReferenceAnswer_H_
|
|
#define HANZO_MODEL_ReferenceAnswer_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <map>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class ReferenceAnswer
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
ReferenceAnswer();
|
|
virtual ~ReferenceAnswer();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// ReferenceAnswer members
|
|
|
|
|
|
/// <summary>
|
|
/// Age is how old that is, as a duration.
|
|
/// </summary>
|
|
utility::string_t getAge() const;
|
|
bool ageIsSet() const;
|
|
void unsetAge();
|
|
void setAge(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// AsOf is when the oldest contributing publisher was current, RFC 3339.
|
|
/// </summary>
|
|
utility::string_t getAsOf() const;
|
|
bool asOfIsSet() const;
|
|
void unsetAsOf();
|
|
void setAsOf(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// From is override or baseline — which plane answered.
|
|
/// </summary>
|
|
utility::string_t getFrom() const;
|
|
bool fromIsSet() const;
|
|
void unsetFrom();
|
|
void setFrom(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Hit is whether the key is a member. It is meaningful ONLY when Refusal is empty: false with a refusal means the set could not be consulted, which is not the same as the key being clean.
|
|
/// </summary>
|
|
bool isHit() const;
|
|
bool hitIsSet() const;
|
|
void unsetHit();
|
|
void setHit(bool value);
|
|
|
|
/// <summary>
|
|
/// Key is the key as asked.
|
|
/// </summary>
|
|
utility::string_t getKey() const;
|
|
bool keyIsSet() const;
|
|
void unsetKey();
|
|
void setKey(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Matched is the member that covered the key, which for a domain or a network is the enclosing entry rather than the key itself.
|
|
/// </summary>
|
|
utility::string_t getMatched() const;
|
|
bool matchedIsSet() const;
|
|
void unsetMatched();
|
|
void setMatched(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Refusal is why the set could not be consulted, when it could not: never loaded, held elsewhere, or a source we hold no licence for. Non-empty means Hit must not be read as an answer.
|
|
/// </summary>
|
|
utility::string_t getRefusal() const;
|
|
bool refusalIsSet() const;
|
|
void unsetRefusal();
|
|
void setRefusal(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Score is the published risk weight where the source expresses one.
|
|
/// </summary>
|
|
double getScore() const;
|
|
bool scoreIsSet() const;
|
|
void unsetScore();
|
|
void setScore(double value);
|
|
|
|
/// <summary>
|
|
/// Set is the set consulted.
|
|
/// </summary>
|
|
utility::string_t getSet() const;
|
|
bool setIsSet() const;
|
|
void unsetset();
|
|
void setSet(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Stale is whether the set is past its freshness bound. A stale set still answers — yesterday's list beats none — and this is how a decision knows it leaned on one.
|
|
/// </summary>
|
|
bool isStale() const;
|
|
bool staleIsSet() const;
|
|
void unsetStale();
|
|
void setStale(bool value);
|
|
|
|
/// <summary>
|
|
/// Value is what the publisher says about the member — class, operator, scheme, region.
|
|
/// </summary>
|
|
std::map<utility::string_t, utility::string_t> getValue() const;
|
|
bool valueIsSet() const;
|
|
void unsetValue();
|
|
void setValue(const std::map<utility::string_t, utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Verdict is the tenant's own allow or deny, present only for an override. The baseline never carries one: it states facts and leaves the decision to the caller's policy.
|
|
/// </summary>
|
|
utility::string_t getVerdict() const;
|
|
bool verdictIsSet() const;
|
|
void unsetVerdict();
|
|
void setVerdict(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Version is the exact baseline version consulted, composed of each contributing publisher and its content digest. It is what makes a decision reproducible: an auditor takes this string and knows precisely what was consulted.
|
|
/// </summary>
|
|
utility::string_t getVersion() const;
|
|
bool versionIsSet() const;
|
|
void unsetVersion();
|
|
void setVersion(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Age;
|
|
bool m_AgeIsSet;
|
|
|
|
utility::string_t m_AsOf;
|
|
bool m_AsOfIsSet;
|
|
|
|
utility::string_t m_From;
|
|
bool m_FromIsSet;
|
|
|
|
bool m_Hit;
|
|
bool m_HitIsSet;
|
|
|
|
utility::string_t m_Key;
|
|
bool m_KeyIsSet;
|
|
|
|
utility::string_t m_Matched;
|
|
bool m_MatchedIsSet;
|
|
|
|
utility::string_t m_Refusal;
|
|
bool m_RefusalIsSet;
|
|
|
|
double m_Score;
|
|
bool m_ScoreIsSet;
|
|
|
|
utility::string_t m_set;
|
|
bool m_setIsSet;
|
|
|
|
bool m_Stale;
|
|
bool m_StaleIsSet;
|
|
|
|
std::map<utility::string_t, utility::string_t> m_Value;
|
|
bool m_ValueIsSet;
|
|
|
|
utility::string_t m_Verdict;
|
|
bool m_VerdictIsSet;
|
|
|
|
utility::string_t m_Version;
|
|
bool m_VersionIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_ReferenceAnswer_H_ */
|