Skip to content

Commit a2a4ff9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 54f2896b of spec repo
1 parent 1293127 commit a2a4ff9

File tree

5 files changed

+7
-39
lines changed

5 files changed

+7
-39
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": "2025-06-11 14:28:50.714448",
8-
"spec_repo_commit": "847bdb30"
7+
"regenerated": "2025-06-12 14:02:25.282729",
8+
"spec_repo_commit": "54f2896b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-11 14:28:50.731377",
13-
"spec_repo_commit": "847bdb30"
12+
"regenerated": "2025-06-12 14:02:25.299344",
13+
"spec_repo_commit": "54f2896b"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19273,12 +19273,6 @@ components:
1927319273
JobDefinitionFromRule:
1927419274
description: Definition of a historical job based on a security monitoring rule.
1927519275
properties:
19276-
caseIndex:
19277-
description: Index of the rule case applied by the job.
19278-
example: 0
19279-
format: int32
19280-
maximum: 9
19281-
type: integer
1928219276
from:
1928319277
description: Starting time of data analyzed by the job.
1928419278
example: 1729843470000
@@ -19309,7 +19303,6 @@ components:
1930919303
- from
1931019304
- to
1931119305
- index
19312-
- caseIndex
1931319306
type: object
1931419307
KindAttributes:
1931519308
description: Kind attributes.

cassettes/features/v2/security_monitoring/Run-a-historical-job-returns-Not-Found-response.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

features/v2/security_monitoring.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ Feature: Security Monitoring
10951095
Scenario: Run a historical job returns "Not Found" response
10961096
Given operation "RunHistoricalJob" enabled
10971097
And new "RunHistoricalJob" request
1098-
And body with value {"data": { "type": "historicalDetectionsJobCreate", "attributes": {"fromRule": {"caseIndex": 0, "from": 1730201035064, "id": "non-existng", "index": "main", "notifications": [], "to": 1730204635115}}}}
1098+
And body with value {"data": { "type": "historicalDetectionsJobCreate", "attributes": {"fromRule": {"from": 1730201035064, "id": "non-existng", "index": "main", "notifications": [], "to": 1730204635115}}}}
10991099
When the request is sent
11001100
Then the response status is 404 Not Found
11011101

lib/datadog_api_client/v2/models/job_definition_from_rule.rb

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ module DatadogAPIClient::V2
2121
class JobDefinitionFromRule
2222
include BaseGenericModel
2323

24-
# Index of the rule case applied by the job.
25-
attr_reader :case_index
26-
2724
# Starting time of data analyzed by the job.
2825
attr_reader :from
2926

@@ -45,7 +42,6 @@ class JobDefinitionFromRule
4542
# @!visibility private
4643
def self.attribute_map
4744
{
48-
:'case_index' => :'caseIndex',
4945
:'from' => :'from',
5046
:'id' => :'id',
5147
:'index' => :'index',
@@ -58,7 +54,6 @@ def self.attribute_map
5854
# @!visibility private
5955
def self.openapi_types
6056
{
61-
:'case_index' => :'Integer',
6257
:'from' => :'Integer',
6358
:'id' => :'String',
6459
:'index' => :'String',
@@ -85,10 +80,6 @@ def initialize(attributes = {})
8580
end
8681
}
8782

88-
if attributes.key?(:'case_index')
89-
self.case_index = attributes[:'case_index']
90-
end
91-
9283
if attributes.key?(:'from')
9384
self.from = attributes[:'from']
9485
end
@@ -116,28 +107,13 @@ def initialize(attributes = {})
116107
# @return true if the model is valid
117108
# @!visibility private
118109
def valid?
119-
return false if @case_index.nil?
120-
return false if @case_index > 9
121110
return false if @from.nil?
122111
return false if @id.nil?
123112
return false if @index.nil?
124113
return false if @to.nil?
125114
true
126115
end
127116

128-
# Custom attribute writer method with validation
129-
# @param case_index [Object] Object to be assigned
130-
# @!visibility private
131-
def case_index=(case_index)
132-
if case_index.nil?
133-
fail ArgumentError, 'invalid value for "case_index", case_index cannot be nil.'
134-
end
135-
if case_index > 9
136-
fail ArgumentError, 'invalid value for "case_index", must be smaller than or equal to 9.'
137-
end
138-
@case_index = case_index
139-
end
140-
141117
# Custom attribute writer method with validation
142118
# @param from [Object] Object to be assigned
143119
# @!visibility private
@@ -204,7 +180,6 @@ def to_hash
204180
def ==(o)
205181
return true if self.equal?(o)
206182
self.class == o.class &&
207-
case_index == o.case_index &&
208183
from == o.from &&
209184
id == o.id &&
210185
index == o.index &&
@@ -217,7 +192,7 @@ def ==(o)
217192
# @return [Integer] Hash code
218193
# @!visibility private
219194
def hash
220-
[case_index, from, id, index, notifications, to, additional_properties].hash
195+
[from, id, index, notifications, to, additional_properties].hash
221196
end
222197
end
223198
end

0 commit comments

Comments
 (0)