39 #ifndef DXCPP_BINDINGS_DXAPP_H 40 #define DXCPP_BINDINGS_DXAPP_H 42 #include "../bindings.h" 64 DXApp(
const std::string &nameOrID,
65 const std::string &alias=
"default") {
66 setID(nameOrID, alias);
78 void setID(
const std::string &nameOrID,
const std::string &alias=
"default") {
79 if (nameOrID.find(
"app-") == 0) {
104 void update(
const dx::JSON &to_update)
const;
140 void addTags(
const dx::JSON &tags)
const;
180 dx::JSON
get()
const;
192 void publish(
bool makeDefault=
false)
const;
222 DXJob run(
const dx::JSON &app_input,
223 const std::string &output_folder=
"/",
224 const std::vector<std::string> &depends_on=std::vector<std::string>(),
225 const dx::JSON &instance_type=dx::JSON(dx::JSON_NULL),
226 const std::string &project_context=config::CURRENT_PROJECT()
dx::JSON describe() const
Definition: dxapp.cc:23
DXApp(const std::string &nameOrID, const std::string &alias="default")
Definition: dxapp.h:64
void update(const dx::JSON &to_update) const
Definition: dxapp.cc:33
void addTags(const dx::JSON &tags) const
Definition: dxapp.cc:68
void install() const
Definition: dxapp.cc:92
void addCategories(const dx::JSON &categories) const
Definition: dxapp.cc:43
void setID(const std::string &nameOrID, const std::string &alias="default")
Definition: dxapp.h:78
DXJob run(const dx::JSON &app_input, const std::string &output_folder="/", const std::vector< std::string > &depends_on=std::vector< std::string >(), const dx::JSON &instance_type=dx::JSON(dx::JSON_NULL), const std::string &project_context=config::CURRENT_PROJECT()) const
Definition: dxapp.cc:143
An executable object that can be published for others to discover.
Definition: api.cc:7
void publish(bool makeDefault=false) const
Definition: dxapp.cc:122
void removeTags(const dx::JSON &tags) const
Definition: dxapp.cc:80
void removeCategories(const dx::JSON &categories) const
Definition: dxapp.cc:55
The instantiation of an applet or app.
Definition: dxjob.h:41
void uninstall() const
Definition: dxapp.cc:102