Skip to content

Commit d88ac1a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7b0868e2 of spec repo
1 parent d9a21df commit d88ac1a

File tree

4 files changed

+27
-7
lines changed

4 files changed

+27
-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-07-02 14:51:00.390386",
8-
"spec_repo_commit": "1e8d5fca"
7+
"regenerated": "2024-07-02 18:16:16.602954",
8+
"spec_repo_commit": "7b0868e2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-02 14:51:00.407176",
13-
"spec_repo_commit": "1e8d5fca"
12+
"regenerated": "2024-07-02 18:16:16.620157",
13+
"spec_repo_commit": "7b0868e2"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

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

1494114941
to delete.'
1494214942
properties:
14943+
force_delete_dependencies:
14944+
description: 'Delete the Synthetic test even if it''s referenced by other
14945+
resources
14946+
14947+
(for example, SLOs and composite monitors).'
14948+
example: false
14949+
type: boolean
1494314950
public_ids:
1494414951
description: An array of Synthetic test IDs you want to delete.
1494514952
example: []

src/datadog_api_client/v1/model/synthetics_delete_tests_payload.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,34 @@ class SyntheticsDeleteTestsPayload(ModelNormal):
1717
@cached_property
1818
def openapi_types(_):
1919
return {
20+
"force_delete_dependencies": (bool,),
2021
"public_ids": ([str],),
2122
}
2223

2324
attribute_map = {
25+
"force_delete_dependencies": "force_delete_dependencies",
2426
"public_ids": "public_ids",
2527
}
2628

27-
def __init__(self_, public_ids: Union[List[str], UnsetType] = unset, **kwargs):
29+
def __init__(
30+
self_,
31+
force_delete_dependencies: Union[bool, UnsetType] = unset,
32+
public_ids: Union[List[str], UnsetType] = unset,
33+
**kwargs,
34+
):
2835
"""
2936
A JSON list of the ID or IDs of the Synthetic tests that you want
3037
to delete.
3138
39+
:param force_delete_dependencies: Delete the Synthetic test even if it's referenced by other resources
40+
(for example, SLOs and composite monitors).
41+
:type force_delete_dependencies: bool, optional
42+
3243
:param public_ids: An array of Synthetic test IDs you want to delete.
3344
:type public_ids: [str], optional
3445
"""
46+
if force_delete_dependencies is not unset:
47+
kwargs["force_delete_dependencies"] = force_delete_dependencies
3548
if public_ids is not unset:
3649
kwargs["public_ids"] = public_ids
3750
super().__init__(kwargs)

tests/v1/features/synthetics.feature

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

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

0 commit comments

Comments
 (0)