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.
174 lines
5.6 KiB
C++
174 lines
5.6 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.
|
|
*/
|
|
|
|
/*
|
|
* ProvisionResult.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_ProvisionResult_H_
|
|
#define HANZO_MODEL_ProvisionResult_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class ProvisionResult
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
ProvisionResult();
|
|
virtual ~ProvisionResult();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// ProvisionResult members
|
|
|
|
|
|
/// <summary>
|
|
/// ConnectionString is the ready-to-use DSN, credential included. RETURNED HERE ONCE: no read beside this one carries it, so a caller that does not keep it must provision again.
|
|
/// </summary>
|
|
utility::string_t getConnectionString() const;
|
|
bool connectionStringIsSet() const;
|
|
void unsetConnectionString();
|
|
void setConnectionString(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Database is the logical database, collection, index or bucket this resource resolves to on its backend. It is derived from Name under an org-namespacing hash, so it is not Name and two orgs cannot land on one.
|
|
/// </summary>
|
|
utility::string_t getDatabase() const;
|
|
bool databaseIsSet() const;
|
|
void unsetDatabase();
|
|
void setDatabase(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Host is the address that routes to this resource — a dedicated instance's own in-cluster Service, or the public gateway for a shared one. Never the internal admin address of a shared backend.
|
|
/// </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. The caller does not choose it, and it is what every read and the delete address.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Kind is the product provisioned: sql, vector, datastore, kv, search, s3 or docdb. It is the route that was called, not a body field.
|
|
/// </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 asked for, lower-cased. Every physical name on the backend derives from it.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Password is the minted credential, in plaintext, for the kinds that have one. RETURNED HERE ONCE — where KMS is configured it is sealed there and only a reference is persisted; where it is not, it is stored nowhere at all. It is never held in plaintext on either side.
|
|
/// </summary>
|
|
utility::string_t getPassword() const;
|
|
bool passwordIsSet() const;
|
|
void unsetPassword();
|
|
void setPassword(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 by the operator. A shared-backend create is \"ready\" here; a dedicated one answers 201 still launching, and reaches ready only when a later read reconciles it against the operator's live CR — never fabricated.
|
|
/// </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_ConnectionString;
|
|
bool m_ConnectionStringIsSet;
|
|
|
|
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;
|
|
|
|
utility::string_t m_Password;
|
|
bool m_PasswordIsSet;
|
|
|
|
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_ProvisionResult_H_ */
|