mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The projection was 113 commits behind the document it claims to describe, and `generate.py --all --check` reported every one of the thirteen clients DRIFTED — the same +19 models in each, because they all fell behind the same emission. Regenerated in place from hanzo-inc/cloud openapi.yaml at 939b09d4 (sha256 087024f6…), which is the only description of this API that cannot name a route the binary does not serve. `--check` is clean across all thirteen after. .spec-lock moved with the code. The generator READS that file and never writes it — hanzoai/ci`s lane does — so a hand run leaves every lock naming the previous document. A lock that disagrees with the tree beside it is worse than no lock: the next `--check` without `--spec` fetches what production serves, compares it to a digest that was already wrong, and reports drift that is really staleness.
204 lines
5.8 KiB
C++
204 lines
5.8 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.
|
|
*/
|
|
|
|
/*
|
|
* CDApp.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_CDApp_H_
|
|
#define HANZO_MODEL_CDApp_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class CDApp
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
CDApp();
|
|
virtual ~CDApp();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// CDApp members
|
|
|
|
|
|
/// <summary>
|
|
/// Automated is whether CD applies git without being asked. It is cd.automated in the values file, rendered by the ApplicationSet's templatePatch — false means the Application reports drift and nothing moves.
|
|
/// </summary>
|
|
bool isAutomated() const;
|
|
bool automatedIsSet() const;
|
|
void unsetAutomated();
|
|
void setAutomated(bool value);
|
|
|
|
/// <summary>
|
|
/// Health is the workload's verdict: Healthy, Progressing, Degraded, Missing.
|
|
/// </summary>
|
|
utility::string_t getHealth() const;
|
|
bool healthIsSet() const;
|
|
void unsetHealth();
|
|
void setHealth(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Message is why, when Health is not Healthy.
|
|
/// </summary>
|
|
utility::string_t getMessage() const;
|
|
bool messageIsSet() const;
|
|
void unsetMessage();
|
|
void setMessage(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Name is the Application name the generator mints: <namespace>-<app>. It is the join key against a Declaration.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Namespace is the DESTINATION namespace as the CR declares it — where the workload lands. For a fleet Application that is the org, but this is the OBSERVED field and not our model of it: the two can disagree, and a board whose whole job is drift must be able to show that they do.
|
|
/// </summary>
|
|
utility::string_t getRNamespace() const;
|
|
bool rNamespaceIsSet() const;
|
|
void unsetr_namespace();
|
|
void setRNamespace(const utility::string_t& value);
|
|
|
|
utility::string_t getOperationMessage() const;
|
|
bool operationMessageIsSet() const;
|
|
void unsetOperationMessage();
|
|
void setOperationMessage(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Path is the values file CD renders against, relative to the chart source.
|
|
/// </summary>
|
|
utility::string_t getPath() const;
|
|
bool pathIsSet() const;
|
|
void unsetPath();
|
|
void setPath(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Phase is the last sync operation's phase (Running, Succeeded, Failed) and OperationMessage is its message. A Failed phase with a Synced verdict is the shape a stuck Application takes.
|
|
/// </summary>
|
|
utility::string_t getPhase() const;
|
|
bool phaseIsSet() const;
|
|
void unsetPhase();
|
|
void setPhase(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Project is the AppProject fence the sync is admitted under.
|
|
/// </summary>
|
|
utility::string_t getProject() const;
|
|
bool projectIsSet() const;
|
|
void unsetProject();
|
|
void setProject(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ReconciledAt is when CD last compared this Application.
|
|
/// </summary>
|
|
utility::string_t getReconciledAt() const;
|
|
bool reconciledAtIsSet() const;
|
|
void unsetReconciledAt();
|
|
void setReconciledAt(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Revision is the universe commit CD last applied. Empty means it has not applied one — never assume it means main.
|
|
/// </summary>
|
|
utility::string_t getRevision() const;
|
|
bool revisionIsSet() const;
|
|
void unsetRevision();
|
|
void setRevision(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// SelfHeal is whether CD also corrects drift the cluster introduced.
|
|
/// </summary>
|
|
bool isSelfHeal() const;
|
|
bool selfHealIsSet() const;
|
|
void unsetSelfHeal();
|
|
void setSelfHeal(bool value);
|
|
|
|
/// <summary>
|
|
/// Sync is CD's verdict on git-versus-cluster: Synced, OutOfSync, or Unknown.
|
|
/// </summary>
|
|
utility::string_t getSync() const;
|
|
bool syncIsSet() const;
|
|
void unsetSync();
|
|
void setSync(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
bool m_Automated;
|
|
bool m_AutomatedIsSet;
|
|
|
|
utility::string_t m_Health;
|
|
bool m_HealthIsSet;
|
|
|
|
utility::string_t m_Message;
|
|
bool m_MessageIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
utility::string_t m_r_namespace;
|
|
bool m_r_namespaceIsSet;
|
|
|
|
utility::string_t m_OperationMessage;
|
|
bool m_OperationMessageIsSet;
|
|
|
|
utility::string_t m_Path;
|
|
bool m_PathIsSet;
|
|
|
|
utility::string_t m_Phase;
|
|
bool m_PhaseIsSet;
|
|
|
|
utility::string_t m_Project;
|
|
bool m_ProjectIsSet;
|
|
|
|
utility::string_t m_ReconciledAt;
|
|
bool m_ReconciledAtIsSet;
|
|
|
|
utility::string_t m_Revision;
|
|
bool m_RevisionIsSet;
|
|
|
|
bool m_SelfHeal;
|
|
bool m_SelfHealIsSet;
|
|
|
|
utility::string_t m_Sync;
|
|
bool m_SyncIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_CDApp_H_ */
|