-
Notifications
You must be signed in to change notification settings - Fork 7
/
fragment1.py
31 lines (26 loc) · 833 Bytes
/
fragment1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""
Generated by qenerate plugin=pydantic_v1. DO NOT MODIFY MANUALLY!
"""
from collections.abc import Callable # noqa: F401 # pylint: disable=W0611
from datetime import datetime # noqa: F401 # pylint: disable=W0611
from enum import Enum # noqa: F401 # pylint: disable=W0611
from typing import ( # noqa: F401 # pylint: disable=W0611
Any,
Optional,
Union,
)
from pydantic import ( # noqa: F401 # pylint: disable=W0611
BaseModel,
Extra,
Field,
Json,
)
class ConfiguredBaseModel(BaseModel):
class Config:
smart_union=True
extra=Extra.forbid
class VaultSecret(ConfiguredBaseModel):
path: str = Field(..., alias="path")
field: str = Field(..., alias="field")
version: Optional[int] = Field(..., alias="version")
q_format: Optional[str] = Field(..., alias="format")