Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164173,7 +164173,12 @@ paths:
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/incidents/{incident_id}/cases/page:
post:
description: Create a page from an incident using the Cases service.
deprecated: true
description: |-
Create a page from an incident using the Cases service.

**Deprecated**: This endpoint is deprecated. Use
[Create an on-call page from an incident](#create-an-on-call-page-from-an-incident) instead.
operationId: CreatePageFromIncident
parameters:
- $ref: "#/components/parameters/IncidentIDPathParameter"
Expand Down
7 changes: 6 additions & 1 deletion src/datadog_api_client/v2/api/incidents_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import collections
from typing import Any, Dict, List, Union
import warnings

from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
from datadog_api_client.configuration import Configuration
Expand Down Expand Up @@ -3017,10 +3018,13 @@ def create_page_from_incident(
incident_id: str,
body: IncidentCreatePageFromIncidentRequest,
) -> IncidentPageUUIDResponse:
"""Create a page from an incident.
"""Create a page from an incident. **Deprecated**.

Create a page from an incident using the Cases service.

**Deprecated** : This endpoint is deprecated. Use
`Create an on-call page from an incident <#create-an-on-call-page-from-an-incident>`_ instead.

:param incident_id: The UUID of the incident.
:type incident_id: str
:param body: Page creation payload.
Expand All @@ -3032,6 +3036,7 @@ def create_page_from_incident(

kwargs["body"] = body

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

def create_timestamp_override(
Expand Down
Loading