diff --git a/.apigentools-info b/.apigentools-info index 5b5bedee31..1e640c866d 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-06-13 13:39:11.219540", - "spec_repo_commit": "9757e1ea" + "regenerated": "2025-06-13 20:50:47.970284", + "spec_repo_commit": "7fe71d9f" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-06-13 13:39:11.262516", - "spec_repo_commit": "9757e1ea" + "regenerated": "2025-06-13 20:50:47.985129", + "spec_repo_commit": "7fe71d9f" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 3bb674967f..01f88539a3 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -19273,12 +19273,6 @@ components: JobDefinitionFromRule: description: Definition of a historical job based on a security monitoring rule. properties: - caseIndex: - description: Index of the rule case applied by the job. - example: 0 - format: int32 - maximum: 9 - type: integer from: description: Starting time of data analyzed by the job. example: 1729843470000 @@ -19309,7 +19303,6 @@ components: - from - to - index - - caseIndex type: object KindAttributes: description: Kind attributes. diff --git a/src/datadog_api_client/v2/model/job_definition_from_rule.py b/src/datadog_api_client/v2/model/job_definition_from_rule.py index 3379279a2b..fc6c3c033f 100644 --- a/src/datadog_api_client/v2/model/job_definition_from_rule.py +++ b/src/datadog_api_client/v2/model/job_definition_from_rule.py @@ -14,16 +14,9 @@ class JobDefinitionFromRule(ModelNormal): - validations = { - "case_index": { - "inclusive_maximum": 9, - }, - } - @cached_property def openapi_types(_): return { - "case_index": (int,), "_from": (int,), "id": (str,), "index": (str,), @@ -32,7 +25,6 @@ def openapi_types(_): } attribute_map = { - "case_index": "caseIndex", "_from": "from", "id": "id", "index": "index", @@ -41,21 +33,11 @@ def openapi_types(_): } def __init__( - self_, - case_index: int, - _from: int, - id: str, - index: str, - to: int, - notifications: Union[List[str], UnsetType] = unset, - **kwargs, + self_, _from: int, id: str, index: str, to: int, notifications: Union[List[str], UnsetType] = unset, **kwargs ): """ Definition of a historical job based on a security monitoring rule. - :param case_index: Index of the rule case applied by the job. - :type case_index: int - :param _from: Starting time of data analyzed by the job. :type _from: int @@ -75,7 +57,6 @@ def __init__( kwargs["notifications"] = notifications super().__init__(kwargs) - self_.case_index = case_index self_._from = _from self_.id = id self_.index = index diff --git a/tests/v2/cassettes/test_scenarios/test_run_a_historical_job_returns_not_found_response.frozen b/tests/v2/cassettes/test_scenarios/test_run_a_historical_job_returns_not_found_response.frozen index ee3fdb952b..e905022425 100644 --- a/tests/v2/cassettes/test_scenarios/test_run_a_historical_job_returns_not_found_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_run_a_historical_job_returns_not_found_response.frozen @@ -1 +1 @@ -2024-11-08T09:54:40.192Z \ No newline at end of file +2025-06-12T14:01:05.945Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_run_a_historical_job_returns_not_found_response.yaml b/tests/v2/cassettes/test_scenarios/test_run_a_historical_job_returns_not_found_response.yaml index f56640a5cc..7413b27ce3 100644 --- a/tests/v2/cassettes/test_scenarios/test_run_a_historical_job_returns_not_found_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_run_a_historical_job_returns_not_found_response.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"data":{"attributes":{"fromRule":{"caseIndex":0,"from":1730201035064,"id":"non-existng","index":"main","notifications":[],"to":1730204635115}},"type":"historicalDetectionsJobCreate"}}' + body: '{"data":{"attributes":{"fromRule":{"from":1730201035064,"id":"non-existng","index":"main","notifications":[],"to":1730204635115}},"type":"historicalDetectionsJobCreate"}}' headers: accept: - application/json @@ -10,7 +10,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/siem-historical-detections/jobs response: body: - string: '{"errors":[{"status":"404","detail":"failed to get rule details"}]}' + string: '{"errors":[{"status":"404","title":"Not Found"}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/features/security_monitoring.feature b/tests/v2/features/security_monitoring.feature index 9f2039d79e..33a5978075 100644 --- a/tests/v2/features/security_monitoring.feature +++ b/tests/v2/features/security_monitoring.feature @@ -1095,7 +1095,7 @@ Feature: Security Monitoring Scenario: Run a historical job returns "Not Found" response Given operation "RunHistoricalJob" enabled And new "RunHistoricalJob" request - And body with value {"data": { "type": "historicalDetectionsJobCreate", "attributes": {"fromRule": {"caseIndex": 0, "from": 1730201035064, "id": "non-existng", "index": "main", "notifications": [], "to": 1730204635115}}}} + And body with value {"data": { "type": "historicalDetectionsJobCreate", "attributes": {"fromRule": {"from": 1730201035064, "id": "non-existng", "index": "main", "notifications": [], "to": 1730204635115}}}} When the request is sent Then the response status is 404 Not Found