Skip to content

Commit e0ada74

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c7c18a3a of spec repo
1 parent 40557cd commit e0ada74

28 files changed

Lines changed: 1090 additions & 103 deletions

.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": "2025-06-11 14:29:03.491775",
8-
"spec_repo_commit": "847bdb30"
7+
"regenerated": "2025-06-12 17:24:55.896142",
8+
"spec_repo_commit": "c7c18a3a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-11 14:29:03.513770",
13-
"spec_repo_commit": "847bdb30"
12+
"regenerated": "2025-06-12 17:24:55.911285",
13+
"spec_repo_commit": "c7c18a3a"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34957,6 +34957,11 @@ components:
3495734957
items:
3495834958
$ref: '#/components/schemas/SensitiveDataScannerProduct'
3495934959
type: array
34960+
samplings:
34961+
description: List of sampling rates per product type.
34962+
items:
34963+
$ref: '#/components/schemas/SensitiveDataScannerSamplings'
34964+
type: array
3496034965
type: object
3496134966
SensitiveDataScannerGroupCreate:
3496234967
description: Data related to the creation of a group.
@@ -35388,6 +35393,19 @@ components:
3538835393
meta:
3538935394
$ref: '#/components/schemas/SensitiveDataScannerMetaVersionOnly'
3539035395
type: object
35396+
SensitiveDataScannerSamplings:
35397+
description: Sampling configurations for the Scanning Group.
35398+
properties:
35399+
product:
35400+
$ref: '#/components/schemas/SensitiveDataScannerProduct'
35401+
rate:
35402+
description: Rate at which data in product type will be scanned, as a percentage.
35403+
example: 100.0
35404+
format: double
35405+
maximum: 100.0
35406+
minimum: 0.0
35407+
type: number
35408+
type: object
3539135409
SensitiveDataScannerStandardPattern:
3539235410
description: Data containing the standard pattern id.
3539335411
properties:

docs/datadog_api_client.v2.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15313,6 +15313,13 @@ datadog\_api\_client.v2.model.sensitive\_data\_scanner\_rule\_update\_response m
1531315313
:members:
1531415314
:show-inheritance:
1531515315

15316+
datadog\_api\_client.v2.model.sensitive\_data\_scanner\_samplings module
15317+
------------------------------------------------------------------------
15318+
15319+
.. automodule:: datadog_api_client.v2.model.sensitive_data_scanner_samplings
15320+
:members:
15321+
:show-inheritance:
15322+
1531615323
datadog\_api\_client.v2.model.sensitive\_data\_scanner\_standard\_pattern module
1531715324
--------------------------------------------------------------------------------
1531815325

src/datadog_api_client/v2/model/sensitive_data_scanner_group_attributes.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,23 @@
1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.sensitive_data_scanner_filter import SensitiveDataScannerFilter
1818
from datadog_api_client.v2.model.sensitive_data_scanner_product import SensitiveDataScannerProduct
19+
from datadog_api_client.v2.model.sensitive_data_scanner_samplings import SensitiveDataScannerSamplings
1920

2021

2122
class SensitiveDataScannerGroupAttributes(ModelNormal):
2223
@cached_property
2324
def openapi_types(_):
2425
from datadog_api_client.v2.model.sensitive_data_scanner_filter import SensitiveDataScannerFilter
2526
from datadog_api_client.v2.model.sensitive_data_scanner_product import SensitiveDataScannerProduct
27+
from datadog_api_client.v2.model.sensitive_data_scanner_samplings import SensitiveDataScannerSamplings
2628

2729
return {
2830
"description": (str,),
2931
"filter": (SensitiveDataScannerFilter,),
3032
"is_enabled": (bool,),
3133
"name": (str,),
3234
"product_list": ([SensitiveDataScannerProduct],),
35+
"samplings": ([SensitiveDataScannerSamplings],),
3336
}
3437

