Files
zeekay 189ce08e51 Regenerate against the document the deployment answers for
The projection these were generated from was a month old and predated the
compute migration, so every one of them described /v1/visor — which the API
serves at zero paths now. That is why a hand-written console client and a
generated one had drifted the same way at the same time.

No /v1/visor path survives here. The word still appears as a source-plane
value and inside gvisor and supervisor, which are not this rename.
2026-09-05 18:07:13 -07:00

166 lines
4.9 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.
*/
/*
* PromptDetail.h
*
*
*/
#ifndef HANZO_MODEL_PromptDetail_H_
#define HANZO_MODEL_PromptDetail_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
#include "hanzo/model/VersionView.h"
#include <vector>
namespace hanzo {
namespace model {
class VersionView;
class PromptDetail
: public ModelBase
{
public:
PromptDetail();
virtual ~PromptDetail();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// PromptDetail members
/// <summary>
/// CreatedAt is when version 1 was written, RFC 3339 UTC. Appending a version does not move it.
/// </summary>
utility::string_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreatedAt();
void setCreatedAt(const utility::string_t& value);
/// <summary>
/// Labels is the current version&#39;s free-form taxonomy. &#x60;[]&#x60; when none, never null.
/// </summary>
std::vector<utility::string_t> getLabels() const;
bool labelsIsSet() const;
void unsetLabels();
void setLabels(const std::vector<utility::string_t>& value);
/// <summary>
/// UpdatedAt is when the current version was appended, RFC 3339 UTC. Equal to createdAt for a prompt that has only ever had one version.
/// </summary>
utility::string_t getLastUpdatedAt() const;
bool lastUpdatedAtIsSet() const;
void unsetLastUpdatedAt();
void setLastUpdatedAt(const utility::string_t& value);
/// <summary>
/// Name is the prompt&#39;s org-unique handle and the URL segment it is addressed by.
/// </summary>
utility::string_t getName() const;
bool nameIsSet() const;
void unsetName();
void setName(const utility::string_t& value);
/// <summary>
/// Prompt is the CURRENT version&#39;s template body — the only content this service returns. Earlier versions are listed in versionHistory by number and date, and their bodies are not served in bulk.
/// </summary>
utility::string_t getPrompt() const;
bool promptIsSet() const;
void unsetPrompt();
void setPrompt(const utility::string_t& value);
/// <summary>
/// Tags is the second free-form taxonomy, same rules as Labels.
/// </summary>
std::vector<utility::string_t> getTags() const;
bool tagsIsSet() const;
void unsetTags();
void setTags(const std::vector<utility::string_t>& value);
/// <summary>
/// Type labels the current version&#39;s kind; \&quot;text\&quot; unless the creator said otherwise.
/// </summary>
utility::string_t getType() const;
bool typeIsSet() const;
void unsetType();
void setType(const utility::string_t& value);
/// <summary>
/// Version is the current version number, starting at 1 and incremented by one on every create against an existing name.
/// </summary>
int64_t getVersion() const;
bool versionIsSet() const;
void unsetVersion();
void setVersion(int64_t value);
/// <summary>
/// Versions is the history METADATA, newest first, capped at the last 100 — no bodies, so a long history cannot inflate this response. It always includes the current version as its first entry.
/// </summary>
std::vector<std::shared_ptr<VersionView>> getVersionHistory() const;
bool versionHistoryIsSet() const;
void unsetVersionHistory();
void setVersionHistory(const std::vector<std::shared_ptr<VersionView>>& value);
protected:
utility::string_t m_CreatedAt;
bool m_CreatedAtIsSet;
std::vector<utility::string_t> m_Labels;
bool m_LabelsIsSet;
utility::string_t m_LastUpdatedAt;
bool m_LastUpdatedAtIsSet;
utility::string_t m_Name;
bool m_NameIsSet;
utility::string_t m_Prompt;
bool m_PromptIsSet;
std::vector<utility::string_t> m_Tags;
bool m_TagsIsSet;
utility::string_t m_Type;
bool m_TypeIsSet;
int64_t m_Version;
bool m_VersionIsSet;
std::vector<std::shared_ptr<VersionView>> m_VersionHistory;
bool m_VersionHistoryIsSet;
};
}
}
#endif /* HANZO_MODEL_PromptDetail_H_ */