Skip to content

Commit be2dd2c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 414a7c4 of spec repo
1 parent 2e523af commit be2dd2c

File tree

27 files changed

+113
-67
lines changed

27 files changed

+113
-67
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37907,6 +37907,11 @@ components:
3790737907
ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions:
3790837908
description: Options for defining a custom regex pattern.
3790937909
properties:
37910+
description:
37911+
description: Human-readable description providing context about a sensitive
37912+
data scanner rule
37913+
example: "Custom regex for internal API\u202Fkeys"
37914+
type: string
3791037915
rule:
3791137916
description: A regular expression used to detect sensitive values. Must
3791237917
be a valid regex.
@@ -37962,6 +37967,11 @@ components:
3796237967
description: Options for selecting a predefined library pattern and enabling
3796337968
keyword support.
3796437969
properties:
37970+
description:
37971+
description: Human-readable description providing context about a sensitive
37972+
data scanner rule
37973+
example: Credit card pattern
37974+
type: string
3796537975
id:
3796637976
description: Identifier for a predefined pattern from the sensitive data
3796737977
scanner pattern library.

src/datadogV2/model/model_observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions {
14+
/// Human-readable description providing context about a sensitive data scanner rule
15+
#[serde(rename = "description")]
16+
pub description: Option<String>,
1417
/// A regular expression used to detect sensitive values. Must be a valid regex.
1518
#[serde(rename = "rule")]
1619
pub rule: String,
@@ -26,12 +29,18 @@ impl ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions {
2629
rule: String,
2730
) -> ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions {
2831
ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions {
32+
description: None,
2933
rule,
3034
additional_properties: std::collections::BTreeMap::new(),
3135
_unparsed: false,
3236
}
3337
}
3438

39+
pub fn description(mut self, value: String) -> Self {
40+
self.description = Some(value);
41+
self
42+
}
43+
3544
pub fn additional_properties(
3645
mut self,
3746
value: std::collections::BTreeMap<String, serde_json::Value>,
@@ -62,6 +71,7 @@ impl<'de> Deserialize<'de>
6271
where
6372
M: MapAccess<'a>,
6473
{
74+
let mut description: Option<String> = None;
6575
let mut rule: Option<String> = None;
6676
let mut additional_properties: std::collections::BTreeMap<
6777
String,
@@ -71,6 +81,13 @@ impl<'de> Deserialize<'de>
7181

7282
while let Some((k, v)) = map.next_entry::<String, serde_json::Value>()? {
7383
match k.as_str() {
84+
"description" => {
85+
if v.is_null() {
86+
continue;
87+
}
88+
description =
89+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
90+
}
7491
"rule" => {
7592
rule = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
7693
}
@@ -85,6 +102,7 @@ impl<'de> Deserialize<'de>
85102

86103
let content =
87104
ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions {
105+
description,
88106
rule,
89107
additional_properties,
90108
_unparsed,

src/datadogV2/model/model_observability_pipeline_sensitive_data_scanner_processor_library_pattern_options.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions {
14+
/// Human-readable description providing context about a sensitive data scanner rule
15+
#[serde(rename = "description")]
16+
pub description: Option<String>,
1417
/// Identifier for a predefined pattern from the sensitive data scanner pattern library.
1518
#[serde(rename = "id")]
1619
pub id: String,
@@ -29,13 +32,19 @@ impl ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions {
2932
id: String,
3033
) -> ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions {
3134
ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions {
35+
description: None,
3236
id,
3337
use_recommended_keywords: None,
3438
additional_properties: std::collections::BTreeMap::new(),
3539
_unparsed: false,
3640
}
3741
}
3842

43+
pub fn description(mut self, value: String) -> Self {
44+
self.description = Some(value);
45+
self
46+
}
47+
3948
pub fn use_recommended_keywords(mut self, value: bool) -> Self {
4049
self.use_recommended_keywords = Some(value);
4150
self
@@ -71,6 +80,7 @@ impl<'de> Deserialize<'de>
7180
where
7281
M: MapAccess<'a>,
7382
{
83+
let mut description: Option<String> = None;
7484
let mut id: Option<String> = None;
7585
let mut use_recommended_keywords: Option<bool> = None;
7686
let mut additional_properties: std::collections::BTreeMap<
@@ -81,6 +91,13 @@ impl<'de> Deserialize<'de>
8191

8292
while let Some((k, v)) = map.next_entry::<String, serde_json::Value>()? {
8393
match k.as_str() {
94+
"description" => {
95+
if v.is_null() {
96+
continue;
97+
}
98+
description =
99+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
100+
}
84101
"id" => {
85102
id = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
86103
}
@@ -102,6 +119,7 @@ impl<'de> Deserialize<'de>
102119

103120
let content =
104121
ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions {
122+
description,
105123
id,
106124
use_recommended_keywords,
107125
additional_properties,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-12-18T16:15:15.575Z
1+
2025-12-23T13:57:28.936Z

tests/scenarios/cassettes/v2/observability_pipelines/Create-a-new-pipeline-returns-Bad-Request-response.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
]
1616
},
1717
"method": "post",
18-
"uri": "https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines"
18+
"uri": "https://api.datadoghq.com/api/v2/obs-pipelines/pipelines"
1919
},
2020
"response": {
2121
"body": {
@@ -32,7 +32,7 @@
3232
"message": "Bad Request"
3333
}
3434
},
35-
"recorded_at": "Thu, 18 Dec 2025 16:15:15 GMT"
35+
"recorded_at": "Tue, 23 Dec 2025 13:57:28 GMT"
3636
}
3737
],
3838
"recorded_with": "VCR 6.0.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-12-18T16:15:16.062Z
1+
2025-12-23T13:57:29.402Z

tests/scenarios/cassettes/v2/observability_pipelines/Create-a-new-pipeline-returns-OK-response.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
]
1616
},
1717
"method": "post",
18-
"uri": "https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines"
18+
"uri": "https://api.datadoghq.com/api/v2/obs-pipelines/pipelines"
1919
},
2020
"response": {
2121
"body": {
22-
"string": "{\"data\":{\"id\":\"bd8d693c-dc2c-11f0-bf69-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"my-processor-group\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"enabled\":true,\"id\":\"my-processor-group\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n",
22+
"string": "{\"data\":{\"id\":\"524b89d6-e007-11f0-8e9d-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"my-processor-group\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"enabled\":true,\"id\":\"my-processor-group\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n",
2323
"encoding": null
2424
},
2525
"headers": {
@@ -32,7 +32,7 @@
3232
"message": "Created"
3333
}
3434
},
35-
"recorded_at": "Thu, 18 Dec 2025 16:15:16 GMT"
35+
"recorded_at": "Tue, 23 Dec 2025 13:57:29 GMT"
3636
},
3737
{
3838
"request": {
@@ -43,7 +43,7 @@
4343
]
4444
},
4545
"method": "delete",
46-
"uri": "https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/bd8d693c-dc2c-11f0-bf69-da7ad0900002"
46+
"uri": "https://api.datadoghq.com/api/v2/obs-pipelines/pipelines/524b89d6-e007-11f0-8e9d-da7ad0900002"
4747
},
4848
"response": {
4949
"body": {
@@ -60,7 +60,7 @@
6060
"message": "No Content"
6161
}
6262
},
63-
"recorded_at": "Thu, 18 Dec 2025 16:15:16 GMT"
63+
"recorded_at": "Tue, 23 Dec 2025 13:57:29 GMT"
6464
}
6565
],
6666
"recorded_with": "VCR 6.0.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-12-18T16:15:17.165Z
1+
2025-12-23T13:57:30.502Z

tests/scenarios/cassettes/v2/observability_pipelines/Delete-a-pipeline-returns-Not-Found-response.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
]
1010
},
1111
"method": "delete",
12-
"uri": "https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/3fa85f64-5717-4562-b3fc-2c963f66afa6"
12+
"uri": "https://api.datadoghq.com/api/v2/obs-pipelines/pipelines/3fa85f64-5717-4562-b3fc-2c963f66afa6"
1313
},
1414
"response": {
1515
"body": {
@@ -26,7 +26,7 @@
2626
"message": "Not Found"
2727
}
2828
},
29-
"recorded_at": "Thu, 18 Dec 2025 16:15:17 GMT"
29+
"recorded_at": "Tue, 23 Dec 2025 13:57:30 GMT"
3030
}
3131
],
3232
"recorded_with": "VCR 6.0.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-12-18T16:15:17.716Z
1+
2025-12-23T13:57:31.004Z

0 commit comments

Comments
 (0)