Files
zeekay 189ce08e51 Regenerate against the document the deployment answers for
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.
2026-09-05 18:07:13 -07:00

130 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.
*/
/*
* OrgView.h
*
*
*/
#ifndef HANZO_MODEL_OrgView_H_
#define HANZO_MODEL_OrgView_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class OrgView
: public ModelBase
{
public:
OrgView();
virtual ~OrgView();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// OrgView members
/// <summary>
/// BadgeMarkdown is the ready-to-paste README snippet, DERIVED for each response from this deployment&#39;s badge host and never stored — here it deep-links the OWNER&#39;s template import rather than one repository&#39;s.
/// </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 owner claim was first recorded — equal to verifiedAt on the first proof, then fixed while verifiedAt moves.
/// </summary>
int64_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreatedAt();
void setCreatedAt(int64_t value);
/// <summary>
/// Method is HOW the owner was proven, always against its \&quot;.github\&quot; control repository: \&quot;oauth\&quot; — an IAM-linked forge token showed admin or push on it; or \&quot;file\&quot; — a hanzo.json on its default branch carried this author&#39;s verify code. The \&quot;maintainer\&quot; shortcut is a per-repository attribution and never appears here. 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>
/// OwnerURL is the claim key in canonical form — lowercased \&quot;host/owner\&quot; with NO repository segment, host ∈ {github.com, gitlab.com}. It covers every repository under that owner, so code with no claim of its own still earns; a per-repository claim outranks it. UNIQUE across every author: first proven claim wins.
/// </summary>
utility::string_t getOwnerUrl() const;
bool ownerUrlIsSet() const;
void unsetOwnerUrl();
void setOwnerUrl(const utility::string_t& value);
/// <summary>
/// Verified reports that ownership of the WHOLE owner was proven — against that owner&#39;s \&quot;.github\&quot; control repository, which is exactly as strong as a per-repository claim. Only a proven claim is written, so every row returned here is true.
/// </summary>
bool isVerified() const;
bool verifiedIsSet() const;
void unsetVerified();
void setVerified(bool value);
/// <summary>
/// VerifiedAt is unix seconds of the most recent successful proof of the owner; 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_OwnerUrl;
bool m_OwnerUrlIsSet;
bool m_Verified;
bool m_VerifiedIsSet;
int64_t m_VerifiedAt;
bool m_VerifiedAtIsSet;
};
}
}
#endif /* HANZO_MODEL_OrgView_H_ */