Skip to content

Commit f07b75f

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

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
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/main/java/com/datadog/api/client/v2/api/IncidentsApi.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6065,7 +6065,9 @@ public UpdateIncidentAttachmentsOptionalParameters include(
60656065
* @param body Incident Attachment Payload. (required)
60666066
* @return IncidentAttachmentUpdateResponse
60676067
* @throws ApiException if fails to make API call
6068+
* @deprecated
60686069
*/
6070+
@Deprecated
60696071
public IncidentAttachmentUpdateResponse updateIncidentAttachments(
60706072
String incidentId, IncidentAttachmentUpdateRequest body) throws ApiException {
60716073
return updateIncidentAttachmentsWithHttpInfo(
@@ -6081,7 +6083,9 @@ incidentId, body, new UpdateIncidentAttachmentsOptionalParameters())
60816083
* @param incidentId The UUID of the incident. (required)
60826084
* @param body Incident Attachment Payload. (required)
60836085
* @return CompletableFuture&lt;IncidentAttachmentUpdateResponse&gt;
6086+
* @deprecated
60846087
*/
6088+
@Deprecated
60856089
public CompletableFuture<IncidentAttachmentUpdateResponse> updateIncidentAttachmentsAsync(
60866090
String incidentId, IncidentAttachmentUpdateRequest body) {
60876091
return updateIncidentAttachmentsWithHttpInfoAsync(
@@ -6102,7 +6106,9 @@ incidentId, body, new UpdateIncidentAttachmentsOptionalParameters())
61026106
* @param parameters Optional parameters for the request.
61036107
* @return IncidentAttachmentUpdateResponse
61046108
* @throws ApiException if fails to make API call
6109+
* @deprecated
61056110
*/
6111+
@Deprecated
61066112
public IncidentAttachmentUpdateResponse updateIncidentAttachments(
61076113
String incidentId,
61086114
IncidentAttachmentUpdateRequest body,
@@ -6120,7 +6126,9 @@ public IncidentAttachmentUpdateResponse updateIncidentAttachments(
61206126
* @param body Incident Attachment Payload. (required)
61216127
* @param parameters Optional parameters for the request.
61226128
* @return CompletableFuture&lt;IncidentAttachmentUpdateResponse&gt;
6129+
* @deprecated
61236130
*/
6131+
@Deprecated
61246132
public CompletableFuture<IncidentAttachmentUpdateResponse> updateIncidentAttachmentsAsync(
61256133
String incidentId,
61266134
IncidentAttachmentUpdateRequest body,
@@ -6151,7 +6159,10 @@ public CompletableFuture<IncidentAttachmentUpdateResponse> updateIncidentAttachm
61516159
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
61526160
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
61536161
* </table>
6162+
*
6163+
* @deprecated
61546164
*/
6165+
@Deprecated
61556166
public ApiResponse<IncidentAttachmentUpdateResponse> updateIncidentAttachmentsWithHttpInfo(
61566167
String incidentId,
61576168
IncidentAttachmentUpdateRequest body,
@@ -6219,7 +6230,9 @@ public ApiResponse<IncidentAttachmentUpdateResponse> updateIncidentAttachmentsWi
62196230
* @param body Incident Attachment Payload. (required)
62206231
* @param parameters Optional parameters for the request.
62216232
* @return CompletableFuture&lt;ApiResponse&lt;IncidentAttachmentUpdateResponse&gt;&gt;
6233+
* @deprecated
62226234
*/
6235+
@Deprecated
62236236
public CompletableFuture<ApiResponse<IncidentAttachmentUpdateResponse>>
62246237
updateIncidentAttachmentsWithHttpInfoAsync(
62256238
String incidentId,

0 commit comments

Comments
 (0)