File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
abstract_security_content_objects Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 36
36
from contentctl .objects .integration_test import IntegrationTest
37
37
from contentctl .objects .data_source import DataSource
38
38
39
- from contentctl .objects .rba import rba_object
39
+ from contentctl .objects .rba import RBAObject
40
40
41
41
from contentctl .objects .base_test_result import TestResultStatus
42
42
from contentctl .objects .drilldown import Drilldown , DRILLDOWN_SEARCH_PLACEHOLDER
@@ -68,7 +68,7 @@ class Detection_Abstract(SecurityContentObject):
68
68
search : str = Field (...)
69
69
how_to_implement : str = Field (..., min_length = 4 )
70
70
known_false_positives : str = Field (..., min_length = 4 )
71
- rba : Optional [rba_object ] = Field (default = None )
71
+ rba : Optional [RBAObject ] = Field (default = None )
72
72
explanation : None | str = Field (
73
73
default = None ,
74
74
exclude = True , #Don't serialize this value when dumping the object
Original file line number Diff line number Diff line change @@ -40,25 +40,25 @@ class ThreatObjectType(str, Enum):
40
40
TLS_HASH = "tls_hash"
41
41
URL = "url"
42
42
43
- class risk_object (BaseModel ):
43
+ class RiskObject (BaseModel ):
44
44
field : str
45
45
type : RiskObjectType
46
46
score : RiskScoreValue_Type
47
47
48
48
def __hash__ (self ):
49
49
return hash ((self .field , self .type , self .score ))
50
50
51
- class threat_object (BaseModel ):
51
+ class ThreatObject (BaseModel ):
52
52
field : str
53
53
type : ThreatObjectType
54
54
55
55
def __hash__ (self ):
56
56
return hash ((self .field , self .type ))
57
57
58
- class rba_object (BaseModel , ABC ):
58
+ class RBAObject (BaseModel , ABC ):
59
59
message : str
60
- risk_objects : Annotated [Set [risk_object ], Field (min_length = 1 )]
61
- threat_objects : Set [threat_object ]
60
+ risk_objects : Annotated [Set [RiskObject ], Field (min_length = 1 )]
61
+ threat_objects : Set [ThreatObject ]
62
62
63
63
64
64
You can’t perform that action at this time.
0 commit comments