Skip to content
Snippets Groups Projects
Commit 28de5d6f authored by Alexander Kaschta's avatar Alexander Kaschta :owl:
Browse files

WIP: Start modelling BCD request

parent 68dfaaf7
No related branches found
No related tags found
No related merge requests found
Pipeline #392737 failed
from enum import Enum
from typing import Optional
from pydantic import BaseModel, Field
class BCDProtectionRequirements(Enum):
"""
BCD Firewall Protection Requirements
"""
LEVEL_1 = 1
LEVEL_2 = 2
SPECIAL = 10
class BCDSystemType(Enum):
CLIENT = 1
SERVER = 2
PRINTER = 3
IOT_DEVICES = 4
VPN_WIFI_ONLY = 5
OTHER = 6
class BCDRequestModel(BaseModel):
oe: str = Field()
group: str = Field()
protection_requirement: BCDProtectionRequirements = Field()
protection_requirement_note: Optional[str] = Field(default=None)
type_of_system: BCDSystemType = Field()
type_of_system_note: Optional[str] = Field(default=None)
load_balancer: bool = Field()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment