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

166 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.
*/
/*
* DomainView.h
*
*
*/
#ifndef HANZO_MODEL_DomainView_H_
#define HANZO_MODEL_DomainView_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 DomainView
: public ModelBase
{
public:
DomainView();
virtual ~DomainView();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// DomainView members
/// <summary>
/// CreatedAt is the unix second the custom claim was made.
/// </summary>
int64_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreatedAt();
void setCreatedAt(int64_t value);
/// <summary>
/// Detail says why a claim is still pending, in the resolver&#39;s own words.
/// </summary>
utility::string_t getDetail() const;
bool detailIsSet() const;
void unsetDetail();
void setDetail(const utility::string_t& value);
/// <summary>
/// Host is the hostname itself.
/// </summary>
utility::string_t getHost() const;
bool hostIsSet() const;
void unsetHost();
void setHost(const utility::string_t& value);
/// <summary>
/// Kind is &#x60;default&#x60;, &#x60;subtree&#x60; or &#x60;custom&#x60; — how the org came to own it.
/// </summary>
utility::string_t getKind() const;
bool kindIsSet() const;
void unsetKind();
void setKind(const utility::string_t& value);
/// <summary>
/// Primary marks the app&#39;s permanent default host.
/// </summary>
bool isPrimary() const;
bool primaryIsSet() const;
void unsetPrimary();
void setPrimary(bool value);
/// <summary>
/// Records are the DNS records to publish while a custom claim is pending.
/// </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;, &#x60;provisioning&#x60;, &#x60;pending_deploy&#x60; or &#x60;pending&#x60;, derived from the operator CR and never fabricated.
/// </summary>
utility::string_t getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(const utility::string_t& value);
/// <summary>
/// URL is the host as an HTTPS address.
/// </summary>
utility::string_t getUrl() const;
bool urlIsSet() const;
void unsetUrl();
void setUrl(const utility::string_t& value);
/// <summary>
/// Verified is whether ownership is settled — always true for a host the org structurally owns.
/// </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;
utility::string_t m_Kind;
bool m_KindIsSet;
bool m_Primary;
bool m_PrimaryIsSet;
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_DomainView_H_ */