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.
256 lines
7.6 KiB
C++
256 lines
7.6 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.
|
|
*/
|
|
|
|
/*
|
|
* MCPListing.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_MCPListing_H_
|
|
#define HANZO_MODEL_MCPListing_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include "hanzo/model/MCPPackage.h"
|
|
#include <vector>
|
|
#include "hanzo/model/MCPRemote.h"
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class MCPPackage;
|
|
class MCPRemote;
|
|
|
|
|
|
class MCPListing
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
MCPListing();
|
|
virtual ~MCPListing();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// MCPListing members
|
|
|
|
|
|
/// <summary>
|
|
/// Description is the publisher's one-line summary.
|
|
/// </summary>
|
|
utility::string_t getDescription() const;
|
|
bool descriptionIsSet() const;
|
|
void unsetDescription();
|
|
void setDescription(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Featured puts the listing on the front of the shelf. Curation.
|
|
/// </summary>
|
|
bool isFeatured() const;
|
|
bool featuredIsSet() const;
|
|
void unsetFeatured();
|
|
void setFeatured(bool value);
|
|
|
|
/// <summary>
|
|
/// Hidden keeps the listing out of the org-visible catalog. Curation: a sync never changes it. Only a SuperAdmin sets it, and only a SuperAdmin sees a hidden entry listed.
|
|
/// </summary>
|
|
bool isHidden() const;
|
|
bool hiddenIsSet() const;
|
|
void unsetHidden();
|
|
void setHidden(bool value);
|
|
|
|
/// <summary>
|
|
/// ID addresses the listing in a URL. It is the reverse-DNS NAME with its one slash written as an underscore — reversible, because a namespace never contains an underscore — so the id is readable and stable rather than a hash that means nothing to whoever reads a link.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Logo is the brand mark to render for the listing — the publisher's icon when the entry carries one, or the one an admin set. Curation.
|
|
/// </summary>
|
|
utility::string_t getLogo() const;
|
|
bool logoIsSet() const;
|
|
void unsetLogo();
|
|
void setLogo(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Name is the publisher's reverse-DNS name, e.g. \"com.stripe/mcp\".
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Official is whether this is the vendor's OWN server rather than someone else's copy of it. Derived on every sync (see isOfficial) until a SuperAdmin sets it explicitly, after which the admin's answer stands.
|
|
/// </summary>
|
|
bool isOfficial() const;
|
|
bool officialIsSet() const;
|
|
void unsetOfficial();
|
|
void setOfficial(bool value);
|
|
|
|
/// <summary>
|
|
/// Packages are the runnable package forms — npm, pypi, oci — each with the runtime that launches it and the transport it then speaks.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<MCPPackage>> getPackages() const;
|
|
bool packagesIsSet() const;
|
|
void unsetPackages();
|
|
void setPackages(const std::vector<std::shared_ptr<MCPPackage>>& value);
|
|
|
|
/// <summary>
|
|
/// Registry is the upstream this row was synced from.
|
|
/// </summary>
|
|
utility::string_t getRegistry() const;
|
|
bool registryIsSet() const;
|
|
void unsetRegistry();
|
|
void setRegistry(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Remotes are the hosted endpoints the publisher serves the server at.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<MCPRemote>> getRemotes() const;
|
|
bool remotesIsSet() const;
|
|
void unsetRemotes();
|
|
void setRemotes(const std::vector<std::shared_ptr<MCPRemote>>& value);
|
|
|
|
/// <summary>
|
|
/// Repo is the source repository URL, when the entry names one.
|
|
/// </summary>
|
|
utility::string_t getRepo() const;
|
|
bool repoIsSet() const;
|
|
void unsetRepo();
|
|
void setRepo(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Site is the project's homepage, when the entry names one.
|
|
/// </summary>
|
|
utility::string_t getSite() const;
|
|
bool siteIsSet() const;
|
|
void unsetSite();
|
|
void setSite(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Synced is when this row was last confirmed against upstream, Unix seconds.
|
|
/// </summary>
|
|
int64_t getSynced() const;
|
|
bool syncedIsSet() const;
|
|
void unsetSynced();
|
|
void setSynced(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Title is the human-readable display name, when the entry carries one.
|
|
/// </summary>
|
|
utility::string_t getTitle() const;
|
|
bool titleIsSet() const;
|
|
void unsetTitle();
|
|
void setTitle(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Transports are the distinct transports this server can be reached over, sorted: some of \"stdio\", \"streamable-http\", \"sse\". A listing with \"streamable-http\" is one an org can enable here and now; a listing that is only \"stdio\" needs a process to run it.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getTransports() const;
|
|
bool transportsIsSet() const;
|
|
void unsetTransports();
|
|
void setTransports(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Vendor is the namespace half of Name — the publisher, e.g. \"com.stripe\".
|
|
/// </summary>
|
|
utility::string_t getVendor() const;
|
|
bool vendorIsSet() const;
|
|
void unsetVendor();
|
|
void setVendor(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Version is the published version of this listing.
|
|
/// </summary>
|
|
utility::string_t getVersion() const;
|
|
bool versionIsSet() const;
|
|
void unsetVersion();
|
|
void setVersion(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Description;
|
|
bool m_DescriptionIsSet;
|
|
|
|
bool m_Featured;
|
|
bool m_FeaturedIsSet;
|
|
|
|
bool m_Hidden;
|
|
bool m_HiddenIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
utility::string_t m_Logo;
|
|
bool m_LogoIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
bool m_Official;
|
|
bool m_OfficialIsSet;
|
|
|
|
std::vector<std::shared_ptr<MCPPackage>> m_Packages;
|
|
bool m_PackagesIsSet;
|
|
|
|
utility::string_t m_Registry;
|
|
bool m_RegistryIsSet;
|
|
|
|
std::vector<std::shared_ptr<MCPRemote>> m_Remotes;
|
|
bool m_RemotesIsSet;
|
|
|
|
utility::string_t m_Repo;
|
|
bool m_RepoIsSet;
|
|
|
|
utility::string_t m_Site;
|
|
bool m_SiteIsSet;
|
|
|
|
int64_t m_Synced;
|
|
bool m_SyncedIsSet;
|
|
|
|
utility::string_t m_Title;
|
|
bool m_TitleIsSet;
|
|
|
|
std::vector<utility::string_t> m_Transports;
|
|
bool m_TransportsIsSet;
|
|
|
|
utility::string_t m_Vendor;
|
|
bool m_VendorIsSet;
|
|
|
|
utility::string_t m_Version;
|
|
bool m_VersionIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_MCPListing_H_ */
|