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.
406 lines
10 KiB
C++
406 lines
10 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.
|
|
*/
|
|
|
|
/*
|
|
* Video.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Video_H_
|
|
#define HANZO_MODEL_Video_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/Label.h"
|
|
#include "hanzo/model/Remark.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class Label;
|
|
class Remark;
|
|
|
|
|
|
class Video
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Video();
|
|
virtual ~Video();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Video members
|
|
|
|
|
|
utility::string_t getAudioUrl() const;
|
|
bool audioUrlIsSet() const;
|
|
void unsetAudioUrl();
|
|
void setAudioUrl(const utility::string_t& value);
|
|
|
|
utility::string_t getRClass() const;
|
|
bool rClassIsSet() const;
|
|
void unsetr_class();
|
|
void setRClass(const utility::string_t& value);
|
|
|
|
utility::string_t getCoverUrl() const;
|
|
bool coverUrlIsSet() const;
|
|
void unsetCoverUrl();
|
|
void setCoverUrl(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 getDataUrl() const;
|
|
bool dataUrlIsSet() const;
|
|
void unsetDataUrl();
|
|
void setDataUrl(const utility::string_t& value);
|
|
|
|
std::vector<utility::string_t> getDataUrls() const;
|
|
bool dataUrlsIsSet() const;
|
|
void unsetDataUrls();
|
|
void setDataUrls(const std::vector<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);
|
|
|
|
utility::string_t getDownloadUrl() const;
|
|
bool downloadUrlIsSet() const;
|
|
void unsetDownloadUrl();
|
|
void setDownloadUrl(const utility::string_t& value);
|
|
|
|
utility::string_t getEditMode() const;
|
|
bool editModeIsSet() const;
|
|
void unsetEditMode();
|
|
void setEditMode(const utility::string_t& value);
|
|
|
|
int32_t getExcellentCount() const;
|
|
bool excellentCountIsSet() const;
|
|
void unsetExcellentCount();
|
|
void setExcellentCount(int32_t value);
|
|
|
|
utility::string_t getGrade() const;
|
|
bool gradeIsSet() const;
|
|
void unsetGrade();
|
|
void setGrade(const utility::string_t& value);
|
|
|
|
utility::string_t getGrade2() const;
|
|
bool grade2IsSet() const;
|
|
void unsetGrade2();
|
|
void setGrade2(const utility::string_t& value);
|
|
|
|
bool isIsPublic() const;
|
|
bool isPublicIsSet() const;
|
|
void unsetIsPublic();
|
|
void setIsPublic(bool value);
|
|
|
|
std::vector<utility::string_t> getKeywords() const;
|
|
bool keywordsIsSet() const;
|
|
void unsetKeywords();
|
|
void setKeywords(const std::vector<utility::string_t>& value);
|
|
|
|
int32_t getLabelCount() const;
|
|
bool labelCountIsSet() const;
|
|
void unsetLabelCount();
|
|
void setLabelCount(int32_t value);
|
|
|
|
std::vector<std::shared_ptr<Label>> getLabels() const;
|
|
bool labelsIsSet() const;
|
|
void unsetLabels();
|
|
void setLabels(const std::vector<std::shared_ptr<Label>>& value);
|
|
|
|
utility::string_t getLesson() const;
|
|
bool lessonIsSet() const;
|
|
void unsetLesson();
|
|
void setLesson(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 getOwner() const;
|
|
bool ownerIsSet() const;
|
|
void unsetOwner();
|
|
void setOwner(const utility::string_t& value);
|
|
|
|
utility::string_t getPlayAuth() const;
|
|
bool playAuthIsSet() const;
|
|
void unsetPlayAuth();
|
|
void setPlayAuth(const utility::string_t& value);
|
|
|
|
std::vector<std::shared_ptr<Remark>> getRemarks() const;
|
|
bool remarksIsSet() const;
|
|
void unsetRemarks();
|
|
void setRemarks(const std::vector<std::shared_ptr<Remark>>& value);
|
|
|
|
std::vector<std::shared_ptr<Remark>> getRemarks2() const;
|
|
bool remarks2IsSet() const;
|
|
void unsetRemarks2();
|
|
void setRemarks2(const std::vector<std::shared_ptr<Remark>>& value);
|
|
|
|
utility::string_t getReviewState() const;
|
|
bool reviewStateIsSet() const;
|
|
void unsetReviewState();
|
|
void setReviewState(const utility::string_t& value);
|
|
|
|
utility::string_t getSchool() const;
|
|
bool schoolIsSet() const;
|
|
void unsetSchool();
|
|
void setSchool(const utility::string_t& value);
|
|
|
|
int32_t getSegmentCount() const;
|
|
bool segmentCountIsSet() const;
|
|
void unsetSegmentCount();
|
|
void setSegmentCount(int32_t value);
|
|
|
|
std::vector<std::shared_ptr<Label>> getSegments() const;
|
|
bool segmentsIsSet() const;
|
|
void unsetSegments();
|
|
void setSegments(const std::vector<std::shared_ptr<Label>>& value);
|
|
|
|
utility::string_t getStage() const;
|
|
bool stageIsSet() const;
|
|
void unsetStage();
|
|
void setStage(const utility::string_t& value);
|
|
|
|
utility::string_t getState() const;
|
|
bool stateIsSet() const;
|
|
void unsetState();
|
|
void setState(const utility::string_t& value);
|
|
|
|
utility::string_t getSubject() const;
|
|
bool subjectIsSet() const;
|
|
void unsetSubject();
|
|
void setSubject(const utility::string_t& value);
|
|
|
|
utility::string_t getTag() const;
|
|
bool tagIsSet() const;
|
|
void unsetTag();
|
|
void setTag(const utility::string_t& value);
|
|
|
|
bool isTagOnPause() const;
|
|
bool tagOnPauseIsSet() const;
|
|
void unsetTagOnPause();
|
|
void setTagOnPause(bool value);
|
|
|
|
utility::string_t getTask1() const;
|
|
bool task1IsSet() const;
|
|
void unsetTask1();
|
|
void setTask1(const utility::string_t& value);
|
|
|
|
utility::string_t getTask2() const;
|
|
bool task2IsSet() const;
|
|
void unsetTask2();
|
|
void setTask2(const utility::string_t& value);
|
|
|
|
utility::string_t getTask3() const;
|
|
bool task3IsSet() const;
|
|
void unsetTask3();
|
|
void setTask3(const utility::string_t& value);
|
|
|
|
utility::string_t getRTemplate() const;
|
|
bool rTemplateIsSet() const;
|
|
void unsetr_template();
|
|
void setRTemplate(const utility::string_t& value);
|
|
|
|
utility::string_t getTopic() const;
|
|
bool topicIsSet() const;
|
|
void unsetTopic();
|
|
void setTopic(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 getUnit() const;
|
|
bool unitIsSet() const;
|
|
void unsetUnit();
|
|
void setUnit(const utility::string_t& value);
|
|
|
|
utility::string_t getVideoId() const;
|
|
bool videoIdIsSet() const;
|
|
void unsetVideoId();
|
|
void setVideoId(const utility::string_t& value);
|
|
|
|
utility::string_t getVideoLength() const;
|
|
bool videoLengthIsSet() const;
|
|
void unsetVideoLength();
|
|
void setVideoLength(const utility::string_t& value);
|
|
|
|
std::map<utility::string_t, int32_t> getWordCountMap() const;
|
|
bool wordCountMapIsSet() const;
|
|
void unsetWordCountMap();
|
|
void setWordCountMap(std::map<utility::string_t, int32_t> value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_AudioUrl;
|
|
bool m_AudioUrlIsSet;
|
|
|
|
utility::string_t m_r_class;
|
|
bool m_r_classIsSet;
|
|
|
|
utility::string_t m_CoverUrl;
|
|
bool m_CoverUrlIsSet;
|
|
|
|
utility::string_t m_CreatedTime;
|
|
bool m_CreatedTimeIsSet;
|
|
|
|
utility::string_t m_DataUrl;
|
|
bool m_DataUrlIsSet;
|
|
|
|
std::vector<utility::string_t> m_DataUrls;
|
|
bool m_DataUrlsIsSet;
|
|
|
|
utility::string_t m_Description;
|
|
bool m_DescriptionIsSet;
|
|
|
|
utility::string_t m_DisplayName;
|
|
bool m_DisplayNameIsSet;
|
|
|
|
utility::string_t m_DownloadUrl;
|
|
bool m_DownloadUrlIsSet;
|
|
|
|
utility::string_t m_EditMode;
|
|
bool m_EditModeIsSet;
|
|
|
|
int32_t m_ExcellentCount;
|
|
bool m_ExcellentCountIsSet;
|
|
|
|
utility::string_t m_Grade;
|
|
bool m_GradeIsSet;
|
|
|
|
utility::string_t m_Grade2;
|
|
bool m_Grade2IsSet;
|
|
|
|
bool m_IsPublic;
|
|
bool m_IsPublicIsSet;
|
|
|
|
std::vector<utility::string_t> m_Keywords;
|
|
bool m_KeywordsIsSet;
|
|
|
|
int32_t m_LabelCount;
|
|
bool m_LabelCountIsSet;
|
|
|
|
std::vector<std::shared_ptr<Label>> m_Labels;
|
|
bool m_LabelsIsSet;
|
|
|
|
utility::string_t m_Lesson;
|
|
bool m_LessonIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
utility::string_t m_Owner;
|
|
bool m_OwnerIsSet;
|
|
|
|
utility::string_t m_PlayAuth;
|
|
bool m_PlayAuthIsSet;
|
|
|
|
std::vector<std::shared_ptr<Remark>> m_Remarks;
|
|
bool m_RemarksIsSet;
|
|
|
|
std::vector<std::shared_ptr<Remark>> m_Remarks2;
|
|
bool m_Remarks2IsSet;
|
|
|
|
utility::string_t m_ReviewState;
|
|
bool m_ReviewStateIsSet;
|
|
|
|
utility::string_t m_School;
|
|
bool m_SchoolIsSet;
|
|
|
|
int32_t m_SegmentCount;
|
|
bool m_SegmentCountIsSet;
|
|
|
|
std::vector<std::shared_ptr<Label>> m_Segments;
|
|
bool m_SegmentsIsSet;
|
|
|
|
utility::string_t m_Stage;
|
|
bool m_StageIsSet;
|
|
|
|
utility::string_t m_State;
|
|
bool m_StateIsSet;
|
|
|
|
utility::string_t m_Subject;
|
|
bool m_SubjectIsSet;
|
|
|
|
utility::string_t m_Tag;
|
|
bool m_TagIsSet;
|
|
|
|
bool m_TagOnPause;
|
|
bool m_TagOnPauseIsSet;
|
|
|
|
utility::string_t m_Task1;
|
|
bool m_Task1IsSet;
|
|
|
|
utility::string_t m_Task2;
|
|
bool m_Task2IsSet;
|
|
|
|
utility::string_t m_Task3;
|
|
bool m_Task3IsSet;
|
|
|
|
utility::string_t m_r_template;
|
|
bool m_r_templateIsSet;
|
|
|
|
utility::string_t m_Topic;
|
|
bool m_TopicIsSet;
|
|
|
|
utility::string_t m_Type;
|
|
bool m_TypeIsSet;
|
|
|
|
utility::string_t m_Unit;
|
|
bool m_UnitIsSet;
|
|
|
|
utility::string_t m_VideoId;
|
|
bool m_VideoIdIsSet;
|
|
|
|
utility::string_t m_VideoLength;
|
|
bool m_VideoLengthIsSet;
|
|
|
|
std::map<utility::string_t, int32_t> m_WordCountMap;
|
|
bool m_WordCountMapIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Video_H_ */
|