model: eliminate double-mapping of generic data in response classes

Explicitly declare mapping of the "data" field in response classes.
Therefore, the JSON setter setData() is no longer used. SecretResponse
is split into subclasses for secret with and without metadata.
This commit is contained in:
2021-10-25 20:40:05 +02:00
parent 021421a54c
commit 4f3cb4b330
26 changed files with 338 additions and 412 deletions

View File

@ -8,6 +8,7 @@
* Add support for `wrap_info` in data response models
* Dependency updates
* model and response classes implement `Serializable` (#57)
* split `SercretResponse` into `PlainSecretResponse` and `MetaSecretResponse` subclasses (common API unchanged)
### Test
* Tested against Vault 1.10.0