-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
system.py
47 lines (38 loc) · 938 Bytes
/
system.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# generated by datamodel-codegen:
# filename: system.json
from __future__ import annotations
from typing import Optional
from pydantic import BaseModel, Field
class LastUpdated(BaseModel):
"""
Last updated
"""
boot_time: float
fqdn: float
hostname: float
ip_address_4: float
mac_address: float
platform: float
platform_version: float
uptime: float
uuid: float
version: float
version_latest: Optional[float] = None
version_newer_available: Optional[float] = None
class System(BaseModel):
"""
System
"""
boot_time: float
fqdn: str
hostname: str
ip_address_4: str
mac_address: str
platform: str
platform_version: str
uptime: float
uuid: str
version: str
version_latest: Optional[str] = None
version_newer_available: Optional[bool] = None
last_updated: LastUpdated = Field(..., description="Last updated")