Files
sdk/include/hanzo/model/O11y_O11yLogPipelineOperator.h
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

400 lines
11 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.
*/
/*
* O11y_O11yLogPipelineOperator.h
*
*
*/
#ifndef HANZO_MODEL_O11y_O11yLogPipelineOperator_H_
#define HANZO_MODEL_O11y_O11yLogPipelineOperator_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/O11y_O11yLogParseFrom.h"
#include <cpprest/details/basic_types.h>
#include "hanzo/model/O11y_O11yLogPipelineRoute.h"
#include <map>
#include <vector>
namespace hanzo {
namespace model {
class O11y_O11yLogPipelineRoute;
class O11y_O11yLogParseFrom;
class O11y_O11yLogPipelineOperator
: public ModelBase
{
public:
O11y_O11yLogPipelineOperator();
virtual ~O11y_O11yLogPipelineOperator();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// O11y_O11yLogPipelineOperator members
/// <summary>
/// Default is the id of the processor a router falls through to.
/// </summary>
utility::string_t getRDefault() const;
bool rDefaultIsSet() const;
void unsetr_default();
void setRDefault(const utility::string_t& value);
/// <summary>
/// EnableFlattening flattens parsed JSON one level when true.
/// </summary>
bool isEnableFlattening() const;
bool enableFlatteningIsSet() const;
void unsetEnable_flattening();
void setEnableFlattening(bool value);
/// <summary>
/// EnablePaths keeps the JSON path in flattened keys when true.
/// </summary>
bool isEnablePaths() const;
bool enablePathsIsSet() const;
void unsetEnable_paths();
void setEnablePaths(bool value);
/// <summary>
/// Enabled turns the processor on.
/// </summary>
bool isEnabled() const;
bool enabledIsSet() const;
void unsetEnabled();
void setEnabled(bool value);
/// <summary>
/// Expr is a router route&#39;s expression.
/// </summary>
utility::string_t getExpr() const;
bool exprIsSet() const;
void unsetExpr();
void setExpr(const utility::string_t& value);
/// <summary>
/// Field is the field an add/remove processor works on.
/// </summary>
utility::string_t getField() const;
bool fieldIsSet() const;
void unsetField();
void setField(const utility::string_t& value);
/// <summary>
/// Fields are the fields a retain processor keeps.
/// </summary>
std::vector<utility::string_t> getFields() const;
bool fieldsIsSet() const;
void unsetFields();
void setFields(const std::vector<utility::string_t>& value);
/// <summary>
/// From is the source field of a move or copy.
/// </summary>
utility::string_t getFrom() const;
bool fromIsSet() const;
void unsetFrom();
void setFrom(const utility::string_t& value);
/// <summary>
/// ID is the processor&#39;s id, unique within the pipeline.
/// </summary>
utility::string_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(const utility::string_t& value);
/// <summary>
/// If gates the processor on an expression.
/// </summary>
utility::string_t getRIf() const;
bool rIfIsSet() const;
void unsetr_if();
void setRIf(const utility::string_t& value);
/// <summary>
/// Layout is a time parser&#39;s layout.
/// </summary>
utility::string_t getLayout() const;
bool layoutIsSet() const;
void unsetLayout();
void setLayout(const utility::string_t& value);
/// <summary>
/// LayoutType is the layout&#39;s kind, e.g. strptime, gotime, epoch.
/// </summary>
utility::string_t getLayoutType() const;
bool layoutTypeIsSet() const;
void unsetLayout_type();
void setLayoutType(const utility::string_t& value);
/// <summary>
/// Mapping maps severity levels (or flattened keys) to the values that mean them.
/// </summary>
std::map<utility::string_t, std::vector<utility::string_t>> getMapping() const;
bool mappingIsSet() const;
void unsetMapping();
void setMapping(const std::map<utility::string_t, std::vector<utility::string_t>>& value);
/// <summary>
/// Name is the processor&#39;s display name.
/// </summary>
utility::string_t getName() const;
bool nameIsSet() const;
void unsetName();
void setName(const utility::string_t& value);
/// <summary>
/// OnError says what to do when the processor fails, e.g. send, drop.
/// </summary>
utility::string_t getOnError() const;
bool onErrorIsSet() const;
void unsetOn_error();
void setOnError(const utility::string_t& value);
/// <summary>
/// OrderID is the processor&#39;s 1-based position in the pipeline.
/// </summary>
int64_t getOrderId() const;
bool orderIdIsSet() const;
void unsetOrderId();
void setOrderId(int64_t value);
/// <summary>
/// Output is the id of the processor that runs next.
/// </summary>
utility::string_t getOutput() const;
bool outputIsSet() const;
void unsetOutput();
void setOutput(const utility::string_t& value);
/// <summary>
/// OverwriteSeverityText rewrites the severity text alongside the number when true.
/// </summary>
bool isOverwriteText() const;
bool overwriteTextIsSet() const;
void unsetOverwrite_text();
void setOverwriteText(bool value);
/// <summary>
/// ParseFrom is where a parser reads from.
/// </summary>
utility::string_t getParseFrom() const;
bool parseFromIsSet() const;
void unsetParse_from();
void setParseFrom(const utility::string_t& value);
/// <summary>
/// ParseTo is where a parser writes its result.
/// </summary>
utility::string_t getParseTo() const;
bool parseToIsSet() const;
void unsetParse_to();
void setParseTo(const utility::string_t& value);
/// <summary>
/// PathPrefix prefixes flattened keys.
/// </summary>
utility::string_t getPathPrefix() const;
bool pathPrefixIsSet() const;
void unsetPath_prefix();
void setPathPrefix(const utility::string_t& value);
/// <summary>
/// Pattern is a grok parser&#39;s pattern.
/// </summary>
utility::string_t getPattern() const;
bool patternIsSet() const;
void unsetPattern();
void setPattern(const utility::string_t& value);
/// <summary>
/// Regex is a regex parser&#39;s expression.
/// </summary>
utility::string_t getRegex() const;
bool regexIsSet() const;
void unsetRegex();
void setRegex(const utility::string_t& value);
/// <summary>
/// Routes are a router processor&#39;s routes.
/// </summary>
std::vector<std::shared_ptr<O11y_O11yLogPipelineRoute>> getRoutes() const;
bool routesIsSet() const;
void unsetRoutes();
void setRoutes(const std::vector<std::shared_ptr<O11y_O11yLogPipelineRoute>>& value);
/// <summary>
/// SpanID says where a trace parser reads the span id from.
/// </summary>
std::shared_ptr<O11y_O11yLogParseFrom> getSpanId() const;
bool spanIdIsSet() const;
void unsetSpan_id();
void setSpanId(const std::shared_ptr<O11y_O11yLogParseFrom>& value);
/// <summary>
/// To is the destination field of a move or copy.
/// </summary>
utility::string_t getTo() const;
bool toIsSet() const;
void unsetTo();
void setTo(const utility::string_t& value);
/// <summary>
/// TraceFlags says where a trace parser reads the trace flags from.
/// </summary>
std::shared_ptr<O11y_O11yLogParseFrom> getTraceFlags() const;
bool traceFlagsIsSet() const;
void unsetTrace_flags();
void setTraceFlags(const std::shared_ptr<O11y_O11yLogParseFrom>& value);
/// <summary>
/// TraceID says where a trace parser reads the trace id from.
/// </summary>
std::shared_ptr<O11y_O11yLogParseFrom> getTraceId() const;
bool traceIdIsSet() const;
void unsetTrace_id();
void setTraceId(const std::shared_ptr<O11y_O11yLogParseFrom>& value);
/// <summary>
/// Type is the processor type, e.g. grok_parser, regex_parser, json_parser, trace_parser, time_parser, severity_parser, add, remove, move, copy.
/// </summary>
utility::string_t getType() const;
bool typeIsSet() const;
void unsetType();
void setType(const utility::string_t& value);
/// <summary>
/// Value is the value an add processor writes.
/// </summary>
utility::string_t getValue() const;
bool valueIsSet() const;
void unsetValue();
void setValue(const utility::string_t& value);
protected:
utility::string_t m_r_default;
bool m_r_defaultIsSet;
bool m_Enable_flattening;
bool m_Enable_flatteningIsSet;
bool m_Enable_paths;
bool m_Enable_pathsIsSet;
bool m_Enabled;
bool m_EnabledIsSet;
utility::string_t m_Expr;
bool m_ExprIsSet;
utility::string_t m_Field;
bool m_FieldIsSet;
std::vector<utility::string_t> m_Fields;
bool m_FieldsIsSet;
utility::string_t m_From;
bool m_FromIsSet;
utility::string_t m_Id;
bool m_IdIsSet;
utility::string_t m_r_if;
bool m_r_ifIsSet;
utility::string_t m_Layout;
bool m_LayoutIsSet;
utility::string_t m_Layout_type;
bool m_Layout_typeIsSet;
std::map<utility::string_t, std::vector<utility::string_t>> m_Mapping;
bool m_MappingIsSet;
utility::string_t m_Name;
bool m_NameIsSet;
utility::string_t m_On_error;
bool m_On_errorIsSet;
int64_t m_OrderId;
bool m_OrderIdIsSet;
utility::string_t m_Output;
bool m_OutputIsSet;
bool m_Overwrite_text;
bool m_Overwrite_textIsSet;
utility::string_t m_Parse_from;
bool m_Parse_fromIsSet;
utility::string_t m_Parse_to;
bool m_Parse_toIsSet;
utility::string_t m_Path_prefix;
bool m_Path_prefixIsSet;
utility::string_t m_Pattern;
bool m_PatternIsSet;
utility::string_t m_Regex;
bool m_RegexIsSet;
std::vector<std::shared_ptr<O11y_O11yLogPipelineRoute>> m_Routes;
bool m_RoutesIsSet;
std::shared_ptr<O11y_O11yLogParseFrom> m_Span_id;
bool m_Span_idIsSet;
utility::string_t m_To;
bool m_ToIsSet;
std::shared_ptr<O11y_O11yLogParseFrom> m_Trace_flags;
bool m_Trace_flagsIsSet;
std::shared_ptr<O11y_O11yLogParseFrom> m_Trace_id;
bool m_Trace_idIsSet;
utility::string_t m_Type;
bool m_TypeIsSet;
utility::string_t m_Value;
bool m_ValueIsSet;
};
}
}
#endif /* HANZO_MODEL_O11y_O11yLogPipelineOperator_H_ */