1717 from datadog_api_client .v2 .model .sensitive_data_scanner_included_keyword_configuration import (
1818 SensitiveDataScannerIncludedKeywordConfiguration ,
1919 )
20+ from datadog_api_client .v2 .model .sensitive_data_scanner_suppressions import SensitiveDataScannerSuppressions
2021 from datadog_api_client .v2 .model .sensitive_data_scanner_text_replacement import SensitiveDataScannerTextReplacement
2122
2223
@@ -33,6 +34,7 @@ def openapi_types(_):
3334 from datadog_api_client .v2 .model .sensitive_data_scanner_included_keyword_configuration import (
3435 SensitiveDataScannerIncludedKeywordConfiguration ,
3536 )
37+ from datadog_api_client .v2 .model .sensitive_data_scanner_suppressions import SensitiveDataScannerSuppressions
3638 from datadog_api_client .v2 .model .sensitive_data_scanner_text_replacement import (
3739 SensitiveDataScannerTextReplacement ,
3840 )
@@ -46,6 +48,7 @@ def openapi_types(_):
4648 "namespaces" : ([str ],),
4749 "pattern" : (str ,),
4850 "priority" : (int ,),
51+ "suppressions" : (SensitiveDataScannerSuppressions ,),
4952 "tags" : ([str ],),
5053 "text_replacement" : (SensitiveDataScannerTextReplacement ,),
5154 }
@@ -59,6 +62,7 @@ def openapi_types(_):
5962 "namespaces" : "namespaces" ,
6063 "pattern" : "pattern" ,
6164 "priority" : "priority" ,
65+ "suppressions" : "suppressions" ,
6266 "tags" : "tags" ,
6367 "text_replacement" : "text_replacement" ,
6468 }
@@ -73,6 +77,7 @@ def __init__(
7377 namespaces : Union [List [str ], UnsetType ] = unset ,
7478 pattern : Union [str , UnsetType ] = unset ,
7579 priority : Union [int , UnsetType ] = unset ,
80+ suppressions : Union [SensitiveDataScannerSuppressions , UnsetType ] = unset ,
7681 tags : Union [List [str ], UnsetType ] = unset ,
7782 text_replacement : Union [SensitiveDataScannerTextReplacement , UnsetType ] = unset ,
7883 ** kwargs ,
@@ -108,6 +113,10 @@ def __init__(
108113 :param priority: Integer from 1 (high) to 5 (low) indicating rule issue severity.
109114 :type priority: int, optional
110115
116+ :param suppressions: Object describing the suppressions for a rule. There are three types of suppressions, ``starts_with`` , ``ends_with`` , and ``exact_match``.
117+ Suppressed matches are not obfuscated, counted in metrics, or displayed in the Findings page.
118+ :type suppressions: SensitiveDataScannerSuppressions, optional
119+
111120 :param tags: List of tags.
112121 :type tags: [str], optional
113122
@@ -130,6 +139,8 @@ def __init__(
130139 kwargs ["pattern" ] = pattern
131140 if priority is not unset :
132141 kwargs ["priority" ] = priority
142+ if suppressions is not unset :
143+ kwargs ["suppressions" ] = suppressions
133144 if tags is not unset :
134145 kwargs ["tags" ] = tags
135146 if text_replacement is not unset :
0 commit comments