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.
207 lines
5.2 KiB
C++
207 lines
5.2 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.
|
|
*/
|
|
|
|
/*
|
|
* Pipeline.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Pipeline_H_
|
|
#define HANZO_MODEL_Pipeline_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include "hanzo/model/Artifact.h"
|
|
#include "hanzo/model/Tip.h"
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class Artifact;
|
|
class Tip;
|
|
|
|
|
|
class Pipeline
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Pipeline();
|
|
virtual ~Pipeline();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Pipeline members
|
|
|
|
|
|
/// <summary>
|
|
/// Behind counts commits after the one that last produced an image whose own build has FINISHED without producing one, and Since is when the oldest of them landed. A commit still building is not counted, so a push in flight is not drift and a service appears here only once something has actually stopped without shipping. How long that has stood is the number worth acting on; that it is true says nothing about whether anyone should move.
|
|
/// </summary>
|
|
int64_t getBehind() const;
|
|
bool behindIsSet() const;
|
|
void unsetBehind();
|
|
void setBehind(int64_t value);
|
|
|
|
std::shared_ptr<Artifact> getBuilt() const;
|
|
bool builtIsSet() const;
|
|
void unsetBuilt();
|
|
void setBuilt(const std::shared_ptr<Artifact>& value);
|
|
|
|
std::shared_ptr<Artifact> getDeclared() const;
|
|
bool declaredIsSet() const;
|
|
void unsetDeclared();
|
|
void setDeclared(const std::shared_ptr<Artifact>& value);
|
|
|
|
std::vector<utility::string_t> getDrift() const;
|
|
bool driftIsSet() const;
|
|
void unsetDrift();
|
|
void setDrift(const std::vector<utility::string_t>& value);
|
|
|
|
std::shared_ptr<Tip> getHead() const;
|
|
bool headIsSet() const;
|
|
void unsetHead();
|
|
void setHead(const std::shared_ptr<Tip>& value);
|
|
|
|
/// <summary>
|
|
/// ghcr.io/hanzoai/cloud
|
|
/// </summary>
|
|
utility::string_t getImage() const;
|
|
bool imageIsSet() const;
|
|
void unsetImage();
|
|
void setImage(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// cloud
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// hanzo
|
|
/// </summary>
|
|
utility::string_t getRNamespace() const;
|
|
bool rNamespaceIsSet() const;
|
|
void unsetr_namespace();
|
|
void setRNamespace(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Hanzo Git owner; empty when the repo is unresolved
|
|
/// </summary>
|
|
utility::string_t getOrg() const;
|
|
bool orgIsSet() const;
|
|
void unsetOrg();
|
|
void setOrg(const utility::string_t& value);
|
|
|
|
utility::datetime getPinnedAt() const;
|
|
bool pinnedAtIsSet() const;
|
|
void unsetPinnedAt();
|
|
void setPinnedAt(const utility::datetime& value);
|
|
|
|
int64_t getReady() const;
|
|
bool readyIsSet() const;
|
|
void unsetReady();
|
|
void setReady(int64_t value);
|
|
|
|
/// <summary>
|
|
/// hanzo-inc/cloud
|
|
/// </summary>
|
|
utility::string_t getRepo() const;
|
|
bool repoIsSet() const;
|
|
void unsetRepo();
|
|
void setRepo(const utility::string_t& value);
|
|
|
|
std::shared_ptr<Artifact> getRunning() const;
|
|
bool runningIsSet() const;
|
|
void unsetRunning();
|
|
void setRunning(const std::shared_ptr<Artifact>& value);
|
|
|
|
utility::datetime getSince() const;
|
|
bool sinceIsSet() const;
|
|
void unsetSince();
|
|
void setSince(const utility::datetime& value);
|
|
|
|
int64_t getWant() const;
|
|
bool wantIsSet() const;
|
|
void unsetWant();
|
|
void setWant(int64_t value);
|
|
|
|
|
|
protected:
|
|
int64_t m_Behind;
|
|
bool m_BehindIsSet;
|
|
|
|
std::shared_ptr<Artifact> m_Built;
|
|
bool m_BuiltIsSet;
|
|
|
|
std::shared_ptr<Artifact> m_Declared;
|
|
bool m_DeclaredIsSet;
|
|
|
|
std::vector<utility::string_t> m_Drift;
|
|
bool m_DriftIsSet;
|
|
|
|
std::shared_ptr<Tip> m_Head;
|
|
bool m_HeadIsSet;
|
|
|
|
utility::string_t m_Image;
|
|
bool m_ImageIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
utility::string_t m_r_namespace;
|
|
bool m_r_namespaceIsSet;
|
|
|
|
utility::string_t m_Org;
|
|
bool m_OrgIsSet;
|
|
|
|
utility::datetime m_PinnedAt;
|
|
bool m_PinnedAtIsSet;
|
|
|
|
int64_t m_Ready;
|
|
bool m_ReadyIsSet;
|
|
|
|
utility::string_t m_Repo;
|
|
bool m_RepoIsSet;
|
|
|
|
std::shared_ptr<Artifact> m_Running;
|
|
bool m_RunningIsSet;
|
|
|
|
utility::datetime m_Since;
|
|
bool m_SinceIsSet;
|
|
|
|
int64_t m_Want;
|
|
bool m_WantIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Pipeline_H_ */
|