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.
287 lines
7.3 KiB
C++
287 lines
7.3 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.
|
|
*/
|
|
|
|
/*
|
|
* Node.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Node_H_
|
|
#define HANZO_MODEL_Node_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/RemoteApp.h"
|
|
#include "hanzo/model/Patch.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
#include "hanzo/model/Service.h"
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class Patch;
|
|
class RemoteApp;
|
|
class Service;
|
|
|
|
|
|
class Node
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Node();
|
|
virtual ~Node();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Node members
|
|
|
|
|
|
bool isAutoQuery() const;
|
|
bool autoQueryIsSet() const;
|
|
void unsetAutoQuery();
|
|
void setAutoQuery(bool value);
|
|
|
|
utility::string_t getCategory() const;
|
|
bool categoryIsSet() const;
|
|
void unsetCategory();
|
|
void setCategory(const utility::string_t& value);
|
|
|
|
utility::string_t getCpuSize() const;
|
|
bool cpuSizeIsSet() const;
|
|
void unsetCpuSize();
|
|
void setCpuSize(const utility::string_t& value);
|
|
|
|
utility::string_t getCreatedTime() const;
|
|
bool createdTimeIsSet() const;
|
|
void unsetCreatedTime();
|
|
void setCreatedTime(const utility::string_t& value);
|
|
|
|
utility::string_t getDescription() const;
|
|
bool descriptionIsSet() const;
|
|
void unsetDescription();
|
|
void setDescription(const utility::string_t& value);
|
|
|
|
utility::string_t getDisplayName() const;
|
|
bool displayNameIsSet() const;
|
|
void unsetDisplayName();
|
|
void setDisplayName(const utility::string_t& value);
|
|
|
|
bool isEnableRemoteApp() const;
|
|
bool enableRemoteAppIsSet() const;
|
|
void unsetEnableRemoteApp();
|
|
void setEnableRemoteApp(bool value);
|
|
|
|
bool isIsPermanent() const;
|
|
bool isPermanentIsSet() const;
|
|
void unsetIsPermanent();
|
|
void setIsPermanent(bool value);
|
|
|
|
utility::string_t getLanguage() const;
|
|
bool languageIsSet() const;
|
|
void unsetLanguage();
|
|
void setLanguage(const utility::string_t& value);
|
|
|
|
utility::string_t getMachineName() const;
|
|
bool machineNameIsSet() const;
|
|
void unsetMachineName();
|
|
void setMachineName(const utility::string_t& value);
|
|
|
|
utility::string_t getMemSize() const;
|
|
bool memSizeIsSet() const;
|
|
void unsetMemSize();
|
|
void setMemSize(const utility::string_t& value);
|
|
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
utility::string_t getOs() const;
|
|
bool osIsSet() const;
|
|
void unsetOs();
|
|
void setOs(const utility::string_t& value);
|
|
|
|
utility::string_t getOwner() const;
|
|
bool ownerIsSet() const;
|
|
void unsetOwner();
|
|
void setOwner(const utility::string_t& value);
|
|
|
|
std::vector<std::shared_ptr<Patch>> getPatches() const;
|
|
bool patchesIsSet() const;
|
|
void unsetPatches();
|
|
void setPatches(const std::vector<std::shared_ptr<Patch>>& value);
|
|
|
|
utility::string_t getPrivateIp() const;
|
|
bool privateIpIsSet() const;
|
|
void unsetPrivateIp();
|
|
void setPrivateIp(const utility::string_t& value);
|
|
|
|
utility::string_t getPublicIp() const;
|
|
bool publicIpIsSet() const;
|
|
void unsetPublicIp();
|
|
void setPublicIp(const utility::string_t& value);
|
|
|
|
std::vector<std::shared_ptr<RemoteApp>> getRemoteApps() const;
|
|
bool remoteAppsIsSet() const;
|
|
void unsetRemoteApps();
|
|
void setRemoteApps(const std::vector<std::shared_ptr<RemoteApp>>& value);
|
|
|
|
utility::string_t getRemotePassword() const;
|
|
bool remotePasswordIsSet() const;
|
|
void unsetRemotePassword();
|
|
void setRemotePassword(const utility::string_t& value);
|
|
|
|
int32_t getRemotePort() const;
|
|
bool remotePortIsSet() const;
|
|
void unsetRemotePort();
|
|
void setRemotePort(int32_t value);
|
|
|
|
utility::string_t getRemoteProtocol() const;
|
|
bool remoteProtocolIsSet() const;
|
|
void unsetRemoteProtocol();
|
|
void setRemoteProtocol(const utility::string_t& value);
|
|
|
|
utility::string_t getRemoteUsername() const;
|
|
bool remoteUsernameIsSet() const;
|
|
void unsetRemoteUsername();
|
|
void setRemoteUsername(const utility::string_t& value);
|
|
|
|
std::vector<std::shared_ptr<Service>> getServices() const;
|
|
bool servicesIsSet() const;
|
|
void unsetServices();
|
|
void setServices(const std::vector<std::shared_ptr<Service>>& value);
|
|
|
|
utility::string_t getSize() const;
|
|
bool sizeIsSet() const;
|
|
void unsetSize();
|
|
void setSize(const utility::string_t& value);
|
|
|
|
utility::string_t getTag() const;
|
|
bool tagIsSet() const;
|
|
void unsetTag();
|
|
void setTag(const utility::string_t& value);
|
|
|
|
utility::string_t getType() const;
|
|
bool typeIsSet() const;
|
|
void unsetType();
|
|
void setType(const utility::string_t& value);
|
|
|
|
utility::string_t getUpdatedTime() const;
|
|
bool updatedTimeIsSet() const;
|
|
void unsetUpdatedTime();
|
|
void setUpdatedTime(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
bool m_AutoQuery;
|
|
bool m_AutoQueryIsSet;
|
|
|
|
utility::string_t m_Category;
|
|
bool m_CategoryIsSet;
|
|
|
|
utility::string_t m_CpuSize;
|
|
bool m_CpuSizeIsSet;
|
|
|
|
utility::string_t m_CreatedTime;
|
|
bool m_CreatedTimeIsSet;
|
|
|
|
utility::string_t m_Description;
|
|
bool m_DescriptionIsSet;
|
|
|
|
utility::string_t m_DisplayName;
|
|
bool m_DisplayNameIsSet;
|
|
|
|
bool m_EnableRemoteApp;
|
|
bool m_EnableRemoteAppIsSet;
|
|
|
|
bool m_IsPermanent;
|
|
bool m_IsPermanentIsSet;
|
|
|
|
utility::string_t m_Language;
|
|
bool m_LanguageIsSet;
|
|
|
|
utility::string_t m_MachineName;
|
|
bool m_MachineNameIsSet;
|
|
|
|
utility::string_t m_MemSize;
|
|
bool m_MemSizeIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
utility::string_t m_Os;
|
|
bool m_OsIsSet;
|
|
|
|
utility::string_t m_Owner;
|
|
bool m_OwnerIsSet;
|
|
|
|
std::vector<std::shared_ptr<Patch>> m_Patches;
|
|
bool m_PatchesIsSet;
|
|
|
|
utility::string_t m_PrivateIp;
|
|
bool m_PrivateIpIsSet;
|
|
|
|
utility::string_t m_PublicIp;
|
|
bool m_PublicIpIsSet;
|
|
|
|
std::vector<std::shared_ptr<RemoteApp>> m_RemoteApps;
|
|
bool m_RemoteAppsIsSet;
|
|
|
|
utility::string_t m_RemotePassword;
|
|
bool m_RemotePasswordIsSet;
|
|
|
|
int32_t m_RemotePort;
|
|
bool m_RemotePortIsSet;
|
|
|
|
utility::string_t m_RemoteProtocol;
|
|
bool m_RemoteProtocolIsSet;
|
|
|
|
utility::string_t m_RemoteUsername;
|
|
bool m_RemoteUsernameIsSet;
|
|
|
|
std::vector<std::shared_ptr<Service>> m_Services;
|
|
bool m_ServicesIsSet;
|
|
|
|
utility::string_t m_Size;
|
|
bool m_SizeIsSet;
|
|
|
|
utility::string_t m_Tag;
|
|
bool m_TagIsSet;
|
|
|
|
utility::string_t m_Type;
|
|
bool m_TypeIsSet;
|
|
|
|
utility::string_t m_UpdatedTime;
|
|
bool m_UpdatedTimeIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Node_H_ */
|