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

186 lines
6.2 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.
*/
/*
* SocialPost.h
*
*
*/
#ifndef HANZO_MODEL_SocialPost_H_
#define HANZO_MODEL_SocialPost_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
#include <vector>
namespace hanzo {
namespace model {
class SocialPost
: public ModelBase
{
public:
SocialPost();
virtual ~SocialPost();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// SocialPost members
/// <summary>
/// AccountID / ExternalID / Error are server-managed publish results, set only by the publish path (never by a client update): the account a post was published through, the provider&#39;s returned external post id (for reconciliation), and the last failure reason. Empty until a publish attempt lands. AccountID is the connected account the post went out through. Absent until a publish succeeds.
/// </summary>
utility::string_t getAccountId() const;
bool accountIdIsSet() const;
void unsetAccountId();
void setAccountId(const utility::string_t& value);
/// <summary>
/// Channel is the network this post targets: x, facebook, instagram, linkedin, tiktok, youtube or threads. It is the channel whose CONNECTED accounts a publish fans out to. Example: \&quot;x\&quot;
/// </summary>
utility::string_t getChannel() const;
bool channelIsSet() const;
void unsetChannel();
void setChannel(const utility::string_t& value);
/// <summary>
/// Content is the post&#39;s text, bounded at 8192 characters. Example: \&quot;Shipping today.\&quot;
/// </summary>
utility::string_t getContent() const;
bool contentIsSet() const;
void unsetContent();
void setContent(const utility::string_t& value);
/// <summary>
/// CreatedAt is when the post was created, as a unix timestamp in seconds.
/// </summary>
int64_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreatedAt();
void setCreatedAt(int64_t value);
/// <summary>
/// Error is why the last publish attempt failed, verbatim and bounded. Absent when no attempt has failed; cleared by a later success.
/// </summary>
utility::string_t getError() const;
bool errorIsSet() const;
void unsetError();
void setError(const utility::string_t& value);
/// <summary>
/// ExternalID is the id the network returned for the published post, which is what reconciles this row against the post on the network. Absent until a publish succeeds.
/// </summary>
utility::string_t getExternalId() const;
bool externalIdIsSet() const;
void unsetExternalId();
void setExternalId(const utility::string_t& value);
/// <summary>
/// ID is the post&#39;s identifier, minted on create and the id every later call addresses it by. Example: \&quot;post_91ab20\&quot;
/// </summary>
utility::string_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(const utility::string_t& value);
/// <summary>
/// Media is the post&#39;s attached media as a list of URLs (images today; the composer&#39;s URL field now, an S3 picker later, populate it). Stored as a JSON array in the media TEXT column and ALWAYS serialized as an array (never null), so a client can rely on &#x60;media&#x60; being present. Bounded at the write layer (normMedia in social.go): each URL clipped to maxField, the list to maxMedia.
/// </summary>
std::vector<utility::string_t> getMedia() const;
bool mediaIsSet() const;
void unsetMedia();
void setMedia(const std::vector<utility::string_t>& value);
/// <summary>
/// ScheduleAt is when the post is due, as a unix timestamp in SECONDS. 0 means unscheduled. It is meaningful only while the status is scheduled — a scheduled post whose time has arrived is published by the scheduler.
/// </summary>
int64_t getScheduleAt() const;
bool scheduleAtIsSet() const;
void unsetScheduleAt();
void setScheduleAt(int64_t value);
/// <summary>
/// Status is the post&#39;s lifecycle state: draft, scheduled, published or failed. A fifth, transient publishing state exists while a publish attempt holds the claim; it is never settable from a request and a caller sees it only if it reads a post mid-attempt.
/// </summary>
utility::string_t getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(const utility::string_t& value);
/// <summary>
/// UpdatedAt is when the post row last changed, as a unix timestamp in seconds. The listing is ordered by it, newest first.
/// </summary>
int64_t getUpdatedAt() const;
bool updatedAtIsSet() const;
void unsetUpdatedAt();
void setUpdatedAt(int64_t value);
protected:
utility::string_t m_AccountId;
bool m_AccountIdIsSet;
utility::string_t m_Channel;
bool m_ChannelIsSet;
utility::string_t m_Content;
bool m_ContentIsSet;
int64_t m_CreatedAt;
bool m_CreatedAtIsSet;
utility::string_t m_Error;
bool m_ErrorIsSet;
utility::string_t m_ExternalId;
bool m_ExternalIdIsSet;
utility::string_t m_Id;
bool m_IdIsSet;
std::vector<utility::string_t> m_Media;
bool m_MediaIsSet;
int64_t m_ScheduleAt;
bool m_ScheduleAtIsSet;
utility::string_t m_Status;
bool m_StatusIsSet;
int64_t m_UpdatedAt;
bool m_UpdatedAtIsSet;
};
}
}
#endif /* HANZO_MODEL_SocialPost_H_ */