From b9da1a01eab81a95a4c09f21e2dc15756998f82a Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 22 Sep 2026 17:51:07 +0000 Subject: [PATCH] Regenerate client from commit 8308ab1 of spec repo --- .generator/schemas/v2/openapi.yaml | 7 ++++++- src/datadog_api_client/v2/api/incidents_api.py | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index daf2244ff5..10b0b1d504 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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" diff --git a/src/datadog_api_client/v2/api/incidents_api.py b/src/datadog_api_client/v2/api/incidents_api.py index 8a98542b1b..5ea7dabd62 100644 --- a/src/datadog_api_client/v2/api/incidents_api.py +++ b/src/datadog_api_client/v2/api/incidents_api.py @@ -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 @@ -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. @@ -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(