Skip to content

Commit c76392e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Mark PATCH /api/v2/incidents/incident_id/attachments endpoint as deprecated (#2937)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3e0126b commit c76392e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65621,6 +65621,7 @@ paths:
6562165621

6562265622
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6562365623
patch:
65624+
deprecated: true
6562465625
description: The bulk update endpoint for creating, updating, and deleting attachments
6562565626
for a given incident.
6562665627
operationId: UpdateIncidentAttachments
@@ -65659,9 +65660,7 @@ paths:
6565965660
operator: OR
6566065661
permissions:
6566165662
- incident_write
65662-
x-unstable: '**Note**: This endpoint is in public beta.
65663-
65664-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
65663+
x-unstable: '**Note**: This endpoint is deprecated.'
6566565664
/api/v2/incidents/{incident_id}/impacts:
6566665665
get:
6566765666
description: Get all impacts for an incident.

src/datadog_api_client/v2/api/incidents_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import collections
77
from typing import Any, Dict, List, Union
8+
import warnings
89

910
from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
1011
from datadog_api_client.configuration import Configuration
@@ -1848,7 +1849,7 @@ def update_incident_attachments(
18481849
*,
18491850
include: Union[List[IncidentAttachmentRelatedObject], UnsetType] = unset,
18501851
) -> IncidentAttachmentUpdateResponse:
1851-
"""Create, update, and delete incident attachments.
1852+
"""Create, update, and delete incident attachments. **Deprecated**.
18521853
18531854
The bulk update endpoint for creating, updating, and deleting attachments for a given incident.
18541855
@@ -1868,6 +1869,7 @@ def update_incident_attachments(
18681869

18691870
kwargs["body"] = body
18701871

1872+
warnings.warn("update_incident_attachments is deprecated", DeprecationWarning, stacklevel=2)
18711873
return self._update_incident_attachments_endpoint.call_with_http_info(**kwargs)
18721874

18731875
def update_incident_integration(

0 commit comments

Comments
 (0)