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

174 lines
4.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.
*/
/*
* FindingView.h
*
*
*/
#ifndef HANZO_MODEL_FindingView_H_
#define HANZO_MODEL_FindingView_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class FindingView
: public ModelBase
{
public:
FindingView();
virtual ~FindingView();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// FindingView members
/// <summary>
/// CreatedAt is when the finding was recorded, in Unix milliseconds.
/// </summary>
int64_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreatedAt();
void setCreatedAt(int64_t value);
/// <summary>
/// Fingerprint is the SHA-256 of the raw secret. It is what makes the same secret recognisable across scans and after rotation without the secret ever being written down.
/// </summary>
utility::string_t getFingerprint() const;
bool fingerprintIsSet() const;
void unsetFingerprint();
void setFingerprint(const utility::string_t& value);
/// <summary>
/// ID addresses this finding.
/// </summary>
utility::string_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(const utility::string_t& value);
/// <summary>
/// Line is where in that file.
/// </summary>
int64_t getLine() const;
bool lineIsSet() const;
void unsetLine();
void setLine(int64_t value);
/// <summary>
/// Path is the file the secret was found in.
/// </summary>
utility::string_t getPath() const;
bool pathIsSet() const;
void unsetPath();
void setPath(const utility::string_t& value);
/// <summary>
/// Preview is the secret MASKED — first and last characters kept, the middle starred — so a reviewer can recognise it without it being disclosed.
/// </summary>
utility::string_t getPreview() const;
bool previewIsSet() const;
void unsetPreview();
void setPreview(const utility::string_t& value);
/// <summary>
/// RuleID is the detection rule that fired.
/// </summary>
utility::string_t getRuleId() const;
bool ruleIdIsSet() const;
void unsetRuleId();
void setRuleId(const utility::string_t& value);
/// <summary>
/// RuleName is that rule&#39;s human name.
/// </summary>
utility::string_t getRuleName() const;
bool ruleNameIsSet() const;
void unsetRuleName();
void setRuleName(const utility::string_t& value);
/// <summary>
/// ScanID is the scan that produced it.
/// </summary>
utility::string_t getScanId() const;
bool scanIdIsSet() const;
void unsetScanId();
void setScanId(const utility::string_t& value);
/// <summary>
/// Severity ranks the finding: critical, high, medium or low.
/// </summary>
utility::string_t getSeverity() const;
bool severityIsSet() const;
void unsetSeverity();
void setSeverity(const utility::string_t& value);
protected:
int64_t m_CreatedAt;
bool m_CreatedAtIsSet;
utility::string_t m_Fingerprint;
bool m_FingerprintIsSet;
utility::string_t m_Id;
bool m_IdIsSet;
int64_t m_Line;
bool m_LineIsSet;
utility::string_t m_Path;
bool m_PathIsSet;
utility::string_t m_Preview;
bool m_PreviewIsSet;
utility::string_t m_RuleId;
bool m_RuleIdIsSet;
utility::string_t m_RuleName;
bool m_RuleNameIsSet;
utility::string_t m_ScanId;
bool m_ScanIdIsSet;
utility::string_t m_Severity;
bool m_SeverityIsSet;
};
}
}
#endif /* HANZO_MODEL_FindingView_H_ */