Files
zeekay 83d7ffa4d7 Regenerate against the current cloud document
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.
2026-09-01 02:22:09 -07:00

132 lines
4.1 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.
*/
/*
* AllowlistPutIn.h
*
*
*/
#ifndef HANZO_MODEL_AllowlistPutIn_H_
#define HANZO_MODEL_AllowlistPutIn_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
#include <map>
#include <vector>
namespace hanzo {
namespace model {
class AllowlistPutIn
: public ModelBase
{
public:
AllowlistPutIn();
virtual ~AllowlistPutIn();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// AllowlistPutIn members
/// <summary>
/// AccessGroups REPLACES the org&#39;s named access groups, as group name -&gt; channel -&gt; entries. Absent or null leaves them alone.
/// </summary>
std::map<utility::string_t, std::map<utility::string_t, std::vector<utility::string_t>>> getAccessGroups() const;
bool accessGroupsIsSet() const;
void unsetAccessGroups();
void setAccessGroups(const std::map<utility::string_t, std::map<utility::string_t, std::vector<utility::string_t>>>& value);
/// <summary>
/// Channel is the transport to edit: discord, github, linear, slack, teams, telegram or whatsapp. 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>
/// DM REPLACES the config-managed DM allow entries. Absent or null leaves them alone; an empty list clears them. It never touches senders approved through pairing — a policy edit cannot revoke an approved pairing.
/// </summary>
std::vector<utility::string_t> getDm() const;
bool dmIsSet() const;
void unsetDm();
void setDm(const std::vector<utility::string_t>& value);
/// <summary>
/// DMPolicy sets how direct messages are admitted: \&quot;pairing\&quot; (a person must be approved first), \&quot;allowlist\&quot; (only listed senders) or \&quot;open\&quot;. Empty leaves it unchanged.
/// </summary>
utility::string_t getDmPolicy() const;
bool dmPolicyIsSet() const;
void unsetDmPolicy();
void setDmPolicy(const utility::string_t& value);
/// <summary>
/// Group REPLACES the config-managed group allow entries. Absent or null leaves them alone; an empty list clears them.
/// </summary>
std::vector<utility::string_t> getGroup() const;
bool groupIsSet() const;
void unsetGroup();
void setGroup(const std::vector<utility::string_t>& value);
/// <summary>
/// GroupPolicy sets how group and thread rooms are admitted: \&quot;open\&quot;, \&quot;allowlist\&quot; or \&quot;disabled\&quot;. Empty leaves it unchanged.
/// </summary>
utility::string_t getGroupPolicy() const;
bool groupPolicyIsSet() const;
void unsetGroupPolicy();
void setGroupPolicy(const utility::string_t& value);
protected:
std::map<utility::string_t, std::map<utility::string_t, std::vector<utility::string_t>>> m_AccessGroups;
bool m_AccessGroupsIsSet;
utility::string_t m_Channel;
bool m_ChannelIsSet;
std::vector<utility::string_t> m_Dm;
bool m_DmIsSet;
utility::string_t m_DmPolicy;
bool m_DmPolicyIsSet;
std::vector<utility::string_t> m_Group;
bool m_GroupIsSet;
utility::string_t m_GroupPolicy;
bool m_GroupPolicyIsSet;
};
}
}
#endif /* HANZO_MODEL_AllowlistPutIn_H_ */