Skip to content

Commit e70da21

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 65935c76 of spec repo
1 parent a863de0 commit e70da21

48 files changed

Lines changed: 1183 additions & 151 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.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-05-27 17:12:13.841874",
8-
"spec_repo_commit": "ed439f7c"
7+
"regenerated": "2025-06-02 15:34:44.437086",
8+
"spec_repo_commit": "65935c76"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-27 17:12:13.857049",
13-
"spec_repo_commit": "ed439f7c"
12+
"regenerated": "2025-06-02 15:34:44.452898",
13+
"spec_repo_commit": "65935c76"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34675,6 +34675,11 @@ components:
3467534675
items:
3467634676
$ref: '#/components/schemas/SensitiveDataScannerProduct'
3467734677
type: array
34678+
samplings:
34679+
description: List of sampling rates per product type.
34680+
items:
34681+
$ref: '#/components/schemas/SensitiveDataScannerSamplings'
34682+
type: array
3467834683
type: object
3467934684
SensitiveDataScannerGroupCreate:
3468034685
description: Data related to the creation of a group.
@@ -34875,10 +34880,22 @@ components:
3487534880
description: (Deprecated) Whether or not scanned events have multi-pass
3487634881
enabled.
3487734882
type: boolean
34883+
is_float_sampling_rate_enabled:
34884+
description: Whether or not the sampling rate for products can be set to
34885+
a float point number (as opposed to an integer).
34886+
type: boolean
3487834887
is_pci_compliant:
3487934888
description: Whether or not the org is compliant to the payment card industry
3488034889
standard.
3488134890
type: boolean
34891+
min_sampling_rate:
34892+
description: Global minimum sampling rate allowed for all product within
34893+
the org.
34894+
example: 10.0
34895+
format: double
34896+
maximum: 100.0
34897+
minimum: 0.0
34898+
type: number
3488234899
version:
3488334900
description: Version of the API.
3488434901
example: 0
@@ -34955,6 +34972,11 @@ components:
3495534972
is_enabled:
3495634973
description: Whether or not the rule is enabled.
3495734974
type: boolean
34975+
labels:
34976+
description: List of labels.
34977+
items:
34978+
type: string
34979+
type: array
3495834980
name:
3495934981
description: Name of the rule.
3496034982
type: string
@@ -35106,6 +35128,19 @@ components:
3510635128
meta:
3510735129
$ref: '#/components/schemas/SensitiveDataScannerMetaVersionOnly'
3510835130
type: object
35131+
SensitiveDataScannerSamplings:
35132+
description: Sampling configurations for the Scanning Group.
35133+
properties:
35134+
product:
35135+
$ref: '#/components/schemas/SensitiveDataScannerProduct'
35136+
rate:
35137+
description: Rate at which data in product type will be scanned, as a percentage.
35138+
example: 100.0
35139+
format: double
35140+
maximum: 100.0
35141+
minimum: 0.0
35142+
type: number
35143+
type: object
3510935144
SensitiveDataScannerStandardPattern:
3511035145
description: Data containing the standard pattern id.
3511135146
properties:

docs/datadog_api_client.v2.model.rst

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

15218+
datadog\_api\_client.v2.model.sensitive\_data\_scanner\_samplings module
15219+
------------------------------------------------------------------------
15220+
15221+
.. automodule:: datadog_api_client.v2.model.sensitive_data_scanner_samplings
15222+
:members:
15223+
:show-inheritance:
15224+
1521815225
datadog\_api\_client.v2.model.sensitive\_data\_scanner\_standard\_pattern module
1521915226
--------------------------------------------------------------------------------
1522015227

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)

src/datadog_api_client/v2/model/sensitive_data_scanner_meta.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515

1616
class SensitiveDataScannerMeta(ModelNormal):
1717
validations = {
18+
"min_sampling_rate": {
19+
"inclusive_maximum": 100.0,
20+
"inclusive_minimum": 0.0,
21+
},
1822
"version": {
1923
"inclusive_minimum": 0,
2024
},
@@ -27,7 +31,9 @@ def openapi_types(_):
2731
"group_count_limit": (int,),
2832
"has_highlight_enabled": (bool,),
2933
"has_multi_pass_enabled": (bool,),
34+
"is_float_sampling_rate_enabled": (bool,),
3035
"is_pci_compliant": (bool,),
36+
"min_sampling_rate": (float,),
3137
"version": (int,),
3238
}
3339

@@ -36,7 +42,9 @@ def openapi_types(_):
3642
"group_count_limit": "group_count_limit",
3743
"has_highlight_enabled": "has_highlight_enabled",
3844
"has_multi_pass_enabled": "has_multi_pass_enabled",
45+
"is_float_sampling_rate_enabled": "is_float_sampling_rate_enabled",
3946
"is_pci_compliant": "is_pci_compliant",
47+
"min_sampling_rate": "min_sampling_rate",
4048
"version": "version",
4149
}
4250

