providers.vault.VaultDtoKeyValueStore

Vault-specific KVStore provider for Pydantic model (DTO) data.

Usage

Source

providers.vault.VaultDtoKeyValueStore()

This store allows arbitrary DTOs (Pydantic models) to be stored as values, with the DTO model passed in the constructor. DTOs are serialized using Pydantic’s model_dump and stored as dicts in Vault.

Methods

Name Description
__init__() Initialize the provider with configuration and model type.

__init__()

Initialize the provider with configuration and model type.

Usage

Source

__init__(*, client, config, dto_model, **kwargs)
Parameters
client: ConfiguredVaultClient

An instance of a configured Vault client.

config: VaultConfig

Vault-specific config parameters.

dto_model: type[Dto]
The Pydantic model type to support for values.

You might be able to pass additional arguments specific to subclasses.