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

185 lines
4.5 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.
*/
/*
* PullView.h
*
*
*/
#ifndef HANZO_MODEL_PullView_H_
#define HANZO_MODEL_PullView_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class PullView
: public ModelBase
{
public:
PullView();
virtual ~PullView();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// PullView members
/// <summary>
/// Author is the user who opened it; empty for a caller with no user.
/// </summary>
utility::string_t getAuthor() const;
bool authorIsSet() const;
void unsetAuthor();
void setAuthor(const utility::string_t& value);
/// <summary>
/// Base is the branch the work is proposed into.
/// </summary>
utility::string_t getBase() const;
bool baseIsSet() const;
void unsetBase();
void setBase(const utility::string_t& value);
/// <summary>
/// Body is the longer description; empty when none was given.
/// </summary>
utility::string_t getBody() const;
bool bodyIsSet() const;
void unsetBody();
void setBody(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>
/// Head is the branch holding the work.
/// </summary>
utility::string_t getHead() const;
bool headIsSet() const;
void unsetHead();
void setHead(const utility::string_t& value);
/// <summary>
/// MergedRev is what base points at now that the merge landed. Empty while the proposal is open.
/// </summary>
utility::string_t getMergedRev() const;
bool mergedRevIsSet() const;
void unsetMergedRev();
void setMergedRev(const utility::string_t& value);
/// <summary>
/// Number is the proposal&#39;s per-repo handle, dense from 1.
/// </summary>
int64_t getNumber() const;
bool numberIsSet() const;
void unsetnumber();
void setNumber(int64_t value);
/// <summary>
/// Repo is the repository the proposal belongs to.
/// </summary>
utility::string_t getRepo() const;
bool repoIsSet() const;
void unsetRepo();
void setRepo(const utility::string_t& value);
/// <summary>
/// State is \&quot;open\&quot; or \&quot;merged\&quot;.
/// </summary>
utility::string_t getState() const;
bool stateIsSet() const;
void unsetState();
void setState(const utility::string_t& value);
/// <summary>
/// Title is the one-line summary.
/// </summary>
utility::string_t getTitle() const;
bool titleIsSet() const;
void unsetTitle();
void setTitle(const utility::string_t& value);
/// <summary>
/// UpdatedAt is RFC 3339 UTC.
/// </summary>
utility::string_t getUpdatedAt() const;
bool updatedAtIsSet() const;
void unsetUpdatedAt();
void setUpdatedAt(const utility::string_t& value);
protected:
utility::string_t m_Author;
bool m_AuthorIsSet;
utility::string_t m_Base;
bool m_BaseIsSet;
utility::string_t m_Body;
bool m_BodyIsSet;
utility::string_t m_CreatedAt;
bool m_CreatedAtIsSet;
utility::string_t m_Head;
bool m_HeadIsSet;
utility::string_t m_MergedRev;
bool m_MergedRevIsSet;
int64_t m_number;
bool m_numberIsSet;
utility::string_t m_Repo;
bool m_RepoIsSet;
utility::string_t m_State;
bool m_StateIsSet;
utility::string_t m_Title;
bool m_TitleIsSet;
utility::string_t m_UpdatedAt;
bool m_UpdatedAtIsSet;
};
}
}
#endif /* HANZO_MODEL_PullView_H_ */