mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-02-02 23:39:27 +00:00
14 lines
310 B
Python
14 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
|