Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 12 additions & 15 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6968,15 +6968,21 @@ components:
BatchUpsertRowsRequestDataAttributes:
description: Attributes containing row data values for row creation or update
operations.
example:
values:
age: 25
example_key_value: primary_key_value
name: row_name
properties:
values:
additionalProperties:
x-required-field: true
description: Key-value pairs representing row data, where keys are field
names from the schema.
example:
example_key_value: primary_key_value
name: row_name
oneOf:
- type: string
- format: int32
maximum: 2147483647
type: integer
description: Key-value pairs representing row data, where keys are schema
field names and values match the corresponding column types.
type: object
required:
- values
Expand Down Expand Up @@ -69084,9 +69090,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
Expand Down Expand Up @@ -69130,9 +69133,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.
Expand Down Expand Up @@ -69163,9 +69163,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.
Expand Down
1 change: 1 addition & 0 deletions examples/v2/reference-tables/UpsertRows.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public static void main(String[] args) {
new BatchUpsertRowsRequestDataAttributes()
.values(
Map.ofEntries(
Map.entry("age", 25),
Map.entry("example_key_value", "primary_key_value"),
Map.entry("name", "row_name"))))
.id("primary_key_value")
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/com/datadog/api/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -748,14 +748,12 @@ public class ApiClient {
put("v2.updateDeploymentGate", false);
put("v2.updateDeploymentRule", false);
put("v2.createIncident", false);
put("v2.createIncidentImpact", false);
put("v2.createIncidentIntegration", false);
put("v2.createIncidentNotificationRule", false);
put("v2.createIncidentNotificationTemplate", false);
put("v2.createIncidentTodo", false);
put("v2.createIncidentType", false);
put("v2.deleteIncident", false);
put("v2.deleteIncidentImpact", false);
put("v2.deleteIncidentIntegration", false);
put("v2.deleteIncidentNotificationRule", false);
put("v2.deleteIncidentNotificationTemplate", false);
Expand All @@ -768,7 +766,6 @@ public class ApiClient {
put("v2.getIncidentTodo", false);
put("v2.getIncidentType", false);
put("v2.listIncidentAttachments", false);
put("v2.listIncidentImpacts", false);
put("v2.listIncidentIntegrations", false);
put("v2.listIncidentNotificationRules", false);
put("v2.listIncidentNotificationTemplates", false);
Expand Down
51 changes: 0 additions & 51 deletions src/main/java/com/datadog/api/client/v2/api/IncidentsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,6 @@ public ApiResponse<IncidentImpactResponse> createIncidentImpactWithHttpInfo(
IncidentImpactCreateRequest body,
CreateIncidentImpactOptionalParameters parameters)
throws ApiException {
// Check if unstable operation is enabled
String operationId = "createIncidentImpact";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = body;

// verify the required parameter 'incidentId' is set
Expand Down Expand Up @@ -420,16 +413,6 @@ public ApiResponse<IncidentImpactResponse> createIncidentImpactWithHttpInfo(
String incidentId,
IncidentImpactCreateRequest body,
CreateIncidentImpactOptionalParameters parameters) {
// Check if unstable operation is enabled
String operationId = "createIncidentImpact";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<IncidentImpactResponse>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = body;

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

// verify the required parameter 'incidentId' is set
Expand Down Expand Up @@ -1578,16 +1554,6 @@ public ApiResponse<Void> deleteIncidentImpactWithHttpInfo(String incidentId, Str
*/
public CompletableFuture<ApiResponse<Void>> deleteIncidentImpactWithHttpInfoAsync(
String incidentId, String impactId) {
// Check if unstable operation is enabled
String operationId = "deleteIncidentImpact";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;

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

// verify the required parameter 'incidentId' is set
Expand Down Expand Up @@ -4199,16 +4158,6 @@ public ApiResponse<IncidentImpactsResponse> listIncidentImpactsWithHttpInfo(
public CompletableFuture<ApiResponse<IncidentImpactsResponse>>
listIncidentImpactsWithHttpInfoAsync(
String incidentId, ListIncidentImpactsOptionalParameters parameters) {
// Check if unstable operation is enabled
String operationId = "listIncidentImpacts";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<IncidentImpactsResponse>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;

// verify the required parameter 'incidentId' is set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public BatchUpsertRowsRequestDataAttributes putValuesItem(String key, Object val
}

/**
* Key-value pairs representing row data, where keys are field names from the schema.
* Key-value pairs representing row data, where keys are schema field names and values match the
* corresponding column types.
*
* @return values
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,22 +148,22 @@ Feature: Reference Tables
Scenario: Upsert rows returns "Bad Request" response
Given new "UpsertRows" request
And request contains "id" parameter from "REPLACE.ME"
And body with value {"data": [{"attributes": {"values": {"example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]}
And body with value {"data": [{"attributes": {"values": {"age": 25, "example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/redapl-experiences
Scenario: Upsert rows returns "Not Found" response
Given new "UpsertRows" request
And request contains "id" parameter from "REPLACE.ME"
And body with value {"data": [{"attributes": {"values": {"example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]}
And body with value {"data": [{"attributes": {"values": {"age": 25, "example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]}
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:DataDog/redapl-experiences
Scenario: Upsert rows returns "Rows created or updated successfully" response
Given new "UpsertRows" request
And request contains "id" parameter from "REPLACE.ME"
And body with value {"data": [{"attributes": {"values": {"example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]}
And body with value {"data": [{"attributes": {"values": {"age": 25, "example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]}
When the request is sent
Then the response status is 200 Rows created or updated successfully
Loading