Skip to content

Commit 0708357

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add missing sensitive data scanner fields (#1584)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent dd6f55a commit 0708357

File tree

5 files changed

+56
-5
lines changed

5 files changed

+56
-5
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.5",
7-
"regenerated": "2023-07-21 15:02:55.156864",
8-
"spec_repo_commit": "1b0797fc"
7+
"regenerated": "2023-07-24 15:54:34.121927",
8+
"spec_repo_commit": "b233d581"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-07-21 15:02:55.169012",
13-
"spec_repo_commit": "1b0797fc"
12+
"regenerated": "2023-07-24 15:54:34.134777",
13+
"spec_repo_commit": "b233d581"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13649,6 +13649,10 @@ components:
1364913649
SensitiveDataScannerGetConfigResponseData:
1365013650
description: Response data related to the scanning groups.
1365113651
properties:
13652+
attributes:
13653+
additionalProperties: {}
13654+
description: Attributes of the Sensitive Data configuration.
13655+
type: object
1365213656
id:
1365313657
description: ID of the configuration.
1365413658
type: string
@@ -13833,6 +13837,9 @@ components:
1383313837
description: Whether or not scanned events are highlighted in Logs or RUM
1383413838
for the org.
1383513839
type: boolean
13840+
has_multi_pass_enabled:
13841+
description: Whether or not scanned events have multi-pass enabled.
13842+
type: boolean
1383613843
is_pci_compliant:
1383713844
description: Whether or not the org is compliant to the payment card industry
1383813845
standard.
@@ -14068,6 +14075,9 @@ components:
1406814075
SensitiveDataScannerStandardPatternAttributes:
1406914076
description: Attributes of the Sensitive Data Scanner standard pattern.
1407014077
properties:
14078+
description:
14079+
description: Description of the standard pattern.
14080+
type: string
1407114081
name:
1407214082
description: Name of the standard pattern.
1407314083
type: string

src/datadog_api_client/v2/model/sensitive_data_scanner_get_config_response_data.py

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union, TYPE_CHECKING
6+
from typing import Any, Dict, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
date,
12+
datetime,
13+
none_type,
1114
unset,
1215
UnsetType,
1316
)
@@ -33,19 +36,36 @@ def openapi_types(_):
3336
)
3437

3538
return {
39+
"attributes": (
40+
{
41+
str: (
42+
bool,
43+
date,
44+
datetime,
45+
dict,
46+
float,
47+
int,
48+
list,
49+
str,
50+
none_type,
51+
)
52+
},
53+
),
3654
"id": (str,),
3755
"relationships": (SensitiveDataScannerConfigurationRelationships,),
3856
"type": (SensitiveDataScannerConfigurationType,),
3957
}
4058

4159
attribute_map = {
60+
"attributes": "attributes",
4261
"id": "id",
4362
"relationships": "relationships",
4463
"type": "type",
4564
}
4665

