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

219 lines
5.9 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.
*/
/*
* RepoView.h
*
*
*/
#ifndef HANZO_MODEL_RepoView_H_
#define HANZO_MODEL_RepoView_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
#include <vector>
namespace hanzo {
namespace model {
class RepoView
: public ModelBase
{
public:
RepoView();
virtual ~RepoView();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// RepoView members
/// <summary>
/// Branches are the repo&#39;s branch names. Read live, so the detail view carries them and a list row does not.
/// </summary>
std::vector<utility::string_t> getBranches() const;
bool branchesIsSet() const;
void unsetBranches();
void setBranches(const std::vector<utility::string_t>& value);
/// <summary>
/// CloneURL is the HTTPS smart-HTTP remote &#x60;git clone&#x60; takes.
/// </summary>
utility::string_t getCloneUrl() const;
bool cloneUrlIsSet() const;
void unsetCloneUrl();
void setCloneUrl(const utility::string_t& value);
/// <summary>
/// CreatedAt is RFC 3339 UTC.
/// </summary>
utility::string_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreatedAt();
void setCreatedAt(const utility::string_t& value);
/// <summary>
/// DefaultBranch is where HEAD points on a fresh repo (\&quot;main\&quot;).
/// </summary>
utility::string_t getDefaultBranch() const;
bool defaultBranchIsSet() const;
void unsetDefaultBranch();
void setDefaultBranch(const utility::string_t& value);
/// <summary>
/// Description is the caller-supplied blurb (max 4KiB).
/// </summary>
utility::string_t getDescription() const;
bool descriptionIsSet() const;
void unsetDescription();
void setDescription(const utility::string_t& value);
/// <summary>
/// Head is the resolved HEAD commit, empty on an empty repo.
/// </summary>
utility::string_t getHead() const;
bool headIsSet() const;
void unsetHead();
void setHead(const utility::string_t& value);
/// <summary>
/// ID is the repo&#39;s stable, prefixed identifier (\&quot;repo_\&quot; + 128 random bits).
/// </summary>
utility::string_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(const utility::string_t& value);
/// <summary>
/// Name is the org-unique handle, and the last path segment of both URLs below.
/// </summary>
utility::string_t getName() const;
bool nameIsSet() const;
void unsetName();
void setName(const utility::string_t& value);
/// <summary>
/// Org owns the repo — the gateway-minted X-Org-Id, and the isolation key.
/// </summary>
utility::string_t getOrg() const;
bool orgIsSet() const;
void unsetOrg();
void setOrg(const utility::string_t& value);
/// <summary>
/// Project is the optional sub-scope the repo lives in; absent for the org&#39;s default scope.
/// </summary>
utility::string_t getProject() const;
bool projectIsSet() const;
void unsetProject();
void setProject(const utility::string_t& value);
/// <summary>
/// Public grants ANONYMOUS read (fetch) only; push and the whole control plane stay org-authed.
/// </summary>
bool isRPublic() const;
bool rPublicIsSet() const;
void unsetr_public();
void setRPublic(bool value);
/// <summary>
/// SizeBytes is the repo&#39;s measured on-disk size, re-measured on create, after each push, and after a gc. This is the number billing meters.
/// </summary>
int64_t getSizeBytes() const;
bool sizeBytesIsSet() const;
void unsetSizeBytes();
void setSizeBytes(int64_t value);
/// <summary>
/// SSHURL is the scp-style SSH remote (git@host:org/repo.git).
/// </summary>
utility::string_t getSshUrl() const;
bool sshUrlIsSet() const;
void unsetSshUrl();
void setSshUrl(const utility::string_t& value);
/// <summary>
/// UpdatedAt is RFC 3339 UTC, empty until the first write.
/// </summary>
utility::string_t getUpdatedAt() const;
bool updatedAtIsSet() const;
void unsetUpdatedAt();
void setUpdatedAt(const utility::string_t& value);
protected:
std::vector<utility::string_t> m_Branches;
bool m_BranchesIsSet;
utility::string_t m_CloneUrl;
bool m_CloneUrlIsSet;
utility::string_t m_CreatedAt;
bool m_CreatedAtIsSet;
utility::string_t m_DefaultBranch;
bool m_DefaultBranchIsSet;
utility::string_t m_Description;
bool m_DescriptionIsSet;
utility::string_t m_Head;
bool m_HeadIsSet;
utility::string_t m_Id;
bool m_IdIsSet;
utility::string_t m_Name;
bool m_NameIsSet;
utility::string_t m_Org;
bool m_OrgIsSet;
utility::string_t m_Project;
bool m_ProjectIsSet;
bool m_r_public;
bool m_r_publicIsSet;
int64_t m_SizeBytes;
bool m_SizeBytesIsSet;
utility::string_t m_SshUrl;
bool m_SshUrlIsSet;
utility::string_t m_UpdatedAt;
bool m_UpdatedAtIsSet;
};
}
}
#endif /* HANZO_MODEL_RepoView_H_ */