Skip to content

Commit d025bd3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b6c6db8 of spec repo
1 parent f713e26 commit d025bd3

File tree

9 files changed

+106
-88
lines changed

9 files changed

+106
-88
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 53 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -25834,6 +25834,14 @@ components:
2583425834
FlakyTestsSearchFilter:
2583525835
description: Search filter settings.
2583625836
properties:
25837+
include_history:
25838+
default: false
25839+
description: |-
25840+
Whether to include the status change history for each flaky test in the response.
25841+
When set to true, each test will include a 'history' array with chronological status changes.
25842+
Defaults to false.
25843+
example: true
25844+
type: boolean
2583725845
query:
2583825846
default: "*"
2583925847
description: |-
@@ -25879,14 +25887,6 @@ components:
2587925887
properties:
2588025888
filter:
2588125889
$ref: "#/components/schemas/FlakyTestsSearchFilter"
25882-
include_history:
25883-
default: false
25884-
description: |-
25885-
Whether to include the status change history for each flaky test in the response.
25886-
When set to true, each test will include a `history` array with chronological status changes.
25887-
Defaults to false.
25888-
example: true
25889-
type: boolean
2589025890
page:
2589125891
$ref: "#/components/schemas/FlakyTestsSearchPageOptions"
2589225892
sort:
@@ -57944,7 +57944,6 @@ components:
5794457944
- none
5794557945
- false_positive
5794657946
- testing_or_maintenance
57947-
- remediated
5794857947
- investigated_case_opened
5794957948
- true_positive_benign
5795057949
- true_positive_malicious
@@ -57954,7 +57953,6 @@ components:
5795457953
- NONE
5795557954
- FALSE_POSITIVE
5795657955
- TESTING_OR_MAINTENANCE
57957-
- REMEDIATED
5795857956
- INVESTIGATED_CASE_OPENED
5795957957
- TRUE_POSITIVE_BENIGN
5796057958
- TRUE_POSITIVE_MALICIOUS
@@ -103307,8 +103305,6 @@ paths:
103307103305
schema:
103308103306
$ref: "#/components/schemas/SecurityMonitoringSignalResponse"
103309103307
description: OK
103310-
"403":
103311-
$ref: "#/components/responses/NotAuthorizedResponse"
103312103308
"404":
103313103309
$ref: "#/components/responses/NotFoundResponse"
103314103310
"429":
@@ -103346,17 +103342,25 @@ paths:
103346103342
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
103347103343
description: OK
103348103344
"400":
103349-
$ref: "#/components/responses/BadRequestResponse"
103345+
content:
103346+
application/json:
103347+
schema:
103348+
$ref: "#/components/schemas/APIErrorResponse"
103349+
description: Bad Request
103350103350
"403":
103351-
$ref: "#/components/responses/NotAuthorizedResponse"
103351+
content:
103352+
application/json:
103353+
schema:
103354+
$ref: "#/components/schemas/APIErrorResponse"
103355+
description: Forbidden
103352103356
"404":
103353-
$ref: "#/components/responses/NotFoundResponse"
103357+
content:
103358+
application/json:
103359+
schema:
103360+
$ref: "#/components/schemas/APIErrorResponse"
103361+
description: Not Found
103354103362
"429":
103355103363
$ref: "#/components/responses/TooManyRequestsResponse"
103356-
security:
103357-
- apiKeyAuth: []
103358-
appKeyAuth: []
103359-
- AuthZ: []
103360103364
summary: Modify the triage assignee of a security signal
103361103365
tags: ["Security Monitoring"]
103362103366
x-codegen-request-body-name: body
@@ -103386,17 +103390,25 @@ paths:
103386103390
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
103387103391
description: OK
103388103392
"400":
103389-
$ref: "#/components/responses/BadRequestResponse"
103393+
content:
103394+
application/json:
103395+
schema:
103396+
$ref: "#/components/schemas/APIErrorResponse"
103397+
description: Bad Request
103390103398
"403":
103391-
$ref: "#/components/responses/NotAuthorizedResponse"
103399+
content:
103400+
application/json:
103401+
schema:
103402+
$ref: "#/components/schemas/APIErrorResponse"
103403+
description: Forbidden
103392103404
"404":
103393-
$ref: "#/components/responses/NotFoundResponse"
103405+
content:
103406+
application/json:
103407+
schema:
103408+
$ref: "#/components/schemas/APIErrorResponse"
103409+
description: Not Found
103394103410
"429":
103395103411
$ref: "#/components/responses/TooManyRequestsResponse"
103396-
security:
103397-
- apiKeyAuth: []
103398-
appKeyAuth: []
103399-
- AuthZ: []
103400103412
summary: Change the related incidents of a security signal
103401103413
tags: ["Security Monitoring"]
103402103414
x-codegen-request-body-name: body
@@ -103426,17 +103438,25 @@ paths:
103426103438
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
103427103439
description: OK
103428103440
"400":
103429-
$ref: "#/components/responses/BadRequestResponse"
103441+
content:
103442+
application/json:
103443+
schema:
103444+
$ref: "#/components/schemas/APIErrorResponse"
103445+
description: Bad Request
103430103446
"403":
103431-
$ref: "#/components/responses/NotAuthorizedResponse"
103447+
content:
103448+
application/json:
103449+
schema:
103450+
$ref: "#/components/schemas/APIErrorResponse"
103451+
description: Forbidden
103432103452
"404":
103433-
$ref: "#/components/responses/NotFoundResponse"
103453+
content:
103454+
application/json:
103455+
schema:
103456+
$ref: "#/components/schemas/APIErrorResponse"
103457+
description: Not Found
103434103458
"429":
103435103459
$ref: "#/components/responses/TooManyRequestsResponse"
103436-
security:
103437-
- apiKeyAuth: []
103438-
appKeyAuth: []
103439-
- AuthZ: []
103440103460
summary: Change the triage state of a security signal
103441103461
tags: ["Security Monitoring"]
103442103462
x-codegen-request-body-name: body

