Rename directories
This commit is contained in:
parent
c55acba709
commit
ca047c4248
95 changed files with 77 additions and 77 deletions
70
Documentation/Tech-docs/api/models/subnet.md
Normal file
70
Documentation/Tech-docs/api/models/subnet.md
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
# models.subnet
|
||||
|
||||
### *class* models.subnet.Device(, ip: str, mac: str | None = None, hostname: str | None = None, vendor: str | None = None, open_ports: List[str] = [], status: str, last_seen: str | None = None, note: str | None = None)
|
||||
|
||||
Bases: `BaseModel`
|
||||
|
||||
Сканируемое устройство в подсети
|
||||
|
||||
Атрибуты:
|
||||
: ip (str): IP-адрес устройства
|
||||
mac (Optional[str]): MAC-адрес устройства
|
||||
hostname (Optional[str]): Имя хоста
|
||||
vendor (Optional[str]): Название производителя устройства (По MAC-адресу)
|
||||
open_ports (List[str]): Открытые порты устройства
|
||||
status (str): Статус устройства (онлайн/оффлайн)
|
||||
last_seen (Optional[str]): Последняя активность устройства
|
||||
note (Optional[str]): Заметка устройства
|
||||
|
||||
#### hostname *: str | None*
|
||||
|
||||
#### ip *: str*
|
||||
|
||||
#### last_seen *: str | None*
|
||||
|
||||
#### mac *: str | None*
|
||||
|
||||
#### model_config *: ClassVar[ConfigDict]* *= {}*
|
||||
|
||||
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
|
||||
|
||||
#### note *: str | None*
|
||||
|
||||
#### open_ports *: List[str]*
|
||||
|
||||
#### status *: str*
|
||||
|
||||
#### vendor *: str | None*
|
||||
|
||||
### *class* models.subnet.SubnetScanRequest(, subnet: str | None = None)
|
||||
|
||||
Bases: `BaseModel`
|
||||
|
||||
Параметры для сканирования подсети
|
||||
|
||||
Атрибуты:
|
||||
: subnet (Optional[str]): Подсеть для сканирования (например 192.168.1.0/24), опционально
|
||||
|
||||
#### model_config *: ClassVar[ConfigDict]* *= {}*
|
||||
|
||||
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
|
||||
|
||||
#### subnet *: str | None*
|
||||
|
||||
### *class* models.subnet.SubnetScanResult(, devices: List[Device] = [], error: str | None = None)
|
||||
|
||||
Bases: `BaseModel`
|
||||
|
||||
Результат сканирования устройств в подсети
|
||||
|
||||
Атрибуты:
|
||||
: devices (List[Device]): Список просканированных устройств
|
||||
error (Optional[str]): Сообщение об ошибке, если сканирование не удалось
|
||||
|
||||
#### devices *: List[Device]*
|
||||
|
||||
#### error *: str | None*
|
||||
|
||||
#### model_config *: ClassVar[ConfigDict]* *= {}*
|
||||
|
||||
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
|
||||
Loading…
Add table
Add a link
Reference in a new issue