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.
140 lines
4.7 KiB
C++
140 lines
4.7 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.
|
|
*/
|
|
|
|
/*
|
|
* PagesDeploymentConfig.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_PagesDeploymentConfig_H_
|
|
#define HANZO_MODEL_PagesDeploymentConfig_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/PagesKVBinding.h"
|
|
#include "hanzo/model/PagesD1Binding.h"
|
|
#include "hanzo/model/PagesR2Binding.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <map>
|
|
#include <vector>
|
|
#include "hanzo/model/PagesEnvVar.h"
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class PagesD1Binding;
|
|
class PagesEnvVar;
|
|
class PagesKVBinding;
|
|
class PagesR2Binding;
|
|
|
|
|
|
class PagesDeploymentConfig
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
PagesDeploymentConfig();
|
|
virtual ~PagesDeploymentConfig();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// PagesDeploymentConfig members
|
|
|
|
|
|
/// <summary>
|
|
/// CompatibilityDate pins which Workers runtime behaviour the functions run under, as a date (\"2024-01-01\"). It is a pin, not a version: the runtime keeps that date's semantics for code deployed against it.
|
|
/// </summary>
|
|
utility::string_t getCompatibilityDate() const;
|
|
bool compatibilityDateIsSet() const;
|
|
void unsetCompatibility_date();
|
|
void setCompatibilityDate(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// CompatibilityFlags turn individual runtime behaviours on or off ahead of, or behind, the date above (\"nodejs_compat\").
|
|
/// </summary>
|
|
std::vector<utility::string_t> getCompatibilityFlags() const;
|
|
bool compatibilityFlagsIsSet() const;
|
|
void unsetCompatibility_flags();
|
|
void setCompatibilityFlags(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// D1Databases binds D1 databases in, keyed by binding name.
|
|
/// </summary>
|
|
std::map<utility::string_t, std::shared_ptr<PagesD1Binding>> getD1Databases() const;
|
|
bool d1DatabasesIsSet() const;
|
|
void unsetD1_databases();
|
|
void setD1Databases(const std::map<utility::string_t, std::shared_ptr<PagesD1Binding>>& value);
|
|
|
|
/// <summary>
|
|
/// EnvVars are the environment variables the functions see, KEYED BY VARIABLE NAME. The key is the name; the value carries the value and whether it is a secret.
|
|
/// </summary>
|
|
std::map<utility::string_t, std::shared_ptr<PagesEnvVar>> getEnvVars() const;
|
|
bool envVarsIsSet() const;
|
|
void unsetEnv_vars();
|
|
void setEnvVars(const std::map<utility::string_t, std::shared_ptr<PagesEnvVar>>& value);
|
|
|
|
/// <summary>
|
|
/// KVNamespaces binds KV namespaces into the functions, KEYED BY THE BINDING NAME the code reads (`env.SESSIONS`). Same shape for the two below.
|
|
/// </summary>
|
|
std::map<utility::string_t, std::shared_ptr<PagesKVBinding>> getKvNamespaces() const;
|
|
bool kvNamespacesIsSet() const;
|
|
void unsetKv_namespaces();
|
|
void setKvNamespaces(const std::map<utility::string_t, std::shared_ptr<PagesKVBinding>>& value);
|
|
|
|
/// <summary>
|
|
/// R2Buckets binds R2 buckets in, keyed by binding name.
|
|
/// </summary>
|
|
std::map<utility::string_t, std::shared_ptr<PagesR2Binding>> getR2Buckets() const;
|
|
bool r2BucketsIsSet() const;
|
|
void unsetR2_buckets();
|
|
void setR2Buckets(const std::map<utility::string_t, std::shared_ptr<PagesR2Binding>>& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Compatibility_date;
|
|
bool m_Compatibility_dateIsSet;
|
|
|
|
std::vector<utility::string_t> m_Compatibility_flags;
|
|
bool m_Compatibility_flagsIsSet;
|
|
|
|
std::map<utility::string_t, std::shared_ptr<PagesD1Binding>> m_D1_databases;
|
|
bool m_D1_databasesIsSet;
|
|
|
|
std::map<utility::string_t, std::shared_ptr<PagesEnvVar>> m_Env_vars;
|
|
bool m_Env_varsIsSet;
|
|
|
|
std::map<utility::string_t, std::shared_ptr<PagesKVBinding>> m_Kv_namespaces;
|
|
bool m_Kv_namespacesIsSet;
|
|
|
|
std::map<utility::string_t, std::shared_ptr<PagesR2Binding>> m_R2_buckets;
|
|
bool m_R2_bucketsIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_PagesDeploymentConfig_H_ */
|