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.3 KiB
C++
163 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.
|
|
*/
|
|
|
|
/*
|
|
* IngressStatus.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_IngressStatus_H_
|
|
#define HANZO_MODEL_IngressStatus_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class IngressStatus
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
IngressStatus();
|
|
virtual ~IngressStatus();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// IngressStatus members
|
|
|
|
|
|
/// <summary>
|
|
/// ACMECacheDir is where autocert persists accounts and certificates.
|
|
/// </summary>
|
|
utility::string_t getAcmeCacheDir() const;
|
|
bool acmeCacheDirIsSet() const;
|
|
void unsetAcmeCacheDir();
|
|
void setAcmeCacheDir(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ACMEStaging is true when certificates are issued from Let's Encrypt staging.
|
|
/// </summary>
|
|
bool isAcmeStaging() const;
|
|
bool acmeStagingIsSet() const;
|
|
void unsetAcmeStaging();
|
|
void setAcmeStaging(bool value);
|
|
|
|
/// <summary>
|
|
/// EdgeEnabled is true when the edge listeners are actually bound.
|
|
/// </summary>
|
|
bool isEdgeEnabled() const;
|
|
bool edgeEnabledIsSet() const;
|
|
void unsetEdgeEnabled();
|
|
void setEdgeEnabled(bool value);
|
|
|
|
/// <summary>
|
|
/// HTTPAddr is the address the ACME HTTP-01 + HTTP router listens on.
|
|
/// </summary>
|
|
utility::string_t getHttpAddr() const;
|
|
bool httpAddrIsSet() const;
|
|
void unsetHttpAddr();
|
|
void setHttpAddr(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// HTTPSAddr is the address the SNI TLS terminator listens on.
|
|
/// </summary>
|
|
utility::string_t getHttpsAddr() const;
|
|
bool httpsAddrIsSet() const;
|
|
void unsetHttpsAddr();
|
|
void setHttpsAddr(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// LiveHosts is how many hosts the compiled table routes.
|
|
/// </summary>
|
|
int64_t getLiveHosts() const;
|
|
bool liveHostsIsSet() const;
|
|
void unsetLiveHosts();
|
|
void setLiveHosts(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Proxy names the reverse-proxy implementation behind every route.
|
|
/// </summary>
|
|
utility::string_t getProxy() const;
|
|
bool proxyIsSet() const;
|
|
void unsetProxy();
|
|
void setProxy(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Role is \"edge\" when CLOUD_INGRESS_EDGE_ENABLED is set, else \"app\".
|
|
/// </summary>
|
|
utility::string_t getRole() const;
|
|
bool roleIsSet() const;
|
|
void unsetRole();
|
|
void setRole(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// TLSHosts is how many hosts the ACME HostPolicy will issue a certificate for. NOT a subset of LiveHosts: an extraHost owns no route, and a TLS route naming a missing service is skipped while its host still wants a cert.
|
|
/// </summary>
|
|
int64_t getTlsHosts() const;
|
|
bool tlsHostsIsSet() const;
|
|
void unsetTlsHosts();
|
|
void setTlsHosts(int64_t value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_AcmeCacheDir;
|
|
bool m_AcmeCacheDirIsSet;
|
|
|
|
bool m_AcmeStaging;
|
|
bool m_AcmeStagingIsSet;
|
|
|
|
bool m_EdgeEnabled;
|
|
bool m_EdgeEnabledIsSet;
|
|
|
|
utility::string_t m_HttpAddr;
|
|
bool m_HttpAddrIsSet;
|
|
|
|
utility::string_t m_HttpsAddr;
|
|
bool m_HttpsAddrIsSet;
|
|
|
|
int64_t m_LiveHosts;
|
|
bool m_LiveHostsIsSet;
|
|
|
|
utility::string_t m_Proxy;
|
|
bool m_ProxyIsSet;
|
|
|
|
utility::string_t m_Role;
|
|
bool m_RoleIsSet;
|
|
|
|
int64_t m_TlsHosts;
|
|
bool m_TlsHostsIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_IngressStatus_H_ */
|