diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 0bf5e783b1da..b2eda9a1b02a 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -67941,6 +67941,7 @@ paths: - us3.datadoghq.com - us5.datadoghq.com - ap1.datadoghq.com + - ap2.datadoghq.com - datadoghq.eu - ddog-gov.com subdomain: @@ -69008,9 +69009,6 @@ paths: operator: OR permissions: - incident_read - x-unstable: '**Note**: This endpoint is in Preview. - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' post: description: Create an impact for an incident. operationId: CreateIncidentImpact @@ -69054,9 +69052,6 @@ paths: operator: OR permissions: - incident_write - x-unstable: '**Note**: This endpoint is in Preview. - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v2/incidents/{incident_id}/impacts/{impact_id}: delete: description: Delete an incident impact. @@ -69087,9 +69082,6 @@ paths: operator: OR permissions: - incident_write - x-unstable: '**Note**: This endpoint is in Preview. - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v2/incidents/{incident_id}/relationships/integrations: get: description: Get all integration metadata for an incident. diff --git a/features/v2/incidents.feature b/features/v2/incidents.feature index 74ae965968fd..12ab3e2f5ba5 100644 --- a/features/v2/incidents.feature +++ b/features/v2/incidents.feature @@ -806,16 +806,14 @@ Feature: Incidents @generated @skip @team:DataDog/incident-app Scenario: List an incident's impacts returns "Bad Request" response - Given operation "ListIncidentImpacts" enabled - And new "ListIncidentImpacts" request + Given new "ListIncidentImpacts" request And request contains "incident_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/incident-app Scenario: List an incident's impacts returns "Not Found" response - Given operation "ListIncidentImpacts" enabled - And new "ListIncidentImpacts" request + Given new "ListIncidentImpacts" request And request contains "incident_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found diff --git a/lib/datadog_api_client/configuration.rb b/lib/datadog_api_client/configuration.rb index 4377c745f15e..707078fa9174 100644 --- a/lib/datadog_api_client/configuration.rb +++ b/lib/datadog_api_client/configuration.rb @@ -249,14 +249,12 @@ def initialize "v2.update_deployment_gate": false, "v2.update_deployment_rule": false, "v2.create_incident": false, - "v2.create_incident_impact": false, "v2.create_incident_integration": false, "v2.create_incident_notification_rule": false, "v2.create_incident_notification_template": false, "v2.create_incident_todo": false, "v2.create_incident_type": false, "v2.delete_incident": false, - "v2.delete_incident_impact": false, "v2.delete_incident_integration": false, "v2.delete_incident_notification_rule": false, "v2.delete_incident_notification_template": false, @@ -269,7 +267,6 @@ def initialize "v2.get_incident_todo": false, "v2.get_incident_type": false, "v2.list_incident_attachments": false, - "v2.list_incident_impacts": false, "v2.list_incident_integrations": false, "v2.list_incident_notification_rules": false, "v2.list_incident_notification_templates": false, @@ -627,6 +624,7 @@ def operation_server_settings "us3.datadoghq.com", "us5.datadoghq.com", "ap1.datadoghq.com", + "ap2.datadoghq.com", "datadoghq.eu", "ddog-gov.com" ] diff --git a/lib/datadog_api_client/v2/api/incidents_api.rb b/lib/datadog_api_client/v2/api/incidents_api.rb index 6c19ac5d3bc8..a1f004c3f4be 100644 --- a/lib/datadog_api_client/v2/api/incidents_api.rb +++ b/lib/datadog_api_client/v2/api/incidents_api.rb @@ -114,12 +114,6 @@ def create_incident_impact(incident_id, body, opts = {}) # @option opts [Array] :include Specifies which related resources should be included in the response. # @return [Array<(IncidentImpactResponse, Integer, Hash)>] IncidentImpactResponse data, response status code and response headers def create_incident_impact_with_http_info(incident_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.create_incident_impact".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_incident_impact") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_incident_impact")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IncidentsAPI.create_incident_impact ...' @@ -639,12 +633,6 @@ def delete_incident_impact(incident_id, impact_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_incident_impact_with_http_info(incident_id, impact_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.delete_incident_impact".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_incident_impact") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_incident_impact")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IncidentsAPI.delete_incident_impact ...' @@ -1601,12 +1589,6 @@ def list_incident_impacts(incident_id, opts = {}) # @option opts [Array] :include Specifies which related resources should be included in the response. # @return [Array<(IncidentImpactsResponse, Integer, Hash)>] IncidentImpactsResponse data, response status code and response headers def list_incident_impacts_with_http_info(incident_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.list_incident_impacts".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_incident_impacts") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_incident_impacts")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IncidentsAPI.list_incident_impacts ...'