examples/v2/test-optimization/SearchFlakyTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ public static void main(String[] args) {
2727
new FlakyTestsSearchRequestAttributes()
2828
.filter(
2929
new FlakyTestsSearchFilter()
30+
.includeHistory(true)
3031
.query(
3132
"""
3233
flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"
3334
"""))
34-
.includeHistory(true)
3535
.page(
3636
new FlakyTestsSearchPageOptions()
3737
.cursor(

examples/v2/test-optimization/SearchFlakyTests_1224086727.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ public static void main(String[] args) {
2727
new FlakyTestsSearchRequestAttributes()
2828
.filter(
2929
new FlakyTestsSearchFilter()
30+
.includeHistory(true)
3031
.query(
3132
"""
3233
flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"
3334
"""))
34-
.includeHistory(true)
3535
.page(
3636
new FlakyTestsSearchPageOptions()
3737
.cursor(

examples/v2/test-optimization/SearchFlakyTests_209064879.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ public static void main(String[] args) {
3030
.query(
3131
"""
3232
flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"
33-
"""))
33+
""")
34+
.includeHistory(true))
3435
.page(new FlakyTestsSearchPageOptions().limit(10L))
35-
.sort(FlakyTestsSearchSort.FQN_ASCENDING)
36-
.includeHistory(true))
36+
.sort(FlakyTestsSearchSort.FQN_ASCENDING))
3737
.type(FlakyTestsSearchRequestDataType.SEARCH_FLAKY_TESTS_REQUEST));
3838

3939
try {

src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4062,7 +4062,7 @@ public SecurityMonitoringSignalTriageUpdateResponse editSecurityMonitoringSignal
40624062
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
40634063
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
40644064
* <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
4065-
* <tr><td> 403 </td><td> Not Authorized </td><td> - </td></tr>
4065+
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
40664066
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
40674067
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
40684068
* </table>
@@ -4102,7 +4102,7 @@ public SecurityMonitoringSignalTriageUpdateResponse editSecurityMonitoringSignal
41024102
localVarHeaderParams,
41034103
new HashMap<String, String>(),
41044104
new String[] {"application/json"},
4105-
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
4105+
new String[] {"apiKeyAuth", "appKeyAuth"});
41064106
return apiClient.invokeAPI(
41074107
"PATCH",
41084108
builder,
@@ -4169,7 +4169,7 @@ public SecurityMonitoringSignalTriageUpdateResponse editSecurityMonitoringSignal
41694169
localVarHeaderParams,
41704170
new HashMap<String, String>(),
41714171
new String[] {"application/json"},
4172-
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
4172+
new String[] {"apiKeyAuth", "appKeyAuth"});
41734173
} catch (ApiException ex) {
41744174
CompletableFuture<ApiResponse<SecurityMonitoringSignalTriageUpdateResponse>> result =
41754175
new CompletableFuture<>();
@@ -4234,7 +4234,7 @@ public SecurityMonitoringSignalTriageUpdateResponse editSecurityMonitoringSignal
42344234
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
42354235
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
42364236
* <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
4237-
* <tr><td> 403 </td><td> Not Authorized </td><td> - </td></tr>
4237+
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
42384238
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
42394239
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
42404240
* </table>
@@ -4275,7 +4275,7 @@ public SecurityMonitoringSignalTriageUpdateResponse editSecurityMonitoringSignal
42754275
localVarHeaderParams,
42764276
new HashMap<String, String>(),
42774277
new String[] {"application/json"},
4278-
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
4278+
new String[] {"apiKeyAuth", "appKeyAuth"});
42794279
return apiClient.invokeAPI(
42804280
"PATCH",
42814281
builder,
@@ -4342,7 +4342,7 @@ public SecurityMonitoringSignalTriageUpdateResponse editSecurityMonitoringSignal
43424342
localVarHeaderParams,
43434343
new HashMap<String, String>(),
43444344
new String[] {"application/json"},
4345-
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
4345+
new String[] {"apiKeyAuth", "appKeyAuth"});
43464346
} catch (ApiException ex) {
43474347
CompletableFuture<ApiResponse<SecurityMonitoringSignalTriageUpdateResponse>> result =
43484348
new CompletableFuture<>();
@@ -4407,7 +4407,7 @@ public SecurityMonitoringSignalTriageUpdateResponse editSecurityMonitoringSignal
44074407
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
44084408
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
44094409
* <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
4410-
* <tr><td> 403 </td><td> Not Authorized </td><td> - </td></tr>
4410+
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
44114411
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
44124412
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
44134413
* </table>
@@ -4446,7 +4446,7 @@ public SecurityMonitoringSignalTriageUpdateResponse editSecurityMonitoringSignal
44464446
localVarHeaderParams,
44474447
new HashMap<String, String>(),
44484448
new String[] {"application/json"},
4449-
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
4449+
new String[] {"apiKeyAuth", "appKeyAuth"});
44504450
return apiClient.invokeAPI(
44514451
"PATCH",
44524452
builder,
@@ -4513,7 +4513,7 @@ public SecurityMonitoringSignalTriageUpdateResponse editSecurityMonitoringSignal
45134513
localVarHeaderParams,
45144514
new HashMap<String, String>(),
45154515
new String[] {"application/json"},
4516-
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
4516+
new String[] {"apiKeyAuth", "appKeyAuth"});
45174517
} catch (ApiException ex) {
45184518
CompletableFuture<ApiResponse<SecurityMonitoringSignalTriageUpdateResponse>> result =
45194519
new CompletableFuture<>();
@@ -6943,7 +6943,6 @@ public CompletableFuture<SecurityMonitoringSignalResponse> getSecurityMonitoring
69436943
* <caption>Response details</caption>
69446944
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
69456945
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
6946-
* <tr><td> 403 </td><td> Not Authorized </td><td> - </td></tr>
69476946
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
69486947
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
69496948
* </table>

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

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,43 @@
1717
import java.util.Objects;
1818

1919
/** Search filter settings. */
20-
@JsonPropertyOrder({FlakyTestsSearchFilter.JSON_PROPERTY_QUERY})
20+
@JsonPropertyOrder({
21+
FlakyTestsSearchFilter.JSON_PROPERTY_INCLUDE_HISTORY,
22+
FlakyTestsSearchFilter.JSON_PROPERTY_QUERY
23+
})
2124
@jakarta.annotation.Generated(
2225
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
2326
public class FlakyTestsSearchFilter {
2427
@JsonIgnore public boolean unparsed = false;
28+
public static final String JSON_PROPERTY_INCLUDE_HISTORY = "include_history";
29+
private Boolean includeHistory = false;
30+
2531
public static final String JSON_PROPERTY_QUERY = "query";
2632
private String query = "*";
2733

34+
public FlakyTestsSearchFilter includeHistory(Boolean includeHistory) {
35+
this.includeHistory = includeHistory;
36+
return this;
37+
}
38+
39+
/**
40+
* Whether to include the status change history for each flaky test in the response. When set to
41+
* true, each test will include a 'history' array with chronological status changes. Defaults to
42+
* false.
43+
*
44+
* @return includeHistory
45+
*/
46+
@jakarta.annotation.Nullable
47+
@JsonProperty(JSON_PROPERTY_INCLUDE_HISTORY)
48+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
49+
public Boolean getIncludeHistory() {
50+
return includeHistory;
51+
}
52+
53+
public void setIncludeHistory(Boolean includeHistory) {
54+
this.includeHistory = includeHistory;
55+
}
56+
2857
public FlakyTestsSearchFilter query(String query) {
2958
this.query = query;
3059
return this;
@@ -106,19 +135,21 @@ public boolean equals(Object o) {
106135
return false;
107136
}
108137
FlakyTestsSearchFilter flakyTestsSearchFilter = (FlakyTestsSearchFilter) o;
109-
return Objects.equals(this.query, flakyTestsSearchFilter.query)
138+
return Objects.equals(this.includeHistory, flakyTestsSearchFilter.includeHistory)
139+
&& Objects.equals(this.query, flakyTestsSearchFilter.query)
110140
&& Objects.equals(this.additionalProperties, flakyTestsSearchFilter.additionalProperties);
111141
}
112142

113143
@Override
114144
public int hashCode() {
115-
return Objects.hash(query, additionalProperties);
145+
return Objects.hash(includeHistory, query, additionalProperties);
116146
}
117147

118148
@Override
119149
public String toString() {
120150
StringBuilder sb = new StringBuilder();
121151
sb.append("class FlakyTestsSearchFilter {\n");
152+
sb.append(" includeHistory: ").append(toIndentedString(includeHistory)).append("\n");
122153
sb.append(" query: ").append(toIndentedString(query)).append("\n");
123154
sb.append(" additionalProperties: ")
124155
.append(toIndentedString(additionalProperties))

0 commit comments

Comments
 (0)