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

144 lines
4.0 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.
*/
/*
* ProjectsDomain.h
*
*
*/
#ifndef HANZO_MODEL_ProjectsDomain_H_
#define HANZO_MODEL_ProjectsDomain_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/Record.h"
#include <cpprest/details/basic_types.h>
#include <vector>
namespace hanzo {
namespace model {
class Record;
class ProjectsDomain
: public ModelBase
{
public:
ProjectsDomain();
virtual ~ProjectsDomain();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// ProjectsDomain members
/// <summary>
/// CreatedAt is when the host was claimed, as Unix seconds — not when it went live.
/// </summary>
int64_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreatedAt();
void setCreatedAt(int64_t value);
/// <summary>
/// Detail is what is holding the claim up, in words a person can act on.
/// </summary>
utility::string_t getDetail() const;
bool detailIsSet() const;
void unsetDetail();
void setDetail(const utility::string_t& value);
/// <summary>
/// Host is the custom hostname claimed for this site.
/// </summary>
utility::string_t getHost() const;
bool hostIsSet() const;
void unsetHost();
void setHost(const utility::string_t& value);
/// <summary>
/// Records are EXACTLY the DNS records to publish to prove ownership and route the host. Present only while pending, because a live host has already proved it; absent is therefore \&quot;nothing left to do\&quot;, not \&quot;we cannot say what to do\&quot;.
/// </summary>
std::vector<std::shared_ptr<Record>> getRecords() const;
bool recordsIsSet() const;
void unsetRecords();
void setRecords(const std::vector<std::shared_ptr<Record>>& value);
/// <summary>
/// Status is &#x60;live&#x60; when the edge answers for this host now, &#x60;pending&#x60; while the claim is waiting on DNS proof of ownership. A pending host is claimed but serves nothing.
/// </summary>
utility::string_t getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(const utility::string_t& value);
/// <summary>
/// URL is where the host will serve once it is live — present on a pending claim too, so a console can show the destination before it works.
/// </summary>
utility::string_t getUrl() const;
bool urlIsSet() const;
void unsetUrl();
void setUrl(const utility::string_t& value);
/// <summary>
/// Verified is the same fact as a boolean, for a caller that only needs the yes or no. It cannot disagree with status.
/// </summary>
bool isVerified() const;
bool verifiedIsSet() const;
void unsetVerified();
void setVerified(bool value);
protected:
int64_t m_CreatedAt;
bool m_CreatedAtIsSet;
utility::string_t m_Detail;
bool m_DetailIsSet;
utility::string_t m_Host;
bool m_HostIsSet;
std::vector<std::shared_ptr<Record>> m_Records;
bool m_RecordsIsSet;
utility::string_t m_Status;
bool m_StatusIsSet;
utility::string_t m_Url;
bool m_UrlIsSet;
bool m_Verified;
bool m_VerifiedIsSet;
};
}
}
#endif /* HANZO_MODEL_ProjectsDomain_H_ */