Skip to content

Commit 5751485

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b8b2ba1 of spec repo
1 parent 3d9b63f commit 5751485

File tree

5 files changed

+2
-44
lines changed

5 files changed

+2
-44
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66441,9 +66441,6 @@ paths:
6644166441
x-permission:
6644266442
operator: OPEN
6644366443
permissions: []
66444-
x-unstable: '**Note: Data Access is in preview. If you have any feedback,
66445-
66446-
contact [Datadog support](https://docs.datadoghq.com/help/).**'
6644766444
put:
6644866445
description: Edits the dataset associated with the ID.
6644966446
operationId: UpdateDataset
@@ -69334,9 +69331,6 @@ paths:
6933469331
operator: OR
6933569332
permissions:
6933669333
- incident_read
69337-
x-unstable: '**Note**: This endpoint is in Preview.
69338-
69339-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6934069334
post:
6934169335
description: Create an impact for an incident.
6934269336
operationId: CreateIncidentImpact
@@ -69380,9 +69374,6 @@ paths:
6938069374
operator: OR
6938169375
permissions:
6938269376
- incident_write
69383-
x-unstable: '**Note**: This endpoint is in Preview.
69384-
69385-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6938669377
/api/v2/incidents/{incident_id}/impacts/{impact_id}:
6938769378
delete:
6938869379
description: Delete an incident impact.
@@ -69413,9 +69404,6 @@ paths:
6941369404
operator: OR
6941469405
permissions:
6941569406
- incident_write
69416-
x-unstable: '**Note**: This endpoint is in Preview.
69417-
69418-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6941969407
/api/v2/incidents/{incident_id}/relationships/integrations:
6942069408
get:
6942169409
description: Get all integration metadata for an incident.

features/v2/incidents.feature

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,16 +806,14 @@ Feature: Incidents
806806

807807
@generated @skip @team:DataDog/incident-app
808808
Scenario: List an incident's impacts returns "Bad Request" response
809-
Given operation "ListIncidentImpacts" enabled
810-
And new "ListIncidentImpacts" request
809+
Given new "ListIncidentImpacts" request
811810
And request contains "incident_id" parameter from "REPLACE.ME"
812811
When the request is sent
813812
Then the response status is 400 Bad Request
814813

815814
@generated @skip @team:DataDog/incident-app
816815
Scenario: List an incident's impacts returns "Not Found" response
817-
Given operation "ListIncidentImpacts" enabled
818-
And new "ListIncidentImpacts" request
816+
Given new "ListIncidentImpacts" request
819817
And request contains "incident_id" parameter from "REPLACE.ME"
820818
When the request is sent
821819
Then the response status is 404 Not Found

lib/datadog_api_client/configuration.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ def initialize
234234
"v2.create_dataset": false,
235235
"v2.delete_dataset": false,
236236
"v2.get_all_datasets": false,
237-
"v2.get_dataset": false,
238237
"v2.update_dataset": false,
239238
"v2.cancel_data_deletion_request": false,
240239
"v2.create_data_deletion_request": false,
@@ -249,14 +248,12 @@ def initialize
249248
"v2.update_deployment_gate": false,
250249
"v2.update_deployment_rule": false,
251250
"v2.create_incident": false,
252-
"v2.create_incident_impact": false,
253251
"v2.create_incident_integration": false,
254252
"v2.create_incident_notification_rule": false,
255253
"v2.create_incident_notification_template": false,
256254
"v2.create_incident_todo": false,
257255
"v2.create_incident_type": false,
258256
"v2.delete_incident": false,
259-
"v2.delete_incident_impact": false,
260257
"v2.delete_incident_integration": false,
261258
"v2.delete_incident_notification_rule": false,
262259
"v2.delete_incident_notification_template": false,
@@ -269,7 +266,6 @@ def initialize
269266
"v2.get_incident_todo": false,
270267
"v2.get_incident_type": false,
271268
"v2.list_incident_attachments": false,
272-
"v2.list_incident_impacts": false,
273269
"v2.list_incident_integrations": false,
274270
"v2.list_incident_notification_rules": false,
275271
"v2.list_incident_notification_templates": false,

lib/datadog_api_client/v2/api/datasets_api.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,6 @@ def get_dataset(dataset_id, opts = {})
249249
# @param opts [Hash] the optional parameters
250250
# @return [Array<(DatasetResponseSingle, Integer, Hash)>] DatasetResponseSingle data, response status code and response headers
251251
def get_dataset_with_http_info(dataset_id, opts = {})
252-
unstable_enabled = @api_client.config.unstable_operations["v2.get_dataset".to_sym]
253-
if unstable_enabled
254-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_dataset")
255-
else
256-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_dataset"))
257-
end
258252

259253
if @api_client.config.debugging
260254
@api_client.config.logger.debug 'Calling API: DatasetsAPI.get_dataset ...'

lib/datadog_api_client/v2/api/incidents_api.rb

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ def create_incident_impact(incident_id, body, opts = {})
114114
# @option opts [Array<IncidentImpactRelatedObject>] :include Specifies which related resources should be included in the response.
115115
# @return [Array<(IncidentImpactResponse, Integer, Hash)>] IncidentImpactResponse data, response status code and response headers
116116
def create_incident_impact_with_http_info(incident_id, body, opts = {})
117-
unstable_enabled = @api_client.config.unstable_operations["v2.create_incident_impact".to_sym]
118-
if unstable_enabled
119-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_incident_impact")
120-
else
121-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_incident_impact"))
122-
end
123117

124118
if @api_client.config.debugging
125119
@api_client.config.logger.debug 'Calling API: IncidentsAPI.create_incident_impact ...'
@@ -639,12 +633,6 @@ def delete_incident_impact(incident_id, impact_id, opts = {})
639633
# @param opts [Hash] the optional parameters
640634
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
641635
def delete_incident_impact_with_http_info(incident_id, impact_id, opts = {})
642-
unstable_enabled = @api_client.config.unstable_operations["v2.delete_incident_impact".to_sym]
643-
if unstable_enabled
644-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_incident_impact")
645-
else
646-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_incident_impact"))
647-
end
648636

649637
if @api_client.config.debugging
650638
@api_client.config.logger.debug 'Calling API: IncidentsAPI.delete_incident_impact ...'
@@ -1601,12 +1589,6 @@ def list_incident_impacts(incident_id, opts = {})
16011589
# @option opts [Array<IncidentImpactRelatedObject>] :include Specifies which related resources should be included in the response.
16021590
# @return [Array<(IncidentImpactsResponse, Integer, Hash)>] IncidentImpactsResponse data, response status code and response headers
16031591
def list_incident_impacts_with_http_info(incident_id, opts = {})
1604-
unstable_enabled = @api_client.config.unstable_operations["v2.list_incident_impacts".to_sym]
1605-
if unstable_enabled
1606-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_incident_impacts")
1607-
else
1608-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_incident_impacts"))
1609-
end
16101592

16111593
if @api_client.config.debugging
16121594
@api_client.config.logger.debug 'Calling API: IncidentsAPI.list_incident_impacts ...'

0 commit comments

Comments
 (0)