mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
Refactor devices model
This commit is contained in:
14
hyperglass/configuration/models/credential.py
Normal file
14
hyperglass/configuration/models/credential.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""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
|
||||
Reference in New Issue
Block a user