mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
15 lines
310 B
Python
15 lines
310 B
Python
|
"""Validate credential configuration variables."""
|
||
|
|
||
|
# Third Party
|
||
|
from pydantic import SecretStr, StrictStr
|
||
|
|
||
|
# Project
|
||
|
from hyperglass.models import HyperglassModel
|
||
|
|
||
|
|
||
|
class Credential(HyperglassModel):
|
||
|
"""Model for per-credential config in devices.yaml."""
|
||
|
|
||
|
username: StrictStr
|
||
|
password: SecretStr
|