/** * Seaweedfs Master Server API * The Seaweedfs Master Server API allows you to store blobs * * The version of the OpenAPI document: 3.43.0 * * NOTE: This class is auto generated by OpenAPI-Generator 6.4.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* * DefaultApi.h * * */ #ifndef ORG_OPENAPITOOLS_CLIENT_API_DefaultApi_H_ #define ORG_OPENAPITOOLS_CLIENT_API_DefaultApi_H_ #include "CppRestOpenAPIClient/ApiClient.h" #include "CppRestOpenAPIClient/model/AnyType.h" #include "CppRestOpenAPIClient/model/FileKey.h" #include namespace org { namespace openapitools { namespace client { namespace api { using namespace org::openapitools::client::model; class DefaultApi { public: explicit DefaultApi( std::shared_ptr apiClient ); virtual ~DefaultApi(); /// /// Assign a file key /// /// /// This operation is very cheap. Just increase a number in master server's memory. /// /// how many file ids to assign. Use <fid>_1, <fid>_2 for the assigned additional file ids. e.g. 3,01637037d6_1, 3,01637037d6_2 (optional, default to nullptr) /// required collection name (optional, default to nullptr) /// preferred data center (optional, default to nullptr) /// preferred rack (optional, default to nullptr) /// preferred volume server, e.g. 127.0.0.1:8080 (optional, default to nullptr) /// If you have disks labelled, this must be supplied to specify the disk type to allocate on. (optional, default to nullptr) /// replica placement strategy (optional, default to nullptr) /// file expiration time limit, example: 3m for 3 minutes. units: m-minute, h-hour, d-day, w-week, M-month, y-year (optional, default to nullptr) /// If no matching volumes, pre-allocate this number of bytes on disk for new volumes. (optional, default to nullptr) /// Only implemented for windows. Use memory mapped files with specified size for new volumes. (optional, default to nullptr) /// If no matching volumes, create specified number of new volumes. (optional, default to nullptr) pplx::task> dirAssign( boost::optional> count, boost::optional> collection, boost::optional> dataCenter, boost::optional> rack, boost::optional> dataNode, boost::optional> disk, boost::optional> replication, boost::optional> ttl, boost::optional> preallocate, boost::optional> memoryMapMaxSizeMb, boost::optional> writableVolumeCount ) const; /// /// Lookup volume /// /// /// We would need to find out whether the volumes have moved. /// /// volume id (optional, default to nullptr) /// optionally to speed up the lookup (optional, default to nullptr) /// If provided, this returns the fileId location and a JWT to update or delete the file. (optional, default to nullptr) /// works together with \"fileId\", if read=yes, JWT is generated for reads. (optional, default to nullptr) pplx::task> dirLookup( boost::optional> volumeId, boost::optional> collection, boost::optional> fileId, boost::optional> read ) const; protected: std::shared_ptr m_ApiClient; }; } } } } #endif /* ORG_OPENAPITOOLS_CLIENT_API_DefaultApi_H_ */