diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index daf2244ff59b..10b0b1d50437 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/lib/datadog_api_client/v2/api/incidents_api.rb b/lib/datadog_api_client/v2/api/incidents_api.rb index efe86259213d..0d7ca03ecf66 100644 --- a/lib/datadog_api_client/v2/api/incidents_api.rb +++ b/lib/datadog_api_client/v2/api/incidents_api.rb @@ -1621,11 +1621,17 @@ def create_page_from_incident(incident_id, body, opts = {}) # # 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. + # + # @deprecated This API is deprecated. + # # @param incident_id [String] The UUID of the incident. # @param body [IncidentCreatePageFromIncidentRequest] Page creation payload. # @param opts [Hash] the optional parameters # @return [Array<(IncidentPageUUIDResponse, Integer, Hash)>] IncidentPageUUIDResponse data, response status code and response headers def create_page_from_incident_with_http_info(incident_id, body, opts = {}) + warn "[DEPRECATION] `CreatePageFromIncident` is deprecated." unstable_enabled = @api_client.config.unstable_operations["v2.create_page_from_incident".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_page_from_incident")