Skip to content

Commit 0f76ee4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 76086f13 of spec repo
1 parent e5eae36 commit 0f76ee4

File tree

6 files changed

+10
-42
lines changed

6 files changed

+10
-42
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-26 16:04:30.516305",
8-
"spec_repo_commit": "c051b78b"
7+
"regenerated": "2025-06-26 17:56:17.204143",
8+
"spec_repo_commit": "76086f13"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-26 16:04:30.532847",
13-
"spec_repo_commit": "c051b78b"
12+
"regenerated": "2025-06-26 17:56:17.219918",
13+
"spec_repo_commit": "76086f13"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19592,12 +19592,6 @@ components:
1959219592
JobDefinitionFromRule:
1959319593
description: Definition of a historical job based on a security monitoring rule.
1959419594
properties:
19595-
caseIndex:
19596-
description: Index of the rule case applied by the job.
19597-
example: 0
19598-
format: int32
19599-
maximum: 9
19600-
type: integer
1960119595
from:
1960219596
description: Starting time of data analyzed by the job.
1960319597
example: 1729843470000
@@ -19628,7 +19622,6 @@ components:
1962819622
- from
1962919623
- to
1963019624
- index
19631-
- caseIndex
1963219625
type: object
1963319626
KindAttributes:
1963419627
description: Kind attributes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-08T09:54:40.192Z
1+
2025-06-26T16:57:47.524Z

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

Lines changed: 3 additions & 3 deletions
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)