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.
163 lines
4.3 KiB
C++
163 lines
4.3 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.
|
|
*/
|
|
|
|
/*
|
|
* Enrollment.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Enrollment_H_
|
|
#define HANZO_MODEL_Enrollment_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class Enrollment
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Enrollment();
|
|
virtual ~Enrollment();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Enrollment members
|
|
|
|
|
|
/// <summary>
|
|
/// Address is the normalized (lower-cased, trimmed) recipient.
|
|
/// </summary>
|
|
utility::string_t getAddress() const;
|
|
bool addressIsSet() const;
|
|
void unsetAddress();
|
|
void setAddress(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Channel is the delivery surface the steps go out on.
|
|
/// </summary>
|
|
utility::string_t getChannel() const;
|
|
bool channelIsSet() const;
|
|
void unsetChannel();
|
|
void setChannel(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// CurrentStep is the index of the step that sends next.
|
|
/// </summary>
|
|
int64_t getCurrentStep() const;
|
|
bool currentStepIsSet() const;
|
|
void unsetCurrentStep();
|
|
void setCurrentStep(int64_t value);
|
|
|
|
/// <summary>
|
|
/// EnrolledAt is unix seconds when the contact joined the walk, and orders the enrollment list (newest first).
|
|
/// </summary>
|
|
int64_t getEnrolledAt() const;
|
|
bool enrolledAtIsSet() const;
|
|
void unsetEnrolledAt();
|
|
void setEnrolledAt(int64_t value);
|
|
|
|
/// <summary>
|
|
/// ID is the server-assigned enrollment id (\"enr_\" + 128 random bits).
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// NextRunAt is the unix time the current step comes due; 0 once the walk has ended. It IS the schedule — durable in SQLite, so it survives restarts.
|
|
/// </summary>
|
|
int64_t getNextRunAt() const;
|
|
bool nextRunAtIsSet() const;
|
|
void unsetNextRunAt();
|
|
void setNextRunAt(int64_t value);
|
|
|
|
/// <summary>
|
|
/// SequenceID is the sequence being walked.
|
|
/// </summary>
|
|
utility::string_t getSequenceId() const;
|
|
bool sequenceIdIsSet() const;
|
|
void unsetSequenceId();
|
|
void setSequenceId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Status is active, completed or canceled.
|
|
/// </summary>
|
|
utility::string_t getStatus() const;
|
|
bool statusIsSet() const;
|
|
void unsetStatus();
|
|
void setStatus(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// UpdatedAt is unix seconds of the last move: the drip engine writes it each time it advances the walk a step, completes it or cancels it. Together with Status it says when the walk last did anything, which is how a stalled enrollment is told from a finished one.
|
|
/// </summary>
|
|
int64_t getUpdatedAt() const;
|
|
bool updatedAtIsSet() const;
|
|
void unsetUpdatedAt();
|
|
void setUpdatedAt(int64_t value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Address;
|
|
bool m_AddressIsSet;
|
|
|
|
utility::string_t m_Channel;
|
|
bool m_ChannelIsSet;
|
|
|
|
int64_t m_CurrentStep;
|
|
bool m_CurrentStepIsSet;
|
|
|
|
int64_t m_EnrolledAt;
|
|
bool m_EnrolledAtIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
int64_t m_NextRunAt;
|
|
bool m_NextRunAtIsSet;
|
|
|
|
utility::string_t m_SequenceId;
|
|
bool m_SequenceIdIsSet;
|
|
|
|
utility::string_t m_Status;
|
|
bool m_StatusIsSet;
|
|
|
|
int64_t m_UpdatedAt;
|
|
bool m_UpdatedAtIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Enrollment_H_ */
|