mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The projection was 113 commits behind the document it claims to describe, and `generate.py --all --check` reported every one of the thirteen clients DRIFTED — the same +19 models in each, because they all fell behind the same emission. Regenerated in place from hanzo-inc/cloud openapi.yaml at 939b09d4 (sha256 087024f6…), which is the only description of this API that cannot name a route the binary does not serve. `--check` is clean across all thirteen after. .spec-lock moved with the code. The generator READS that file and never writes it — hanzoai/ci`s lane does — so a hand run leaves every lock naming the previous document. A lock that disagrees with the tree beside it is worse than no lock: the next `--check` without `--spec` fetches what production serves, compares it to a digest that was already wrong, and reports drift that is really staleness.
196 lines
5.1 KiB
C++
196 lines
5.1 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.
|
|
*/
|
|
|
|
/*
|
|
* O11y_TLSConfig.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_O11y_TLSConfig_H_
|
|
#define HANZO_MODEL_O11y_TLSConfig_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/AnyType.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class O11y_TLSConfig
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
O11y_TLSConfig();
|
|
virtual ~O11y_TLSConfig();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// O11y_TLSConfig members
|
|
|
|
|
|
/// <summary>
|
|
/// Text of the CA cert to use for the targets.
|
|
/// </summary>
|
|
utility::string_t getCa() const;
|
|
bool caIsSet() const;
|
|
void unsetCa();
|
|
void setCa(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// The CA cert to use for the targets.
|
|
/// </summary>
|
|
utility::string_t getCaFile() const;
|
|
bool caFileIsSet() const;
|
|
void unsetCa_file();
|
|
void setCaFile(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// CARef is the name of the secret within the secret manager to use as the CA cert for the targets.
|
|
/// </summary>
|
|
utility::string_t getCaRef() const;
|
|
bool caRefIsSet() const;
|
|
void unsetCa_ref();
|
|
void setCaRef(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Text of the client cert file for the targets.
|
|
/// </summary>
|
|
utility::string_t getCert() const;
|
|
bool certIsSet() const;
|
|
void unsetCert();
|
|
void setCert(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// The client cert file for the targets.
|
|
/// </summary>
|
|
utility::string_t getCertFile() const;
|
|
bool certFileIsSet() const;
|
|
void unsetCert_file();
|
|
void setCertFile(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// CertRef is the name of the secret within the secret manager to use as the client cert for the targets.
|
|
/// </summary>
|
|
utility::string_t getCertRef() const;
|
|
bool certRefIsSet() const;
|
|
void unsetCert_ref();
|
|
void setCertRef(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Disable target certificate validation.
|
|
/// </summary>
|
|
bool isInsecureSkipVerify() const;
|
|
bool insecureSkipVerifyIsSet() const;
|
|
void unsetInsecure_skip_verify();
|
|
void setInsecureSkipVerify(bool value);
|
|
|
|
std::shared_ptr<AnyType> getKey() const;
|
|
bool keyIsSet() const;
|
|
void unsetKey();
|
|
void setKey(const std::shared_ptr<AnyType>& value);
|
|
|
|
/// <summary>
|
|
/// The client key file for the targets.
|
|
/// </summary>
|
|
utility::string_t getKeyFile() const;
|
|
bool keyFileIsSet() const;
|
|
void unsetKey_file();
|
|
void setKeyFile(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// KeyRef is the name of the secret within the secret manager to use as the client key for the targets.
|
|
/// </summary>
|
|
utility::string_t getKeyRef() const;
|
|
bool keyRefIsSet() const;
|
|
void unsetKey_ref();
|
|
void setKeyRef(const utility::string_t& value);
|
|
|
|
std::shared_ptr<AnyType> getMaxVersion() const;
|
|
bool maxVersionIsSet() const;
|
|
void unsetMax_version();
|
|
void setMaxVersion(const std::shared_ptr<AnyType>& value);
|
|
|
|
std::shared_ptr<AnyType> getMinVersion() const;
|
|
bool minVersionIsSet() const;
|
|
void unsetMin_version();
|
|
void setMinVersion(const std::shared_ptr<AnyType>& value);
|
|
|
|
/// <summary>
|
|
/// Used to verify the hostname for the targets.
|
|
/// </summary>
|
|
utility::string_t getServerName() const;
|
|
bool serverNameIsSet() const;
|
|
void unsetServer_name();
|
|
void setServerName(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Ca;
|
|
bool m_CaIsSet;
|
|
|
|
utility::string_t m_Ca_file;
|
|
bool m_Ca_fileIsSet;
|
|
|
|
utility::string_t m_Ca_ref;
|
|
bool m_Ca_refIsSet;
|
|
|
|
utility::string_t m_Cert;
|
|
bool m_CertIsSet;
|
|
|
|
utility::string_t m_Cert_file;
|
|
bool m_Cert_fileIsSet;
|
|
|
|
utility::string_t m_Cert_ref;
|
|
bool m_Cert_refIsSet;
|
|
|
|
bool m_Insecure_skip_verify;
|
|
bool m_Insecure_skip_verifyIsSet;
|
|
|
|
boost::optional<std::shared_ptr<AnyType>> m_Key;
|
|
|
|
utility::string_t m_Key_file;
|
|
bool m_Key_fileIsSet;
|
|
|
|
utility::string_t m_Key_ref;
|
|
bool m_Key_refIsSet;
|
|
|
|
boost::optional<std::shared_ptr<AnyType>> m_Max_version;
|
|
|
|
boost::optional<std::shared_ptr<AnyType>> m_Min_version;
|
|
|
|
utility::string_t m_Server_name;
|
|
bool m_Server_nameIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_O11y_TLSConfig_H_ */
|