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

181 lines
6.7 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.
*/
/*
* Iam_registration.h
*
*
*/
#ifndef HANZO_MODEL_Iam_registration_H_
#define HANZO_MODEL_Iam_registration_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
#include <vector>
namespace hanzo {
namespace model {
class Iam_registration
: public ModelBase
{
public:
Iam_registration();
virtual ~Iam_registration();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Iam_registration members
utility::string_t getCert() const;
bool certIsSet() const;
void unsetCert();
void setCert(const utility::string_t& value);
utility::string_t getClientId() const;
bool clientIdIsSet() const;
void unsetClientId();
void setClientId(const utility::string_t& value);
utility::string_t getClientSecret() const;
bool clientSecretIsSet() const;
void unsetClientSecret();
void setClientSecret(const utility::string_t& value);
utility::string_t getDisplayName() const;
bool displayNameIsSet() const;
void unsetDisplayName();
void setDisplayName(const utility::string_t& value);
/// <summary>
/// EnableCodeSignin offers sign-in by an emailed or texted one-time code beside the password. A POINTER for the same reason as IsShared: a plain bool reads as false on every reconcile that says nothing and would switch the method off for every app whose caller never mentioned it.
/// </summary>
bool isEnableCodeSignin() const;
bool enableCodeSigninIsSet() const;
void unsetEnableCodeSignin();
void setEnableCodeSignin(bool value);
/// <summary>
/// ExpireInHours and RefreshExpireInHours are the application&#39;s token lifetimes. They are the ONLY declarative way to say that a refresh token must OUTLIVE its access token: with neither stated, oidc.refreshTTL clamps the refresh lifetime to the access lifetime, so the refresh_token grant the registration advertises expires at the same instant as the token it was meant to renew and can never be exercised. &#x60;hanzo-cli&#x60; sat in exactly that state — a browser re-login every hour, and a live refresh returning 401. POINTERS, for the same reason as IsShared: a plain float would read as 0 on every reconcile that says nothing and reset a deliberate lifetime back to the default. Nil means \&quot;not stated, leave it\&quot;.
/// </summary>
double getExpireInHours() const;
bool expireInHoursIsSet() const;
void unsetExpireInHours();
void setExpireInHours(double value);
std::vector<utility::string_t> getGrantTypes() const;
bool grantTypesIsSet() const;
void unsetGrantTypes();
void setGrantTypes(const std::vector<utility::string_t>& value);
/// <summary>
/// IsShared declares that this application serves EVERY organization, not only the one named in Organization. It is the honest description of a brand app — hanzo-id, hanzo-chat, a brand console — whose customers each live in their own tenant: self-service onboarding moves a founder OUT of the brand org, so &#x60;user.Owner !&#x3D; app.Organization&#x60; is the steady state and the app really does serve every org. Application.ServesOrg reads it as one of the three ways to say yes. A POINTER because omission must PRESERVE. This upsert is the operator&#39;s steady-state reconcile and most callers say nothing about sharing; a plain bool would read as false on every one of them and silently un-share an app — the same shape of accident that de-secreted apps through update-application. Nil means \&quot;not stated, leave it\&quot;; only an explicit true or false moves it.
/// </summary>
bool isIsShared() const;
bool isSharedIsSet() const;
void unsetIsShared();
void setIsShared(bool value);
utility::string_t getName() const;
bool nameIsSet() const;
void unsetName();
void setName(const utility::string_t& value);
utility::string_t getOrganization() const;
bool organizationIsSet() const;
void unsetOrganization();
void setOrganization(const utility::string_t& value);
/// <summary>
/// Public declares a client that CANNOT hold a credential — a browser SPA, a CLI, a desktop app. It proves itself with PKCE instead, and the token endpoint treats \&quot;no stored secret\&quot; as exactly that (token.go: a secret is verified only when one is stored). Without this flag every upsert minted a secret, so a public client could never be registered at all and its browser code-&gt;token exchange 401&#39;d &#x60;invalid_client&#x60; forever.
/// </summary>
bool isRPublic() const;
bool rPublicIsSet() const;
void unsetr_public();
void setRPublic(bool value);
std::vector<utility::string_t> getRedirectUris() const;
bool redirectUrisIsSet() const;
void unsetRedirectUris();
void setRedirectUris(const std::vector<utility::string_t>& value);
double getRefreshExpireInHours() const;
bool refreshExpireInHoursIsSet() const;
void unsetRefreshExpireInHours();
void setRefreshExpireInHours(double value);
protected:
utility::string_t m_Cert;
bool m_CertIsSet;
utility::string_t m_ClientId;
bool m_ClientIdIsSet;
utility::string_t m_ClientSecret;
bool m_ClientSecretIsSet;
utility::string_t m_DisplayName;
bool m_DisplayNameIsSet;
bool m_EnableCodeSignin;
bool m_EnableCodeSigninIsSet;
double m_ExpireInHours;
bool m_ExpireInHoursIsSet;
std::vector<utility::string_t> m_GrantTypes;
bool m_GrantTypesIsSet;
bool m_IsShared;
bool m_IsSharedIsSet;
utility::string_t m_Name;
bool m_NameIsSet;
utility::string_t m_Organization;
bool m_OrganizationIsSet;
bool m_r_public;
bool m_r_publicIsSet;
std::vector<utility::string_t> m_RedirectUris;
bool m_RedirectUrisIsSet;
double m_RefreshExpireInHours;
bool m_RefreshExpireInHoursIsSet;
};
}
}
#endif /* HANZO_MODEL_Iam_registration_H_ */