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.
156 lines
4.3 KiB
C++
156 lines
4.3 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.
|
|
*/
|
|
|
|
/*
|
|
* UsageAnalyticsView.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_UsageAnalyticsView_H_
|
|
#define HANZO_MODEL_UsageAnalyticsView_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/ProviderBreakdown.h"
|
|
#include "hanzo/model/UsageScope.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class ProviderBreakdown;
|
|
class UsageScope;
|
|
|
|
|
|
class UsageAnalyticsView
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
UsageAnalyticsView();
|
|
virtual ~UsageAnalyticsView();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// UsageAnalyticsView members
|
|
|
|
|
|
/// <summary>
|
|
/// End is the window's exclusive end, RFC3339 UTC.
|
|
/// </summary>
|
|
utility::string_t getEnd() const;
|
|
bool endIsSet() const;
|
|
void unsetEnd();
|
|
void setEnd(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Export is whether the resolved plan allows exporting these rows.
|
|
/// </summary>
|
|
bool isRExport() const;
|
|
bool rExportIsSet() const;
|
|
void unsetr_export();
|
|
void setRExport(bool value);
|
|
|
|
/// <summary>
|
|
/// Plan echoes the plan id the entitlement was resolved from.
|
|
/// </summary>
|
|
utility::string_t getPlan() const;
|
|
bool planIsSet() const;
|
|
void unsetPlan();
|
|
void setPlan(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Providers is the per-provider roll-up over the window.
|
|
/// </summary>
|
|
std::shared_ptr<ProviderBreakdown> getProviders() const;
|
|
bool providersIsSet() const;
|
|
void unsetProviders();
|
|
void setProviders(const std::shared_ptr<ProviderBreakdown>& value);
|
|
|
|
/// <summary>
|
|
/// Range is the label that was ASKED for. A plan whose retention is shorter than that window is served the retention instead, so read start and end for the window the rows actually cover and retentionDays for the reason — on a clamped read the label is longer than what was served.
|
|
/// </summary>
|
|
utility::string_t getRange() const;
|
|
bool rangeIsSet() const;
|
|
void unsetRange();
|
|
void setRange(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// RetentionDays is how far back the resolved plan allows reading.
|
|
/// </summary>
|
|
int64_t getRetentionDays() const;
|
|
bool retentionDaysIsSet() const;
|
|
void unsetRetentionDays();
|
|
void setRetentionDays(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Scope is the tenant the rows were read under — the validated principal's org.
|
|
/// </summary>
|
|
std::shared_ptr<UsageScope> getScope() const;
|
|
bool scopeIsSet() const;
|
|
void unsetScope();
|
|
void setScope(const std::shared_ptr<UsageScope>& value);
|
|
|
|
/// <summary>
|
|
/// Start is the window's inclusive start, RFC3339 UTC, AFTER the retention clamp — so it may be later than the start that was asked for.
|
|
/// </summary>
|
|
utility::string_t getStart() const;
|
|
bool startIsSet() const;
|
|
void unsetStart();
|
|
void setStart(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_End;
|
|
bool m_EndIsSet;
|
|
|
|
bool m_r_export;
|
|
bool m_r_exportIsSet;
|
|
|
|
utility::string_t m_Plan;
|
|
bool m_PlanIsSet;
|
|
|
|
std::shared_ptr<ProviderBreakdown> m_Providers;
|
|
bool m_ProvidersIsSet;
|
|
|
|
utility::string_t m_Range;
|
|
bool m_RangeIsSet;
|
|
|
|
int64_t m_RetentionDays;
|
|
bool m_RetentionDaysIsSet;
|
|
|
|
std::shared_ptr<UsageScope> m_Scope;
|
|
bool m_ScopeIsSet;
|
|
|
|
utility::string_t m_Start;
|
|
bool m_StartIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_UsageAnalyticsView_H_ */
|