Files
zeekay 645325a641 regenerate from cloud 939b09d4
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.
2026-08-24 23:32:53 -07:00

256 lines
8.5 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_OAuth2.h
*
*
*/
#ifndef HANZO_MODEL_O11y_OAuth2_H_
#define HANZO_MODEL_O11y_OAuth2_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/O11y_TLSConfig.h"
#include "hanzo/AnyType.h"
#include "hanzo/Object.h"
#include <cpprest/details/basic_types.h>
#include <map>
#include <vector>
namespace hanzo {
namespace model {
class O11y_TLSConfig;
class O11y_OAuth2
: public ModelBase
{
public:
O11y_OAuth2();
virtual ~O11y_OAuth2();
/////////////////////////////////////////////
/// 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_OAuth2 members
std::shared_ptr<O11y_TLSConfig> getTLSConfig() const;
bool tLSConfigIsSet() const;
void unsetTLSConfig();
void setTLSConfig(const std::shared_ptr<O11y_TLSConfig>& value);
/// <summary>
/// Audience optionally specifies the intended audience of the request. If empty, the value of TokenURL is used as the intended audience. Only used if GrantType is set to \&quot;urn:ietf:params:oauth:grant-type:jwt-bearer\&quot;.
/// </summary>
utility::string_t getAudience() const;
bool audienceIsSet() const;
void unsetAudience();
void setAudience(const utility::string_t& value);
/// <summary>
/// Claims is a map of claims to be added to the JWT token. Only used if GrantType is set to \&quot;urn:ietf:params:oauth:grant-type:jwt-bearer\&quot;.
/// </summary>
std::map<utility::string_t, std::shared_ptr<Object>> getClaims() const;
bool claimsIsSet() const;
void unsetClaims();
void setClaims(const std::map<utility::string_t, std::shared_ptr<Object>>& value);
std::shared_ptr<AnyType> getClientCertificateKey() const;
bool clientCertificateKeyIsSet() const;
void unsetClient_certificate_key();
void setClientCertificateKey(const std::shared_ptr<AnyType>& value);
utility::string_t getClientCertificateKeyFile() const;
bool clientCertificateKeyFileIsSet() const;
void unsetClient_certificate_key_file();
void setClientCertificateKeyFile(const utility::string_t& value);
utility::string_t getClientCertificateKeyId() const;
bool clientCertificateKeyIdIsSet() const;
void unsetClient_certificate_key_id();
void setClientCertificateKeyId(const utility::string_t& value);
/// <summary>
/// ClientCertificateKeyRef is the name of the secret within the secret manager to use as the client secret.
/// </summary>
utility::string_t getClientCertificateKeyRef() const;
bool clientCertificateKeyRefIsSet() const;
void unsetClient_certificate_key_ref();
void setClientCertificateKeyRef(const utility::string_t& value);
utility::string_t getClientId() const;
bool clientIdIsSet() const;
void unsetClient_id();
void setClientId(const utility::string_t& value);
std::shared_ptr<AnyType> getClientSecret() const;
bool clientSecretIsSet() const;
void unsetClient_secret();
void setClientSecret(const std::shared_ptr<AnyType>& value);
utility::string_t getClientSecretFile() const;
bool clientSecretFileIsSet() const;
void unsetClient_secret_file();
void setClientSecretFile(const utility::string_t& value);
/// <summary>
/// ClientSecretRef is the name of the secret within the secret manager to use as the client secret.
/// </summary>
utility::string_t getClientSecretRef() const;
bool clientSecretRefIsSet() const;
void unsetClient_secret_ref();
void setClientSecretRef(const utility::string_t& value);
std::map<utility::string_t, utility::string_t> getEndpointParams() const;
bool endpointParamsIsSet() const;
void unsetEndpoint_params();
void setEndpointParams(const std::map<utility::string_t, utility::string_t>& value);
/// <summary>
/// GrantType is the OAuth2 grant type to use. It can be one of \&quot;client_credentials\&quot; or \&quot;urn:ietf:params:oauth:grant-type:jwt-bearer\&quot; (RFC 7523). Default value is \&quot;client_credentials\&quot;
/// </summary>
utility::string_t getGrantType() const;
bool grantTypeIsSet() const;
void unsetGrant_type();
void setGrantType(const utility::string_t& value);
/// <summary>
/// Iss is the OAuth client identifier used when communicating with the configured OAuth provider. Default value is client_id. Only used if GrantType is set to \&quot;urn:ietf:params:oauth:grant-type:jwt-bearer\&quot;.
/// </summary>
utility::string_t getIss() const;
bool issIsSet() const;
void unsetIss();
void setIss(const utility::string_t& value);
utility::string_t getNoProxy() const;
bool noProxyIsSet() const;
void unsetNo_proxy();
void setNoProxy(const utility::string_t& 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);
std::vector<utility::string_t> getScopes() const;
bool scopesIsSet() const;
void unsetScopes();
void setScopes(const std::vector<utility::string_t>& value);
/// <summary>
/// SignatureAlgorithm is the RSA algorithm used to sign JWT token. Only used if GrantType is set to \&quot;urn:ietf:params:oauth:grant-type:jwt-bearer\&quot;. Default value is RS256 and valid values RS256, RS384, RS512
/// </summary>
utility::string_t getSignatureAlgorithm() const;
bool signatureAlgorithmIsSet() const;
void unsetSignature_algorithm();
void setSignatureAlgorithm(const utility::string_t& value);
utility::string_t getTokenUrl() const;
bool tokenUrlIsSet() const;
void unsetToken_url();
void setTokenUrl(const utility::string_t& value);
protected:
std::shared_ptr<O11y_TLSConfig> m_TLSConfig;
bool m_TLSConfigIsSet;
utility::string_t m_Audience;
bool m_AudienceIsSet;
std::map<utility::string_t, std::shared_ptr<Object>> m_Claims;
bool m_ClaimsIsSet;
boost::optional<std::shared_ptr<AnyType>> m_Client_certificate_key;
utility::string_t m_Client_certificate_key_file;
bool m_Client_certificate_key_fileIsSet;
utility::string_t m_Client_certificate_key_id;
bool m_Client_certificate_key_idIsSet;
utility::string_t m_Client_certificate_key_ref;
bool m_Client_certificate_key_refIsSet;
utility::string_t m_Client_id;
bool m_Client_idIsSet;
boost::optional<std::shared_ptr<AnyType>> m_Client_secret;
utility::string_t m_Client_secret_file;
bool m_Client_secret_fileIsSet;
utility::string_t m_Client_secret_ref;
bool m_Client_secret_refIsSet;
std::map<utility::string_t, utility::string_t> m_Endpoint_params;
bool m_Endpoint_paramsIsSet;
utility::string_t m_Grant_type;
bool m_Grant_typeIsSet;
utility::string_t m_Iss;
bool m_IssIsSet;
utility::string_t m_No_proxy;
bool m_No_proxyIsSet;
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::vector<utility::string_t> m_Scopes;
bool m_ScopesIsSet;
utility::string_t m_Signature_algorithm;
bool m_Signature_algorithmIsSet;
utility::string_t m_Token_url;
bool m_Token_urlIsSet;
};
}
}
#endif /* HANZO_MODEL_O11y_OAuth2_H_ */