File tree Expand file tree Collapse file tree 4 files changed +22
-6
lines changed
packages/datadog-api-client-v1/models Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 4
4
"spec_versions": {
5
5
"v1": {
6
6
"apigentools_version": "1.6.6",
7
- "regenerated": "2024-07-02 18:17:50.120632 ",
8
- "spec_repo_commit": "464f0cec "
7
+ "regenerated": "2024-07-02 18:50:24.822584 ",
8
+ "spec_repo_commit": "fae9d797 "
9
9
},
10
10
"v2": {
11
11
"apigentools_version": "1.6.6",
12
- "regenerated": "2024-07-02 18:17:50.138246 ",
13
- "spec_repo_commit": "464f0cec "
12
+ "regenerated": "2024-07-02 18:50:24.840415 ",
13
+ "spec_repo_commit": "fae9d797 "
14
14
}
15
15
}
16
16
}
Original file line number Diff line number Diff line change @@ -14944,6 +14944,13 @@ components:
14944
14944
14945
14945
to delete.'
14946
14946
properties:
14947
+ force_delete_dependencies:
14948
+ description: 'Delete the Synthetic test even if it''s referenced by other
14949
+ resources
14950
+
14951
+ (for example, SLOs and composite monitors).'
14952
+ example: false
14953
+ type: boolean
14947
14954
public_ids:
14948
14955
description: An array of Synthetic test IDs you want to delete.
14949
14956
example: []
Original file line number Diff line number Diff line change @@ -269,14 +269,14 @@ Feature: Synthetics
269
269
@generated @skip @team:DataDog/synthetics-ct
270
270
Scenario : Delete tests returns "- JSON format is wrong" response
271
271
Given new "DeleteTests" request
272
- And body with value {"public_ids" : []}
272
+ And body with value {"force_delete_dependencies" : false, " public_ids" : []}
273
273
When the request is sent
274
274
Then the response status is 400 - JSON format is wrong
275
275
276
276
@generated @skip @team:DataDog/synthetics-ct
277
277
Scenario : Delete tests returns "- Tests to be deleted can't be found" response
278
278
Given new "DeleteTests" request
279
- And body with value {"public_ids" : []}
279
+ And body with value {"force_delete_dependencies" : false, " public_ids" : []}
280
280
When the request is sent
281
281
Then the response status is 404 - Tests to be deleted can't be found
282
282
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
11
11
* to delete.
12
12
*/
13
13
export class SyntheticsDeleteTestsPayload {
14
+ /**
15
+ * Delete the Synthetic test even if it's referenced by other resources
16
+ * (for example, SLOs and composite monitors).
17
+ */
18
+ "forceDeleteDependencies" ?: boolean ;
14
19
/**
15
20
* An array of Synthetic test IDs you want to delete.
16
21
*/
@@ -32,6 +37,10 @@ export class SyntheticsDeleteTestsPayload {
32
37
* @ignore
33
38
*/
34
39
static readonly attributeTypeMap : AttributeTypeMap = {
40
+ forceDeleteDependencies : {
41
+ baseName : "force_delete_dependencies" ,
42
+ type : "boolean" ,
43
+ } ,
35
44
publicIds : {
36
45
baseName : "public_ids" ,
37
46
type : "Array<string>" ,
You can’t perform that action at this time.
0 commit comments