Files
sdk/include/hanzo/model/Licensing_IssueRequest.h
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

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.
*/
/*
* Licensing_IssueRequest.h
*
*
*/
#ifndef HANZO_MODEL_Licensing_IssueRequest_H_
#define HANZO_MODEL_Licensing_IssueRequest_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/Licensing_DeviceSignals.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class Licensing_DeviceSignals;
class Licensing_IssueRequest
: public ModelBase
{
public:
Licensing_IssueRequest();
virtual ~Licensing_IssueRequest();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Licensing_IssueRequest members
/// <summary>
/// Fingerprint is a previously-registered device binding value, as returned by POST /v1/licensing/fingerprint. Leave it empty and pass Signals to bind the device at issue time instead.
/// </summary>
utility::string_t getFingerprint() const;
bool fingerprintIsSet() const;
void unsetFingerprint();
void setFingerprint(const utility::string_t& value);
/// <summary>
/// Holder overrides who the token is issued to; defaults to the caller&#39;s own validated subject. It NAMES the token&#39;s bearer and grants nothing on its own — the entitlement checked is always the caller&#39;s org&#39;s.
/// </summary>
utility::string_t getHolder() const;
bool holderIsSet() const;
void unsetHolder();
void setHolder(const utility::string_t& value);
/// <summary>
/// Product is the licensed commerce product the caller wants a token for.
/// </summary>
utility::string_t getProduct() const;
bool productIsSet() const;
void unsetProduct();
void setProduct(const utility::string_t& value);
/// <summary>
/// Release scopes the token to one signed binary release, recorded as a \&quot;release:&lt;id&gt;\&quot; feature so a single bad release can be revoked on its own.
/// </summary>
utility::string_t getRelease() const;
bool releaseIsSet() const;
void unsetRelease();
void setRelease(const utility::string_t& value);
/// <summary>
/// Signals binds the device at issue time, as an alternative to a pre-registered fingerprint. The raw signals are never stored or echoed — they are folded immediately into the one-way binding value.
/// </summary>
std::shared_ptr<Licensing_DeviceSignals> getSignals() const;
bool signalsIsSet() const;
void unsetSignals();
void setSignals(const std::shared_ptr<Licensing_DeviceSignals>& value);
/// <summary>
/// TTLSeconds requests a token lifetime in seconds. It is clamped to the deployment maximum AND to the entitlement&#39;s own expiry — a token never outlives the subscription that paid for it.
/// </summary>
int64_t getTtlSeconds() const;
bool ttlSecondsIsSet() const;
void unsetTtl_seconds();
void setTtlSeconds(int64_t value);
protected:
utility::string_t m_Fingerprint;
bool m_FingerprintIsSet;
utility::string_t m_Holder;
bool m_HolderIsSet;
utility::string_t m_Product;
bool m_ProductIsSet;
utility::string_t m_Release;
bool m_ReleaseIsSet;
std::shared_ptr<Licensing_DeviceSignals> m_Signals;
bool m_SignalsIsSet;
int64_t m_Ttl_seconds;
bool m_Ttl_secondsIsSet;
};
}
}
#endif /* HANZO_MODEL_Licensing_IssueRequest_H_ */