Skip to content

Commit 4e32b00

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 605b75b of spec repo
1 parent 3f03835 commit 4e32b00

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163368,7 +163368,12 @@ paths:
163368163368
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
163369163369
/api/v2/incidents/{incident_id}/cases/page:
163370163370
post:
163371-
description: Create a page from an incident using the Cases service.
163371+
deprecated: true
163372+
description: |-
163373+
Create a page from an incident using the Cases service.
163374+
163375+
**Deprecated**: This endpoint is deprecated. Use
163376+
[Create an on-call page from an incident](#create-an-on-call-page-from-an-incident) instead.
163372163377
operationId: CreatePageFromIncident
163373163378
parameters:
163374163379
- $ref: "#/components/parameters/IncidentIDPathParameter"

‎src/datadog_api_client/v2/api/incidents_api.py‎

Lines changed: 6 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
@@ -3017,10 +3018,13 @@ def create_page_from_incident(
30173018
incident_id: str,
30183019
body: IncidentCreatePageFromIncidentRequest,
30193020
) -> IncidentPageUUIDResponse:
3020-
"""Create a page from an incident.
3021+
"""Create a page from an incident. **Deprecated**.
30213022
30223023
Create a page from an incident using the Cases service.
30233024
3025+
**Deprecated** : This endpoint is deprecated. Use
3026+
`Create an on-call page from an incident <#create-an-on-call-page-from-an-incident>`_ instead.
3027+
30243028
:param incident_id: The UUID of the incident.
30253029
:type incident_id: str
30263030
:param body: Page creation payload.
@@ -3032,6 +3036,7 @@ def create_page_from_incident(
30323036

30333037
kwargs["body"] = body
30343038

3039+
warnings.warn("create_page_from_incident is deprecated", DeprecationWarning, stacklevel=2)
30353040
return self._create_page_from_incident_endpoint.call_with_http_info(**kwargs)
30363041

30373042
def create_timestamp_override(

0 commit comments

Comments
 (0)