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.
164 lines
4.6 KiB
C++
164 lines
4.6 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.
|
|
*/
|
|
|
|
/*
|
|
* ProjectsComplete.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_ProjectsComplete_H_
|
|
#define HANZO_MODEL_ProjectsComplete_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class ProjectsComplete
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
ProjectsComplete();
|
|
virtual ~ProjectsComplete();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// ProjectsComplete members
|
|
|
|
|
|
/// <summary>
|
|
/// Bytes is their total size in bytes.
|
|
/// </summary>
|
|
int64_t getBytes() const;
|
|
bool bytesIsSet() const;
|
|
void unsetBytes();
|
|
void setBytes(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Commit is the revision that was built, recorded on the deployment.
|
|
/// </summary>
|
|
utility::string_t getCommit() const;
|
|
bool commitIsSet() const;
|
|
void unsetCommit();
|
|
void setCommit(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Files is how many objects CI published.
|
|
/// </summary>
|
|
int64_t getFiles() const;
|
|
bool filesIsSet() const;
|
|
void unsetFiles();
|
|
void setFiles(int64_t value);
|
|
|
|
/// <summary>
|
|
/// ID is the queued deployment to complete, from the path.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Keys is the manifest CI just uploaded, RELATIVE to the deployment prefix. It is what replaces `aws s3 sync --delete`: an upload grant authorizes writes only, so CI cannot remove a file, and cloud reconciles the prefix against this list instead (grant.go). Omit it and nothing is deleted — the prefix only grows, which is the old pre-grant behaviour and a safe default.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getKeys() const;
|
|
bool keysIsSet() const;
|
|
void unsetKeys();
|
|
void setKeys(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// LiveURL is a HINT at the address the site should serve at. The public host is claimed by cloud first, so this can refine the URL a deployment reports but can never assert a subdomain another tenant holds.
|
|
/// </summary>
|
|
utility::string_t getLiveUrl() const;
|
|
bool liveUrlIsSet() const;
|
|
void unsetLiveUrl();
|
|
void setLiveUrl(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Message is what happened, in words — on an error completion, why it failed.
|
|
/// </summary>
|
|
utility::string_t getMessage() const;
|
|
bool messageIsSet() const;
|
|
void unsetMessage();
|
|
void setMessage(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Slug is the project the deployment belongs to, from the path.
|
|
/// </summary>
|
|
utility::string_t getSlug() const;
|
|
bool slugIsSet() const;
|
|
void unsetSlug();
|
|
void setSlug(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Status is how the build ended: `live` if it succeeded, `error` if it did not. Nothing else is accepted.
|
|
/// </summary>
|
|
utility::string_t getStatus() const;
|
|
bool statusIsSet() const;
|
|
void unsetStatus();
|
|
void setStatus(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
int64_t m_Bytes;
|
|
bool m_BytesIsSet;
|
|
|
|
utility::string_t m_Commit;
|
|
bool m_CommitIsSet;
|
|
|
|
int64_t m_Files;
|
|
bool m_FilesIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
std::vector<utility::string_t> m_Keys;
|
|
bool m_KeysIsSet;
|
|
|
|
utility::string_t m_LiveUrl;
|
|
bool m_LiveUrlIsSet;
|
|
|
|
utility::string_t m_Message;
|
|
bool m_MessageIsSet;
|
|
|
|
utility::string_t m_Slug;
|
|
bool m_SlugIsSet;
|
|
|
|
utility::string_t m_Status;
|
|
bool m_StatusIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_ProjectsComplete_H_ */
|