Skip to content

Commit 2e868e5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f412a241 of spec repo
1 parent 0970759 commit 2e868e5

File tree

5 files changed

+33
-7
lines changed

5 files changed

+33
-7
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": "2024-06-19 10:10:11.574101",
8-
"spec_repo_commit": "4edb50e4"
7+
"regenerated": "2024-06-24 17:07:12.653808",
8+
"spec_repo_commit": "f412a241"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-06-19 10:10:11.591927",
13-
"spec_repo_commit": "4edb50e4"
12+
"regenerated": "2024-06-24 17:07:12.671918",
13+
"spec_repo_commit": "f412a241"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14883,6 +14883,13 @@ components:
1488314883

1488414884
to delete.'
1488514885
properties:
14886+
force_delete_dependencies:
14887+
description: 'Delete the Synthetic test even if it''s referenced by other
14888+
resources
14889+
14890+
(for example, SLOs and composite monitors).'
14891+
example: false
14892+
type: boolean
1488614893
public_ids:
1488714894
description: An array of Synthetic test IDs you want to delete.
1488814895
example: []

LICENSE-3rdparty.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ unicode-bidi,https://github.com/servo/unicode-bidi,MIT OR Apache-2.0,The Servo P
126126
unicode-ident,https://github.com/dtolnay/unicode-ident,(MIT OR Apache-2.0) AND Unicode-DFS-2016,David Tolnay <[email protected]>
127127
unicode-normalization,https://github.com/unicode-rs/unicode-normalization,MIT OR Apache-2.0,"kwantam <[email protected]>, Manish Goregaokar <[email protected]>"
128128
url,https://github.com/servo/rust-url,MIT OR Apache-2.0,The rust-url developers
129-
uuid,https://github.com/uuid-rs/uuid,Apache-2.0 OR MIT,"Ashley Mannix<[email protected]>, Christopher Armstrong, Dylan DPC<[email protected]>, Hunar Roop Kahlon<[email protected]>"
129+
uuid,https://github.com/uuid-rs/uuid,Apache-2.0 OR MIT,"Ashley Mannix<[email protected]>, Dylan DPC<[email protected]>, Hunar Roop Kahlon<[email protected]>"
130130
uuid-macro-internal,https://github.com/uuid-rs/uuid,Apache-2.0 OR MIT,QnnOkabayashi
131131
want,https://github.com/seanmonstar/want,MIT,Sean McArthur <[email protected]>
132132
wasi,https://github.com/bytecodealliance/wasi,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,The Cranelift Project Developers

src/datadogV1/model/model_synthetics_delete_tests_payload.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ use std::fmt::{self, Formatter};
1212
#[skip_serializing_none]
1313
#[derive(Clone, Debug, PartialEq, Serialize)]
1414
pub struct SyntheticsDeleteTestsPayload {
15+
/// Delete the Synthetic test even if it's referenced by other resources
16+
/// (for example, SLOs and composite monitors).
17+
#[serde(rename = "force_delete_dependencies")]
18+
pub force_delete_dependencies: Option<bool>,
1519
/// An array of Synthetic test IDs you want to delete.
1620
#[serde(rename = "public_ids")]
1721
pub public_ids: Option<Vec<String>>,
@@ -23,11 +27,17 @@ pub struct SyntheticsDeleteTestsPayload {
2327
impl SyntheticsDeleteTestsPayload {
2428
pub fn new() -> SyntheticsDeleteTestsPayload {
2529
SyntheticsDeleteTestsPayload {
30+
force_delete_dependencies: None,
2631
public_ids: None,
2732
_unparsed: false,
2833
}
2934
}
3035

36+
pub fn force_delete_dependencies(mut self, value: bool) -> Self {
37+
self.force_delete_dependencies = Some(value);
38+
self
39+
}
40+
3141
pub fn public_ids(mut self, value: Vec<String>) -> Self {
3242
self.public_ids = Some(value);
3343
self
@@ -57,11 +67,19 @@ impl<'de> Deserialize<'de> for SyntheticsDeleteTestsPayload {
5767
where
5868
M: MapAccess<'a>,
5969
{
70+
let mut force_delete_dependencies: Option<bool> = None;
6071
let mut public_ids: Option<Vec<String>> = None;
6172
let mut _unparsed = false;
6273

6374
while let Some((k, v)) = map.next_entry::<String, serde_json::Value>()? {
6475
match k.as_str() {
76+
"force_delete_dependencies" => {
77+
if v.is_null() {
78+
continue;
79+
}
80+
force_delete_dependencies =
81+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
82+
}
6583
"public_ids" => {
6684
if v.is_null() {
6785
continue;
@@ -73,6 +91,7 @@ impl<'de> Deserialize<'de> for SyntheticsDeleteTestsPayload {
7391
}
7492

7593
let content = SyntheticsDeleteTestsPayload {
94+
force_delete_dependencies,
7695
public_ids,
7796
_unparsed,
7897
};

tests/scenarios/features/v1/synthetics.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,14 +267,14 @@ Feature: Synthetics
267267
@generated @skip @team:DataDog/synthetics-ct
268268
Scenario: Delete tests returns "- JSON format is wrong" response
269269
Given new "DeleteTests" request
270-
And body with value {"public_ids": []}
270+
And body with value {"force_delete_dependencies": false, "public_ids": []}
271271
When the request is sent
272272
Then the response status is 400 - JSON format is wrong
273273

274274
@generated @skip @team:DataDog/synthetics-ct
275275
Scenario: Delete tests returns "- Tests to be deleted can't be found" response
276276
Given new "DeleteTests" request
277-
And body with value {"public_ids": []}
277+
And body with value {"force_delete_dependencies": false, "public_ids": []}
278278
When the request is sent
279279
Then the response status is 404 - Tests to be deleted can't be found
280280

0 commit comments

Comments
 (0)