From 02ed0c1d5fd4f9e027b0af29420c3d987f23ad12 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 14 Nov 2025 18:16:18 +0000 Subject: [PATCH] Regenerate client from commit 266da8c of spec repo --- .generator/schemas/v2/openapi.yaml | 3 +++ .../model/threat_hunting_job_response_attributes.py | 8 ++++++++ ...st_get_a_jobs_details_returns_ok_response.frozen | 2 +- ...test_get_a_jobs_details_returns_ok_response.yaml | 13 ++++++------- ..._list_historical_jobs_returns_ok_response.frozen | 2 +- ...st_list_historical_jobs_returns_ok_response.yaml | 13 ++++++------- 6 files changed, 25 insertions(+), 16 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index ea3da24e20..642bfd7423 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/datadog_api_client/v2/model/threat_hunting_job_response_attributes.py b/src/datadog_api_client/v2/model/threat_hunting_job_response_attributes.py index eaade810c1..9881e0fa29 100644 --- a/src/datadog_api_client/v2/model/threat_hunting_job_response_attributes.py +++ b/src/datadog_api_client/v2/model/threat_hunting_job_response_attributes.py @@ -31,6 +31,7 @@ def openapi_types(_): "job_name": (str,), "job_status": (str,), "modified_at": (str,), + "signal_output": (bool,), } attribute_map = { @@ -42,6 +43,7 @@ def openapi_types(_): "job_name": "jobName", "job_status": "jobStatus", "modified_at": "modifiedAt", + "signal_output": "signalOutput", } def __init__( @@ -54,6 +56,7 @@ def __init__( job_name: Union[str, UnsetType] = unset, job_status: Union[str, UnsetType] = unset, modified_at: Union[str, UnsetType] = unset, + signal_output: Union[bool, UnsetType] = unset, **kwargs, ): """ @@ -82,6 +85,9 @@ def __init__( :param modified_at: Last modification time of the job. :type modified_at: str, optional + + :param signal_output: Whether the job outputs signals. + :type signal_output: bool, optional """ if created_at is not unset: kwargs["created_at"] = created_at @@ -99,4 +105,6 @@ def __init__( kwargs["job_status"] = job_status if modified_at is not unset: kwargs["modified_at"] = modified_at + if signal_output is not unset: + kwargs["signal_output"] = signal_output super().__init__(kwargs) diff --git a/tests/v2/cassettes/test_scenarios/test_get_a_jobs_details_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_get_a_jobs_details_returns_ok_response.frozen index 6994ed2707..e81b70e9ab 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_a_jobs_details_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_get_a_jobs_details_returns_ok_response.frozen @@ -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/tests/v2/cassettes/test_scenarios/test_get_a_jobs_details_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_get_a_jobs_details_returns_ok_response.yaml index 8b3b19cb1a..14f48c0bd5 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_a_jobs_details_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_get_a_jobs_details_returns_ok_response.yaml @@ -12,7 +12,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/siem-threat-hunting/jobs response: body: - string: '{"data":{"id":"071b3516-4072-44d9-9288-d4adaa1db921","type":"historicalDetectionsJob"}}' + string: '{"data":{"id":"66896986-212c-4e6c-9890-14e5cfd0fc19","type":"historicalDetectionsJob"}}' headers: content-type: - application/vnd.api+json @@ -25,17 +25,16 @@ interactions: accept: - application/json method: GET - uri: https://api.datadoghq.com/api/v2/siem-threat-hunting/jobs/071b3516-4072-44d9-9288-d4adaa1db921 + uri: https://api.datadoghq.com/api/v2/siem-threat-hunting/jobs/66896986-212c-4e6c-9890-14e5cfd0fc19 response: body: - string: '{"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 + string: '{"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-10-24 - 14:24:02.057923+00"}}}' + number of failed attempts.","jobStatus":"pending","modifiedAt":"2025-11-11 + 21:36:52.581297+00","signalOutput":false}}}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_list_historical_jobs_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_list_historical_jobs_returns_ok_response.frozen index 2c0d4ff4e3..9407d19f7f 100644 --- a/tests/v2/cassettes/test_scenarios/test_list_historical_jobs_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_list_historical_jobs_returns_ok_response.frozen @@ -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/tests/v2/cassettes/test_scenarios/test_list_historical_jobs_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_list_historical_jobs_returns_ok_response.yaml index 4658577128..46b83751d6 100644 --- a/tests/v2/cassettes/test_scenarios/test_list_historical_jobs_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_list_historical_jobs_returns_ok_response.yaml @@ -12,7 +12,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/siem-threat-hunting/jobs response: body: - string: '{"data":{"id":"e935c6c8-ba76-4ebf-8770-bb772a5ec1ed","type":"historicalDetectionsJob"}}' + string: '{"data":{"id":"c3564eed-ff70-43e1-ab6f-593de95bd21f","type":"historicalDetectionsJob"}}' headers: content-type: - application/vnd.api+json @@ -25,17 +25,16 @@ interactions: accept: - application/json method: GET - uri: https://api.datadoghq.com/api/v2/siem-threat-hunting/jobs?filter%5Bquery%5D=id%3Ae935c6c8-ba76-4ebf-8770-bb772a5ec1ed + uri: https://api.datadoghq.com/api/v2/siem-threat-hunting/jobs?filter%5Bquery%5D=id%3Ac3564eed-ff70-43e1-ab6f-593de95bd21f response: body: - string: '{"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 + string: '{"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-10-24 - 14:24:02.256887+00"}}],"meta":{"totalCount":1}}' + 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