Skip to content

Commit a62f4b9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0efd2eb0 of spec repo
1 parent 9331e95 commit a62f4b9

File tree

4 files changed

+25
-7
lines changed

4 files changed

+25
-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-01 17:39:11.740155",
8-
"spec_repo_commit": "acfbfe3f"
7+
"regenerated": "2024-07-02 14:02:52.596814",
8+
"spec_repo_commit": "0efd2eb0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-01 17:39:11.758067",
13-
"spec_repo_commit": "acfbfe3f"
12+
"regenerated": "2024-07-02 14:02:52.614371",
13+
"spec_repo_commit": "0efd2eb0"
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: []

features/v1/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

lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,18 @@ module DatadogAPIClient::V1
2222
class SyntheticsDeleteTestsPayload
2323
include BaseGenericModel
2424

25+
# Delete the Synthetic test even if it's referenced by other resources
26+
# (for example, SLOs and composite monitors).
27+
attr_accessor :force_delete_dependencies
28+
2529
# An array of Synthetic test IDs you want to delete.
2630
attr_accessor :public_ids
2731

2832
# Attribute mapping from ruby-style variable name to JSON key.
2933
# @!visibility private
3034
def self.attribute_map
3135
{
36+
:'force_delete_dependencies' => :'force_delete_dependencies',
3237
:'public_ids' => :'public_ids'
3338
}
3439
end
@@ -37,6 +42,7 @@ def self.attribute_map
3742
# @!visibility private
3843
def self.openapi_types
3944
{
45+
:'force_delete_dependencies' => :'Boolean',
4046
:'public_ids' => :'Array<String>'
4147
}
4248
end
@@ -57,6 +63,10 @@ def initialize(attributes = {})
5763
h[k.to_sym] = v
5864
}
5965

66+
if attributes.key?(:'force_delete_dependencies')
67+
self.force_delete_dependencies = attributes[:'force_delete_dependencies']
68+
end
69+
6070
if attributes.key?(:'public_ids')
6171
if (value = attributes[:'public_ids']).is_a?(Array)
6272
self.public_ids = value
@@ -70,14 +80,15 @@ def initialize(attributes = {})
7080
def ==(o)
7181
return true if self.equal?(o)
7282
self.class == o.class &&
83+
force_delete_dependencies == o.force_delete_dependencies &&
7384
public_ids == o.public_ids
7485
end
7586

7687
# Calculates hash code according to all attributes.
7788
# @return [Integer] Hash code
7889
# @!visibility private
7990
def hash
80-
[public_ids].hash
91+
[force_delete_dependencies, public_ids].hash
8192
end
8293
end
8394
end

0 commit comments

Comments
 (0)