]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/rest/app/manager/request_factory.py
bump version to 12.0.3-pve3
[ceph.git] / ceph / src / pybind / mgr / rest / app / manager / request_factory.py
1
2 class RequestFactory(object):
3 """
4 A class to generate UserRequests with commands (e.g. Ceph RADOS admin
5 commands) in response to C[r]UD operations.
6
7 The mapping is sometimes very simple (e.g. delete on a pool is
8 just a 'ceph osd pool delete'), and sometimes more complex (e.g.
9 pool creation requires a 'pool create' followed by a series of
10 'pool set' and/or 'pool set-quota' commands).
11
12 """
13
14 def delete(self, obj_id):
15 raise NotImplementedError()
16
17 def update(self, obj_id, attributes):
18 raise NotImplementedError()
19
20 def create(self, attributes):
21 raise NotImplementedError()
22
23 def get_valid_commands(self, obj_ids):
24 return {}