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

141 lines
3.5 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.
*/
/*
* TrafficCaller.h
*
*
*/
#ifndef HANZO_MODEL_TrafficCaller_H_
#define HANZO_MODEL_TrafficCaller_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class TrafficCaller
: public ModelBase
{
public:
TrafficCaller();
virtual ~TrafficCaller();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// TrafficCaller members
/// <summary>
/// Action is the verdict currently held against it, if any.
/// </summary>
utility::string_t getAction() const;
bool actionIsSet() const;
void unsetAction();
void setAction(const utility::string_t& value);
/// <summary>
/// Cred is the caller&#39;s key: a credential fingerprint (a per-process one-way digest, not a key) for a validated caller, and \&quot;ip:&lt;addr&gt;\&quot; for one that presented no credential we could validate.
/// </summary>
utility::string_t getCred() const;
bool credIsSet() const;
void unsetCred();
void setCred(const utility::string_t& value);
/// <summary>
/// Failures is how many ended 401 or 403.
/// </summary>
int64_t getFailures() const;
bool failuresIsSet() const;
void unsetFailures();
void setFailures(int64_t value);
/// <summary>
/// HeldUntil is when the held verdict lapses, unix seconds.
/// </summary>
int64_t getHeldUntil() const;
bool heldUntilIsSet() const;
void unsetHeld_until();
void setHeldUntil(int64_t value);
/// <summary>
/// Paths is the approximate number of distinct paths it touched (max 64).
/// </summary>
int64_t getPaths() const;
bool pathsIsSet() const;
void unsetPaths();
void setPaths(int64_t value);
/// <summary>
/// Reason is why that verdict was reached.
/// </summary>
utility::string_t getReason() const;
bool reasonIsSet() const;
void unsetReason();
void setReason(const utility::string_t& value);
/// <summary>
/// Requests is its request count in the window.
/// </summary>
int64_t getRequests() const;
bool requestsIsSet() const;
void unsetRequests();
void setRequests(int64_t value);
protected:
utility::string_t m_Action;
bool m_ActionIsSet;
utility::string_t m_Cred;
bool m_CredIsSet;
int64_t m_Failures;
bool m_FailuresIsSet;
int64_t m_Held_until;
bool m_Held_untilIsSet;
int64_t m_Paths;
bool m_PathsIsSet;
utility::string_t m_Reason;
bool m_ReasonIsSet;
int64_t m_Requests;
bool m_RequestsIsSet;
};
}
}
#endif /* HANZO_MODEL_TrafficCaller_H_ */