mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
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.
152 lines
4.2 KiB
C++
152 lines
4.2 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.
|
|
*/
|
|
|
|
/*
|
|
* MemoryEntry.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_MemoryEntry_H_
|
|
#define HANZO_MODEL_MemoryEntry_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class MemoryEntry
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
MemoryEntry();
|
|
virtual ~MemoryEntry();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// MemoryEntry members
|
|
|
|
|
|
/// <summary>
|
|
/// Actor is the validated user id that last wrote this entry by hand. Empty on an entry an engine produced, and on one written before attribution existed.
|
|
/// </summary>
|
|
utility::string_t getActor() const;
|
|
bool actorIsSet() const;
|
|
void unsetActor();
|
|
void setActor(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Glossary is the glossary VERSION the entry was translated under — the digest version() derives from the terms, so changing a term changes the key and the stale rendering can never be served.
|
|
/// </summary>
|
|
utility::string_t getGlossaryVersion() const;
|
|
bool glossaryVersionIsSet() const;
|
|
void unsetGlossary_version();
|
|
void setGlossaryVersion(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Source is the ORIGINAL string this entry translates. Part of the identity.
|
|
/// </summary>
|
|
utility::string_t getSource() const;
|
|
bool sourceIsSet() const;
|
|
void unsetSource();
|
|
void setSource(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// State is the entry's position on the review ladder: machine, suggested, approved or published.
|
|
/// </summary>
|
|
utility::string_t getState() const;
|
|
bool stateIsSet() const;
|
|
void unsetState();
|
|
void setState(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Target is the target language tag (BCP-47, e.g. \"es\" or \"pt-BR\"). Part of the identity.
|
|
/// </summary>
|
|
utility::string_t getTarget() const;
|
|
bool targetIsSet() const;
|
|
void unsetTarget();
|
|
void setTarget(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Text is the stored translation. A memory hit returns it verbatim, which is the idempotence contract.
|
|
/// </summary>
|
|
utility::string_t getText() const;
|
|
bool textIsSet() const;
|
|
void unsetText();
|
|
void setText(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Tier is the engine tier the entry belongs to, quality or bulk. Part of the identity: the two tiers keep separate renderings of the same source.
|
|
/// </summary>
|
|
utility::string_t getTier() const;
|
|
bool tierIsSet() const;
|
|
void unsetTier();
|
|
void setTier(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// UpdatedAt is the unix second the entry last changed.
|
|
/// </summary>
|
|
int64_t getUpdatedAt() const;
|
|
bool updatedAtIsSet() const;
|
|
void unsetUpdated_at();
|
|
void setUpdatedAt(int64_t value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Actor;
|
|
bool m_ActorIsSet;
|
|
|
|
utility::string_t m_Glossary_version;
|
|
bool m_Glossary_versionIsSet;
|
|
|
|
utility::string_t m_Source;
|
|
bool m_SourceIsSet;
|
|
|
|
utility::string_t m_State;
|
|
bool m_StateIsSet;
|
|
|
|
utility::string_t m_Target;
|
|
bool m_TargetIsSet;
|
|
|
|
utility::string_t m_Text;
|
|
bool m_TextIsSet;
|
|
|
|
utility::string_t m_Tier;
|
|
bool m_TierIsSet;
|
|
|
|
int64_t m_Updated_at;
|
|
bool m_Updated_atIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_MemoryEntry_H_ */
|