Skip to content

Commit 674eafa

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 4a04d88f of spec repo
1 parent b06a19b commit 674eafa

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
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.4",
7-
"regenerated": "2023-05-09 21:22:58.053236",
8-
"spec_repo_commit": "2ba8c6cd"
7+
"regenerated": "2023-05-11 08:17:21.518051",
8+
"spec_repo_commit": "4a04d88f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-05-09 21:22:58.065936",
13-
"spec_repo_commit": "2ba8c6cd"
12+
"regenerated": "2023-05-11 08:17:21.530112",
13+
"spec_repo_commit": "4a04d88f"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19603,6 +19603,15 @@ paths:
1960319603
required: true
1960419604
schema:
1960519605
type: string
19606+
- description: Return the finding for a given snapshot of time (Unix ms).
19607+
example: 1678721573794
19608+
in: query
19609+
name: snapshot_timestamp
19610+
required: false
19611+
schema:
19612+
format: int64
19613+
minimum: 1
19614+
type: integer
1960619615
responses:
1960719616
'200':
1960819617
content:

src/datadog_api_client/v2/api/security_monitoring_api.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,14 @@ def __init__(self, api_client=None):
254254
"attribute": "finding_id",
255255
"location": "path",
256256
},
257+
"snapshot_timestamp": {
258+
"validation": {
259+
"inclusive_minimum": 1,
260+
},
261+
"openapi_types": (int,),
262+
"attribute": "snapshot_timestamp",
263+
"location": "query",
264+
},
257265
},
258266
headers_map={
259267
"accept": ["application/json"],
@@ -740,18 +748,25 @@ def edit_security_monitoring_signal_state(
740748
def get_finding(
741749
self,
742750
finding_id: str,
751+
*,
752+
snapshot_timestamp: Union[int, UnsetType] = unset,
743753
) -> GetFindingResponse:
744754
"""Get a finding.
745755
746756
Returns a single finding with message and resource configuration.
747757
748758
:param finding_id: The ID of the finding.
749759
:type finding_id: str
760+
:param snapshot_timestamp: Return the finding for a given snapshot of time (Unix ms).
761+
:type snapshot_timestamp: int, optional
750762
:rtype: GetFindingResponse
751763
"""
752764
kwargs: Dict[str, Any] = {}
753765
kwargs["finding_id"] = finding_id
754766

767+
if snapshot_timestamp is not unset:
768+
kwargs["snapshot_timestamp"] = snapshot_timestamp
769+
755770
return self._get_finding_endpoint.call_with_http_info(**kwargs)
756771

757772
def get_security_filter(

0 commit comments

Comments
 (0)