Skip to content

Commit e2f68d1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b8b2ba1 of spec repo
1 parent dac1eaa commit e2f68d1

File tree

4 files changed

+2
-40
lines changed

4 files changed

+2
-40
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

services/datasets/src/v2/DatasetsApi.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,6 @@ export class DatasetsApiRequestFactory extends BaseAPIRequestFactory {
194194
): Promise<RequestContext> {
195195
const _config = _options || this.configuration;
196196

197-
if (!_config.unstableOperations["DatasetsApi.v2.getDataset"]) {
198-
throw new Error(
199-
"Unstable operation 'getDataset' is disabled. Enable it by setting `configuration.unstableOperations['DatasetsApi.v2.getDataset'] = true`",
200-
);
201-
}
202-
203197
// verify required parameter 'datasetId' is not null or undefined
204198
if (datasetId === null || datasetId === undefined) {
205199
throw new RequiredError("datasetId", "getDataset");

services/incidents/src/v2/IncidentsApi.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,6 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory {
137137
): Promise<RequestContext> {
138138
const _config = _options || this.configuration;
139139

140-
if (!_config.unstableOperations["IncidentsApi.v2.createIncidentImpact"]) {
141-
throw new Error(
142-
"Unstable operation 'createIncidentImpact' is disabled. Enable it by setting `configuration.unstableOperations['IncidentsApi.v2.createIncidentImpact'] = true`",
143-
);
144-
}
145-
146140
// verify required parameter 'incidentId' is not null or undefined
147141
if (incidentId === null || incidentId === undefined) {
148142
throw new RequiredError("incidentId", "createIncidentImpact");
@@ -593,12 +587,6 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory {
593587
): Promise<RequestContext> {
594588
const _config = _options || this.configuration;
595589

596-
if (!_config.unstableOperations["IncidentsApi.v2.deleteIncidentImpact"]) {
597-
throw new Error(
598-
"Unstable operation 'deleteIncidentImpact' is disabled. Enable it by setting `configuration.unstableOperations['IncidentsApi.v2.deleteIncidentImpact'] = true`",
599-
);
600-
}
601-
602590
// verify required parameter 'incidentId' is not null or undefined
603591
if (incidentId === null || incidentId === undefined) {
604592
throw new RequiredError("incidentId", "deleteIncidentImpact");
@@ -1398,12 +1386,6 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory {
13981386
): Promise<RequestContext> {
13991387
const _config = _options || this.configuration;
14001388

1401-
if (!_config.unstableOperations["IncidentsApi.v2.listIncidentImpacts"]) {
1402-
throw new Error(
1403-
"Unstable operation 'listIncidentImpacts' is disabled. Enable it by setting `configuration.unstableOperations['IncidentsApi.v2.listIncidentImpacts'] = true`",
1404-
);
1405-
}
1406-
14071389
// verify required parameter 'incidentId' is not null or undefined
14081390
if (incidentId === null || incidentId === undefined) {
14091391
throw new RequiredError("incidentId", "listIncidentImpacts");

0 commit comments

Comments
 (0)