39 return std::make_unique<PendingUpdateGet>(ctx);
42 std::vector<ActionActionParam>
45 std::vector<ActionActionParam> perm_;
55 ASSERT_LOG(srv_ptr,
"Cannot retrieve UpdateService.");
57 ret[
"data"] = json::array();
59 for (
const auto &update_desc : srv_ptr->pending_updates())
This service provides various update management utilities.
The base class for API method handler implementation.
This is the header file for a generated source file, GitSHA1.cpp.
ServiceRegistry & get_service_registry()
A function to retrieve the ServiceRegistry from pretty much anywhere.
UserSecurityContext & security_context()
std::unique_ptr< MethodHandler > MethodHandlerUPtr
PendingUpdateGet(RequestContext ctx)
virtual json process_impl(const json &req) override
The API method implementation.
Requires that the user be at least manager.
std::vector< ActionActionParam > required_permission(const json &req) const override
Return a list of "Action" / "ActionParam" that must pass before the request is processed.
#define ASSERT_LOG(cond, msg)
std::shared_ptr< ServiceInterface > get_service() const
Retrieve the service instance implementing the ServiceInterface, or nullptr if no such service was re...
static MethodHandlerUPtr create(RequestContext)
Holds valuable pointer to provide context to a request.