Skip to content

Commit 0ba89bd

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 76086f13 of spec repo (#2950)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 6787670 commit 0ba89bd

File tree

6 files changed

+11
-46
lines changed

6 files changed

+11
-46
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.288372",
8-
"spec_repo_commit": "c051b78b"
7+
"regenerated": "2025-06-26 17:56:33.436535",
8+
"spec_repo_commit": "76086f13"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-26 16:04:30.304279",
13-
"spec_repo_commit": "c051b78b"
12+
"regenerated": "2025-06-26 17:56:33.454744",
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.

src/main/java/com/datadog/api/client/v2/model/JobDefinitionFromRule.java

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
/** Definition of a historical job based on a security monitoring rule. */
2323
@JsonPropertyOrder({
24-
JobDefinitionFromRule.JSON_PROPERTY_CASE_INDEX,
2524
JobDefinitionFromRule.JSON_PROPERTY_FROM,
2625
JobDefinitionFromRule.JSON_PROPERTY_ID,
2726
JobDefinitionFromRule.JSON_PROPERTY_INDEX,
@@ -32,9 +31,6 @@
3231
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
3332
public class JobDefinitionFromRule {
3433
@JsonIgnore public boolean unparsed = false;
35-
public static final String JSON_PROPERTY_CASE_INDEX = "caseIndex";
36-
private Integer caseIndex;
37-
3834
public static final String JSON_PROPERTY_FROM = "from";
3935
private Long from;
4036

@@ -54,38 +50,16 @@ public JobDefinitionFromRule() {}
5450

5551
@JsonCreator
5652
public JobDefinitionFromRule(
57-
@JsonProperty(required = true, value = JSON_PROPERTY_CASE_INDEX) Integer caseIndex,
5853
@JsonProperty(required = true, value = JSON_PROPERTY_FROM) Long from,
5954
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
6055
@JsonProperty(required = true, value = JSON_PROPERTY_INDEX) String index,
6156
@JsonProperty(required = true, value = JSON_PROPERTY_TO) Long to) {
62-
this.caseIndex = caseIndex;
6357
this.from = from;
6458
this.id = id;
6559
this.index = index;
6660
this.to = to;
6761
}
6862

69-
public JobDefinitionFromRule caseIndex(Integer caseIndex) {
70-
this.caseIndex = caseIndex;
71-
return this;
72-
}
73-
74-
/**
75-
* Index of the rule case applied by the job. maximum: 9
76-
*
77-
* @return caseIndex
78-
*/
79-
@JsonProperty(JSON_PROPERTY_CASE_INDEX)
80-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
81-
public Integer getCaseIndex() {
82-
return caseIndex;
83-
}
84-
85-
public void setCaseIndex(Integer caseIndex) {
86-
this.caseIndex = caseIndex;
87-
}
88-
8963
public JobDefinitionFromRule from(Long from) {
9064
this.from = from;
9165
return this;
@@ -251,8 +225,7 @@ public boolean equals(Object o) {
251225
return false;
252226
}
253227
JobDefinitionFromRule jobDefinitionFromRule = (JobDefinitionFromRule) o;
254-
return Objects.equals(this.caseIndex, jobDefinitionFromRule.caseIndex)
255-
&& Objects.equals(this.from, jobDefinitionFromRule.from)
228+
return Objects.equals(this.from, jobDefinitionFromRule.from)
256229
&& Objects.equals(this.id, jobDefinitionFromRule.id)
257230
&& Objects.equals(this.index, jobDefinitionFromRule.index)
258231
&& Objects.equals(this.notifications, jobDefinitionFromRule.notifications)
@@ -262,14 +235,13 @@ public boolean equals(Object o) {
262235

263236
@Override
264237
public int hashCode() {
265-
return Objects.hash(caseIndex, from, id, index, notifications, to, additionalProperties);
238+
return Objects.hash(from, id, index, notifications, to, additionalProperties);
266239
}
267240

268241
@Override
269242
public String toString() {
270243
StringBuilder sb = new StringBuilder();
271244
sb.append("class JobDefinitionFromRule {\n");
272-
sb.append(" caseIndex: ").append(toIndentedString(caseIndex)).append("\n");
273245
sb.append(" from: ").append(toIndentedString(from)).append("\n");
274246
sb.append(" id: ").append(toIndentedString(id)).append("\n");
275247
sb.append(" index: ").append(toIndentedString(index)).append("\n");
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

src/test/resources/cassettes/features/v2/Run_a_historical_job_returns_Not_Found_response.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"data\":{\"attributes\":{\"fromRule\":{\"caseIndex\":0,\"from\":1730201035064,\"id\":\"non-existng\",\"index\":\"main\",\"notifications\":[],\"to\":1730204635115}},\"type\":\"historicalDetectionsJobCreate\"}}"
6+
"json": "{\"data\":{\"attributes\":{\"fromRule\":{\"from\":1730201035064,\"id\":\"non-existng\",\"index\":\"main\",\"notifications\":[],\"to\":1730204635115}},\"type\":\"historicalDetectionsJobCreate\"}}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"errors\":[{\"status\":\"404\",\"detail\":\"failed to get rule details\"}]}",
15+
"body": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\"}]}",
1616
"headers": {
1717
"Content-Type": [
1818
"application/vnd.api+json"
@@ -27,6 +27,6 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "8056350d-00d9-df6e-525e-771fe22b1354"
30+
"id": "6baefcd2-575a-7f9d-36bf-f35d836edcfc"
3131
}
3232
]

src/test/resources/com/datadog/api/client/v2/api/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

0 commit comments

Comments
 (0)