Skip to content

Commit 3570987

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1517d9f of spec repo
1 parent d124f65 commit 3570987

17 files changed

Lines changed: 126 additions & 12 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52069,6 +52069,8 @@ components:
5206952069
maximum: 5
5207052070
minimum: 1
5207152071
type: integer
52072+
suppressions:
52073+
$ref: '#/components/schemas/SensitiveDataScannerSuppressions'
5207252074
tags:
5207352075
description: List of tags.
5207452076
items:
@@ -52290,6 +52292,41 @@ components:
5229052292
type:
5229152293
$ref: '#/components/schemas/SensitiveDataScannerStandardPatternType'
5229252294
type: object
52295+
SensitiveDataScannerSuppressions:
52296+
description: 'Object describing the suppressions for a rule. There are three
52297+
types of suppressions, `starts_with`, `ends_with`, and `exact_match`.
52298+
52299+
Suppressed matches are not obfuscated, counted in metrics, or displayed in
52300+
the Findings page.'
52301+
properties:
52302+
ends_with:
52303+
description: List of strings to use for suppression of matches ending with
52304+
these strings.
52305+
example:
52306+
- '@example.com'
52307+
- example.com
52308+
items:
52309+
type: string
52310+
type: array
52311+
exact_match:
52312+
description: List of strings to use for suppression of matches exactly matching
52313+
these strings.
52314+
example:
52315+
- admin@example.com
52316+
- user@example.com
52317+
items:
52318+
type: string
52319+
type: array
52320+
starts_with:
52321+
description: List of strings to use for suppression of matches starting
52322+
with these strings.
52323+
example:
52324+
- admin
52325+
- user
52326+
items:
52327+
type: string
52328+
type: array
52329+
type: object
5229352330
SensitiveDataScannerTextReplacement:
5229452331
description: Object describing how the scanned event will be replaced.
5229552332
properties:

docs/datadog_api_client.v2.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22845,6 +22845,13 @@ datadog\_api\_client.v2.model.sensitive\_data\_scanner\_standard\_patterns\_resp
2284522845
:members:
2284622846
:show-inheritance:
2284722847

22848+
datadog\_api\_client.v2.model.sensitive\_data\_scanner\_suppressions module
22849+
---------------------------------------------------------------------------
22850+
22851+
.. automodule:: datadog_api_client.v2.model.sensitive_data_scanner_suppressions
22852+
:members:
22853+
:show-inheritance:
22854+
2284822855
datadog\_api\_client.v2.model.sensitive\_data\_scanner\_text\_replacement module
2284922856
--------------------------------------------------------------------------------
2285022857

src/datadog_api_client/v2/model/sensitive_data_scanner_rule_attributes.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
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:
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import List, Union
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
class SensitiveDataScannerSuppressions(ModelNormal):
17+
@cached_property
18+
def openapi_types(_):
19+
return {
20+
"ends_with": ([str],),
21+
"exact_match": ([str],),
22+
"starts_with": ([str],),
23+
}
24+
25+
attribute_map = {
26+
"ends_with": "ends_with",
27+
"exact_match": "exact_match",
28+
"starts_with": "starts_with",
29+
}
30+
31+
def __init__(
32+
self_,
33+
ends_with: Union[List[str], UnsetType] = unset,
34+
exact_match: Union[List[str], UnsetType] = unset,
35+
starts_with: Union[List[str], UnsetType] = unset,
36+
**kwargs,
37+
):
38+
"""
39+
Object describing the suppressions for a rule. There are three types of suppressions, ``starts_with`` , ``ends_with`` , and ``exact_match``.
40+
Suppressed matches are not obfuscated, counted in metrics, or displayed in the Findings page.
41+
42+
:param ends_with: List of strings to use for suppression of matches ending with these strings.
43+
:type ends_with: [str], optional
44+
45+
:param exact_match: List of strings to use for suppression of matches exactly matching these strings.
46+
:type exact_match: [str], optional
47+
48+
:param starts_with: List of strings to use for suppression of matches starting with these strings.
49+
:type starts_with: [str], optional
50+
"""
51+
if ends_with is not unset:
52+
kwargs["ends_with"] = ends_with
53+
if exact_match is not unset:
54+
kwargs["exact_match"] = exact_match
55+
if starts_with is not unset:
56+
kwargs["starts_with"] = starts_with
57+
super().__init__(kwargs)

src/datadog_api_client/v2/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4682,6 +4682,7 @@
46824682
from datadog_api_client.v2.model.sensitive_data_scanner_standard_patterns_response_item import (
46834683
SensitiveDataScannerStandardPatternsResponseItem,
46844684
)
4685+
from datadog_api_client.v2.model.sensitive_data_scanner_suppressions import SensitiveDataScannerSuppressions
46854686
from datadog_api_client.v2.model.sensitive_data_scanner_text_replacement import SensitiveDataScannerTextReplacement
46864687
from datadog_api_client.v2.model.sensitive_data_scanner_text_replacement_type import (
46874688
SensitiveDataScannerTextReplacementType,
@@ -8633,6 +8634,7 @@
86338634
"SensitiveDataScannerStandardPatternsResponse",
86348635
"SensitiveDataScannerStandardPatternsResponseData",
86358636
"SensitiveDataScannerStandardPatternsResponseItem",
8637+
"SensitiveDataScannerSuppressions",
86368638
"SensitiveDataScannerTextReplacement",
86378639
"SensitiveDataScannerTextReplacementType",
86388640
"ServiceAccountCreateAttributes",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-12-09T09:52:45.850Z
1+
2026-01-15T18:47:40.737Z
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-05-30T17:17:05.785Z
1+
2026-01-15T18:47:40.740Z
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-05-30T17:17:07.743Z
1+
2026-01-15T18:47:40.742Z
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-08-26T20:31:44.042Z
1+
2026-01-15T18:47:40.742Z
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-05-30T17:17:09.412Z
1+
2026-01-15T18:47:40.744Z

0 commit comments

Comments
 (0)