From d11b69f081d430b49e17e5e14cec31f2b1e1e5b4 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 14 Nov 2025 18:17:59 +0000 Subject: [PATCH] Regenerate client from commit 266da8c of spec repo --- .generator/schemas/v2/openapi.yaml | 3 ++ .../ThreatHuntingJobResponseAttributes.java | 30 ++++++++++++++++++- ...a_job_s_details_returns_OK_response.freeze | 2 +- ...t_a_job_s_details_returns_OK_response.json | 8 ++--- ...historical_jobs_returns_OK_response.freeze | 2 +- ...t_historical_jobs_returns_OK_response.json | 8 ++--- 6 files changed, 42 insertions(+), 11 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index ea3da24e20a..642bfd7423b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -52651,6 +52651,9 @@ components: modifiedAt: description: Last modification time of the job. type: string + signalOutput: + description: Whether the job outputs signals. + type: boolean type: object ThreatHuntingJobResponseData: description: Threat hunting job response data. diff --git a/src/main/java/com/datadog/api/client/v2/model/ThreatHuntingJobResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ThreatHuntingJobResponseAttributes.java index 5404fa3cdbd..810e7a25f57 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ThreatHuntingJobResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ThreatHuntingJobResponseAttributes.java @@ -25,7 +25,8 @@ ThreatHuntingJobResponseAttributes.JSON_PROPERTY_JOB_DEFINITION, ThreatHuntingJobResponseAttributes.JSON_PROPERTY_JOB_NAME, ThreatHuntingJobResponseAttributes.JSON_PROPERTY_JOB_STATUS, - ThreatHuntingJobResponseAttributes.JSON_PROPERTY_MODIFIED_AT + ThreatHuntingJobResponseAttributes.JSON_PROPERTY_MODIFIED_AT, + ThreatHuntingJobResponseAttributes.JSON_PROPERTY_SIGNAL_OUTPUT }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -55,6 +56,9 @@ public class ThreatHuntingJobResponseAttributes { public static final String JSON_PROPERTY_MODIFIED_AT = "modifiedAt"; private String modifiedAt; + public static final String JSON_PROPERTY_SIGNAL_OUTPUT = "signalOutput"; + private Boolean signalOutput; + public ThreatHuntingJobResponseAttributes createdAt(String createdAt) { this.createdAt = createdAt; return this; @@ -224,6 +228,27 @@ public void setModifiedAt(String modifiedAt) { this.modifiedAt = modifiedAt; } + public ThreatHuntingJobResponseAttributes signalOutput(Boolean signalOutput) { + this.signalOutput = signalOutput; + return this; + } + + /** + * Whether the job outputs signals. + * + * @return signalOutput + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SIGNAL_OUTPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getSignalOutput() { + return signalOutput; + } + + public void setSignalOutput(Boolean signalOutput) { + this.signalOutput = signalOutput; + } + /** * A container for additional, undeclared properties. This is a holder for any undeclared * properties as specified with the 'additionalProperties' keyword in the OAS document. @@ -290,6 +315,7 @@ public boolean equals(Object o) { && Objects.equals(this.jobName, threatHuntingJobResponseAttributes.jobName) && Objects.equals(this.jobStatus, threatHuntingJobResponseAttributes.jobStatus) && Objects.equals(this.modifiedAt, threatHuntingJobResponseAttributes.modifiedAt) + && Objects.equals(this.signalOutput, threatHuntingJobResponseAttributes.signalOutput) && Objects.equals( this.additionalProperties, threatHuntingJobResponseAttributes.additionalProperties); } @@ -305,6 +331,7 @@ public int hashCode() { jobName, jobStatus, modifiedAt, + signalOutput, additionalProperties); } @@ -320,6 +347,7 @@ public String toString() { sb.append(" jobName: ").append(toIndentedString(jobName)).append("\n"); sb.append(" jobStatus: ").append(toIndentedString(jobStatus)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); + sb.append(" signalOutput: ").append(toIndentedString(signalOutput)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n"); diff --git a/src/test/resources/cassettes/features/v2/Get_a_job_s_details_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Get_a_job_s_details_returns_OK_response.freeze index 6994ed27070..e81b70e9ab2 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_job_s_details_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_a_job_s_details_returns_OK_response.freeze @@ -1 +1 @@ -2025-10-24T14:24:01.707Z \ No newline at end of file +2025-11-11T21:36:52.314Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_a_job_s_details_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_a_job_s_details_returns_OK_response.json index 233952bb34a..4b177525577 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_job_s_details_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_a_job_s_details_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"071b3516-4072-44d9-9288-d4adaa1db921\",\"type\":\"historicalDetectionsJob\"}}", + "body": "{\"data\":{\"id\":\"66896986-212c-4e6c-9890-14e5cfd0fc19\",\"type\":\"historicalDetectionsJob\"}}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -33,12 +33,12 @@ "httpRequest": { "headers": {}, "method": "GET", - "path": "/api/v2/siem-threat-hunting/jobs/071b3516-4072-44d9-9288-d4adaa1db921", + "path": "/api/v2/siem-threat-hunting/jobs/66896986-212c-4e6c-9890-14e5cfd0fc19", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"071b3516-4072-44d9-9288-d4adaa1db921\",\"type\":\"historicalDetectionsJob\",\"attributes\":{\"createdAt\":\"2025-10-24 14:24:02.057923+00\",\"createdByHandle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"createdByName\":\"CI Account\",\"jobDefinition\":{\"from\":1730387522611,\"to\":1730387532611,\"index\":\"main\",\"name\":\"Excessive number of failed attempts.\",\"cases\":[{\"name\":\"Condition 1\",\"status\":\"info\",\"notifications\":[],\"condition\":\"a \\u003e 1\"}],\"queries\":[{\"query\":\"source:non_existing_src_weekend\",\"groupByFields\":[],\"hasOptionalGroupByFields\":false,\"distinctFields\":[],\"aggregation\":\"count\",\"name\":\"\",\"dataSource\":\"logs\"}],\"options\":{\"evaluationWindow\":900,\"detectionMethod\":\"threshold\",\"maxSignalDuration\":86400,\"keepAlive\":3600},\"message\":\"A large number of failed login attempts.\",\"tags\":[],\"type\":\"log_detection\"},\"jobName\":\"Excessive number of failed attempts.\",\"jobStatus\":\"pending\",\"modifiedAt\":\"2025-10-24 14:24:02.057923+00\"}}}", + "body": "{\"data\":{\"id\":\"66896986-212c-4e6c-9890-14e5cfd0fc19\",\"type\":\"historicalDetectionsJob\",\"attributes\":{\"createdAt\":\"2025-11-11 21:36:52.581297+00\",\"createdByHandle\":\"frog@datadoghq.com\",\"createdByName\":\"frog\",\"jobDefinition\":{\"from\":1730387522611,\"to\":1730387532611,\"index\":\"main\",\"name\":\"Excessive number of failed attempts.\",\"cases\":[{\"name\":\"Condition 1\",\"status\":\"info\",\"notifications\":[],\"condition\":\"a \\u003e 1\"}],\"queries\":[{\"query\":\"source:non_existing_src_weekend\",\"groupByFields\":[],\"hasOptionalGroupByFields\":false,\"distinctFields\":[],\"aggregation\":\"count\",\"name\":\"\",\"dataSource\":\"logs\"}],\"options\":{\"evaluationWindow\":900,\"detectionMethod\":\"threshold\",\"maxSignalDuration\":86400,\"keepAlive\":3600},\"message\":\"A large number of failed login attempts.\",\"tags\":[],\"type\":\"log_detection\"},\"jobName\":\"Excessive number of failed attempts.\",\"jobStatus\":\"pending\",\"modifiedAt\":\"2025-11-11 21:36:52.581297+00\",\"signalOutput\":false}}}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "08901fdd-0425-df60-dbde-e039f0e4a4dc" + "id": "288fd23d-8d2d-2972-e670-accb59b90273" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_historical_jobs_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/List_historical_jobs_returns_OK_response.freeze index 2c0d4ff4e33..9407d19f7f4 100644 --- a/src/test/resources/cassettes/features/v2/List_historical_jobs_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/List_historical_jobs_returns_OK_response.freeze @@ -1 +1 @@ -2025-10-24T14:24:02.188Z \ No newline at end of file +2025-11-11T21:36:57.169Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_historical_jobs_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_historical_jobs_returns_OK_response.json index 0db92de899d..496fbb6e65d 100644 --- a/src/test/resources/cassettes/features/v2/List_historical_jobs_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_historical_jobs_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"e935c6c8-ba76-4ebf-8770-bb772a5ec1ed\",\"type\":\"historicalDetectionsJob\"}}", + "body": "{\"data\":{\"id\":\"c3564eed-ff70-43e1-ab6f-593de95bd21f\",\"type\":\"historicalDetectionsJob\"}}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -36,14 +36,14 @@ "path": "/api/v2/siem-threat-hunting/jobs", "queryStringParameters": { "filter[query]": [ - "id:e935c6c8-ba76-4ebf-8770-bb772a5ec1ed" + "id:c3564eed-ff70-43e1-ab6f-593de95bd21f" ] }, "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":[{\"id\":\"e935c6c8-ba76-4ebf-8770-bb772a5ec1ed\",\"type\":\"historicalDetectionsJob\",\"attributes\":{\"createdAt\":\"2025-10-24 14:24:02.256887+00\",\"createdByHandle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"createdByName\":\"CI Account\",\"jobDefinition\":{\"from\":1730387522611,\"to\":1730387532611,\"index\":\"main\",\"name\":\"Excessive number of failed attempts.\",\"cases\":[{\"name\":\"Condition 1\",\"status\":\"info\",\"notifications\":[],\"condition\":\"a \\u003e 1\"}],\"queries\":[{\"query\":\"source:non_existing_src_weekend\",\"groupByFields\":[],\"hasOptionalGroupByFields\":false,\"distinctFields\":[],\"aggregation\":\"count\",\"name\":\"\",\"dataSource\":\"logs\"}],\"options\":{\"evaluationWindow\":900,\"detectionMethod\":\"threshold\",\"maxSignalDuration\":86400,\"keepAlive\":3600},\"message\":\"A large number of failed login attempts.\",\"tags\":[],\"type\":\"log_detection\"},\"jobName\":\"Excessive number of failed attempts.\",\"jobStatus\":\"pending\",\"modifiedAt\":\"2025-10-24 14:24:02.256887+00\"}}],\"meta\":{\"totalCount\":1}}", + "body": "{\"data\":[{\"id\":\"c3564eed-ff70-43e1-ab6f-593de95bd21f\",\"type\":\"historicalDetectionsJob\",\"attributes\":{\"createdAt\":\"2025-11-11 21:36:57.303304+00\",\"createdByHandle\":\"frog@datadoghq.com\",\"createdByName\":\"frog\",\"jobDefinition\":{\"from\":1730387522611,\"to\":1730387532611,\"index\":\"main\",\"name\":\"Excessive number of failed attempts.\",\"cases\":[{\"name\":\"Condition 1\",\"status\":\"info\",\"notifications\":[],\"condition\":\"a \\u003e 1\"}],\"queries\":[{\"query\":\"source:non_existing_src_weekend\",\"groupByFields\":[],\"hasOptionalGroupByFields\":false,\"distinctFields\":[],\"aggregation\":\"count\",\"name\":\"\",\"dataSource\":\"logs\"}],\"options\":{\"evaluationWindow\":900,\"detectionMethod\":\"threshold\",\"maxSignalDuration\":86400,\"keepAlive\":3600},\"message\":\"A large number of failed login attempts.\",\"tags\":[],\"type\":\"log_detection\"},\"jobName\":\"Excessive number of failed attempts.\",\"jobStatus\":\"pending\",\"modifiedAt\":\"2025-11-11 21:36:57.303304+00\",\"signalOutput\":false}}],\"meta\":{\"totalCount\":1}}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -58,6 +58,6 @@ "timeToLive": { "unlimited": true }, - "id": "4f7ef994-a9ff-2d13-c407-4a6f863a4781" + "id": "090b338f-d46d-e262-2121-9c7100f90835" } ] \ No newline at end of file