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.
197 lines
6.0 KiB
C++
197 lines
6.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.
|
|
*/
|
|
|
|
/*
|
|
* O11y_HTTPClientConfig.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_O11y_HTTPClientConfig_H_
|
|
#define HANZO_MODEL_O11y_HTTPClientConfig_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/O11y_TLSConfig.h"
|
|
#include "hanzo/AnyType.h"
|
|
#include "hanzo/model/O11y_BasicAuth.h"
|
|
#include "hanzo/model/O11y_OAuth2.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include "hanzo/model/O11y_Authorization.h"
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class O11y_Authorization;
|
|
class O11y_BasicAuth;
|
|
class O11y_OAuth2;
|
|
class O11y_TLSConfig;
|
|
|
|
|
|
class O11y_HTTPClientConfig
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
O11y_HTTPClientConfig();
|
|
virtual ~O11y_HTTPClientConfig();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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_HTTPClientConfig members
|
|
|
|
|
|
/// <summary>
|
|
/// The HTTP authorization credentials for the targets.
|
|
/// </summary>
|
|
std::shared_ptr<O11y_Authorization> getAuthorization() const;
|
|
bool authorizationIsSet() const;
|
|
void unsetAuthorization();
|
|
void setAuthorization(const std::shared_ptr<O11y_Authorization>& value);
|
|
|
|
/// <summary>
|
|
/// The HTTP basic authentication credentials for the targets.
|
|
/// </summary>
|
|
std::shared_ptr<O11y_BasicAuth> getBasicAuth() const;
|
|
bool basicAuthIsSet() const;
|
|
void unsetBasic_auth();
|
|
void setBasicAuth(const std::shared_ptr<O11y_BasicAuth>& value);
|
|
|
|
std::shared_ptr<AnyType> getBearerToken() const;
|
|
bool bearerTokenIsSet() const;
|
|
void unsetBearer_token();
|
|
void setBearerToken(const std::shared_ptr<AnyType>& value);
|
|
|
|
/// <summary>
|
|
/// The bearer token file for the targets. Deprecated in favour of Authorization.CredentialsFile.
|
|
/// </summary>
|
|
utility::string_t getBearerTokenFile() const;
|
|
bool bearerTokenFileIsSet() const;
|
|
void unsetBearer_token_file();
|
|
void setBearerTokenFile(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// EnableHTTP2 specifies whether the client should configure HTTP2. The omitempty flag is not set, because it would be hidden from the marshalled configuration when set to false.
|
|
/// </summary>
|
|
bool isEnableHttp2() const;
|
|
bool enableHttp2IsSet() const;
|
|
void unsetEnable_http2();
|
|
void setEnableHttp2(bool value);
|
|
|
|
/// <summary>
|
|
/// FollowRedirects specifies whether the client should follow HTTP 3xx redirects. The omitempty flag is not set, because it would be hidden from the marshalled configuration when set to false.
|
|
/// </summary>
|
|
bool isFollowRedirects() const;
|
|
bool followRedirectsIsSet() const;
|
|
void unsetFollow_redirects();
|
|
void setFollowRedirects(bool value);
|
|
|
|
std::shared_ptr<AnyType> getHttpHeaders() const;
|
|
bool httpHeadersIsSet() const;
|
|
void unsetHttp_headers();
|
|
void setHttpHeaders(const std::shared_ptr<AnyType>& value);
|
|
|
|
utility::string_t getNoProxy() const;
|
|
bool noProxyIsSet() const;
|
|
void unsetNo_proxy();
|
|
void setNoProxy(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// The OAuth2 client credentials used to fetch a token for the targets.
|
|
/// </summary>
|
|
std::shared_ptr<O11y_OAuth2> getOauth2() const;
|
|
bool oauth2IsSet() const;
|
|
void unsetOauth2();
|
|
void setOauth2(const std::shared_ptr<O11y_OAuth2>& value);
|
|
|
|
std::map<utility::string_t, std::vector<std::shared_ptr<AnyType>>> getProxyConnectHeader() const;
|
|
bool proxyConnectHeaderIsSet() const;
|
|
void unsetProxy_connect_header();
|
|
void setProxyConnectHeader(const std::map<utility::string_t, std::vector<std::shared_ptr<AnyType>>>& value);
|
|
|
|
bool isProxyFromEnvironment() const;
|
|
bool proxyFromEnvironmentIsSet() const;
|
|
void unsetProxy_from_environment();
|
|
void setProxyFromEnvironment(bool value);
|
|
|
|
std::shared_ptr<AnyType> getProxyUrl() const;
|
|
bool proxyUrlIsSet() const;
|
|
void unsetProxy_url();
|
|
void setProxyUrl(const std::shared_ptr<AnyType>& value);
|
|
|
|
/// <summary>
|
|
/// TLSConfig to use to connect to the targets.
|
|
/// </summary>
|
|
std::shared_ptr<O11y_TLSConfig> getTlsConfig() const;
|
|
bool tlsConfigIsSet() const;
|
|
void unsetTls_config();
|
|
void setTlsConfig(const std::shared_ptr<O11y_TLSConfig>& value);
|
|
|
|
|
|
protected:
|
|
std::shared_ptr<O11y_Authorization> m_Authorization;
|
|
bool m_AuthorizationIsSet;
|
|
|
|
std::shared_ptr<O11y_BasicAuth> m_Basic_auth;
|
|
bool m_Basic_authIsSet;
|
|
|
|
boost::optional<std::shared_ptr<AnyType>> m_Bearer_token;
|
|
|
|
utility::string_t m_Bearer_token_file;
|
|
bool m_Bearer_token_fileIsSet;
|
|
|
|
bool m_Enable_http2;
|
|
bool m_Enable_http2IsSet;
|
|
|
|
bool m_Follow_redirects;
|
|
bool m_Follow_redirectsIsSet;
|
|
|
|
boost::optional<std::shared_ptr<AnyType>> m_Http_headers;
|
|
|
|
utility::string_t m_No_proxy;
|
|
bool m_No_proxyIsSet;
|
|
|
|
std::shared_ptr<O11y_OAuth2> m_Oauth2;
|
|
bool m_Oauth2IsSet;
|
|
|
|
std::map<utility::string_t, std::vector<std::shared_ptr<AnyType>>> m_Proxy_connect_header;
|
|
bool m_Proxy_connect_headerIsSet;
|
|
|
|
bool m_Proxy_from_environment;
|
|
bool m_Proxy_from_environmentIsSet;
|
|
|
|
boost::optional<std::shared_ptr<AnyType>> m_Proxy_url;
|
|
|
|
std::shared_ptr<O11y_TLSConfig> m_Tls_config;
|
|
bool m_Tls_configIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_O11y_HTTPClientConfig_H_ */
|