Skip to content

Commit 680ab08

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f412a241 of spec repo
1 parent cf8110a commit 680ab08

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-06-19 10:10:09.090441",
8-
"spec_repo_commit": "4edb50e4"
7+
"regenerated": "2024-06-24 17:07:17.456511",
8+
"spec_repo_commit": "f412a241"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-06-19 10:10:09.107922",
13-
"spec_repo_commit": "4edb50e4"
12+
"regenerated": "2024-06-24 17:07:17.473500",
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: []

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
@@ -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)