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.
220 lines
6.4 KiB
C++
220 lines
6.4 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.
|
|
*/
|
|
|
|
/*
|
|
* Centre.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Centre_H_
|
|
#define HANZO_MODEL_Centre_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/AnyType.h"
|
|
#include "hanzo/model/FrameworkRow.h"
|
|
#include "hanzo/model/CoverRow.h"
|
|
#include "hanzo/model/DocRow.h"
|
|
#include "hanzo/model/TrustTally.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class CoverRow;
|
|
class DocRow;
|
|
class FrameworkRow;
|
|
class TrustTally;
|
|
|
|
|
|
class Centre
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Centre();
|
|
virtual ~Centre();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Centre members
|
|
|
|
|
|
/// <summary>
|
|
/// Controls is the control inventory, each entry naming what it asserts, the mechanism, where it is enforced, how it is verified and the clauses it maps to.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<AnyType>> getControls() const;
|
|
bool controlsIsSet() const;
|
|
void unsetControls();
|
|
void setControls(const std::vector<std::shared_ptr<AnyType>>& value);
|
|
|
|
/// <summary>
|
|
/// Coverage is the per-framework counts, computed from Controls against each framework's whole published clause list.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<CoverRow>> getCoverage() const;
|
|
bool coverageIsSet() const;
|
|
void unsetCoverage();
|
|
void setCoverage(const std::vector<std::shared_ptr<CoverRow>>& value);
|
|
|
|
/// <summary>
|
|
/// Documents are the artifacts, each saying whether this reader may read it.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<DocRow>> getDocuments() const;
|
|
bool documentsIsSet() const;
|
|
void unsetDocuments();
|
|
void setDocuments(const std::vector<std::shared_ptr<DocRow>>& value);
|
|
|
|
/// <summary>
|
|
/// Faq is the knowledge base — the questions a reviewer asks, answered.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<AnyType>> getFaq() const;
|
|
bool faqIsSet() const;
|
|
void unsetFaq();
|
|
void setFaq(const std::vector<std::shared_ptr<AnyType>>& value);
|
|
|
|
/// <summary>
|
|
/// Frameworks are the clause universes the coverage is computed against.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<FrameworkRow>> getFrameworks() const;
|
|
bool frameworksIsSet() const;
|
|
void unsetFrameworks();
|
|
void setFrameworks(const std::vector<std::shared_ptr<FrameworkRow>>& value);
|
|
|
|
/// <summary>
|
|
/// Generated is when this answer was computed, unix milliseconds.
|
|
/// </summary>
|
|
int64_t getGenerated() const;
|
|
bool generatedIsSet() const;
|
|
void unsetGenerated();
|
|
void setGenerated(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Inventory is how the controls themselves stand, independent of framework.
|
|
/// </summary>
|
|
std::shared_ptr<TrustTally> getInventory() const;
|
|
bool inventoryIsSet() const;
|
|
void unsetInventory();
|
|
void setInventory(const std::shared_ptr<TrustTally>& value);
|
|
|
|
/// <summary>
|
|
/// Org is whose centre this is.
|
|
/// </summary>
|
|
utility::string_t getOrg() const;
|
|
bool orgIsSet() const;
|
|
void unsetOrg();
|
|
void setOrg(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Policies are the published policies.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<AnyType>> getPolicies() const;
|
|
bool policiesIsSet() const;
|
|
void unsetPolicies();
|
|
void setPolicies(const std::vector<std::shared_ptr<AnyType>>& value);
|
|
|
|
std::shared_ptr<AnyType> getProfile() const;
|
|
bool profileIsSet() const;
|
|
void unsetProfile();
|
|
void setProfile(const std::shared_ptr<AnyType>& value);
|
|
|
|
std::shared_ptr<AnyType> getRisk() const;
|
|
bool riskIsSet() const;
|
|
void unsetRisk();
|
|
void setRisk(const std::shared_ptr<AnyType>& value);
|
|
|
|
/// <summary>
|
|
/// Subprocessors are the third parties this organization sends data to.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<AnyType>> getSubprocessors() const;
|
|
bool subprocessorsIsSet() const;
|
|
void unsetSubprocessors();
|
|
void setSubprocessors(const std::vector<std::shared_ptr<AnyType>>& value);
|
|
|
|
/// <summary>
|
|
/// Updates is the changelog, newest as the organization ordered it.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<AnyType>> getUpdates() const;
|
|
bool updatesIsSet() const;
|
|
void unsetUpdates();
|
|
void setUpdates(const std::vector<std::shared_ptr<AnyType>>& value);
|
|
|
|
/// <summary>
|
|
/// Version is the embedded inventory's version.
|
|
/// </summary>
|
|
utility::string_t getVersion() const;
|
|
bool versionIsSet() const;
|
|
void unsetVersion();
|
|
void setVersion(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
std::vector<std::shared_ptr<AnyType>> m_Controls;
|
|
bool m_ControlsIsSet;
|
|
|
|
std::vector<std::shared_ptr<CoverRow>> m_Coverage;
|
|
bool m_CoverageIsSet;
|
|
|
|
std::vector<std::shared_ptr<DocRow>> m_Documents;
|
|
bool m_DocumentsIsSet;
|
|
|
|
std::vector<std::shared_ptr<AnyType>> m_Faq;
|
|
bool m_FaqIsSet;
|
|
|
|
std::vector<std::shared_ptr<FrameworkRow>> m_Frameworks;
|
|
bool m_FrameworksIsSet;
|
|
|
|
int64_t m_Generated;
|
|
bool m_GeneratedIsSet;
|
|
|
|
std::shared_ptr<TrustTally> m_Inventory;
|
|
bool m_InventoryIsSet;
|
|
|
|
utility::string_t m_Org;
|
|
bool m_OrgIsSet;
|
|
|
|
std::vector<std::shared_ptr<AnyType>> m_Policies;
|
|
bool m_PoliciesIsSet;
|
|
|
|
boost::optional<std::shared_ptr<AnyType>> m_Profile;
|
|
|
|
boost::optional<std::shared_ptr<AnyType>> m_Risk;
|
|
|
|
std::vector<std::shared_ptr<AnyType>> m_Subprocessors;
|
|
bool m_SubprocessorsIsSet;
|
|
|
|
std::vector<std::shared_ptr<AnyType>> m_Updates;
|
|
bool m_UpdatesIsSet;
|
|
|
|
utility::string_t m_Version;
|
|
bool m_VersionIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Centre_H_ */
|