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.
163 lines
4.2 KiB
C++
163 lines
4.2 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.
|
|
*/
|
|
|
|
/*
|
|
* Enrolment.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Enrolment_H_
|
|
#define HANZO_MODEL_Enrolment_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class Enrolment
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Enrolment();
|
|
virtual ~Enrolment();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Enrolment members
|
|
|
|
|
|
/// <summary>
|
|
/// Created reports whether this call enrolled the org (201) or found an existing enrolment (200).
|
|
/// </summary>
|
|
bool isCreated() const;
|
|
bool createdIsSet() const;
|
|
void unsetCreated();
|
|
void setCreated(bool value);
|
|
|
|
/// <summary>
|
|
/// GithubLogin is the linked forge account.
|
|
/// </summary>
|
|
utility::string_t getGithubLogin() const;
|
|
bool githubLoginIsSet() const;
|
|
void unsetGithubLogin();
|
|
void setGithubLogin(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ID is the author record's server-minted handle, \"aut_\"-prefixed.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ShareBps is this author's royalty share in basis points of the spend their deployed work generates.
|
|
/// </summary>
|
|
int64_t getShareBps() const;
|
|
bool shareBpsIsSet() const;
|
|
void unsetShareBps();
|
|
void setShareBps(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Status is connected, approved or suspended. Only an approved author earns.
|
|
/// </summary>
|
|
utility::string_t getStatus() const;
|
|
bool statusIsSet() const;
|
|
void unsetStatus();
|
|
void setStatus(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Verified reports whether any repository or owner claim has been proven yet.
|
|
/// </summary>
|
|
bool isVerified() const;
|
|
bool verifiedIsSet() const;
|
|
void unsetVerified();
|
|
void setVerified(bool value);
|
|
|
|
/// <summary>
|
|
/// VerifyCode is this author's stable proof token — the value a repository's verify file must carry.
|
|
/// </summary>
|
|
utility::string_t getVerifyCode() const;
|
|
bool verifyCodeIsSet() const;
|
|
void unsetVerifyCode();
|
|
void setVerifyCode(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// VerifyFile is the repo-root file the file method reads, on the default branch.
|
|
/// </summary>
|
|
utility::string_t getVerifyFile() const;
|
|
bool verifyFileIsSet() const;
|
|
void unsetVerifyFile();
|
|
void setVerifyFile(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// VerifySnippet is that file's exact contents, ready to commit.
|
|
/// </summary>
|
|
utility::string_t getVerifySnippet() const;
|
|
bool verifySnippetIsSet() const;
|
|
void unsetVerifySnippet();
|
|
void setVerifySnippet(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
bool m_Created;
|
|
bool m_CreatedIsSet;
|
|
|
|
utility::string_t m_GithubLogin;
|
|
bool m_GithubLoginIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
int64_t m_ShareBps;
|
|
bool m_ShareBpsIsSet;
|
|
|
|
utility::string_t m_Status;
|
|
bool m_StatusIsSet;
|
|
|
|
bool m_Verified;
|
|
bool m_VerifiedIsSet;
|
|
|
|
utility::string_t m_VerifyCode;
|
|
bool m_VerifyCodeIsSet;
|
|
|
|
utility::string_t m_VerifyFile;
|
|
bool m_VerifyFileIsSet;
|
|
|
|
utility::string_t m_VerifySnippet;
|
|
bool m_VerifySnippetIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Enrolment_H_ */
|