Skip to content

Commit e174481

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 77f7f78 of spec repo
1 parent 9471ee0 commit e174481

28 files changed

Lines changed: 211 additions & 95 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55897,8 +55897,9 @@ components:
5589755897

5589855898
The number of keywords in the list must be less than or equal to 30.'
5589955899
example:
55900-
- credit card
55901-
- cc
55900+
- email
55901+
- address
55902+
- login
5590255903
items:
5590355904
type: string
5590455905
type: array
@@ -56037,6 +56038,8 @@ components:
5603756038
maximum: 5
5603856039
minimum: 1
5603956040
type: integer
56041+
suppressions:
56042+
$ref: '#/components/schemas/SensitiveDataScannerSuppressions'
5604056043
tags:
5604156044
description: List of tags.
5604256045
items:
@@ -56258,6 +56261,41 @@ components:
5625856261
type:
5625956262
$ref: '#/components/schemas/SensitiveDataScannerStandardPatternType'
5626056263
type: object
56264+
SensitiveDataScannerSuppressions:
56265+
description: 'Object describing the suppressions for a rule. There are three
56266+
types of suppressions, `starts_with`, `ends_with`, and `exact_match`.
56267+
56268+
Suppressed matches are not obfuscated, counted in metrics, or displayed in
56269+
the Findings page.'
56270+
properties:
56271+
ends_with:
56272+
description: List of strings to use for suppression of matches ending with
56273+
these strings.
56274+
example:
56275+
- '@example.com'
56276+
- another.example.com
56277+
items:
56278+
type: string
56279+
type: array
56280+
exact_match:
56281+
description: List of strings to use for suppression of matches exactly matching
56282+
these strings.
56283+
example:
56284+
- admin@example.com
56285+
- user@example.com
56286+
items:
56287+
type: string
56288+
type: array
56289+
starts_with:
56290+
description: List of strings to use for suppression of matches starting
56291+
with these strings.
56292+
example:
56293+
- admin
56294+
- user
56295+
items:
56296+
type: string
56297+
type: array
56298+
type: object
5626156299
SensitiveDataScannerTextReplacement:
5626256300
description: Object describing how the scanned event will be replaced.
5626356301
properties:

docs/datadog_api_client.v2.model.rst

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

24584+
datadog\_api\_client.v2.model.sensitive\_data\_scanner\_suppressions module
24585+
---------------------------------------------------------------------------
24586+
24587+
.. automodule:: datadog_api_client.v2.model.sensitive_data_scanner_suppressions
24588+
:members:
24589+
:show-inheritance:
24590+
2458424591
datadog\_api\_client.v2.model.sensitive\_data\_scanner\_text\_replacement module
2458524592
--------------------------------------------------------------------------------
2458624593

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
@@ -5038,6 +5038,7 @@
50385038
from datadog_api_client.v2.model.sensitive_data_scanner_standard_patterns_response_item import (
50395039
SensitiveDataScannerStandardPatternsResponseItem,
50405040
)
5041+
from datadog_api_client.v2.model.sensitive_data_scanner_suppressions import SensitiveDataScannerSuppressions
50415042
from datadog_api_client.v2.model.sensitive_data_scanner_text_replacement import SensitiveDataScannerTextReplacement
50425043
from datadog_api_client.v2.model.sensitive_data_scanner_text_replacement_type import (
50435044
SensitiveDataScannerTextReplacementType,
@@ -9488,6 +9489,7 @@
94889489
"SensitiveDataScannerStandardPatternsResponse",
94899490
"SensitiveDataScannerStandardPatternsResponseData",
94909491
"SensitiveDataScannerStandardPatternsResponseItem",
9492+
"SensitiveDataScannerSuppressions",
94919493
"SensitiveDataScannerTextReplacement",
94929494
"SensitiveDataScannerTextReplacementType",
94939495
"ServiceAccountCreateAttributes",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2026-01-19T13:11:03.221Z
1+
2026-02-04T15:35:09.418Z

0 commit comments

Comments
 (0)