]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_rest_user_policy.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / rgw / rgw_rest_user_policy.h
index bdc8d24b33c144801b33e442c2da7a8c02d07856..b8627f335c2b1326a4db6c51bd0e6a0002ba6131 100644 (file)
@@ -2,6 +2,7 @@
 // vim: ts=8 sw=2 smarttab ft=cpp
 
 #pragma once
+#include "rgw_rest.h"
 
 class RGWRestUserPolicy : public RGWRESTOp {
 protected:
@@ -13,7 +14,7 @@ protected:
   bool validate_input();
 
 public:
-  int verify_permission() override;
+  int verify_permission(optional_yield y) override;
   virtual uint64_t get_op() = 0;
   void send_response() override;
   void dump(Formatter *f) const;
@@ -34,7 +35,7 @@ public:
 class RGWPutUserPolicy : public RGWUserPolicyWrite {
 public:
   RGWPutUserPolicy() = default;
-  void execute() override;
+  void execute(optional_yield y) override;
   int get_params();
   const char* name() const override { return "put_user-policy"; }
   uint64_t get_op() override;
@@ -44,7 +45,7 @@ public:
 class RGWGetUserPolicy : public RGWUserPolicyRead {
 public:
   RGWGetUserPolicy() = default;
-  void execute() override;
+  void execute(optional_yield y) override;
   int get_params();
   const char* name() const override { return "get_user_policy"; }
   uint64_t get_op() override;
@@ -54,7 +55,7 @@ public:
 class RGWListUserPolicies : public RGWUserPolicyRead {
 public:
   RGWListUserPolicies() = default;
-  void execute() override;
+  void execute(optional_yield y) override;
   int get_params();
   const char* name() const override { return "list_user_policies"; }
   uint64_t get_op() override;
@@ -64,7 +65,7 @@ public:
 class RGWDeleteUserPolicy : public RGWUserPolicyWrite {
 public:
   RGWDeleteUserPolicy() = default;
-  void execute() override;
+  void execute(optional_yield y) override;
   int get_params();
   const char* name() const override { return "delete_user_policy"; }
   uint64_t get_op() override;