mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
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.
152 lines
4.2 KiB
C++
152 lines
4.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.
|
|
*/
|
|
|
|
/*
|
|
* ProvisionedResource.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_ProvisionedResource_H_
|
|
#define HANZO_MODEL_ProvisionedResource_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class ProvisionedResource
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
ProvisionedResource();
|
|
virtual ~ProvisionedResource();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// ProvisionedResource members
|
|
|
|
|
|
/// <summary>
|
|
/// Database is the logical database, collection, index or bucket this resource resolves to on its backend.
|
|
/// </summary>
|
|
utility::string_t getDatabase() const;
|
|
bool databaseIsSet() const;
|
|
void unsetDatabase();
|
|
void setDatabase(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Host is the address that actually routes to this resource — a dedicated instance's own in-cluster Service, or the public gateway for a shared one.
|
|
/// </summary>
|
|
utility::string_t getHost() const;
|
|
bool hostIsSet() const;
|
|
void unsetHost();
|
|
void setHost(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ID is the resource's server-minted handle, \"rs_\"-prefixed.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Kind is the product: sql, vector, datastore, kv, search, s3 or docdb.
|
|
/// </summary>
|
|
utility::string_t getKind() const;
|
|
bool kindIsSet() const;
|
|
void unsetKind();
|
|
void setKind(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Name is the org-unique slug the caller provisioned the resource under.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Port is the port a client connects to on Host.
|
|
/// </summary>
|
|
int64_t getPort() const;
|
|
bool portIsSet() const;
|
|
void unsetPort();
|
|
void setPort(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Status is \"ready\", or \"provisioning\" while a dedicated instance is still being materialized. A dedicated resource's status is reconciled from the operator's live CR before this is answered, so it is never a stale ready.
|
|
/// </summary>
|
|
utility::string_t getStatus() const;
|
|
bool statusIsSet() const;
|
|
void unsetStatus();
|
|
void setStatus(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Username is the credential's user, for the kinds that mint one per resource. Absent for a kind whose backend authenticates with a shared, out-of-band key.
|
|
/// </summary>
|
|
utility::string_t getUsername() const;
|
|
bool usernameIsSet() const;
|
|
void unsetUsername();
|
|
void setUsername(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Database;
|
|
bool m_DatabaseIsSet;
|
|
|
|
utility::string_t m_Host;
|
|
bool m_HostIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
utility::string_t m_Kind;
|
|
bool m_KindIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
int64_t m_Port;
|
|
bool m_PortIsSet;
|
|
|
|
utility::string_t m_Status;
|
|
bool m_StatusIsSet;
|
|
|
|
utility::string_t m_Username;
|
|
bool m_UsernameIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_ProvisionedResource_H_ */
|