1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-17 08:48:05 +00:00
thatmattlove-hyperglass/hyperglass/models/api/cert_import.py
2020-12-13 01:48:35 -07:00

16 lines
331 B
Python

"""hyperglass-agent certificate import models."""
# Standard Library
from typing import Union
# Third Party
from pydantic import BaseModel, StrictStr
# Local
from ..fields import StrictBytes
class EncodedRequest(BaseModel):
"""Certificate request model."""
device: StrictStr
encoded: Union[StrictStr, StrictBytes]