Files
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

141 lines
3.2 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.
*/
/*
* Offer.h
*
*
*/
#ifndef HANZO_MODEL_Offer_H_
#define HANZO_MODEL_Offer_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class Offer
: public ModelBase
{
public:
Offer();
virtual ~Offer();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Offer members
/// <summary>
/// whether it can be bought right now
/// </summary>
bool isAvailable() const;
bool availableIsSet() const;
void unsetAvailable();
void setAvailable(bool value);
/// <summary>
/// the currency both prices are in
/// </summary>
utility::string_t getCurrency() const;
bool currencyIsSet() const;
void unsetCurrency();
void setCurrency(const utility::string_t& value);
/// <summary>
/// the name this quote prices
/// </summary>
utility::string_t getDomain() const;
bool domainIsSet() const;
void unsetDomain();
void setDomain(const utility::string_t& value);
/// <summary>
/// whether the registry prices it above the standard rate
/// </summary>
bool isPremium() const;
bool premiumIsSet() const;
void unsetPremium();
void setPremium(bool value);
/// <summary>
/// sell (first-term registration)
/// </summary>
int64_t getPriceCents() const;
bool priceCentsIsSet() const;
void unsetPriceCents();
void setPriceCents(int64_t value);
/// <summary>
/// sell (renewal)
/// </summary>
int64_t getRenewalPriceCents() const;
bool renewalPriceCentsIsSet() const;
void unsetRenewalPriceCents();
void setRenewalPriceCents(int64_t value);
/// <summary>
/// the top-level domain the name sits under
/// </summary>
utility::string_t getTld() const;
bool tldIsSet() const;
void unsetTld();
void setTld(const utility::string_t& value);
protected:
bool m_Available;
bool m_AvailableIsSet;
utility::string_t m_Currency;
bool m_CurrencyIsSet;
utility::string_t m_Domain;
bool m_DomainIsSet;
bool m_Premium;
bool m_PremiumIsSet;
int64_t m_PriceCents;
bool m_PriceCentsIsSet;
int64_t m_RenewalPriceCents;
bool m_RenewalPriceCentsIsSet;
utility::string_t m_Tld;
bool m_TldIsSet;
};
}
}
#endif /* HANZO_MODEL_Offer_H_ */