Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / rgw / rgw_multi_del.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #ifndef RGW_MULTI_DELETE_H_
5 #define RGW_MULTI_DELETE_H_
6
7 #include <vector>
8 #include "rgw_xml.h"
9 #include "rgw_common.h"
10
11 class RGWMultiDelDelete : public XMLObj
12 {
13 public:
14   RGWMultiDelDelete() :quiet(false) {}
15   ~RGWMultiDelDelete() override {}
16   bool xml_end(const char *el) override;
17
18   std::vector<rgw_obj_key> objects;
19   bool quiet;
20   bool is_quiet() { return quiet; }
21 };
22
23 class RGWMultiDelQuiet : public XMLObj
24 {
25 public:
26   RGWMultiDelQuiet() {}
27   ~RGWMultiDelQuiet() override {}
28 };
29
30 class RGWMultiDelObject : public XMLObj
31 {
32   string key;
33   string version_id;
34 public:
35   RGWMultiDelObject() {}
36   ~RGWMultiDelObject() override {}
37   bool xml_end(const char *el) override;
38
39   const string& get_key() { return key; }
40   const string& get_version_id() { return version_id; }
41 };
42
43 class RGWMultiDelKey : public XMLObj
44 {
45 public:
46   RGWMultiDelKey() {}
47   ~RGWMultiDelKey() override {}
48 };
49
50 class RGWMultiDelVersionId : public XMLObj
51 {
52 public:
53   RGWMultiDelVersionId() {}
54   ~RGWMultiDelVersionId() override {}
55 };
56
57 class RGWMultiDelXMLParser : public RGWXMLParser
58 {
59   XMLObj *alloc_obj(const char *el) override;
60 public:
61   RGWMultiDelXMLParser() {}
62   ~RGWMultiDelXMLParser() override {}
63 };
64
65
66 #endif