Skip to content

Commit 8d52c55

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b1a1c000 of spec repo
1 parent 6cf49a2 commit 8d52c55

28 files changed

+1090
-103
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": "2025-06-17 14:56:02.884286",
8-
"spec_repo_commit": "b359fdcc"
7+
"regenerated": "2025-06-17 18:21:59.760405",
8+
"spec_repo_commit": "b1a1c000"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-17 14:56:02.899290",
13-
"spec_repo_commit": "b359fdcc"
12+
"regenerated": "2025-06-17 18:21:59.775701",
13+
"spec_repo_commit": "b1a1c000"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35002,6 +35002,11 @@ components:
3500235002
items:
3500335003
$ref: '#/components/schemas/SensitiveDataScannerProduct'
3500435004
type: array
35005+
samplings:
35006+
description: List of sampling rates per product type.
35007+
items:
35008+
$ref: '#/components/schemas/SensitiveDataScannerSamplings'
35009+
type: array
3500535010
type: object
3500635011
SensitiveDataScannerGroupCreate:
3500735012
description: Data related to the creation of a group.
@@ -35433,6 +35438,19 @@ components:
3543335438
meta:
3543435439
$ref: '#/components/schemas/SensitiveDataScannerMetaVersionOnly'
3543535440
type: object
35441+
SensitiveDataScannerSamplings:
35442+
description: Sampling configurations for the Scanning Group.
35443+
properties:
35444+
product:
35445+
$ref: '#/components/schemas/SensitiveDataScannerProduct'
35446+
rate:
35447+
description: Rate at which data in product type will be scanned, as a percentage.
35448+
example: 100.0
35449+
format: double
35450+
maximum: 100.0
35451+
minimum: 0.0
35452+
type: number
35453+
type: object
3543635454
SensitiveDataScannerStandardPattern:
3543735455
description: Data containing the standard pattern id.
3543835456
properties:

docs/datadog_api_client.v2.model.rst

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

15337+
datadog\_api\_client.v2.model.sensitive\_data\_scanner\_samplings module
15338+
------------------------------------------------------------------------
15339+
15340+
.. automodule:: datadog_api_client.v2.model.sensitive_data_scanner_samplings
15341+
:members:
15342+
:show-inheritance:
15343+
1533715344
datadog\_api\_client.v2.model.sensitive\_data\_scanner\_standard\_pattern module
1533815345
--------------------------------------------------------------------------------
1533915346

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
@@ -3053,6 +3053,7 @@
30533053
from datadog_api_client.v2.model.sensitive_data_scanner_rule_update_response import (
30543054
SensitiveDataScannerRuleUpdateResponse,
30553055
)
3056+
from datadog_api_client.v2.model.sensitive_data_scanner_samplings import SensitiveDataScannerSamplings
30563057
from datadog_api_client.v2.model.sensitive_data_scanner_standard_pattern import SensitiveDataScannerStandardPattern
30573058
from datadog_api_client.v2.model.sensitive_data_scanner_standard_pattern_attributes import (
30583059
SensitiveDataScannerStandardPatternAttributes,
@@ -5692,6 +5693,7 @@
56925693
"SensitiveDataScannerRuleUpdate",
56935694
"SensitiveDataScannerRuleUpdateRequest",
56945695
"SensitiveDataScannerRuleUpdateResponse",
5696+
"SensitiveDataScannerSamplings",
56955697
"SensitiveDataScannerStandardPattern",
56965698
"SensitiveDataScannerStandardPatternAttributes",
56975699
"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)