Files
zeekay 189ce08e51 Regenerate against the document the deployment answers for
The projection these were generated from was a month old and predated the
compute migration, so every one of them described /v1/visor — which the API
serves at zero paths now. That is why a hand-written console client and a
generated one had drifted the same way at the same time.

No /v1/visor path survives here. The word still appears as a source-plane
value and inside gvisor and supervisor, which are not this rename.
2026-09-05 18:07:13 -07:00

210 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.
*/
/*
* ReferenceSet.h
*
*
*/
#ifndef HANZO_MODEL_ReferenceSet_H_
#define HANZO_MODEL_ReferenceSet_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/ReferenceSource.h"
#include <cpprest/details/basic_types.h>
#include <vector>
namespace hanzo {
namespace model {
class ReferenceSource;
class ReferenceSet
: public ModelBase
{
public:
ReferenceSet();
virtual ~ReferenceSet();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// ReferenceSet members
/// <summary>
/// Age is how long ago that was.
/// </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. The oldest and not the newest: a set is exactly as fresh as its weakest source.
/// </summary>
utility::string_t getAsOf() const;
bool asOfIsSet() const;
void unsetAsOf();
void setAsOf(const utility::string_t& value);
/// <summary>
/// Keys is how many members the baseline carries.
/// </summary>
int64_t getKeys() const;
bool keysIsSet() const;
void unsetKeys();
void setKeys(int64_t value);
/// <summary>
/// Kind is how the baseline comes to exist: fetch (downloaded from a publisher), local (computed here), attest (held by the component that screens against it, freshness reported), or gap (declared and NOT held, because the source needs a licence we do not have).
/// </summary>
utility::string_t getKind() const;
bool kindIsSet() const;
void unsetKind();
void setKind(const utility::string_t& value);
/// <summary>
/// Match is how a key is tested: exact, domain, net, digits, pattern or range.
/// </summary>
utility::string_t getMatch() const;
bool matchIsSet() const;
void unsetMatch();
void setMatch(const utility::string_t& value);
/// <summary>
/// MaxAge is how old this set may be before it is stale.
/// </summary>
utility::string_t getMaxAge() const;
bool maxAgeIsSet() const;
void unsetMaxAge();
void setMaxAge(const utility::string_t& value);
/// <summary>
/// Overrides is how many entries YOUR org has laid over this baseline.
/// </summary>
int64_t getOverrides() const;
bool overridesIsSet() const;
void unsetOverrides();
void setOverrides(int64_t value);
/// <summary>
/// Refusal names why the set cannot be relied on, when it cannot: never loaded, held elsewhere, or a licence we do not hold. Non-empty means a lookup against this set will not answer, rather than answering clean.
/// </summary>
utility::string_t getRefusal() const;
bool refusalIsSet() const;
void unsetRefusal();
void setRefusal(const utility::string_t& value);
/// <summary>
/// Set is the name this set is addressed by.
/// </summary>
utility::string_t getSet() const;
bool setIsSet() const;
void unsetset();
void setSet(const utility::string_t& value);
/// <summary>
/// Sources is each contributing publisher, its licence and its own freshness.
/// </summary>
std::vector<std::shared_ptr<ReferenceSource>> getSources() const;
bool sourcesIsSet() const;
void unsetSources();
void setSources(const std::vector<std::shared_ptr<ReferenceSource>>& value);
/// <summary>
/// Stale is whether it is past that bound. A stale set still answers and says so, because yesterday&#39;s list beats none.
/// </summary>
bool isStale() const;
bool staleIsSet() const;
void unsetStale();
void setStale(bool value);
/// <summary>
/// Version is the exact baseline consulted — every contributing publisher and its content digest. A decision records this and an auditor resolves it back.
/// </summary>
utility::string_t getVersion() const;
bool versionIsSet() const;
void unsetVersion();
void setVersion(const utility::string_t& value);
/// <summary>
/// What the set holds, in one sentence.
/// </summary>
utility::string_t getWhat() const;
bool whatIsSet() const;
void unsetWhat();
void setWhat(const utility::string_t& value);
protected:
utility::string_t m_Age;
bool m_AgeIsSet;
utility::string_t m_AsOf;
bool m_AsOfIsSet;
int64_t m_Keys;
bool m_KeysIsSet;
utility::string_t m_Kind;
bool m_KindIsSet;
utility::string_t m_Match;
bool m_MatchIsSet;
utility::string_t m_MaxAge;
bool m_MaxAgeIsSet;
int64_t m_Overrides;
bool m_OverridesIsSet;
utility::string_t m_Refusal;
bool m_RefusalIsSet;
utility::string_t m_set;
bool m_setIsSet;
std::vector<std::shared_ptr<ReferenceSource>> m_Sources;
bool m_SourcesIsSet;
bool m_Stale;
bool m_StaleIsSet;
utility::string_t m_Version;
bool m_VersionIsSet;
utility::string_t m_What;
bool m_WhatIsSet;
};
}
}
#endif /* HANZO_MODEL_ReferenceSet_H_ */