Skip to content

Commit 4c47cc0

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c0b9551e of spec repo
1 parent 74bcde7 commit 4c47cc0

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-10-29 18:46:56.281378",
8-
"spec_repo_commit": "558a9af0"
7+
"regenerated": "2024-10-29 20:46:31.911807",
8+
"spec_repo_commit": "c0b9551e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-29 18:46:56.299099",
13-
"spec_repo_commit": "558a9af0"
12+
"regenerated": "2024-10-29 20:46:31.929951",
13+
"spec_repo_commit": "c0b9551e"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21870,6 +21870,13 @@ components:
2187021870
items:
2187121871
type: string
2187221872
type: array
21873+
use_recommended_keywords:
21874+
description: 'Should the rule use the underlying standard pattern keyword
21875+
configuration. If set to `true`, the rule must be tied
21876+
21877+
to a standard pattern. If set to `false`, the specified keywords and `character_count`
21878+
are applied.'
21879+
type: boolean
2187321880
required:
2187421881
- keywords
2187521882
- character_count

src/datadog_api_client/v2/model/sensitive_data_scanner_included_keyword_configuration.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import List
6+
from typing import List, Union
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
unset,
12+
UnsetType,
1113
)
1214

1315

@@ -24,14 +26,22 @@ def openapi_types(_):
2426
return {
2527
"character_count": (int,),
2628
"keywords": ([str],),
29+
"use_recommended_keywords": (bool,),
2730
}
2831

2932
attribute_map = {
3033
"character_count": "character_count",
3134
"keywords": "keywords",
35+
"use_recommended_keywords": "use_recommended_keywords",
3236
}
3337

34-
def __init__(self_, character_count: int, keywords: List[str], **kwargs):
38+
def __init__(
39+
self_,
40+
character_count: int,
41+
keywords: List[str],
42+
use_recommended_keywords: Union[bool, UnsetType] = unset,
43+
**kwargs,
44+
):
3545
"""
3646
Object defining a set of keywords and a number of characters that help reduce noise.
3747
You can provide a list of keywords you would like to check within a defined proximity of the matching pattern.
@@ -45,7 +55,13 @@ def __init__(self_, character_count: int, keywords: List[str], **kwargs):
4555
:param keywords: Keyword list that will be checked during scanning in order to validate a match.
4656
The number of keywords in the list must be less than or equal to 30.
4757
:type keywords: [str]
58+
59+
:param use_recommended_keywords: Should the rule use the underlying standard pattern keyword configuration. If set to ``true`` , the rule must be tied
60+
to a standard pattern. If set to ``false`` , the specified keywords and ``character_count`` are applied.
61+
:type use_recommended_keywords: bool, optional
4862
"""
63+
if use_recommended_keywords is not unset:
64+
kwargs["use_recommended_keywords"] = use_recommended_keywords
4965
super().__init__(kwargs)
5066

5167
self_.character_count = character_count

0 commit comments

Comments
 (0)