mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The lock sat at 574d1f1d while the product moved on. The team surface stopped at rooms — no messages path, no way to open one — so anything built on this client had to reach past it with its own HTTP calls, which is the duplication a generated client exists to prevent.
110 lines
2.9 KiB
C++
110 lines
2.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.
|
|
*/
|
|
|
|
/*
|
|
* ChannelAgentsPut.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_ChannelAgentsPut_H_
|
|
#define HANZO_MODEL_ChannelAgentsPut_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class ChannelAgentsPut
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
ChannelAgentsPut();
|
|
virtual ~ChannelAgentsPut();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// ChannelAgentsPut members
|
|
|
|
|
|
/// <summary>
|
|
/// Channel is the transport to edit. Required; an unknown value is a 404.
|
|
/// </summary>
|
|
utility::string_t getChannel() const;
|
|
bool channelIsSet() const;
|
|
void unsetChannel();
|
|
void setChannel(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Default sets the agent for rooms with no binding of their own; \"hanzo\" restores the built-in. Empty or absent leaves it unchanged.
|
|
/// </summary>
|
|
utility::string_t getRDefault() const;
|
|
bool rDefaultIsSet() const;
|
|
void unsetr_default();
|
|
void setRDefault(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Rooms binds platform room ids to agents; rooms not named are left alone.
|
|
/// </summary>
|
|
std::map<utility::string_t, utility::string_t> getRooms() const;
|
|
bool roomsIsSet() const;
|
|
void unsetRooms();
|
|
void setRooms(const std::map<utility::string_t, utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Unbind removes the bindings of these rooms, so they fall back to Default.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getUnbind() const;
|
|
bool unbindIsSet() const;
|
|
void unsetUnbind();
|
|
void setUnbind(const std::vector<utility::string_t>& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Channel;
|
|
bool m_ChannelIsSet;
|
|
|
|
utility::string_t m_r_default;
|
|
bool m_r_defaultIsSet;
|
|
|
|
std::map<utility::string_t, utility::string_t> m_Rooms;
|
|
bool m_RoomsIsSet;
|
|
|
|
std::vector<utility::string_t> m_Unbind;
|
|
bool m_UnbindIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_ChannelAgentsPut_H_ */
|