Skip to content

Commit fa3c9ee

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b8b2ba1 of spec repo
1 parent 496dbe6 commit fa3c9ee

File tree

5 files changed

+2
-88
lines changed

5 files changed

+2
-88
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.

src/main/java/com/datadog/api/client/ApiClient.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,6 @@ public class ApiClient {
733733
put("v2.createDataset", false);
734734
put("v2.deleteDataset", false);
735735
put("v2.getAllDatasets", false);
736-
put("v2.getDataset", false);
737736
put("v2.updateDataset", false);
738737
put("v2.cancelDataDeletionRequest", false);
739738
put("v2.createDataDeletionRequest", false);
@@ -748,14 +747,12 @@ public class ApiClient {
748747
put("v2.updateDeploymentGate", false);
749748
put("v2.updateDeploymentRule", false);
750749
put("v2.createIncident", false);
751-
put("v2.createIncidentImpact", false);
752750
put("v2.createIncidentIntegration", false);
753751
put("v2.createIncidentNotificationRule", false);
754752
put("v2.createIncidentNotificationTemplate", false);
755753
put("v2.createIncidentTodo", false);
756754
put("v2.createIncidentType", false);
757755
put("v2.deleteIncident", false);
758-
put("v2.deleteIncidentImpact", false);
759756
put("v2.deleteIncidentIntegration", false);
760757
put("v2.deleteIncidentNotificationRule", false);
761758
put("v2.deleteIncidentNotificationTemplate", false);
@@ -768,7 +765,6 @@ public class ApiClient {
768765
put("v2.getIncidentTodo", false);
769766
put("v2.getIncidentType", false);
770767
put("v2.listIncidentAttachments", false);
771-
put("v2.listIncidentImpacts", false);
772768
put("v2.listIncidentIntegrations", false);
773769
put("v2.listIncidentNotificationRules", false);
774770
put("v2.listIncidentNotificationTemplates", false);

src/main/java/com/datadog/api/client/v2/api/DatasetsApi.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -519,13 +519,6 @@ public CompletableFuture<DatasetResponseSingle> getDatasetAsync(String datasetId
519519
*/
520520
public ApiResponse<DatasetResponseSingle> getDatasetWithHttpInfo(String datasetId)
521521
throws ApiException {
522-
// Check if unstable operation is enabled
523-
String operationId = "getDataset";
524-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
525-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
526-
} else {
527-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
528-
}
529522
Object localVarPostBody = null;
530523

531524
// verify the required parameter 'datasetId' is set
@@ -570,16 +563,6 @@ public ApiResponse<DatasetResponseSingle> getDatasetWithHttpInfo(String datasetI
570563
*/
571564
public CompletableFuture<ApiResponse<DatasetResponseSingle>> getDatasetWithHttpInfoAsync(
572565
String datasetId) {
573-
// Check if unstable operation is enabled
574-
String operationId = "getDataset";
575-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
576-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
577-
} else {
578-
CompletableFuture<ApiResponse<DatasetResponseSingle>> result = new CompletableFuture<>();
579-
result.completeExceptionally(
580-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
581-
return result;
582-
}
583566
Object localVarPostBody = null;
584567

585568
// verify the required parameter 'datasetId' is set

src/main/java/com/datadog/api/client/v2/api/IncidentsApi.java

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,6 @@ public ApiResponse<IncidentImpactResponse> createIncidentImpactWithHttpInfo(
353353
IncidentImpactCreateRequest body,
354354
CreateIncidentImpactOptionalParameters parameters)
355355
throws ApiException {
356-
// Check if unstable operation is enabled
357-
String operationId = "createIncidentImpact";
358-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
359-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
360-
} else {
361-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
362-
}
363356
Object localVarPostBody = body;
364357

365358
// verify the required parameter 'incidentId' is set
@@ -420,16 +413,6 @@ public ApiResponse<IncidentImpactResponse> createIncidentImpactWithHttpInfo(
420413
String incidentId,
421414
IncidentImpactCreateRequest body,
422415
CreateIncidentImpactOptionalParameters parameters) {
423-
// Check if unstable operation is enabled
424-
String operationId = "createIncidentImpact";
425-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
426-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
427-
} else {
428-
CompletableFuture<ApiResponse<IncidentImpactResponse>> result = new CompletableFuture<>();
429-
result.completeExceptionally(
430-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
431-
return result;
432-
}
433416
Object localVarPostBody = body;
434417

435418
// verify the required parameter 'incidentId' is set
@@ -1518,13 +1501,6 @@ public CompletableFuture<Void> deleteIncidentImpactAsync(String incidentId, Stri
15181501
*/
15191502
public ApiResponse<Void> deleteIncidentImpactWithHttpInfo(String incidentId, String impactId)
15201503
throws ApiException {
1521-
// Check if unstable operation is enabled
1522-
String operationId = "deleteIncidentImpact";
1523-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
1524-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
1525-
} else {
1526-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
1527-
}
15281504
Object localVarPostBody = null;
15291505

15301506
// verify the required parameter 'incidentId' is set
@@ -1578,16 +1554,6 @@ public ApiResponse<Void> deleteIncidentImpactWithHttpInfo(String incidentId, Str
15781554
*/
15791555
public CompletableFuture<ApiResponse<Void>> deleteIncidentImpactWithHttpInfoAsync(
15801556
String incidentId, String impactId) {
1581-
// Check if unstable operation is enabled
1582-
String operationId = "deleteIncidentImpact";
1583-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
1584-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
1585-
} else {
1586-
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
1587-
result.completeExceptionally(
1588-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
1589-
return result;
1590-
}
15911557
Object localVarPostBody = null;
15921558

15931559
// verify the required parameter 'incidentId' is set
@@ -4141,13 +4107,6 @@ public CompletableFuture<IncidentImpactsResponse> listIncidentImpactsAsync(
41414107
*/
41424108
public ApiResponse<IncidentImpactsResponse> listIncidentImpactsWithHttpInfo(
41434109
String incidentId, ListIncidentImpactsOptionalParameters parameters) throws ApiException {
4144-
// Check if unstable operation is enabled
4145-
String operationId = "listIncidentImpacts";
4146-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
4147-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
4148-
} else {
4149-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
4150-
}
41514110
Object localVarPostBody = null;
41524111

41534112
// verify the required parameter 'incidentId' is set
@@ -4199,16 +4158,6 @@ public ApiResponse<IncidentImpactsResponse> listIncidentImpactsWithHttpInfo(
41994158
public CompletableFuture<ApiResponse<IncidentImpactsResponse>>
42004159
listIncidentImpactsWithHttpInfoAsync(
42014160
String incidentId, ListIncidentImpactsOptionalParameters parameters) {
4202-
// Check if unstable operation is enabled
4203-
String operationId = "listIncidentImpacts";
4204-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
4205-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
4206-
} else {
4207-
CompletableFuture<ApiResponse<IncidentImpactsResponse>> result = new CompletableFuture<>();
4208-
result.completeExceptionally(
4209-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
4210-
return result;
4211-
}
42124161
Object localVarPostBody = null;
42134162

42144163
// verify the required parameter 'incidentId' is set

src/test/resources/com/datadog/api/client/v2/api/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

0 commit comments

Comments
 (0)