castellan/releasenotes/notes/add-to-dict-and-from-dict-conversions-to-managed-objects-95a9f0fdbd371a87.yaml
Moisés Guimarães de Medeiros 883e9603fa Add to_dict and from_dict conversions to managed objects
This patch centralizes the managed objects conversion in order to be
used across multiple key_manager backends.

Change-Id: Ia2e15d46eb2e504b815a7f51173aecaf82978402
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-07-13 13:44:22 +02:00

11 lines
509 B
YAML

---
features:
- |
Historically, the vault key manager backend converts its managed objects
to dictionaries in order to send them as a json object. To promote
cross-backend compatibility, suck feature should be migrated to managed
objects. Methods from_dict() and to_dict() added to class ManagedObject.
The Method from_dict() is a class method to create instances based on a
dictionary while the method to_dict() is an instance method to translate
an instance to a dictionary.