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

120 lines
3.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.
*/
/*
* RoomWork.h
*
*
*/
#ifndef HANZO_MODEL_RoomWork_H_
#define HANZO_MODEL_RoomWork_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
#include <map>
namespace hanzo {
namespace model {
class RoomWork
: public ModelBase
{
public:
RoomWork();
virtual ~RoomWork();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// RoomWork members
/// <summary>
/// Open is how many items are still work: everything whose status does not end it. It is the number a channel header shows.
/// </summary>
int64_t getOpen() const;
bool openIsSet() const;
void unsetOpen();
void setOpen(int64_t value);
/// <summary>
/// Room is the room these counts are for, echoed back as it was resolved.
/// </summary>
utility::string_t getRoom() const;
bool roomIsSet() const;
void unsetRoom();
void setRoom(const utility::string_t& value);
/// <summary>
/// Status is the count per board column, carrying EVERY column this surface knows — an empty column reads 0 rather than being absent, so a caller can render the board without inventing the vocabulary. The keys are the same closed set every other operation here validates against.
/// </summary>
std::map<utility::string_t, int64_t> getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(std::map<utility::string_t, int64_t> value);
/// <summary>
/// Total is every item bound to this room, settled ones included, so Total minus Open is what the room has finished.
/// </summary>
int64_t getTotal() const;
bool totalIsSet() const;
void unsetTotal();
void setTotal(int64_t value);
/// <summary>
/// Updated is when anything in this room&#39;s work last moved, in unix seconds. ABSENT when the room has no work at all: zero would read as the epoch, and a room nobody has filed anything in has no last activity rather than an infinitely old one. Total is 0 in exactly that case.
/// </summary>
int64_t getUpdated() const;
bool updatedIsSet() const;
void unsetUpdated();
void setUpdated(int64_t value);
protected:
int64_t m_Open;
bool m_OpenIsSet;
utility::string_t m_Room;
bool m_RoomIsSet;
std::map<utility::string_t, int64_t> m_Status;
bool m_StatusIsSet;
int64_t m_Total;
bool m_TotalIsSet;
int64_t m_Updated;
bool m_UpdatedIsSet;
};
}
}
#endif /* HANZO_MODEL_RoomWork_H_ */