File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed
uncoder-core/app/translator/platforms/sentinel_one Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change 1
- from app .translator .core .mapping import LogSourceSignature , BaseStrictLogSourcesPlatformMappings
1
+ from app .translator .core .mapping import BaseStrictLogSourcesPlatformMappings , LogSourceSignature
2
2
from app .translator .platforms .sentinel_one .const import sentinel_one_power_query_details
3
3
4
4
Original file line number Diff line number Diff line change 16
16
limitations under the License.
17
17
-----------------------------------------------------------------
18
18
"""
19
- from app .translator .core .custom_types .values import ValueType
20
- from app .translator .core .str_value_manager import BaseSpecSymbol , StrValue , StrValueManager
21
- from app .translator .platforms .sentinel_one .custom_types .values import SentinelOneValueType
19
+ from app .translator .core .str_value_manager import StrValueManager
22
20
from app .translator .platforms .sentinel_one .escape_manager import (
23
21
SentinelOnePowerQueryEscapeManager ,
24
22
sentinel_one_power_query_escape_manager ,
28
26
class SentinelOnePowerQueryStrValueManager (StrValueManager ):
29
27
escape_manager : SentinelOnePowerQueryEscapeManager = sentinel_one_power_query_escape_manager
30
28
31
- def from_container_to_str (self , container : StrValue , value_type : str = ValueType .value ) -> str :
32
- result = ""
33
- for el in container .split_value :
34
- if isinstance (el , str ):
35
- result += self .escape_manager .escape (el , value_type )
36
- elif isinstance (el , BaseSpecSymbol ) and (pattern := self .container_spec_symbols_map .get (type (el ))):
37
- if value_type == ValueType .regex_value :
38
- pattern = self .escape_manager .escape (pattern , SentinelOneValueType .double_escape_regex_value )
39
- result += pattern
40
-
41
- return result
42
-
43
29
44
30
sentinel_one_power_query_str_value_manager = SentinelOnePowerQueryStrValueManager ()
You can’t perform that action at this time.
0 commit comments