Models
psengine.analyst_notes.models
¶
ATTRIBUTES_MAPPING
module-attribute
¶
ATTRIBUTES_MAPPING = {
'ArmedConflict': ArmedConflictEvent,
'ArmsPurchaseSale': ArmsPurchaseSaleEvent,
'Coup': PositionEvent,
'CyberAttack': CyberAttackEvent,
'DiseaseOutbreak': DiseaseOutbreakEvent,
'Election': PositionEvent,
'EnvironmentalIssue': EnvironmentalIssueEvent,
'MalwareAnalysis': MalwareAnalysisEvent,
'ManMadeDisaster': ManMadeDisasterEvent,
'MilitaryManeuver': MilitaryManeuverEvent,
'NaturalDisaster': NaturalDisasterEvent,
'NuclearMaterialTransaction': NuclearMaterialTransactionEvent,
'PersonThreat': PersonThreatEvent,
'PoliticalEvent': PositionEvent,
'PublicSafetyWarning': PositionEvent,
'RFEVEArmedAssault': PositionEvent,
'RFEVEProtest': ProtestEvent,
'TerrorIncident': PositionEvent,
}
ArmedConflictEvent
¶
Bases: PositionEvent
model_config
class-attribute
instance-attribute
¶
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
ArmsPurchaseSaleEvent
¶
Bases: RFBaseModel
arms_purchaser
class-attribute
instance-attribute
¶
arms_purchaser: Optional[list[IdNameTypeDescription]] = []
arms_seller
class-attribute
instance-attribute
¶
arms_seller: Optional[list[IdNameTypeDescription]] = []
model_config
class-attribute
instance-attribute
¶
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
Attributes
¶
Bases: RFBaseModel
context_entities
class-attribute
instance-attribute
¶
context_entities: Optional[list[IdNameTypeDescription]] = []
model_config
class-attribute
instance-attribute
¶
note_entities
class-attribute
instance-attribute
¶
note_entities: Optional[list[IdNameTypeDescription]] = []
recommended_queries
class-attribute
instance-attribute
¶
recommended_queries: Optional[list[Query]] = []
topic
class-attribute
instance-attribute
¶
topic: Optional[
Union[
list[IdNameTypeDescription], IdNameTypeDescription
]
] = []
validation_urls
class-attribute
instance-attribute
¶
validation_urls: Optional[list[IdNameTypeDescription]] = []
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
remove_empty_events
classmethod
¶
Remove empty events when NoteEvent
skip the validation.
CyberAttackEvent
¶
Bases: RFBaseModel
adversary
class-attribute
instance-attribute
¶
adversary: Optional[list[IdNameTypeDescription]] = []
malicious_infrastructure
class-attribute
instance-attribute
¶
malicious_infrastructure: Optional[
list[IdNameTypeDescription]
] = []
model_config
class-attribute
instance-attribute
¶
operation
class-attribute
instance-attribute
¶
operation: Optional[list[IdNameTypeDescription]] = []
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
DiamondModel
¶
Bases: RFBaseModel
adversary
class-attribute
instance-attribute
¶
adversary: Optional[list[IdNameTypeDescription]] = []
capabilities
class-attribute
instance-attribute
¶
capabilities: Optional[list[IdNameTypeDescription]] = []
malicious_infrastructure
class-attribute
instance-attribute
¶
malicious_infrastructure: Optional[
list[IdNameTypeDescription]
] = []
model_config
class-attribute
instance-attribute
¶
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
DiseaseOutbreakEvent
¶
Bases: PositionEvent
model_config
class-attribute
instance-attribute
¶
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
EnvironmentalIssueEvent
¶
Bases: PositionEvent
model_config
class-attribute
instance-attribute
¶
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
MalwareAnalysisEvent
¶
Bases: RFBaseModel
hash_
class-attribute
instance-attribute
¶
hash_: Optional[list[IdNameTypeDescription]] = Field(
alias='hash', default=[]
)
malicious_infrastructure
class-attribute
instance-attribute
¶
malicious_infrastructure: Optional[
list[IdNameTypeDescription]
] = []
model_config
class-attribute
instance-attribute
¶
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
ManMadeDisasterEvent
¶
Bases: PositionEvent
manmade_disaster
instance-attribute
¶
manmade_disaster: Union[
list[IdNameTypeDescription], list[str]
]
model_config
class-attribute
instance-attribute
¶
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
MilitaryManeuverEvent
¶
Bases: PositionEvent
model_config
class-attribute
instance-attribute
¶
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
NaturalDisasterEvent
¶
Bases: PositionEvent
model_config
class-attribute
instance-attribute
¶
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
NoteEvent
¶
Bases: RFBaseModel
model_config
class-attribute
instance-attribute
¶
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
validate_attribute
classmethod
¶
Validate note event attributes.
Source code in psengine/analyst_notes/models.py
NuclearMaterialTransactionEvent
¶
Bases: PositionEvent
location_destination
class-attribute
instance-attribute
¶
model_config
class-attribute
instance-attribute
¶
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
PersonThreatEvent
¶
Bases: RFBaseModel
model_config
class-attribute
instance-attribute
¶
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
Position
¶
Bases: RFBaseModel
model_config
class-attribute
instance-attribute
¶
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
PositionEvent
¶
Bases: RFBaseModel
model_config
class-attribute
instance-attribute
¶
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
PreviewAttributesIn
¶
Bases: RFBaseModel
model_config
class-attribute
instance-attribute
¶
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
PreviewAttributesOut
¶
Bases: RFBaseModel
context_entities
class-attribute
instance-attribute
¶
context_entities: Optional[list[IdNameTypeDescription]] = []
model_config
class-attribute
instance-attribute
¶
note_entities
class-attribute
instance-attribute
¶
note_entities: Optional[list[IdNameTypeDescription]] = []
validation_urls
class-attribute
instance-attribute
¶
validation_urls: Optional[list[IdNameTypeDescription]] = []
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
ProtestEvent
¶
Bases: RFBaseModel
model_config
class-attribute
instance-attribute
¶
protest_target
class-attribute
instance-attribute
¶
protest_target: Optional[list[IdNameTypeDescription]] = []
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
Query
¶
Bases: RFBaseModel
model_config
class-attribute
instance-attribute
¶
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
RequestAttachment
¶
Bases: RFBaseModel
model_config
class-attribute
instance-attribute
¶
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:
|