Files
zeekay 189ce08e51 Regenerate against the document the deployment answers for
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.
2026-09-05 18:07:13 -07:00

130 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.
*/
/*
* Query.h
*
*
*/
#ifndef HANZO_MODEL_Query_H_
#define HANZO_MODEL_Query_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class Query
: public ModelBase
{
public:
Query();
virtual ~Query();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Query members
/// <summary>
/// Character is a 0-based UTF-16 code-unit offset within Line, per the LSP specification — not a byte offset and not a rune index.
/// </summary>
int64_t getCharacter() const;
bool characterIsSet() const;
void unsetCharacter();
void setCharacter(int64_t value);
/// <summary>
/// Line is 0-based, per the LSP specification.
/// </summary>
int64_t getLine() const;
bool lineIsSet() const;
void unsetLine();
void setLine(int64_t value);
/// <summary>
/// Path is the repo-relative file, e.g. \&quot;apps/lsp/lsp.go\&quot;.
/// </summary>
utility::string_t getPath() const;
bool pathIsSet() const;
void unsetPath();
void setPath(const utility::string_t& value);
/// <summary>
/// Relation refines locate: definition, reference, type or implementation. Empty means definition. Every other op ignores it.
/// </summary>
utility::string_t getRelation() const;
bool relationIsSet() const;
void unsetRelation();
void setRelation(const utility::string_t& value);
/// <summary>
/// Repo is the repository NAME within the caller&#39;s own org, e.g. \&quot;cloud\&quot;. Not a URL and not an owner/name pair: the owner is the validated principal&#39;s org, so this names a repository the caller already owns.
/// </summary>
utility::string_t getRepo() const;
bool repoIsSet() const;
void unsetRepo();
void setRepo(const utility::string_t& value);
/// <summary>
/// Rev is a branch, tag or commit sha. Empty means the default branch. It is resolved to a commit before anything else happens, so an answer is always about one immutable tree.
/// </summary>
utility::string_t getRev() const;
bool revIsSet() const;
void unsetRev();
void setRev(const utility::string_t& value);
protected:
int64_t m_Character;
bool m_CharacterIsSet;
int64_t m_Line;
bool m_LineIsSet;
utility::string_t m_Path;
bool m_PathIsSet;
utility::string_t m_Relation;
bool m_RelationIsSet;
utility::string_t m_Repo;
bool m_RepoIsSet;
utility::string_t m_Rev;
bool m_RevIsSet;
};
}
}
#endif /* HANZO_MODEL_Query_H_ */