38 return std::make_unique<CreateUpdate>(ctx);
43 std::vector<ActionActionParam> perm_;
53 ASSERT_LOG(srv_ptr,
"Cannot retrieve UpdateService.");
55 srv_ptr->create_update(req.at(
"descriptor_uuid"),
exec_context());
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.
std::vector< ActionActionParam > required_permission(const json &req) const override
Return a list of "Action" / "ActionParam" that must pass before the request is processed.
ServiceRegistry & get_service_registry()
A function to retrieve the ServiceRegistry from pretty much anywhere.
UserSecurityContext & security_context()
CreateUpdate(RequestContext ctx)
std::shared_ptr< IUpdate > IUpdatePtr
std::unique_ptr< MethodHandler > MethodHandlerUPtr
static MethodHandlerUPtr create(RequestContext)
Requires that the user be at least manager.
#define ASSERT_LOG(cond, msg)
ExecutionContext exec_context()
Returns a representation of the execution context of this request.
std::shared_ptr< ServiceInterface > get_service() const
Retrieve the service instance implementing the ServiceInterface, or nullptr if no such service was re...
Holds valuable pointer to provide context to a request.
virtual json process_impl(const json &req) override
The API method implementation.