4766
def __init__(
4867
self_,
68+
attributes: Union[Dict[str, Any], UnsetType] = unset,
4969
id: Union[str, UnsetType] = unset,
5070
relationships: Union[SensitiveDataScannerConfigurationRelationships, UnsetType] = unset,
5171
type: Union[SensitiveDataScannerConfigurationType, UnsetType] = unset,
@@ -54,6 +74,9 @@ def __init__(
5474
"""
5575
Response data related to the scanning groups.
5676
77+
:param attributes: Attributes of the Sensitive Data configuration.
78+
:type attributes: {str: (bool, date, datetime, dict, float, int, list, str, none_type,)}, optional
79+
5780
:param id: ID of the configuration.
5881
:type id: str, optional
5982
@@ -63,6 +86,8 @@ def __init__(
6386
:param type: Sensitive Data Scanner configuration type.
6487
:type type: SensitiveDataScannerConfigurationType, optional
6588
"""
89+
if attributes is not unset:
90+
kwargs["attributes"] = attributes
6691
if id is not unset:
6792
kwargs["id"] = id
6893
if relationships is not unset:

src/datadog_api_client/v2/model/sensitive_data_scanner_meta.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def openapi_types(_):
2626
"count_limit": (int,),
2727
"group_count_limit": (int,),
2828
"has_highlight_enabled": (bool,),
29+
"has_multi_pass_enabled": (bool,),
2930
"is_pci_compliant": (bool,),
3031
"version": (int,),
3132
}
@@ -34,6 +35,7 @@ def openapi_types(_):
3435
"count_limit": "count_limit",
3536
"group_count_limit": "group_count_limit",
3637
"has_highlight_enabled": "has_highlight_enabled",
38+
"has_multi_pass_enabled": "has_multi_pass_enabled",
3739
"is_pci_compliant": "is_pci_compliant",
3840
"version": "version",
3941
}
@@ -43,6 +45,7 @@ def __init__(
4345
count_limit: Union[int, UnsetType] = unset,
4446
group_count_limit: Union[int, UnsetType] = unset,
4547
has_highlight_enabled: Union[bool, UnsetType] = unset,
48+
has_multi_pass_enabled: Union[bool, UnsetType] = unset,
4649
is_pci_compliant: Union[bool, UnsetType] = unset,
4750
version: Union[int, UnsetType] = unset,
4851
**kwargs,
@@ -59,6 +62,9 @@ def __init__(
5962
:param has_highlight_enabled: Whether or not scanned events are highlighted in Logs or RUM for the org.
6063
:type has_highlight_enabled: bool, optional
6164
65+
:param has_multi_pass_enabled: Whether or not scanned events have multi-pass enabled.
66+
:type has_multi_pass_enabled: bool, optional
67+
6268
:param is_pci_compliant: Whether or not the org is compliant to the payment card industry standard.
6369
:type is_pci_compliant: bool, optional
6470
@@ -71,6 +77,8 @@ def __init__(
7177
kwargs["group_count_limit"] = group_count_limit
7278
if has_highlight_enabled is not unset:
7379
kwargs["has_highlight_enabled"] = has_highlight_enabled
80+
if has_multi_pass_enabled is not unset:
81+
kwargs["has_multi_pass_enabled"] = has_multi_pass_enabled
7482
if is_pci_compliant is not unset:
7583
kwargs["is_pci_compliant"] = is_pci_compliant
7684
if version is not unset:

src/datadog_api_client/v2/model/sensitive_data_scanner_standard_pattern_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,22 @@ class SensitiveDataScannerStandardPatternAttributes(ModelNormal):
1717
@cached_property
1818
def openapi_types(_):
1919
return {
20+
"description": (str,),
2021
"name": (str,),
2122
"pattern": (str,),
2223
"tags": ([str],),
2324
}
2425

2526
attribute_map = {
27+
"description": "description",
2628
"name": "name",
2729
"pattern": "pattern",
2830
"tags": "tags",
2931
}
3032

3133
def __init__(
3234
self_,
35+
description: Union[str, UnsetType] = unset,
3336
name: Union[str, UnsetType] = unset,
3437
pattern: Union[str, UnsetType] = unset,
3538
tags: Union[List[str], UnsetType] = unset,
@@ -38,6 +41,9 @@ def __init__(
3841
"""
3942
Attributes of the Sensitive Data Scanner standard pattern.
4043
44+
:param description: Description of the standard pattern.
45+
:type description: str, optional
46+
4147
:param name: Name of the standard pattern.
4248
:type name: str, optional
4349
@@ -47,6 +53,8 @@ def __init__(
4753
:param tags: List of tags.
4854
:type tags: [str], optional
4955
"""
56+
if description is not unset:
57+
kwargs["description"] = description
5058
if name is not unset:
5159
kwargs["name"] = name
5260
if pattern is not unset:

0 commit comments

Comments
 (0)