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.
185 lines
5.7 KiB
C++
185 lines
5.7 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.
|
|
*/
|
|
|
|
/*
|
|
* ArgoNode.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_ArgoNode_H_
|
|
#define HANZO_MODEL_ArgoNode_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/ArgoHealth.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include "hanzo/model/ArgoInfoItem.h"
|
|
#include "hanzo/model/ArgoResourceRef.h"
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class ArgoHealth;
|
|
class ArgoInfoItem;
|
|
class ArgoResourceRef;
|
|
|
|
|
|
class ArgoNode
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
ArgoNode();
|
|
virtual ~ArgoNode();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// ArgoNode members
|
|
|
|
|
|
/// <summary>
|
|
/// CreatedAt is the object's creationTimestamp, RFC 3339 UTC to the second. Absent when the object carries none.
|
|
/// </summary>
|
|
utility::string_t getCreatedAt() const;
|
|
bool createdAtIsSet() const;
|
|
void unsetCreatedAt();
|
|
void setCreatedAt(const utility::string_t& value);
|
|
|
|
utility::string_t getGroup() const;
|
|
bool groupIsSet() const;
|
|
void unsetGroup();
|
|
void setGroup(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Health is the node's own derived health. Always present on a node of this tree; a kind with no health signal of its own reports Healthy, since a ConfigMap existing IS its healthy state.
|
|
/// </summary>
|
|
std::shared_ptr<ArgoHealth> getHealth() const;
|
|
bool healthIsSet() const;
|
|
void unsetHealth();
|
|
void setHealth(const std::shared_ptr<ArgoHealth>& value);
|
|
|
|
/// <summary>
|
|
/// Images are the container images running on this node. Always absent — the tag travels as the \"Image Tag\" chip in Info instead, which is where the SPA reads it on a node.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getImages() const;
|
|
bool imagesIsSet() const;
|
|
void unsetImages();
|
|
void setImages(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Info are the chips shown on the node. At most one: the image tag — the RUNNING tag on a Deployment, ReplicaSet or Pod, and the DECLARED tag on the App CR at the root. Absent on a node that carries no image at all.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<ArgoInfoItem>> getInfo() const;
|
|
bool infoIsSet() const;
|
|
void unsetInfo();
|
|
void setInfo(const std::vector<std::shared_ptr<ArgoInfoItem>>& value);
|
|
|
|
utility::string_t getKind() const;
|
|
bool kindIsSet() const;
|
|
void unsetKind();
|
|
void setKind(const utility::string_t& value);
|
|
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
utility::string_t getRNamespace() const;
|
|
bool rNamespaceIsSet() const;
|
|
void unsetr_namespace();
|
|
void setRNamespace(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ParentRefs are the node's edges UPWARD, which is how the SPA draws the DAG from this flat list. Exactly one entry where present: a depth-1 object points at the App CR, a ReplicaSet at its Deployment, a Pod at its ReplicaSet (or at the Deployment whose selector matches it, when the ReplicaSet is gone). Absent on the root.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<ArgoResourceRef>> getParentRefs() const;
|
|
bool parentRefsIsSet() const;
|
|
void unsetParentRefs();
|
|
void setParentRefs(const std::vector<std::shared_ptr<ArgoResourceRef>>& value);
|
|
|
|
/// <summary>
|
|
/// ResourceVersion is the k8s version a watch would resume from. Always empty: the tree is rebuilt from live reads on every request, including on every frame of the SSE stream, so there is no revision to resume from.
|
|
/// </summary>
|
|
utility::string_t getResourceVersion() const;
|
|
bool resourceVersionIsSet() const;
|
|
void unsetResourceVersion();
|
|
void setResourceVersion(const utility::string_t& value);
|
|
|
|
utility::string_t getUid() const;
|
|
bool uidIsSet() const;
|
|
void unsetUid();
|
|
void setUid(const utility::string_t& value);
|
|
|
|
utility::string_t getVersion() const;
|
|
bool versionIsSet() const;
|
|
void unsetVersion();
|
|
void setVersion(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_CreatedAt;
|
|
bool m_CreatedAtIsSet;
|
|
|
|
utility::string_t m_Group;
|
|
bool m_GroupIsSet;
|
|
|
|
std::shared_ptr<ArgoHealth> m_Health;
|
|
bool m_HealthIsSet;
|
|
|
|
std::vector<utility::string_t> m_Images;
|
|
bool m_ImagesIsSet;
|
|
|
|
std::vector<std::shared_ptr<ArgoInfoItem>> m_Info;
|
|
bool m_InfoIsSet;
|
|
|
|
utility::string_t m_Kind;
|
|
bool m_KindIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
utility::string_t m_r_namespace;
|
|
bool m_r_namespaceIsSet;
|
|
|
|
std::vector<std::shared_ptr<ArgoResourceRef>> m_ParentRefs;
|
|
bool m_ParentRefsIsSet;
|
|
|
|
utility::string_t m_ResourceVersion;
|
|
bool m_ResourceVersionIsSet;
|
|
|
|
utility::string_t m_Uid;
|
|
bool m_UidIsSet;
|
|
|
|
utility::string_t m_Version;
|
|
bool m_VersionIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_ArgoNode_H_ */
|