|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #ifndef CRESTAPI_CRESAPIBASE_H
15 #define CRESTAPI_CRESAPIBASE_H
22 #include "nlohmann/json.hpp"
23 #include <curl/curl.h>
27 #define DEFAULT_CREST_API_VERSION "/api-v5.0"
307 const std::string& payloadFormat,
309 const std::string& compressionType,
336 #endif // CRESTAPI_CRESTCLIENT_H
virtual TagSetDto listTags(const std::string &name, int size, int page, const std::string &sort)=0
This method returns the tag list as TagSetDto.
virtual ~CrestApiBase()=default
virtual void createTagMeta(TagMetaDto &tag)=0
This method creates a tag meta info.
virtual void removeGlobalTagMap(const std::string &name, const std::string &record, const std::string &label, const std::string &tagname)=0
This method removes a global tag map.
virtual void createTag(TagDto &tag)=0
This method creates a tag.
virtual GlobalTagSetDto listGlobalTags(const std::string &name, int size, int page, const std::string &sort)=0
This method finds the global tags.
virtual GlobalTagDto findGlobalTag(const std::string &name)=0
This method finds a global tag by name.
virtual void removeTag(const std::string &name)=0
This method removes a tag.
virtual void updateTagMeta(TagMetaDto &tag)=0
This method updates a tag meta info.
virtual void createGlobalTag(GlobalTagDto &globalTag)=0
This method creates a global tag.
The TagDto class It contains all fields of the TagDto class from the CREST API.
virtual TagDto findTag(const std::string &name)=0
This method finds a tag by the name.
virtual void createGlobalTagMap(GlobalTagMapDto &globalTagMap)=0
This method creates a global tag map.
virtual TagMetaDto findTagMeta(const std::string &name)=0
This method gets a tag meta info by the tag name.
virtual IovSetDto selectGroups(const std::string &name, long snapshot, int size, int page, const std::string &sort)=0
This method returns IOV groups for a given tagname.
virtual PayloadDto getPayloadMeta(const std::string &hash)=0
This method finds a payload meta info for the hash.
virtual void storeData(const std::string &tag, const StoreSetDto &storeSetJson, const std::string &payloadFormat, const std::string &objectType, const std::string &compressionType, const std::string &version, uint64_t endTime)=0
This method stores several payloads in batch mode.
virtual std::string getPayload(const std::string &hash)=0
This method finds a payload resource associated to the hash.
virtual int getSize(const std::string &tagname)=0
This method gets the number of IOVs for the given tag.
virtual GlobalTagMapSetDto findGlobalTagMap(const std::string &name, const std::string &xCrestMapMode)=0
This method searches for tag mappings using the global tag name or tag name .
virtual void removeGlobalTag(const std::string &name)=0
This method removes a global tag.
virtual IovSetDto selectIovs(const std::string &name, uint64_t since, uint64_t until, long snapshot, int size, int page, const std::string &sort)=0
This method selects IOVs for a given tagname.