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

198 lines
5.3 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.
*/
/*
* SlotView.h
*
*
*/
#ifndef HANZO_MODEL_SlotView_H_
#define HANZO_MODEL_SlotView_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/RegistrationView.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class RegistrationView;
class SlotView
: public ModelBase
{
public:
SlotView();
virtual ~SlotView();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// SlotView members
/// <summary>
/// BLSPubkey is the node&#39;s BLS public key, hex.
/// </summary>
utility::string_t getBlsPubkey() const;
bool blsPubkeyIsSet() const;
void unsetBlsPubkey();
void setBlsPubkey(const utility::string_t& value);
/// <summary>
/// CRName is the LuxNetwork custom resource that materializes the node.
/// </summary>
utility::string_t getCrName() const;
bool crNameIsSet() const;
void unsetCrName();
void setCrName(const utility::string_t& value);
/// <summary>
/// CreatedAt is when the slot was first claimed, as a Unix timestamp.
/// </summary>
int64_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreatedAt();
void setCreatedAt(int64_t value);
/// <summary>
/// Namespace is the Kubernetes namespace the node&#39;s CR lives in.
/// </summary>
utility::string_t getRNamespace() const;
bool rNamespaceIsSet() const;
void unsetr_namespace();
void setRNamespace(const utility::string_t& value);
/// <summary>
/// Network is the luxd network slug the node joins.
/// </summary>
utility::string_t getNetwork() const;
bool networkIsSet() const;
void unsetNetwork();
void setNetwork(const utility::string_t& value);
/// <summary>
/// NodeID is the luxd node id derived from the sealed staking identity. It is stable across re-claims of the same slot.
/// </summary>
utility::string_t getNodeID() const;
bool nodeIDIsSet() const;
void unsetNodeID();
void setNodeID(const utility::string_t& value);
/// <summary>
/// NodeStatus is the provisioning state of the node: \&quot;node_created\&quot; once the CR is applied, \&quot;node_pending\&quot; when no cluster is reachable (the slot is still claimed and the keys are still sealed).
/// </summary>
utility::string_t getNodeStatus() const;
bool nodeStatusIsSet() const;
void unsetNodeStatus();
void setNodeStatus(const utility::string_t& value);
/// <summary>
/// Registration is the queued owner-gated registration, absent until one exists.
/// </summary>
std::shared_ptr<RegistrationView> getRegistration() const;
bool registrationIsSet() const;
void unsetRegistration();
void setRegistration(const std::shared_ptr<RegistrationView>& value);
/// <summary>
/// Slot is the validator slot number — the same value as tokenId, under the name the portal reads.
/// </summary>
int32_t getSlot() const;
bool slotIsSet() const;
void unsetSlot();
void setSlot(int32_t value);
/// <summary>
/// TokenID is the GenesisNFT token id that IS this slot.
/// </summary>
int32_t getTokenId() const;
bool tokenIdIsSet() const;
void unsetTokenId();
void setTokenId(int32_t value);
/// <summary>
/// UpdatedAt is when the slot last changed, as a Unix timestamp.
/// </summary>
int64_t getUpdatedAt() const;
bool updatedAtIsSet() const;
void unsetUpdatedAt();
void setUpdatedAt(int64_t value);
/// <summary>
/// Wallet is the lowercase Ethereum address that proved ownership of the NFT.
/// </summary>
utility::string_t getWallet() const;
bool walletIsSet() const;
void unsetWallet();
void setWallet(const utility::string_t& value);
protected:
utility::string_t m_BlsPubkey;
bool m_BlsPubkeyIsSet;
utility::string_t m_CrName;
bool m_CrNameIsSet;
int64_t m_CreatedAt;
bool m_CreatedAtIsSet;
utility::string_t m_r_namespace;
bool m_r_namespaceIsSet;
utility::string_t m_Network;
bool m_NetworkIsSet;
utility::string_t m_NodeID;
bool m_NodeIDIsSet;
utility::string_t m_NodeStatus;
bool m_NodeStatusIsSet;
std::shared_ptr<RegistrationView> m_Registration;
bool m_RegistrationIsSet;
int32_t m_Slot;
bool m_SlotIsSet;
int32_t m_TokenId;
bool m_TokenIdIsSet;
int64_t m_UpdatedAt;
bool m_UpdatedAtIsSet;
utility::string_t m_Wallet;
bool m_WalletIsSet;
};
}
}
#endif /* HANZO_MODEL_SlotView_H_ */