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.

66 lines
1.7 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. * ApiConfiguration.h
  13. *
  14. * This class represents a single item of a multipart-formdata request.
  15. */
  16. #ifndef ORG_OPENAPITOOLS_CLIENT_API_ApiConfiguration_H_
  17. #define ORG_OPENAPITOOLS_CLIENT_API_ApiConfiguration_H_
  18. #include <cpprest/details/basic_types.h>
  19. #include <cpprest/http_client.h>
  20. #include <map>
  21. namespace org {
  22. namespace openapitools {
  23. namespace client {
  24. namespace api {
  25. class ApiConfiguration
  26. {
  27. public:
  28. ApiConfiguration();
  29. virtual ~ApiConfiguration();
  30. const web::http::client::http_client_config& getHttpConfig() const;
  31. void setHttpConfig( web::http::client::http_client_config& value );
  32. utility::string_t getBaseUrl() const;
  33. void setBaseUrl( const utility::string_t value );
  34. utility::string_t getUserAgent() const;
  35. void setUserAgent( const utility::string_t value );
  36. std::map<utility::string_t, utility::string_t>& getDefaultHeaders();
  37. const std::map<utility::string_t, utility::string_t>& getDefaultHeaders() const;
  38. utility::string_t getApiKey( const utility::string_t& prefix) const;
  39. void setApiKey( const utility::string_t& prefix, const utility::string_t& apiKey );
  40. protected:
  41. utility::string_t m_BaseUrl;
  42. std::map<utility::string_t, utility::string_t> m_DefaultHeaders;
  43. std::map<utility::string_t, utility::string_t> m_ApiKeys;
  44. web::http::client::http_client_config m_HttpConfig;
  45. utility::string_t m_UserAgent;
  46. };
  47. }
  48. }
  49. }
  50. }
  51. #endif /* ORG_OPENAPITOOLS_CLIENT_API_ApiConfiguration_H_ */