Add source_package_publishing_history::requestDeletion()
This commit is contained in:
parent
5d803c4345
commit
f18b5ca729
@ -114,3 +114,11 @@ std::generator<binary_package_publishing_history> source_package_publishing_hist
|
||||
data=nlohmann::json::parse(response.value());
|
||||
}
|
||||
}
|
||||
|
||||
bool source_package_publishing_history::requestDeletion(const std::string& removal_comment) {
|
||||
std::map<std::string, std::string> params;
|
||||
params["ws.op"] = "requestDeletion";
|
||||
params["removal_comment"] = removal_comment;
|
||||
auto resp = lp->api_post(self_link, params);
|
||||
return resp.has_value();
|
||||
}
|
||||
|
@ -45,6 +45,8 @@ public:
|
||||
std::optional<class distro_series> distro_series = getDistroSeries();
|
||||
std::generator<binary_package_publishing_history> getPublishedBinaries(bool active_binaries_only = false) const;
|
||||
|
||||
bool requestDeletion(const std::string& removal_comment = "");
|
||||
|
||||
std::string distro_series_link;
|
||||
std::string self_link;
|
||||
std::string source_package_name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user