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.
219 lines
5.9 KiB
C++
219 lines
5.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.
|
|
*/
|
|
|
|
/*
|
|
* DataroomLink.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_DataroomLink_H_
|
|
#define HANZO_MODEL_DataroomLink_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class DataroomLink
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
DataroomLink();
|
|
virtual ~DataroomLink();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// DataroomLink members
|
|
|
|
|
|
/// <summary>
|
|
/// AllowDownload is whether a visitor may download, rather than only view.
|
|
/// </summary>
|
|
bool isAllowDownload() const;
|
|
bool allowDownloadIsSet() const;
|
|
void unsetAllowDownload();
|
|
void setAllowDownload(bool value);
|
|
|
|
/// <summary>
|
|
/// AllowList narrows which addresses pass the email gate. An entry may be a full address, an \"@domain.com\" suffix, or a bare \"domain.com\". An EMPTY list admits everyone.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getAllowList() const;
|
|
bool allowListIsSet() const;
|
|
void unsetAllowList();
|
|
void setAllowList(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// CreatedAt is when the link was minted, in unix milliseconds.
|
|
/// </summary>
|
|
int64_t getCreatedAt() const;
|
|
bool createdAtIsSet() const;
|
|
void unsetCreatedAt();
|
|
void setCreatedAt(int64_t value);
|
|
|
|
/// <summary>
|
|
/// DataroomId is the room the link opens, null for a single-document link.
|
|
/// </summary>
|
|
utility::string_t getDataroomId() const;
|
|
bool dataroomIdIsSet() const;
|
|
void unsetDataroomId();
|
|
void setDataroomId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// DenyList rejects addresses, in the same three forms as the allow list, and is checked BEFORE it — so deny always wins.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getDenyList() const;
|
|
bool denyListIsSet() const;
|
|
void unsetDenyList();
|
|
void setDenyList(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// DocumentId is the document the link opens, null for a room link.
|
|
/// </summary>
|
|
utility::string_t getDocumentId() const;
|
|
bool documentIdIsSet() const;
|
|
void unsetDocumentId();
|
|
void setDocumentId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// EmailProtected is whether a visitor must state an address to enter.
|
|
/// </summary>
|
|
bool isEmailProtected() const;
|
|
bool emailProtectedIsSet() const;
|
|
void unsetEmailProtected();
|
|
void setEmailProtected(bool value);
|
|
|
|
/// <summary>
|
|
/// ExpiresAt is when the link closes, in unix milliseconds; null never expires.
|
|
/// </summary>
|
|
int64_t getExpiresAt() const;
|
|
bool expiresAtIsSet() const;
|
|
void unsetExpiresAt();
|
|
void setExpiresAt(int64_t value);
|
|
|
|
/// <summary>
|
|
/// HasPassword reports THAT a password is set. The stored form is a bcrypt hash and no route returns it.
|
|
/// </summary>
|
|
bool isHasPassword() const;
|
|
bool hasPasswordIsSet() const;
|
|
void unsetHasPassword();
|
|
void setHasPassword(bool value);
|
|
|
|
/// <summary>
|
|
/// ID is the link id — the public token a visitor opens the room with.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// IsArchived is whether the link has been retired.
|
|
/// </summary>
|
|
bool isIsArchived() const;
|
|
bool isArchivedIsSet() const;
|
|
void unsetIsArchived();
|
|
void setIsArchived(bool value);
|
|
|
|
/// <summary>
|
|
/// LinkType is DATAROOM_LINK or DOCUMENT_LINK.
|
|
/// </summary>
|
|
utility::string_t getLinkType() const;
|
|
bool linkTypeIsSet() const;
|
|
void unsetLinkType();
|
|
void setLinkType(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Name is the link's label, null when none was given.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// UpdatedAt is when the link last changed, in unix milliseconds.
|
|
/// </summary>
|
|
int64_t getUpdatedAt() const;
|
|
bool updatedAtIsSet() const;
|
|
void unsetUpdatedAt();
|
|
void setUpdatedAt(int64_t value);
|
|
|
|
|
|
protected:
|
|
bool m_AllowDownload;
|
|
bool m_AllowDownloadIsSet;
|
|
|
|
std::vector<utility::string_t> m_AllowList;
|
|
bool m_AllowListIsSet;
|
|
|
|
int64_t m_CreatedAt;
|
|
bool m_CreatedAtIsSet;
|
|
|
|
utility::string_t m_DataroomId;
|
|
bool m_DataroomIdIsSet;
|
|
|
|
std::vector<utility::string_t> m_DenyList;
|
|
bool m_DenyListIsSet;
|
|
|
|
utility::string_t m_DocumentId;
|
|
bool m_DocumentIdIsSet;
|
|
|
|
bool m_EmailProtected;
|
|
bool m_EmailProtectedIsSet;
|
|
|
|
int64_t m_ExpiresAt;
|
|
bool m_ExpiresAtIsSet;
|
|
|
|
bool m_HasPassword;
|
|
bool m_HasPasswordIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
bool m_IsArchived;
|
|
bool m_IsArchivedIsSet;
|
|
|
|
utility::string_t m_LinkType;
|
|
bool m_LinkTypeIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
int64_t m_UpdatedAt;
|
|
bool m_UpdatedAtIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_DataroomLink_H_ */
|