mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
288 of hanzoai/ai's 294 operations now declare a response, against 1 before. GET /v1/models, POST /v1/chat/completions, /v1/embeddings, /v1/messages — every address a client actually calls — used to reach this client untyped, because cloud's relay carried an operation's sentence and dropped the shapes it named. It carries both now. Fleet-wide the document goes from 69% to 81% of operations declaring what comes back, which is where the ~208 new models here come from.
312 lines
7.6 KiB
C++
312 lines
7.6 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.
|
|
*/
|
|
|
|
/*
|
|
* Audit.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Audit_H_
|
|
#define HANZO_MODEL_Audit_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class Audit
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Audit();
|
|
virtual ~Audit();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Audit members
|
|
|
|
|
|
utility::string_t getAction() const;
|
|
bool actionIsSet() const;
|
|
void unsetAction();
|
|
void setAction(const utility::string_t& value);
|
|
|
|
utility::string_t getBlock() const;
|
|
bool blockIsSet() const;
|
|
void unsetBlock();
|
|
void setBlock(const utility::string_t& value);
|
|
|
|
utility::string_t getBlock2() const;
|
|
bool block2IsSet() const;
|
|
void unsetBlock2();
|
|
void setBlock2(const utility::string_t& value);
|
|
|
|
utility::string_t getBlockHash() const;
|
|
bool blockHashIsSet() const;
|
|
void unsetBlockHash();
|
|
void setBlockHash(const utility::string_t& value);
|
|
|
|
utility::string_t getBlockHash2() const;
|
|
bool blockHash2IsSet() const;
|
|
void unsetBlockHash2();
|
|
void setBlockHash2(const utility::string_t& value);
|
|
|
|
utility::string_t getCity() const;
|
|
bool cityIsSet() const;
|
|
void unsetCity();
|
|
void setCity(const utility::string_t& value);
|
|
|
|
utility::string_t getClientIp() const;
|
|
bool clientIpIsSet() const;
|
|
void unsetClientIp();
|
|
void setClientIp(const utility::string_t& value);
|
|
|
|
int32_t getCount() const;
|
|
bool countIsSet() const;
|
|
void unsetCount();
|
|
void setCount(int32_t value);
|
|
|
|
utility::string_t getCreatedTime() const;
|
|
bool createdTimeIsSet() const;
|
|
void unsetCreatedTime();
|
|
void setCreatedTime(const utility::string_t& value);
|
|
|
|
utility::string_t getErrorText() const;
|
|
bool errorTextIsSet() const;
|
|
void unsetErrorText();
|
|
void setErrorText(const utility::string_t& value);
|
|
|
|
int32_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(int32_t value);
|
|
|
|
bool isIsTriggered() const;
|
|
bool isTriggeredIsSet() const;
|
|
void unsetIsTriggered();
|
|
void setIsTriggered(bool value);
|
|
|
|
utility::string_t getLanguage() const;
|
|
bool languageIsSet() const;
|
|
void unsetLanguage();
|
|
void setLanguage(const utility::string_t& value);
|
|
|
|
utility::string_t getMethod() const;
|
|
bool methodIsSet() const;
|
|
void unsetMethod();
|
|
void setMethod(const utility::string_t& value);
|
|
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
bool isNeedCommit() const;
|
|
bool needCommitIsSet() const;
|
|
void unsetNeedCommit();
|
|
void setNeedCommit(bool value);
|
|
|
|
utility::string_t getObject() const;
|
|
bool objectIsSet() const;
|
|
void unsetobject();
|
|
void setObject(const utility::string_t& value);
|
|
|
|
utility::string_t getOrganization() const;
|
|
bool organizationIsSet() const;
|
|
void unsetOrganization();
|
|
void setOrganization(const utility::string_t& value);
|
|
|
|
utility::string_t getOwner() const;
|
|
bool ownerIsSet() const;
|
|
void unsetOwner();
|
|
void setOwner(const utility::string_t& value);
|
|
|
|
utility::string_t getProvider() const;
|
|
bool providerIsSet() const;
|
|
void unsetProvider();
|
|
void setProvider(const utility::string_t& value);
|
|
|
|
utility::string_t getProvider2() const;
|
|
bool provider2IsSet() const;
|
|
void unsetProvider2();
|
|
void setProvider2(const utility::string_t& value);
|
|
|
|
utility::string_t getQuery() const;
|
|
bool queryIsSet() const;
|
|
void unsetQuery();
|
|
void setQuery(const utility::string_t& value);
|
|
|
|
utility::string_t getRegion() const;
|
|
bool regionIsSet() const;
|
|
void unsetRegion();
|
|
void setRegion(const utility::string_t& value);
|
|
|
|
utility::string_t getRequestUri() const;
|
|
bool requestUriIsSet() const;
|
|
void unsetRequestUri();
|
|
void setRequestUri(const utility::string_t& value);
|
|
|
|
utility::string_t getResponse() const;
|
|
bool responseIsSet() const;
|
|
void unsetResponse();
|
|
void setResponse(const utility::string_t& value);
|
|
|
|
utility::string_t getSection() const;
|
|
bool sectionIsSet() const;
|
|
void unsetSection();
|
|
void setSection(const utility::string_t& value);
|
|
|
|
utility::string_t getTransaction() const;
|
|
bool transactionIsSet() const;
|
|
void unsetTransaction();
|
|
void setTransaction(const utility::string_t& value);
|
|
|
|
utility::string_t getTransaction2() const;
|
|
bool transaction2IsSet() const;
|
|
void unsetTransaction2();
|
|
void setTransaction2(const utility::string_t& value);
|
|
|
|
utility::string_t getUnit() const;
|
|
bool unitIsSet() const;
|
|
void unsetUnit();
|
|
void setUnit(const utility::string_t& value);
|
|
|
|
utility::string_t getUser() const;
|
|
bool userIsSet() const;
|
|
void unsetUser();
|
|
void setUser(const utility::string_t& value);
|
|
|
|
utility::string_t getUserAgent() const;
|
|
bool userAgentIsSet() const;
|
|
void unsetUserAgent();
|
|
void setUserAgent(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Action;
|
|
bool m_ActionIsSet;
|
|
|
|
utility::string_t m_Block;
|
|
bool m_BlockIsSet;
|
|
|
|
utility::string_t m_Block2;
|
|
bool m_Block2IsSet;
|
|
|
|
utility::string_t m_BlockHash;
|
|
bool m_BlockHashIsSet;
|
|
|
|
utility::string_t m_BlockHash2;
|
|
bool m_BlockHash2IsSet;
|
|
|
|
utility::string_t m_City;
|
|
bool m_CityIsSet;
|
|
|
|
utility::string_t m_ClientIp;
|
|
bool m_ClientIpIsSet;
|
|
|
|
int32_t m_Count;
|
|
bool m_CountIsSet;
|
|
|
|
utility::string_t m_CreatedTime;
|
|
bool m_CreatedTimeIsSet;
|
|
|
|
utility::string_t m_ErrorText;
|
|
bool m_ErrorTextIsSet;
|
|
|
|
int32_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
bool m_IsTriggered;
|
|
bool m_IsTriggeredIsSet;
|
|
|
|
utility::string_t m_Language;
|
|
bool m_LanguageIsSet;
|
|
|
|
utility::string_t m_Method;
|
|
bool m_MethodIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
bool m_NeedCommit;
|
|
bool m_NeedCommitIsSet;
|
|
|
|
utility::string_t m_object;
|
|
bool m_objectIsSet;
|
|
|
|
utility::string_t m_Organization;
|
|
bool m_OrganizationIsSet;
|
|
|
|
utility::string_t m_Owner;
|
|
bool m_OwnerIsSet;
|
|
|
|
utility::string_t m_Provider;
|
|
bool m_ProviderIsSet;
|
|
|
|
utility::string_t m_Provider2;
|
|
bool m_Provider2IsSet;
|
|
|
|
utility::string_t m_Query;
|
|
bool m_QueryIsSet;
|
|
|
|
utility::string_t m_Region;
|
|
bool m_RegionIsSet;
|
|
|
|
utility::string_t m_RequestUri;
|
|
bool m_RequestUriIsSet;
|
|
|
|
utility::string_t m_Response;
|
|
bool m_ResponseIsSet;
|
|
|
|
utility::string_t m_Section;
|
|
bool m_SectionIsSet;
|
|
|
|
utility::string_t m_Transaction;
|
|
bool m_TransactionIsSet;
|
|
|
|
utility::string_t m_Transaction2;
|
|
bool m_Transaction2IsSet;
|
|
|
|
utility::string_t m_Unit;
|
|
bool m_UnitIsSet;
|
|
|
|
utility::string_t m_User;
|
|
bool m_UserIsSet;
|
|
|
|
utility::string_t m_UserAgent;
|
|
bool m_UserAgentIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Audit_H_ */
|