Files
zeekay 645325a641 regenerate from cloud 939b09d4
The projection was 113 commits behind the document it claims to describe, and
`generate.py --all --check` reported every one of the thirteen clients DRIFTED —
the same +19 models in each, because they all fell behind the same emission.

Regenerated in place from hanzo-inc/cloud openapi.yaml at 939b09d4
(sha256 087024f6…), which is the only description of this API that cannot name a
route the binary does not serve. `--check` is clean across all thirteen after.

.spec-lock moved with the code. The generator READS that file and never writes
it — hanzoai/ci`s lane does — so a hand run leaves every lock naming the previous
document. A lock that disagrees with the tree beside it is worse than no lock:
the next `--check` without `--spec` fetches what production serves, compares it
to a digest that was already wrong, and reports drift that is really staleness.
2026-08-24 23:32:53 -07:00

78 lines
3.4 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.
*/
/*
* BlueprintApi.h
*
*
*/
#ifndef HANZO_API_BlueprintApi_H_
#define HANZO_API_BlueprintApi_H_
#include "hanzo/ApiClient.h"
#include "hanzo/model/BlueprintHealth.h"
#include "hanzo/model/BlueprintIndex.h"
#include <boost/optional.hpp>
namespace hanzo {
namespace api {
using namespace hanzo::model;
class BlueprintApi
{
public:
explicit BlueprintApi( std::shared_ptr<const ApiClient> apiClient );
virtual ~BlueprintApi();
/// <summary>
/// Returns every deployable blueprint with its service count and estimated monthly compute cost.
/// </summary>
/// <remarks>
/// Returns every deployable blueprint with its service count and estimated monthly compute cost. It is the lightweight index the console renders as a template gallery before drilling into one stack&#39;s bill of images — GET /v1/blueprint/sbom?template&#x3D;&lt;id&gt; is the detail view. The cost is the same figure the deploy path meters the deploying org on and the 20% author royalty is taken from, priced from the active rate card (GET /v1/blueprint/health echoes that card).
/// </remarks>
pplx::task<std::shared_ptr<BlueprintIndex>> getBlueprint(
) const;
/// <summary>
/// Reports blueprint liveness and echoes the compute rate card in force.
/// </summary>
/// <remarks>
/// Reports blueprint liveness and echoes the compute rate card in force. The rate card is the one the estimator actually applies after the operator env overlay, so an operator can confirm a tuned knob took effect rather than inferring it from a price. Not JWT-gated — a liveness probe must be reachable — and it always answers 200 while the subsystem is mounted.
/// </remarks>
pplx::task<std::shared_ptr<BlueprintHealth>> getBlueprintHealth(
) const;
/// <summary>
/// A blueprint&#39;s bill of images and what running it costs
/// </summary>
/// <remarks>
/// Answers a blueprint&#39;s SBOM — the container images its compose stack runs, each with the CPU/memory footprint that was applied to it — together with the compute cost that footprint prices out to on the active rate card. ONE address, TWO shapes at 200: &#x60;?template&#x3D;&lt;id&gt;&#x60; returns that blueprint&#39;s Estimate alone (404 on an id no embedded blueprint carries), and no &#x60;template&#x60; returns &#x60;{data:[Estimate]}&#x60; for every blueprint — the batch the console&#39;s template gallery reads in one round-trip. The blueprints are reference content embedded in the binary and validated at mount, so this read is the same for every caller and is scoped to no tenant. The per-hour figure it returns is the one the deploy path meters the deploying org on and the 20% author royalty is taken from; GET /v1/blueprint/health echoes the rate card it was priced from.
/// </remarks>
pplx::task<void> getBlueprintSbom(
) const;
protected:
std::shared_ptr<const ApiClient> m_ApiClient;
};
}
}
#endif /* HANZO_API_BlueprintApi_H_ */