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.
152 lines
4.3 KiB
C++
152 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.
|
|
*/
|
|
|
|
/*
|
|
* GithubSearchHit.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_GithubSearchHit_H_
|
|
#define HANZO_MODEL_GithubSearchHit_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class GithubSearchHit
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
GithubSearchHit();
|
|
virtual ~GithubSearchHit();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// GithubSearchHit members
|
|
|
|
|
|
/// <summary>
|
|
/// CloneURL is the repository's https git remote.
|
|
/// </summary>
|
|
utility::string_t getCloneUrl() const;
|
|
bool cloneUrlIsSet() const;
|
|
void unsetClone_url();
|
|
void setCloneUrl(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// DefaultBranch is the branch a clone checks out.
|
|
/// </summary>
|
|
utility::string_t getDefaultBranch() const;
|
|
bool defaultBranchIsSet() const;
|
|
void unsetDefault_branch();
|
|
void setDefaultBranch(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Description is the blurb the repository's owner wrote. Empty when it has none.
|
|
/// </summary>
|
|
utility::string_t getDescription() const;
|
|
bool descriptionIsSet() const;
|
|
void unsetDescription();
|
|
void setDescription(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// FullName is the repository's \"owner/repo\" on GitHub. Finding it here does NOT make it forkable: githubFork takes a repo the org's installation was granted, and a hit from the public index usually is not one.
|
|
/// </summary>
|
|
utility::string_t getFullName() const;
|
|
bool fullNameIsSet() const;
|
|
void unsetFull_name();
|
|
void setFullName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// HTMLURL is the repository's page on github.com.
|
|
/// </summary>
|
|
utility::string_t getHtmlUrl() const;
|
|
bool htmlUrlIsSet() const;
|
|
void unsetHtml_url();
|
|
void setHtmlUrl(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Language is the primary language GitHub detected from the file mix (\"Go\", \"TypeScript\"). Empty when GitHub attributes none.
|
|
/// </summary>
|
|
utility::string_t getLanguage() const;
|
|
bool languageIsSet() const;
|
|
void unsetLanguage();
|
|
void setLanguage(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Private is GitHub's visibility flag, passed through. This op reads the public index — the org's token only charges the rate limit to the installation — so it is false for everything a search can reach.
|
|
/// </summary>
|
|
bool isRPrivate() const;
|
|
bool rPrivateIsSet() const;
|
|
void unsetr_private();
|
|
void setRPrivate(bool value);
|
|
|
|
/// <summary>
|
|
/// Stars is GitHub's stargazers_count as the SEARCH INDEX held it when the query ran — a snapshot, not a live count off the repository.
|
|
/// </summary>
|
|
int64_t getStars() const;
|
|
bool starsIsSet() const;
|
|
void unsetStars();
|
|
void setStars(int64_t value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Clone_url;
|
|
bool m_Clone_urlIsSet;
|
|
|
|
utility::string_t m_Default_branch;
|
|
bool m_Default_branchIsSet;
|
|
|
|
utility::string_t m_Description;
|
|
bool m_DescriptionIsSet;
|
|
|
|
utility::string_t m_Full_name;
|
|
bool m_Full_nameIsSet;
|
|
|
|
utility::string_t m_Html_url;
|
|
bool m_Html_urlIsSet;
|
|
|
|
utility::string_t m_Language;
|
|
bool m_LanguageIsSet;
|
|
|
|
bool m_r_private;
|
|
bool m_r_privateIsSet;
|
|
|
|
int64_t m_Stars;
|
|
bool m_StarsIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_GithubSearchHit_H_ */
|