Skip to content
systemd-pydantic
v0.1.0
Toggle navigation menu
⌘
K
systemd-pydantic
v0.1.0
/
API reference
/
systemd_pydantic.UnitInfo
systemd_pydantic.UnitInfo
¶
pydantic
model
systemd_pydantic.
UnitInfo
[source]
¶
Bases:
BaseModel
field
name
:
str
[Required]
¶
field
load_state
:
str
=
''
¶
field
active_state
:
str
=
''
¶
field
sub_state
:
str
=
''
¶
field
result
:
str
=
''
¶
field
exec_main_code
:
str
=
''
¶
field
exec_main_status
:
int
|
None
=
None
¶
running
(
)
→
bool
[source]
¶
stopped
(
)
→
bool
[source]
¶
done
(
ok_exitstatuses
:
list
[
int
|
str
]
|
None
=
None
)
→
bool
[source]
¶
ok
(
ok_exitstatuses
:
list
[
int
|
str
]
|
None
=
None
)
→
bool
[source]
¶
bad
(
ok_exitstatuses
:
list
[
int
|
str
]
|
None
=
None
)
→
bool
[source]
¶