Skip to content

Commit cb2c526

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 54f2896b of spec repo
1 parent 40557cd commit cb2c526

File tree

5 files changed

+7
-33
lines changed

5 files changed

+7
-33
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-11 14:29:03.491775",
8-
"spec_repo_commit": "847bdb30"
7+
"regenerated": "2025-06-12 14:02:31.494614",
8+
"spec_repo_commit": "54f2896b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-11 14:29:03.513770",
13-
"spec_repo_commit": "847bdb30"
12+
"regenerated": "2025-06-12 14:02:31.555740",
13+
"spec_repo_commit": "54f2896b"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19273,12 +19273,6 @@ components:
1927319273
JobDefinitionFromRule:
1927419274
description: Definition of a historical job based on a security monitoring rule.
1927519275
properties:
19276-
caseIndex:
19277-
description: Index of the rule case applied by the job.
19278-
example: 0
19279-
format: int32
19280-
maximum: 9
19281-
type: integer
1928219276
from:
1928319277
description: Starting time of data analyzed by the job.
1928419278
example: 1729843470000
@@ -19309,7 +19303,6 @@ components:
1930919303
- from
1931019304
- to
1931119305
- index
19312-
- caseIndex
1931319306
type: object
1931419307
KindAttributes:
1931519308
description: Kind attributes.

src/datadog_api_client/v2/model/job_definition_from_rule.py

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,9 @@
1414

1515

1616
class JobDefinitionFromRule(ModelNormal):
17-
validations = {
18-
"case_index": {
19-
"inclusive_maximum": 9,
20-
},
21-
}
22-
2317
@cached_property
2418
def openapi_types(_):
2519
return {
26-
"case_index": (int,),
2720
"_from": (int,),
2821
"id": (str,),
2922
"index": (str,),
@@ -32,7 +25,6 @@ def openapi_types(_):
3225
}
3326

3427
attribute_map = {
35-
"case_index": "caseIndex",
3628
"_from": "from",
3729
"id": "id",
3830
"index": "index",
@@ -41,21 +33,11 @@ def openapi_types(_):
4133
}
4234

4335
def __init__(
44-
self_,
45-
case_index: int,
46-
_from: int,
47-
id: str,
48-
index: str,
49-
to: int,
50-
notifications: Union[List[str], UnsetType] = unset,
51-
**kwargs,
36+
self_, _from: int, id: str, index: str, to: int, notifications: Union[List[str], UnsetType] = unset, **kwargs
5237
):
5338
"""
5439
Definition of a historical job based on a security monitoring rule.
5540
56-
:param case_index: Index of the rule case applied by the job.
57-
:type case_index: int
58-
5941
:param _from: Starting time of data analyzed by the job.
6042
:type _from: int
6143
@@ -75,7 +57,6 @@ def __init__(
7557
kwargs["notifications"] = notifications
7658
super().__init__(kwargs)
7759

78-
self_.case_index = case_index
7960
self_._from = _from
8061
self_.id = id
8162
self_.index = index

tests/v2/cassettes/test_scenarios/test_run_a_historical_job_returns_not_found_response.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"fromRule":{"caseIndex":0,"from":1730201035064,"id":"non-existng","index":"main","notifications":[],"to":1730204635115}},"type":"historicalDetectionsJobCreate"}}'
3+
body: '{"data":{"attributes":{"fromRule":{"from":1730201035064,"id":"non-existng","index":"main","notifications":[],"to":1730204635115}},"type":"historicalDetectionsJobCreate"}}'
44
headers:
55
accept:
66
- application/json

tests/v2/features/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)