Models
psengine.risklists.models
¶
DefaultRiskList
¶
Bases: RFBaseModel
algorithm
class-attribute
instance-attribute
¶
evidence_details
class-attribute
instance-attribute
¶
evidence_details: list[EvidenceDetail] = Field(
validation_alias='EvidenceDetails'
)
model_config
class-attribute
instance-attribute
¶
risk_string
class-attribute
instance-attribute
¶
__repr__
¶
__str__
¶
evidence_to_dict
classmethod
¶
Convert the EvidenceDetails block from a JSON string to a dictionary, if possible.
If the input is a string, is expected to be a JSON containing an EvidenceDetails
key.
PARAMETER | DESCRIPTION |
---|---|
v
|
Input value expected to be a JSON string or dictionary.
TYPE:
|
RAISES | DESCRIPTION |
---|---|
ValueError
|
|
RETURNS | DESCRIPTION |
---|---|
Any
|
Parsed EvidenceDetails dictionary or original value. |
Source code in psengine/risklists/models.py
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
PARAMETER | DESCRIPTION |
---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
EvidenceDetail
¶
Bases: RFBaseModel
criticality_label
class-attribute
instance-attribute
¶
evidence_string
class-attribute
instance-attribute
¶
mitigation_string
class-attribute
instance-attribute
¶
model_config
class-attribute
instance-attribute
¶
sightings_count
class-attribute
instance-attribute
¶
source_count
class-attribute
instance-attribute
¶
__repr__
¶
__str__
¶
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
PARAMETER | DESCRIPTION |
---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|