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.
119 lines
3.4 KiB
C++
119 lines
3.4 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.
|
|
*/
|
|
|
|
/*
|
|
* CreateServerReq.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_CreateServerReq_H_
|
|
#define HANZO_MODEL_CreateServerReq_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class CreateServerReq
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
CreateServerReq();
|
|
virtual ~CreateServerReq();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// CreateServerReq members
|
|
|
|
|
|
/// <summary>
|
|
/// AuthHeader is the request header the credential is injected into, e.g. \"Authorization\". Empty means the server needs no credential.
|
|
/// </summary>
|
|
utility::string_t getAuthHeader() const;
|
|
bool authHeaderIsSet() const;
|
|
void unsetAuthHeader();
|
|
void setAuthHeader(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Listing enables a CATALOG entry instead — the id from GET /v1/tool/catalog. The endpoint is the listing's own streamable-http remote, so a listing that only ships a stdio package is refused: there is nothing to reach yet.
|
|
/// </summary>
|
|
utility::string_t getListing() const;
|
|
bool listingIsSet() const;
|
|
void unsetListing();
|
|
void setListing(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Name labels the server for the org. Required with URL; with Listing it defaults to the listing's own title.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Secret is the credential VALUE. It is sealed into KMS under a per-org ref and never stored in SQLite, never listed, and never returned.
|
|
/// </summary>
|
|
utility::string_t getSecret() const;
|
|
bool secretIsSet() const;
|
|
void unsetSecret();
|
|
void setSecret(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// URL is the server's JSON-RPC endpoint. It must be an http(s) URL naming a PUBLIC host: loopback, link-local, private and cloud-metadata addresses are refused here and again when the dialer connects.
|
|
/// </summary>
|
|
utility::string_t getUrl() const;
|
|
bool urlIsSet() const;
|
|
void unsetUrl();
|
|
void setUrl(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_AuthHeader;
|
|
bool m_AuthHeaderIsSet;
|
|
|
|
utility::string_t m_Listing;
|
|
bool m_ListingIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
utility::string_t m_Secret;
|
|
bool m_SecretIsSet;
|
|
|
|
utility::string_t m_Url;
|
|
bool m_UrlIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_CreateServerReq_H_ */
|