mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
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.
165 lines
4.8 KiB
C++
165 lines
4.8 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.
|
|
*/
|
|
|
|
/*
|
|
* O11y_O11yGoogleConfig.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_O11y_O11yGoogleConfig_H_
|
|
#define HANZO_MODEL_O11y_O11yGoogleConfig_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class O11y_O11yGoogleConfig
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
O11y_O11yGoogleConfig();
|
|
virtual ~O11y_O11yGoogleConfig();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// O11y_O11yGoogleConfig members
|
|
|
|
|
|
/// <summary>
|
|
/// AllowedGroups, when set, admits only members of these groups.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getAllowedGroups() const;
|
|
bool allowedGroupsIsSet() const;
|
|
void unsetAllowedGroups();
|
|
void setAllowedGroups(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// ClientID is the OAuth application's id.
|
|
/// </summary>
|
|
utility::string_t getClientId() const;
|
|
bool clientIdIsSet() const;
|
|
void unsetClientId();
|
|
void setClientId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ClientSecret is the OAuth application's secret.
|
|
/// </summary>
|
|
utility::string_t getClientSecret() const;
|
|
bool clientSecretIsSet() const;
|
|
void unsetClientSecret();
|
|
void setClientSecret(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// DomainToAdminEmail maps each Workspace domain to the admin the service account impersonates; \"*\" is the fallback.
|
|
/// </summary>
|
|
std::map<utility::string_t, utility::string_t> getDomainToAdminEmail() const;
|
|
bool domainToAdminEmailIsSet() const;
|
|
void unsetDomainToAdminEmail();
|
|
void setDomainToAdminEmail(const std::map<utility::string_t, utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// FetchGroups reads the user's Workspace groups for role mapping.
|
|
/// </summary>
|
|
bool isFetchGroups() const;
|
|
bool fetchGroupsIsSet() const;
|
|
void unsetFetchGroups();
|
|
void setFetchGroups(bool value);
|
|
|
|
/// <summary>
|
|
/// FetchTransitiveGroupMembership also reads groups held through other groups.
|
|
/// </summary>
|
|
bool isFetchTransitiveGroupMembership() const;
|
|
bool fetchTransitiveGroupMembershipIsSet() const;
|
|
void unsetFetchTransitiveGroupMembership();
|
|
void setFetchTransitiveGroupMembership(bool value);
|
|
|
|
/// <summary>
|
|
/// InsecureSkipEmailVerified admits addresses Google has not verified.
|
|
/// </summary>
|
|
bool isInsecureSkipEmailVerified() const;
|
|
bool insecureSkipEmailVerifiedIsSet() const;
|
|
void unsetInsecureSkipEmailVerified();
|
|
void setInsecureSkipEmailVerified(bool value);
|
|
|
|
/// <summary>
|
|
/// RedirectURI is the callback the flow returns to.
|
|
/// </summary>
|
|
utility::string_t getRedirectURI() const;
|
|
bool redirectURIIsSet() const;
|
|
void unsetRedirectURI();
|
|
void setRedirectURI(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ServiceAccountJSON is the service-account credential used to read groups, when FetchGroups is on.
|
|
/// </summary>
|
|
utility::string_t getServiceAccountJson() const;
|
|
bool serviceAccountJsonIsSet() const;
|
|
void unsetServiceAccountJson();
|
|
void setServiceAccountJson(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
std::vector<utility::string_t> m_AllowedGroups;
|
|
bool m_AllowedGroupsIsSet;
|
|
|
|
utility::string_t m_ClientId;
|
|
bool m_ClientIdIsSet;
|
|
|
|
utility::string_t m_ClientSecret;
|
|
bool m_ClientSecretIsSet;
|
|
|
|
std::map<utility::string_t, utility::string_t> m_DomainToAdminEmail;
|
|
bool m_DomainToAdminEmailIsSet;
|
|
|
|
bool m_FetchGroups;
|
|
bool m_FetchGroupsIsSet;
|
|
|
|
bool m_FetchTransitiveGroupMembership;
|
|
bool m_FetchTransitiveGroupMembershipIsSet;
|
|
|
|
bool m_InsecureSkipEmailVerified;
|
|
bool m_InsecureSkipEmailVerifiedIsSet;
|
|
|
|
utility::string_t m_RedirectURI;
|
|
bool m_RedirectURIIsSet;
|
|
|
|
utility::string_t m_ServiceAccountJson;
|
|
bool m_ServiceAccountJsonIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_O11y_O11yGoogleConfig_H_ */
|