File tree Expand file tree Collapse file tree
src/datadog_api_client/v2/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164173,7 +164173,12 @@ paths:
164173164173 If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
164174164174 /api/v2/incidents/{incident_id}/cases/page:
164175164175 post:
164176- description: Create a page from an incident using the Cases service.
164176+ deprecated: true
164177+ description: |-
164178+ Create a page from an incident using the Cases service.
164179+
164180+ **Deprecated**: This endpoint is deprecated. Use
164181+ [Create an on-call page from an incident](#create-an-on-call-page-from-an-incident) instead.
164177164182 operationId: CreatePageFromIncident
164178164183 parameters:
164179164184 - $ref: "#/components/parameters/IncidentIDPathParameter"
Original file line number Diff line number Diff line change 55
66import collections
77from typing import Any , Dict , List , Union
8+ import warnings
89
910from datadog_api_client .api_client import ApiClient , Endpoint as _Endpoint
1011from 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 (
You can’t perform that action at this time.
0 commit comments