Skip to content

Commit 715232a

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

27 files changed

+383
-138
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-05-27 17:12:16.501759",
8-
"spec_repo_commit": "ed439f7c"
7+
"regenerated": "2025-06-02 15:34:55.940482",
8+
"spec_repo_commit": "65935c76"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-27 17:12:16.518477",
13-
"spec_repo_commit": "ed439f7c"
12+
"regenerated": "2025-06-02 15:34:55.956125",
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:

src/datadogV2/model/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4278,6 +4278,8 @@ pub mod model_sensitive_data_scanner_filter;
42784278
pub use self::model_sensitive_data_scanner_filter::SensitiveDataScannerFilter;
42794279
pub mod model_sensitive_data_scanner_product;
42804280
pub use self::model_sensitive_data_scanner_product::SensitiveDataScannerProduct;
4281+
pub mod model_sensitive_data_scanner_samplings;
4282+
pub use self::model_sensitive_data_scanner_samplings::SensitiveDataScannerSamplings;
42814283
pub mod model_sensitive_data_scanner_group_relationships;
42824284
pub use self::model_sensitive_data_scanner_group_relationships::SensitiveDataScannerGroupRelationships;
42834285
pub mod model_sensitive_data_scanner_configuration_data;

src/datadogV2/model/model_sensitive_data_scanner_group_attributes.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ pub struct SensitiveDataScannerGroupAttributes {
2626
/// List of products the scanning group applies.
2727
#[serde(rename = "product_list")]
2828
pub product_list: Option<Vec<crate::datadogV2::model::SensitiveDataScannerProduct>>,
29+
/// List of sampling rates per product type.
30+
#[serde(rename = "samplings")]
31+
pub samplings: Option<Vec<crate::datadogV2::model::SensitiveDataScannerSamplings>>,
2932
#[serde(flatten)]
3033
pub additional_properties: std::collections::BTreeMap<String, serde_json::Value>,
3134
#[serde(skip)]
@@ -41,6 +44,7 @@ impl SensitiveDataScannerGroupAttributes {
4144
is_enabled: None,
4245
name: None,
4346
product_list: None,
47+
samplings: None,
4448
additional_properties: std::collections::BTreeMap::new(),
4549
_unparsed: false,
4650
}
@@ -74,6 +78,14 @@ impl SensitiveDataScannerGroupAttributes {
7478
self
7579
}
7680

81+
pub fn samplings(
82+
mut self,
83+
value: Vec<crate::datadogV2::model::SensitiveDataScannerSamplings>,
84+
) -> Self {
85+
self.samplings = Some(value);
86+
self
87+
}
88+
7789
pub fn additional_properties(
7890
mut self,
7991
value: std::collections::BTreeMap<String, serde_json::Value>,
@@ -113,6 +125,9 @@ impl<'de> Deserialize<'de> for SensitiveDataScannerGroupAttributes {
113125
let mut product_list: Option<
114126
Vec<crate::datadogV2::model::SensitiveDataScannerProduct>,
115127
> = None;
128+
let mut samplings: Option<
129+
Vec<crate::datadogV2::model::SensitiveDataScannerSamplings>,
130+
> = None;
116131
let mut additional_properties: std::collections::BTreeMap<
117132
String,
118133
serde_json::Value,
@@ -153,6 +168,12 @@ impl<'de> Deserialize<'de> for SensitiveDataScannerGroupAttributes {
153168
product_list =
154169
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
155170
}
171+
"samplings" => {
172+
if v.is_null() {
173+
continue;
174+
}
175+
samplings = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
176+
}
156177
&_ => {
157178
if let Ok(value) = serde_json::from_value(v.clone()) {
158179
additional_properties.insert(k, value);
@@ -167,6 +188,7 @@ impl<'de> Deserialize<'de> for SensitiveDataScannerGroupAttributes {
167188
is_enabled,
168189
name,
169190
product_list,
191+
samplings,
170192
additional_properties,
171193
_unparsed,
172194
};

src/datadogV2/model/model_sensitive_data_scanner_meta.rs

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ pub struct SensitiveDataScannerMeta {
2525
#[deprecated]
2626
#[serde(rename = "has_multi_pass_enabled")]
2727
pub has_multi_pass_enabled: Option<bool>,
28+
/// Whether or not the sampling rate for products can be set to a float point number (as opposed to an integer).
29+
#[serde(rename = "is_float_sampling_rate_enabled")]
30+
pub is_float_sampling_rate_enabled: Option<bool>,
2831
/// Whether or not the org is compliant to the payment card industry standard.
2932
#[serde(rename = "is_pci_compliant")]
3033
pub is_pci_compliant: Option<bool>,
34+
/// Global minimum sampling rate allowed for all product within the org.
35+
#[serde(rename = "min_sampling_rate")]
36+
pub min_sampling_rate: Option<f64>,
3137
/// Version of the API.
3238
#[serde(rename = "version")]
3339
pub version: Option<i64>,
@@ -46,7 +52,9 @@ impl SensitiveDataScannerMeta {
4652
group_count_limit: None,
4753
has_highlight_enabled: None,
4854
has_multi_pass_enabled: None,
55+
is_float_sampling_rate_enabled: None,
4956
is_pci_compliant: None,
57+
min_sampling_rate: None,
5058
version: None,
5159
additional_properties: std::collections::BTreeMap::new(),
5260
_unparsed: false,
@@ -77,12 +85,24 @@ impl SensitiveDataScannerMeta {
7785
self
7886
}
7987

88+
#[allow(deprecated)]
89+
pub fn is_float_sampling_rate_enabled(mut self, value: bool) -> Self {
90+
self.is_float_sampling_rate_enabled = Some(value);
91+
self
92+
}
93+
8094
#[allow(deprecated)]
8195
pub fn is_pci_compliant(mut self, value: bool) -> Self {
8296
self.is_pci_compliant = Some(value);
8397
self
8498
}
8599

100+
#[allow(deprecated)]
101+
pub fn min_sampling_rate(mut self, value: f64) -> Self {
102+
self.min_sampling_rate = Some(value);
103+
self
104+
}
105+
86106
#[allow(deprecated)]
87107
pub fn version(mut self, value: i64) -> Self {
88108
self.version = Some(value);
@@ -125,7 +145,9 @@ impl<'de> Deserialize<'de> for SensitiveDataScannerMeta {
125145
let mut group_count_limit: Option<i64> = None;
126146
let mut has_highlight_enabled: Option<bool> = None;
127147
let mut has_multi_pass_enabled: Option<bool> = None;
148+
let mut is_float_sampling_rate_enabled: Option<bool> = None;
128149
let mut is_pci_compliant: Option<bool> = None;
150+
let mut min_sampling_rate: Option<f64> = None;
129151
let mut version: Option<i64> = None;
130152
let mut additional_properties: std::collections::BTreeMap<
131153
String,
@@ -163,13 +185,27 @@ impl<'de> Deserialize<'de> for SensitiveDataScannerMeta {
163185
has_multi_pass_enabled =
164186
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
165187
}
188+
"is_float_sampling_rate_enabled" => {
189+
if v.is_null() {
190+
continue;
191+
}
192+
is_float_sampling_rate_enabled =
193+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
194+
}
166195
"is_pci_compliant" => {
167196
if v.is_null() {
168197
continue;
169198
}
170199
is_pci_compliant =
171200
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
172201
}
202+
"min_sampling_rate" => {
203+
if v.is_null() {
204+
continue;
205+
}
206+
min_sampling_rate =
207+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
208+
}
173209
"version" => {
174210
if v.is_null() {
175211
continue;
@@ -190,7 +226,9 @@ impl<'de> Deserialize<'de> for SensitiveDataScannerMeta {
190226
group_count_limit,
191227
has_highlight_enabled,
192228
has_multi_pass_enabled,
229+
is_float_sampling_rate_enabled,
193230
is_pci_compliant,
231+
min_sampling_rate,
194232
version,
195233
additional_properties,
196234
_unparsed,

src/datadogV2/model/model_sensitive_data_scanner_rule_attributes.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ pub struct SensitiveDataScannerRuleAttributes {
2727
/// Whether or not the rule is enabled.
2828
#[serde(rename = "is_enabled")]
2929
pub is_enabled: Option<bool>,
30+
/// List of labels.
31+
#[serde(rename = "labels")]
32+
pub labels: Option<Vec<String>>,
3033
/// Name of the rule.
3134
#[serde(rename = "name")]
3235
pub name: Option<String>,
@@ -60,6 +63,7 @@ impl SensitiveDataScannerRuleAttributes {
6063
excluded_namespaces: None,
6164
included_keyword_configuration: None,
6265
is_enabled: None,
66+
labels: None,
6367
name: None,
6468
namespaces: None,
6569
pattern: None,
@@ -94,6 +98,11 @@ impl SensitiveDataScannerRuleAttributes {
9498
self
9599
}
96100

101+
pub fn labels(mut self, value: Vec<String>) -> Self {
102+
self.labels = Some(value);
103+
self
104+
}
105+
97106
pub fn name(mut self, value: String) -> Self {
98107
self.name = Some(value);
99108
self
@@ -165,6 +174,7 @@ impl<'de> Deserialize<'de> for SensitiveDataScannerRuleAttributes {
165174
crate::datadogV2::model::SensitiveDataScannerIncludedKeywordConfiguration,
166175
> = None;
167176
let mut is_enabled: Option<bool> = None;
177+
let mut labels: Option<Vec<String>> = None;
168178
let mut name: Option<String> = None;
169179
let mut namespaces: Option<Vec<String>> = None;
170180
let mut pattern: Option<String> = None;
@@ -208,6 +218,12 @@ impl<'de> Deserialize<'de> for SensitiveDataScannerRuleAttributes {
208218
}
209219
is_enabled = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
210220
}
221+
"labels" => {
222+
if v.is_null() {
223+
continue;
224+
}
225+
labels = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
226+
}
211227
"name" => {
212228
if v.is_null() {
213229
continue;
@@ -258,6 +274,7 @@ impl<'de> Deserialize<'de> for SensitiveDataScannerRuleAttributes {
258274
excluded_namespaces,
259275
included_keyword_configuration,
260276
is_enabled,
277+
labels,
261278
name,
262279
namespaces,
263280
pattern,

0 commit comments

Comments
 (0)