]>
git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/rest/app/manager/request_factory.py
2 class RequestFactory(object):
4 A class to generate UserRequests with commands (e.g. Ceph RADOS admin
5 commands) in response to C[r]UD operations.
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).
14 def delete(self
, obj_id
):
15 raise NotImplementedError()
17 def update(self
, obj_id
, attributes
):
18 raise NotImplementedError()
20 def create(self
, attributes
):
21 raise NotImplementedError()
23 def get_valid_commands(self
, obj_ids
):