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.
163 lines
4.6 KiB
C++
163 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.
|
|
*/
|
|
|
|
/*
|
|
* TrustItem.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_TrustItem_H_
|
|
#define HANZO_MODEL_TrustItem_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class TrustItem
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
TrustItem();
|
|
virtual ~TrustItem();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// TrustItem members
|
|
|
|
|
|
/// <summary>
|
|
/// Available is \"now\" when the item can be read immediately, or \"on request\" when it is released only to a party who asks and is answered. It is the one field a page renders the difference from.
|
|
/// </summary>
|
|
utility::string_t getAvailable() const;
|
|
bool availableIsSet() const;
|
|
void unsetAvailable();
|
|
void setAvailable(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 note. Empty for anything released on request: a summary of a document is still the document.
|
|
/// </summary>
|
|
utility::string_t getBody() const;
|
|
bool bodyIsSet() const;
|
|
void unsetBody();
|
|
void setBody(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Framework is the standard the item 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 — for reading it if it is available now, or for naming it in a request if it is not.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Kind is what the item is: report, letter, policy, questionnaire, subprocessor, article or update.
|
|
/// </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.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Signed is \"self\" when the org states it itself and \"auditor\" when an independent auditor put their name to it. It is the reason an item is available now or on request, so a reader can see the rule rather than infer it.
|
|
/// </summary>
|
|
utility::string_t getRSigned() const;
|
|
bool rSignedIsSet() const;
|
|
void unsetr_signed();
|
|
void setRSigned(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Summary is a line about the item.
|
|
/// </summary>
|
|
utility::string_t getSummary() const;
|
|
bool summaryIsSet() const;
|
|
void unsetSummary();
|
|
void setSummary(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// UpdatedAt is when the item 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_Available;
|
|
bool m_AvailableIsSet;
|
|
|
|
utility::string_t m_Body;
|
|
bool m_BodyIsSet;
|
|
|
|
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;
|
|
|
|
utility::string_t m_r_signed;
|
|
bool m_r_signedIsSet;
|
|
|
|
utility::string_t m_Summary;
|
|
bool m_SummaryIsSet;
|
|
|
|
int64_t m_UpdatedAt;
|
|
bool m_UpdatedAtIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_TrustItem_H_ */
|