3538
attribute_map = {
@@ -38,6 +41,7 @@ def openapi_types(_):
3841
"is_enabled": "is_enabled",
3942
"name": "name",
4043
"product_list": "product_list",
44+
"samplings": "samplings",
4145
}
4246

4347
def __init__(
@@ -47,6 +51,7 @@ def __init__(
4751
is_enabled: Union[bool, UnsetType] = unset,
4852
name: Union[str, UnsetType] = unset,
4953
product_list: Union[List[SensitiveDataScannerProduct], UnsetType] = unset,
54+
samplings: Union[List[SensitiveDataScannerSamplings], UnsetType] = unset,
5055
**kwargs,
5156
):
5257
"""
@@ -66,6 +71,9 @@ def __init__(
6671
6772
:param product_list: List of products the scanning group applies.
6873
:type product_list: [SensitiveDataScannerProduct], optional
74+
75+
:param samplings: List of sampling rates per product type.
76+
:type samplings: [SensitiveDataScannerSamplings], optional
6977
"""
7078
if description is not unset:
7179
kwargs["description"] = description
@@ -77,4 +85,6 @@ def __init__(
7785
kwargs["name"] = name
7886
if product_list is not unset:
7987
kwargs["product_list"] = product_list
88+
if samplings is not unset:
89+
kwargs["samplings"] = samplings
8090
super().__init__(kwargs)
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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 Union, TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.sensitive_data_scanner_product import SensitiveDataScannerProduct
18+
19+
20+
class SensitiveDataScannerSamplings(ModelNormal):
21+
validations = {
22+
"rate": {
23+
"inclusive_maximum": 100.0,
24+
"inclusive_minimum": 0.0,
25+
},
26+
}
27+
28+
@cached_property
29+
def openapi_types(_):
30+
from datadog_api_client.v2.model.sensitive_data_scanner_product import SensitiveDataScannerProduct
31+
32+
return {
33+
"product": (SensitiveDataScannerProduct,),
34+
"rate": (float,),
35+
}
36+
37+
attribute_map = {
38+
"product": "product",
39+
"rate": "rate",
40+
}
41+
42+
def __init__(
43+
self_,
44+
product: Union[SensitiveDataScannerProduct, UnsetType] = unset,
45+
rate: Union[float, UnsetType] = unset,
46+
**kwargs,
47+
):
48+
"""
49+
Sampling configurations for the Scanning Group.
50+
51+
:param product: Datadog product onto which Sensitive Data Scanner can be activated.
52+
:type product: SensitiveDataScannerProduct, optional
53+
54+
:param rate: Rate at which data in product type will be scanned, as a percentage.
55+
:type rate: float, optional
56+
"""
57+
if product is not unset:
58+
kwargs["product"] = product
59+
if rate is not unset:
60+
kwargs["rate"] = rate
61+
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
@@ -3050,6 +3050,7 @@
30503050
from datadog_api_client.v2.model.sensitive_data_scanner_rule_update_response import (
30513051
SensitiveDataScannerRuleUpdateResponse,
30523052
)
3053+
from datadog_api_client.v2.model.sensitive_data_scanner_samplings import SensitiveDataScannerSamplings
30533054
from datadog_api_client.v2.model.sensitive_data_scanner_standard_pattern import SensitiveDataScannerStandardPattern
30543055
from datadog_api_client.v2.model.sensitive_data_scanner_standard_pattern_attributes import (
30553056
SensitiveDataScannerStandardPatternAttributes,
@@ -5686,6 +5687,7 @@
56865687
"SensitiveDataScannerRuleUpdate",
56875688
"SensitiveDataScannerRuleUpdateRequest",
56885689
"SensitiveDataScannerRuleUpdateResponse",
5690+
"SensitiveDataScannerSamplings",
56895691
"SensitiveDataScannerStandardPattern",
56905692
"SensitiveDataScannerStandardPatternAttributes",
56915693
"SensitiveDataScannerStandardPatternData",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-12-15T14:50:52.745Z
1+
2025-05-30T17:17:05.785Z

0 commit comments

Comments
 (0)