mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
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.
196 lines
5.1 KiB
C++
196 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.
|
|
*/
|
|
|
|
/*
|
|
* TrustItemView.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_TrustItemView_H_
|
|
#define HANZO_MODEL_TrustItemView_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class TrustItemView
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
TrustItemView();
|
|
virtual ~TrustItemView();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// TrustItemView members
|
|
|
|
|
|
/// <summary>
|
|
/// Attester is who vouched for it: self or auditor.
|
|
/// </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.
|
|
/// </summary>
|
|
utility::string_t getBody() const;
|
|
bool bodyIsSet() const;
|
|
void unsetBody();
|
|
void setBody(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// CreatedAt is when it was published, in unix milliseconds.
|
|
/// </summary>
|
|
int64_t getCreatedAt() const;
|
|
bool createdAtIsSet() const;
|
|
void unsetCreatedAt();
|
|
void setCreatedAt(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Document is the data-room document holding its bytes, empty when it has none.
|
|
/// </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, when it speaks to one.
|
|
/// </summary>
|
|
utility::string_t getFramework() const;
|
|
bool frameworkIsSet() const;
|
|
void unsetFramework();
|
|
void setFramework(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ID addresses the item.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Kind is one of report, letter, policy, questionnaire, subprocessor, article or update — the closed set the public centre knows how to draw.
|
|
/// </summary>
|
|
utility::string_t getKind() const;
|
|
bool kindIsSet() const;
|
|
void unsetKind();
|
|
void setKind(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Name is the label the centre lists it under.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Retired is whether it has been withdrawn. A retired item is absent from the public centre and cannot be granted; it is kept because a grant already made over it is part of the record.
|
|
/// </summary>
|
|
bool isRetired() const;
|
|
bool retiredIsSet() const;
|
|
void unsetRetired();
|
|
void setRetired(bool value);
|
|
|
|
/// <summary>
|
|
/// Summary is a line about it.
|
|
/// </summary>
|
|
utility::string_t getSummary() const;
|
|
bool summaryIsSet() const;
|
|
void unsetSummary();
|
|
void setSummary(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Tier is public or gated. Gated is the default and an auditor-signed item can only ever be gated.
|
|
/// </summary>
|
|
utility::string_t getTier() const;
|
|
bool tierIsSet() const;
|
|
void unsetTier();
|
|
void setTier(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// UpdatedAt is when it last changed, in unix milliseconds.
|
|
/// </summary>
|
|
int64_t getUpdatedAt() const;
|
|
bool updatedAtIsSet() const;
|
|
void unsetUpdatedAt();
|
|
void setUpdatedAt(int64_t value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Attester;
|
|
bool m_AttesterIsSet;
|
|
|
|
utility::string_t m_Body;
|
|
bool m_BodyIsSet;
|
|
|
|
int64_t m_CreatedAt;
|
|
bool m_CreatedAtIsSet;
|
|
|
|
utility::string_t m_Document;
|
|
bool m_DocumentIsSet;
|
|
|
|
utility::string_t m_Framework;
|
|
bool m_FrameworkIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
utility::string_t m_Kind;
|
|
bool m_KindIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
bool m_Retired;
|
|
bool m_RetiredIsSet;
|
|
|
|
utility::string_t m_Summary;
|
|
bool m_SummaryIsSet;
|
|
|
|
utility::string_t m_Tier;
|
|
bool m_TierIsSet;
|
|
|
|
int64_t m_UpdatedAt;
|
|
bool m_UpdatedAtIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_TrustItemView_H_ */
|