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.
194 lines
5.5 KiB
C++
194 lines
5.5 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_Release.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Licensing_Release_H_
|
|
#define HANZO_MODEL_Licensing_Release_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class Licensing_Release
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Licensing_Release();
|
|
virtual ~Licensing_Release();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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_Release members
|
|
|
|
|
|
/// <summary>
|
|
/// AppID scopes the release to an app build (\"hanzo\" | \"lux\" | \"zoo\").
|
|
/// </summary>
|
|
utility::string_t getAppId() const;
|
|
bool appIdIsSet() const;
|
|
void unsetApp_id();
|
|
void setAppId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ArtifactRef is where the binary lives (object-store key / OCI ref / path).
|
|
/// </summary>
|
|
utility::string_t getArtifactRef() const;
|
|
bool artifactRefIsSet() const;
|
|
void unsetArtifact_ref();
|
|
void setArtifactRef(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// CosignCert is the cosign/Fulcio cert (keyless) or public key ref used to verify CosignSignature. The download response hands this to the client.
|
|
/// </summary>
|
|
utility::string_t getCosignCert() const;
|
|
bool cosignCertIsSet() const;
|
|
void unsetCosign_cert();
|
|
void setCosignCert(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// CosignSignature is the base64 cosign signature over the artifact digest.
|
|
/// </summary>
|
|
utility::string_t getCosignSignature() const;
|
|
bool cosignSignatureIsSet() const;
|
|
void unsetCosign_signature();
|
|
void setCosignSignature(const utility::string_t& value);
|
|
|
|
int64_t getCreatedAt() const;
|
|
bool createdAtIsSet() const;
|
|
void unsetCreated_at();
|
|
void setCreatedAt(int64_t value);
|
|
|
|
/// <summary>
|
|
/// ID is the release identifier, e.g. \"engine-rocm-0.4.2-linux-amd64\". The accelerator belongs here — one product is built several ways — and never in Product below.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// MinFeatures, when set, are features the license must include to download.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getMinFeatures() const;
|
|
bool minFeaturesIsSet() const;
|
|
void unsetMin_features();
|
|
void setMinFeatures(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Platform is \"<os>/<arch>\", e.g. \"linux/amd64\".
|
|
/// </summary>
|
|
utility::string_t getPlatform() const;
|
|
bool platformIsSet() const;
|
|
void unsetPlatform();
|
|
void setPlatform(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Product is the licensed product this artifact belongs to (commerce SKU): \"engine\" for every one of those builds.
|
|
/// </summary>
|
|
utility::string_t getProduct() const;
|
|
bool productIsSet() const;
|
|
void unsetProduct();
|
|
void setProduct(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// SHA256 is the hex digest of the artifact (integrity + cosign subject).
|
|
/// </summary>
|
|
utility::string_t getSha256() const;
|
|
bool sha256IsSet() const;
|
|
void unsetSha256();
|
|
void setSha256(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Version is the semantic version of the binary.
|
|
/// </summary>
|
|
utility::string_t getVersion() const;
|
|
bool versionIsSet() const;
|
|
void unsetVersion();
|
|
void setVersion(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Yanked marks a pulled release (download refused; tokens may be revoked release-scoped too).
|
|
/// </summary>
|
|
bool isYanked() const;
|
|
bool yankedIsSet() const;
|
|
void unsetYanked();
|
|
void setYanked(bool value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_App_id;
|
|
bool m_App_idIsSet;
|
|
|
|
utility::string_t m_Artifact_ref;
|
|
bool m_Artifact_refIsSet;
|
|
|
|
utility::string_t m_Cosign_cert;
|
|
bool m_Cosign_certIsSet;
|
|
|
|
utility::string_t m_Cosign_signature;
|
|
bool m_Cosign_signatureIsSet;
|
|
|
|
int64_t m_Created_at;
|
|
bool m_Created_atIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
std::vector<utility::string_t> m_Min_features;
|
|
bool m_Min_featuresIsSet;
|
|
|
|
utility::string_t m_Platform;
|
|
bool m_PlatformIsSet;
|
|
|
|
utility::string_t m_Product;
|
|
bool m_ProductIsSet;
|
|
|
|
utility::string_t m_Sha256;
|
|
bool m_Sha256IsSet;
|
|
|
|
utility::string_t m_Version;
|
|
bool m_VersionIsSet;
|
|
|
|
bool m_Yanked;
|
|
bool m_YankedIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Licensing_Release_H_ */
|