@@ -46,7 +54,9 @@ def __init__(
4654
group_count_limit: Union[int, UnsetType] = unset,
4755
has_highlight_enabled: Union[bool, UnsetType] = unset,
4856
has_multi_pass_enabled: Union[bool, UnsetType] = unset,
57+
is_float_sampling_rate_enabled: Union[bool, UnsetType] = unset,
4958
is_pci_compliant: Union[bool, UnsetType] = unset,
59+
min_sampling_rate: Union[float, UnsetType] = unset,
5060
version: Union[int, UnsetType] = unset,
5161
**kwargs,
5262
):
@@ -65,9 +75,15 @@ def __init__(
6575
:param has_multi_pass_enabled: (Deprecated) Whether or not scanned events have multi-pass enabled. **Deprecated**.
6676
:type has_multi_pass_enabled: bool, optional
6777
78+
:param is_float_sampling_rate_enabled: Whether or not the sampling rate for products can be set to a float point number (as opposed to an integer).
79+
:type is_float_sampling_rate_enabled: bool, optional
80+
6881
:param is_pci_compliant: Whether or not the org is compliant to the payment card industry standard.
6982
:type is_pci_compliant: bool, optional
7083
84+
:param min_sampling_rate: Global minimum sampling rate allowed for all product within the org.
85+
:type min_sampling_rate: float, optional
86+
7187
:param version: Version of the API.
7288
:type version: int, optional
7389
"""
@@ -79,8 +95,12 @@ def __init__(
7995
kwargs["has_highlight_enabled"] = has_highlight_enabled
8096
if has_multi_pass_enabled is not unset:
8197
kwargs["has_multi_pass_enabled"] = has_multi_pass_enabled
98+
if is_float_sampling_rate_enabled is not unset:
99+
kwargs["is_float_sampling_rate_enabled"] = is_float_sampling_rate_enabled
82100
if is_pci_compliant is not unset:
83101
kwargs["is_pci_compliant"] = is_pci_compliant
102+
if min_sampling_rate is not unset:
103+
kwargs["min_sampling_rate"] = min_sampling_rate
84104
if version is not unset:
85105
kwargs["version"] = version
86106
super().__init__(kwargs)

src/datadog_api_client/v2/model/sensitive_data_scanner_rule_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def openapi_types(_):
4242
"excluded_namespaces": ([str],),
4343
"included_keyword_configuration": (SensitiveDataScannerIncludedKeywordConfiguration,),
4444
"is_enabled": (bool,),
45+
"labels": ([str],),
4546
"name": (str,),
4647
"namespaces": ([str],),
4748
"pattern": (str,),
@@ -55,6 +56,7 @@ def openapi_types(_):
5556
"excluded_namespaces": "excluded_namespaces",
5657
"included_keyword_configuration": "included_keyword_configuration",
5758
"is_enabled": "is_enabled",
59+
"labels": "labels",
5860
"name": "name",
5961
"namespaces": "namespaces",
6062
"pattern": "pattern",
@@ -69,6 +71,7 @@ def __init__(
6971
excluded_namespaces: Union[List[str], UnsetType] = unset,
7072
included_keyword_configuration: Union[SensitiveDataScannerIncludedKeywordConfiguration, UnsetType] = unset,
7173
is_enabled: Union[bool, UnsetType] = unset,
74+
labels: Union[List[str], UnsetType] = unset,
7275
name: Union[str, UnsetType] = unset,
7376
namespaces: Union[List[str], UnsetType] = unset,
7477
pattern: Union[str, UnsetType] = unset,
@@ -95,6 +98,9 @@ def __init__(
9598
:param is_enabled: Whether or not the rule is enabled.
9699
:type is_enabled: bool, optional
97100
101+
:param labels: List of labels.
102+
:type labels: [str], optional
103+
98104
:param name: Name of the rule.
99105
:type name: str, optional
100106
@@ -122,6 +128,8 @@ def __init__(
122128
kwargs["included_keyword_configuration"] = included_keyword_configuration
123129
if is_enabled is not unset:
124130
kwargs["is_enabled"] = is_enabled
131+
if labels is not unset:
132+
kwargs["labels"] = labels
125133
if name is not unset:
126134
kwargs["name"] = name
127135
if namespaces is not unset:
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
@@ -3028,6 +3028,7 @@
30283028
from datadog_api_client.v2.model.sensitive_data_scanner_rule_update_response import (
30293029
SensitiveDataScannerRuleUpdateResponse,
30303030
)
3031+
from datadog_api_client.v2.model.sensitive_data_scanner_samplings import SensitiveDataScannerSamplings
30313032
from datadog_api_client.v2.model.sensitive_data_scanner_standard_pattern import SensitiveDataScannerStandardPattern
30323033
from datadog_api_client.v2.model.sensitive_data_scanner_standard_pattern_attributes import (
30333034
SensitiveDataScannerStandardPatternAttributes,
@@ -5625,6 +5626,7 @@
56255626
"SensitiveDataScannerRuleUpdate",
56265627
"SensitiveDataScannerRuleUpdateRequest",
56275628
"SensitiveDataScannerRuleUpdateResponse",
5629+
"SensitiveDataScannerSamplings",
56285630
"SensitiveDataScannerStandardPattern",
56295631
"SensitiveDataScannerStandardPatternAttributes",
56305632
"SensitiveDataScannerStandardPatternData",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-04-10T10:29:43.940Z
1+
2025-04-03T20:58:02.871Z

tests/v2/cassettes/test_scenarios/test_create_a_monitor_notification_rule_returns_bad_request_response.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"filter":{"tags":["test:test-create_a_monitor_notification_rule_returns_bad_request_response-1744280983","host:abc"]},"name":"test
3+
body: '{"data":{"attributes":{"filter":{"tags":["test:test-create_a_monitor_notification_rule_returns_bad_request_response-1743713882","host:abc"]},"name":"test
44
rule","recipients":["@slack-test-channel","@jira-test"]},"type":"monitor-notification-rule"}}'
55
headers:
66
accept:

0 commit comments

Comments
 (0)