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

153 lines
4.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.
*/
/*
* Number.h
*
*
*/
#ifndef HANZO_MODEL_Number_H_
#define HANZO_MODEL_Number_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
#include <vector>
namespace hanzo {
namespace model {
class Number
: public ModelBase
{
public:
Number();
virtual ~Number();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Number members
/// <summary>
/// Capable is what the number can carry: any of \&quot;voice\&quot;, \&quot;sms\&quot;, \&quot;mms\&quot;, \&quot;fax\&quot;. A number missing \&quot;sms\&quot; cannot send one no matter what this platform does.
/// </summary>
std::vector<utility::string_t> getCapable() const;
bool capableIsSet() const;
void unsetCapable();
void setCapable(const std::vector<utility::string_t>& value);
/// <summary>
/// Country is the ISO 3166-1 alpha-2 code the number is issued under. Numbering is national, so this is what makes a search answerable at all.
/// </summary>
utility::string_t getCountry() const;
bool countryIsSet() const;
void unsetCountry();
void setCountry(const utility::string_t& value);
/// <summary>
/// Currency is the ISO 4217 code Monthly is denominated in. Without it the number beside it means nothing, so the two are always read together.
/// </summary>
utility::string_t getCurrency() const;
bool currencyIsSet() const;
void unsetCurrency();
void setCurrency(const utility::string_t& value);
/// <summary>
/// E164 is the number in E.164: a leading + and digits only, no spaces or dashes. That is what a carrier accepts and what a search result must be bought by.
/// </summary>
utility::string_t getE164() const;
bool e164IsSet() const;
void unsetE164();
void setE164(const utility::string_t& value);
/// <summary>
/// ID is the carrier&#39;s handle for the number, and the id every route here addresses it by. It is not the number itself — see E164.
/// </summary>
utility::string_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(const utility::string_t& value);
/// <summary>
/// Monthly is the recurring rental in the MINOR unit of Currency (cents for USD), exactly as the carrier quoted it. It is a price, not a charge: nothing is billed by this field.
/// </summary>
int64_t getMonthly() const;
bool monthlyIsSet() const;
void unsetMonthly();
void setMonthly(int64_t value);
/// <summary>
/// Org is the tenant holding the number. A search result carries none — nobody holds it yet — which is how an available number is told from a held one.
/// </summary>
utility::string_t getOrg() const;
bool orgIsSet() const;
void unsetOrg();
void setOrg(const utility::string_t& value);
/// <summary>
/// Type is what kind of number it is: \&quot;local\&quot;, \&quot;national\&quot;, \&quot;tollfree\&quot; or \&quot;mobile\&quot;. It decides both price and what a carrier will let it originate.
/// </summary>
utility::string_t getType() const;
bool typeIsSet() const;
void unsetType();
void setType(const utility::string_t& value);
protected:
std::vector<utility::string_t> m_Capable;
bool m_CapableIsSet;
utility::string_t m_Country;
bool m_CountryIsSet;
utility::string_t m_Currency;
bool m_CurrencyIsSet;
utility::string_t m_E164;
bool m_E164IsSet;
utility::string_t m_Id;
bool m_IdIsSet;
int64_t m_Monthly;
bool m_MonthlyIsSet;
utility::string_t m_Org;
bool m_OrgIsSet;
utility::string_t m_Type;
bool m_TypeIsSet;
};
}
}
#endif /* HANZO_MODEL_Number_H_ */