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.
130 lines
4.4 KiB
C++
130 lines
4.4 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.
|
|
*/
|
|
|
|
/*
|
|
* AuthorRepo.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_AuthorRepo_H_
|
|
#define HANZO_MODEL_AuthorRepo_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class AuthorRepo
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
AuthorRepo();
|
|
virtual ~AuthorRepo();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// AuthorRepo members
|
|
|
|
|
|
/// <summary>
|
|
/// BadgeMarkdown is the ready-to-paste README snippet, DERIVED for each response from this deployment's badge host and never stored: a \"Deploy on Hanzo\" image linking to the one-click import of this repository. Re-hosting the builder changes every badge without touching a row.
|
|
/// </summary>
|
|
utility::string_t getBadgeMarkdown() const;
|
|
bool badgeMarkdownIsSet() const;
|
|
void unsetBadgeMarkdown();
|
|
void setBadgeMarkdown(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// CreatedAt is unix seconds when the claim was first recorded. It equals verifiedAt on the first proof and then stays put while verifiedAt moves, so the pair reads as \"claimed since / last proven\".
|
|
/// </summary>
|
|
int64_t getCreatedAt() const;
|
|
bool createdAtIsSet() const;
|
|
void unsetCreatedAt();
|
|
void setCreatedAt(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Method is HOW ownership was proven: \"oauth\" — an IAM-linked forge token showed admin or push on the repository; \"file\" — a hanzo.json on the default branch carried this author's verify code; or \"maintainer\" — the repository sits in a first-party namespace, where ownership is intrinsic and the treasury author holds it with no proof step. Omitted on a row written before the method was recorded.
|
|
/// </summary>
|
|
utility::string_t getMethod() const;
|
|
bool methodIsSet() const;
|
|
void unsetMethod();
|
|
void setMethod(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// RepoURL is the claim key in canonical form — lowercased \"host/owner/name\", no scheme, no .git, host ∈ {github.com, gitlab.com}. A deploy's source repo is normalized through the same function before attribution, so the two sides can never miss on a cosmetic difference. UNIQUE across every author: first proven claim wins.
|
|
/// </summary>
|
|
utility::string_t getRepoUrl() const;
|
|
bool repoUrlIsSet() const;
|
|
void unsetRepoUrl();
|
|
void setRepoUrl(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Verified reports that ownership was proven. Only a proven claim is ever written, so it is true on every row this surface returns; the deploy path re-reads it regardless, because an unverified claim attributes nothing.
|
|
/// </summary>
|
|
bool isVerified() const;
|
|
bool verifiedIsSet() const;
|
|
void unsetVerified();
|
|
void setVerified(bool value);
|
|
|
|
/// <summary>
|
|
/// VerifiedAt is unix seconds of the most recent successful proof. Re-verifying refreshes it, and the method beside it, in place.
|
|
/// </summary>
|
|
int64_t getVerifiedAt() const;
|
|
bool verifiedAtIsSet() const;
|
|
void unsetVerifiedAt();
|
|
void setVerifiedAt(int64_t value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_BadgeMarkdown;
|
|
bool m_BadgeMarkdownIsSet;
|
|
|
|
int64_t m_CreatedAt;
|
|
bool m_CreatedAtIsSet;
|
|
|
|
utility::string_t m_Method;
|
|
bool m_MethodIsSet;
|
|
|
|
utility::string_t m_RepoUrl;
|
|
bool m_RepoUrlIsSet;
|
|
|
|
bool m_Verified;
|
|
bool m_VerifiedIsSet;
|
|
|
|
int64_t m_VerifiedAt;
|
|
bool m_VerifiedAtIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_AuthorRepo_H_ */
|