forked from mirrors/thatmattlove-hyperglass
16 lines
331 B
Python
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]
|