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.
175 lines
5.7 KiB
C++
175 lines
5.7 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.
|
|
*/
|
|
|
|
/*
|
|
* TeamRoom.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_TeamRoom_H_
|
|
#define HANZO_MODEL_TeamRoom_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class TeamRoom
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
TeamRoom();
|
|
virtual ~TeamRoom();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// TeamRoom members
|
|
|
|
|
|
/// <summary>
|
|
/// Archived reports that the room has been closed. It is the platform's own Space attribute — the same one the Team client writes — and NOT a field of the work facet, so there is exactly one answer to \"is this room open\".
|
|
/// </summary>
|
|
bool isArchived() const;
|
|
bool archivedIsSet() const;
|
|
void unsetArchived();
|
|
void setArchived(bool value);
|
|
|
|
/// <summary>
|
|
/// Bindings are what this room is ABOUT, each a \"<kind>:<ref>\" string — \"project:acme/web\", \"repo:hanzoai/cloud\", \"issue:1010\". One list rather than one field per kind, because the next thing a room can be about should not be a schema change; and a bound value is opaque here on purpose, since the app that owns a project is the app that can resolve one. HIP-0523 §2: a binding is a REFERENCE, never a copy — a room holding an issue's title or status would be the parallel work-item store HIP-1160 §1 forbids.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getBindings() const;
|
|
bool bindingsIsSet() const;
|
|
void unsetBindings();
|
|
void setBindings(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Direct reports that this is a room between people rather than a named room. It is derived from the document's class, so it cannot disagree with what the client will render.
|
|
/// </summary>
|
|
bool isDirect() const;
|
|
bool directIsSet() const;
|
|
void unsetDirect();
|
|
void setDirect(bool value);
|
|
|
|
/// <summary>
|
|
/// ID is the room document's own id, and the value the bind op addresses. It is unique within a space, not across the org.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Life is the room's lifecycle INTENT — \"standing\" or \"bound\" (HIP-0523 §2). Absent on the document it reads \"standing\": a room nobody classified is one that persists.
|
|
/// </summary>
|
|
utility::string_t getLife() const;
|
|
bool lifeIsSet() const;
|
|
void unsetLife();
|
|
void setLife(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Members are the account uuids in the room, agents included: an agent projects as a space member under a uuid derived from its id, so a caller comparing this against GET /v1/bot/members learns which rooms an agent is in.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getMembers() const;
|
|
bool membersIsSet() const;
|
|
void unsetMembers();
|
|
void setMembers(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Name is what a person sees in a sidebar. A direct message carries none, so this is empty for one — the members are its name.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Private reports that the room is restricted to its members.
|
|
/// </summary>
|
|
bool isRPrivate() const;
|
|
bool rPrivateIsSet() const;
|
|
void unsetr_private();
|
|
void setRPrivate(bool value);
|
|
|
|
/// <summary>
|
|
/// Space is the space uuid holding this room. It is part of the room's address: two spaces of one org may each hold a room with the same name, and only the pair identifies one.
|
|
/// </summary>
|
|
utility::string_t getSpace() const;
|
|
bool spaceIsSet() const;
|
|
void unsetSpace();
|
|
void setSpace(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Topic is the room's own one-line subject, as the Team client sets it.
|
|
/// </summary>
|
|
utility::string_t getTopic() const;
|
|
bool topicIsSet() const;
|
|
void unsetTopic();
|
|
void setTopic(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
bool m_Archived;
|
|
bool m_ArchivedIsSet;
|
|
|
|
std::vector<utility::string_t> m_Bindings;
|
|
bool m_BindingsIsSet;
|
|
|
|
bool m_Direct;
|
|
bool m_DirectIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
utility::string_t m_Life;
|
|
bool m_LifeIsSet;
|
|
|
|
std::vector<utility::string_t> m_Members;
|
|
bool m_MembersIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
bool m_r_private;
|
|
bool m_r_privateIsSet;
|
|
|
|
utility::string_t m_Space;
|
|
bool m_SpaceIsSet;
|
|
|
|
utility::string_t m_Topic;
|
|
bool m_TopicIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_TeamRoom_H_ */
|