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.
153 lines
3.9 KiB
C++
153 lines
3.9 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.
|
|
*/
|
|
|
|
/*
|
|
* SeoAuditOut.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_SeoAuditOut_H_
|
|
#define HANZO_MODEL_SeoAuditOut_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <map>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class SeoAuditOut
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
SeoAuditOut();
|
|
virtual ~SeoAuditOut();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// SeoAuditOut members
|
|
|
|
|
|
/// <summary>
|
|
/// Checks is every named finding, each a yes or no — \"is_https\", \"no_h1_tag\", \"high_loading_time\", around fifty of them. It is an OPEN set the upstream adds to, so it is published as an object of booleans rather than as fifty declared fields that would be wrong the next time they name a fifty-first.
|
|
/// </summary>
|
|
std::map<utility::string_t, bool> getChecks() const;
|
|
bool checksIsSet() const;
|
|
void unsetChecks();
|
|
void setChecks(std::map<utility::string_t, bool> value);
|
|
|
|
/// <summary>
|
|
/// Cost is what this call cost, in USD, as an exact decimal string.
|
|
/// </summary>
|
|
utility::string_t getCost() const;
|
|
bool costIsSet() const;
|
|
void unsetCost();
|
|
void setCost(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Description is its meta description.
|
|
/// </summary>
|
|
utility::string_t getDescription() const;
|
|
bool descriptionIsSet() const;
|
|
void unsetDescription();
|
|
void setDescription(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Score is the upstream's on-page score, 0 to 100.
|
|
/// </summary>
|
|
double getScore() const;
|
|
bool scoreIsSet() const;
|
|
void unsetScore();
|
|
void setScore(double value);
|
|
|
|
/// <summary>
|
|
/// Status is the HTTP status the page answered with.
|
|
/// </summary>
|
|
int64_t getStatus() const;
|
|
bool statusIsSet() const;
|
|
void unsetStatus();
|
|
void setStatus(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Title is the page's title.
|
|
/// </summary>
|
|
utility::string_t getTitle() const;
|
|
bool titleIsSet() const;
|
|
void unsetTitle();
|
|
void setTitle(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// URL is the address actually read, after redirects.
|
|
/// </summary>
|
|
utility::string_t getUrl() const;
|
|
bool urlIsSet() const;
|
|
void unsetUrl();
|
|
void setUrl(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Words is how many words of readable text the page carries.
|
|
/// </summary>
|
|
int64_t getWords() const;
|
|
bool wordsIsSet() const;
|
|
void unsetWords();
|
|
void setWords(int64_t value);
|
|
|
|
|
|
protected:
|
|
std::map<utility::string_t, bool> m_Checks;
|
|
bool m_ChecksIsSet;
|
|
|
|
utility::string_t m_Cost;
|
|
bool m_CostIsSet;
|
|
|
|
utility::string_t m_Description;
|
|
bool m_DescriptionIsSet;
|
|
|
|
double m_Score;
|
|
bool m_ScoreIsSet;
|
|
|
|
int64_t m_Status;
|
|
bool m_StatusIsSet;
|
|
|
|
utility::string_t m_Title;
|
|
bool m_TitleIsSet;
|
|
|
|
utility::string_t m_Url;
|
|
bool m_UrlIsSet;
|
|
|
|
int64_t m_Words;
|
|
bool m_WordsIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_SeoAuditOut_H_ */
|