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

133 lines
3.7 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.
*/
/*
* RiskPolicyOut.h
*
*
*/
#ifndef HANZO_MODEL_RiskPolicyOut_H_
#define HANZO_MODEL_RiskPolicyOut_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/RiskPolicyVersion.h"
#include <cpprest/details/basic_types.h>
#include <vector>
namespace hanzo {
namespace model {
class RiskPolicyVersion;
class RiskPolicyOut
: public ModelBase
{
public:
RiskPolicyOut();
virtual ~RiskPolicyOut();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// RiskPolicyOut members
/// <summary>
/// Changes is how many DISTINCT regimes may be adopted per Window. A restatement identical to the regime in force mints no version and is not counted against it.
/// </summary>
int64_t getChanges() const;
bool changesIsSet() const;
void unsetChanges();
void setChanges(int64_t value);
/// <summary>
/// Disposed is how many versions retention has taken. It is NOT a silence: a history bounded on disk must say what it no longer holds, because a decision citing a disposed version can no longer be reconstructed from this record.
/// </summary>
int64_t getDisposed() const;
bool disposedIsSet() const;
void unsetDisposed();
void setDisposed(int64_t value);
/// <summary>
/// History is the retained versions, newest first.
/// </summary>
std::vector<std::shared_ptr<RiskPolicyVersion>> getHistory() const;
bool historyIsSet() const;
void unsetHistory();
void setHistory(const std::vector<std::shared_ptr<RiskPolicyVersion>>& value);
/// <summary>
/// Retained is how many versions this organisation&#39;s history holds at most, derived from the byte budget its rows are a multiple of.
/// </summary>
int64_t getRetained() const;
bool retainedIsSet() const;
void unsetRetained();
void setRetained(int64_t value);
/// <summary>
/// Version is the version in force — the one every score currently cites. Zero means no regime has ever been stated and the default posture, shadow, is in force.
/// </summary>
int64_t getVersion() const;
bool versionIsSet() const;
void unsetVersion();
void setVersion(int64_t value);
/// <summary>
/// Window is the period Changes is measured over.
/// </summary>
utility::string_t getWindow() const;
bool windowIsSet() const;
void unsetWindow();
void setWindow(const utility::string_t& value);
protected:
int64_t m_Changes;
bool m_ChangesIsSet;
int64_t m_Disposed;
bool m_DisposedIsSet;
std::vector<std::shared_ptr<RiskPolicyVersion>> m_History;
bool m_HistoryIsSet;
int64_t m_Retained;
bool m_RetainedIsSet;
int64_t m_Version;
bool m_VersionIsSet;
utility::string_t m_Window;
bool m_WindowIsSet;
};
}
}
#endif /* HANZO_MODEL_RiskPolicyOut_H_ */