You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.5 KiB

2 years ago
  1. /**
  2. * Seaweedfs Master Server API
  3. * The Seaweedfs Master Server API allows you to store blobs
  4. *
  5. * The version of the OpenAPI document: 3.43.0
  6. *
  7. * NOTE: This class is auto generated by OpenAPI-Generator 6.4.0.
  8. * https://openapi-generator.tech
  9. * Do not edit the class manually.
  10. */
  11. /*
  12. * Object.h
  13. *
  14. * This is the implementation of a JSON object.
  15. */
  16. #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_Object_H_
  17. #define ORG_OPENAPITOOLS_CLIENT_MODEL_Object_H_
  18. #include "CppRestOpenAPIClient/ModelBase.h"
  19. #include <cpprest/details/basic_types.h>
  20. #include <cpprest/json.h>
  21. namespace org {
  22. namespace openapitools {
  23. namespace client {
  24. namespace model {
  25. class Object : public ModelBase
  26. {
  27. public:
  28. Object();
  29. virtual ~Object();
  30. /////////////////////////////////////////////
  31. /// ModelBase overrides
  32. void validate() override;
  33. web::json::value toJson() const override;
  34. bool fromJson(const web::json::value& json) override;
  35. void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
  36. bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
  37. /////////////////////////////////////////////
  38. /// Object manipulation
  39. web::json::value getValue(const utility::string_t& key) const;
  40. void setValue(const utility::string_t& key, const web::json::value& value);
  41. private:
  42. web::json::value m_object;
  43. };
  44. }
  45. }
  46. }
  47. }
  48. #endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_Object_H_ */