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.
186 lines
4.8 KiB
C++
186 lines
4.8 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.
|
|
*/
|
|
|
|
/*
|
|
* TaxonIn.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_TaxonIn_H_
|
|
#define HANZO_MODEL_TaxonIn_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class TaxonIn
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
TaxonIn();
|
|
virtual ~TaxonIn();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// TaxonIn members
|
|
|
|
|
|
/// <summary>
|
|
/// Brands are the brands whose console shows it. Omit for every brand its category admits.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getBrands() const;
|
|
bool brandsIsSet() const;
|
|
void unsetBrands();
|
|
void setBrands(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Category is the id of an EXISTING category to file it under. Required.
|
|
/// </summary>
|
|
utility::string_t getCategory() const;
|
|
bool categoryIsSet() const;
|
|
void unsetCategory();
|
|
void setCategory(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Description is the one line shown beneath the name.
|
|
/// </summary>
|
|
utility::string_t getDescription() const;
|
|
bool descriptionIsSet() const;
|
|
void unsetDescription();
|
|
void setDescription(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Href is the absolute URL an external product launches. Give this or route, never both.
|
|
/// </summary>
|
|
utility::string_t getHref() const;
|
|
bool hrefIsSet() const;
|
|
void unsetHref();
|
|
void setHref(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Icon names the icon the surface renders, e.g. \"Database\".
|
|
/// </summary>
|
|
utility::string_t getIcon() const;
|
|
bool iconIsSet() const;
|
|
void unsetIcon();
|
|
void setIcon(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ID is the taxon slug to write, from the path.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Name is the display name. Required.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Order is where it sits within its category, ascending.
|
|
/// </summary>
|
|
int64_t getOrder() const;
|
|
bool orderIsSet() const;
|
|
void unsetOrder();
|
|
void setOrder(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Published is whether it is shown. Omitted means published — a taxon someone took the trouble to write is meant to be seen, and hiding one is the deliberate act.
|
|
/// </summary>
|
|
bool isPublished() const;
|
|
bool publishedIsSet() const;
|
|
void unsetPublished();
|
|
void setPublished(bool value);
|
|
|
|
/// <summary>
|
|
/// Route is the in-console path it opens, e.g. \"/vector\". Give this or href, never both.
|
|
/// </summary>
|
|
utility::string_t getRoute() const;
|
|
bool routeIsSet() const;
|
|
void unsetRoute();
|
|
void setRoute(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Tags are free-form labels for search and grouping across categories.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getTags() const;
|
|
bool tagsIsSet() const;
|
|
void unsetTags();
|
|
void setTags(const std::vector<utility::string_t>& value);
|
|
|
|
|
|
protected:
|
|
std::vector<utility::string_t> m_Brands;
|
|
bool m_BrandsIsSet;
|
|
|
|
utility::string_t m_Category;
|
|
bool m_CategoryIsSet;
|
|
|
|
utility::string_t m_Description;
|
|
bool m_DescriptionIsSet;
|
|
|
|
utility::string_t m_Href;
|
|
bool m_HrefIsSet;
|
|
|
|
utility::string_t m_Icon;
|
|
bool m_IconIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
int64_t m_Order;
|
|
bool m_OrderIsSet;
|
|
|
|
bool m_Published;
|
|
bool m_PublishedIsSet;
|
|
|
|
utility::string_t m_Route;
|
|
bool m_RouteIsSet;
|
|
|
|
std::vector<utility::string_t> m_Tags;
|
|
bool m_TagsIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_TaxonIn_H_ */
|