Skip to content

Commit b8ffc4a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f202d5e of spec repo
1 parent 3caeb56 commit b8ffc4a

File tree

7 files changed

+20
-77
lines changed

7 files changed

+20
-77
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6968,15 +6968,21 @@ components:
69686968
BatchUpsertRowsRequestDataAttributes:
69696969
description: Attributes containing row data values for row creation or update
69706970
operations.
6971+
example:
6972+
values:
6973+
age: 25
6974+
example_key_value: primary_key_value
6975+
name: row_name
69716976
properties:
69726977
values:
69736978
additionalProperties:
6974-
x-required-field: true
6975-
description: Key-value pairs representing row data, where keys are field
6976-
names from the schema.
6977-
example:
6978-
example_key_value: primary_key_value
6979-
name: row_name
6979+
oneOf:
6980+
- type: string
6981+
- format: int32
6982+
maximum: 2147483647
6983+
type: integer
6984+
description: Key-value pairs representing row data, where keys are schema
6985+
field names and values match the corresponding column types.
69806986
type: object
69816987
required:
69826988
- values
@@ -69084,9 +69090,6 @@ paths:
6908469090
operator: OR
6908569091
permissions:
6908669092
- incident_read
69087-
x-unstable: '**Note**: This endpoint is in Preview.
69088-
69089-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6909069093
post:
6909169094
description: Create an impact for an incident.
6909269095
operationId: CreateIncidentImpact
@@ -69130,9 +69133,6 @@ paths:
6913069133
operator: OR
6913169134
permissions:
6913269135
- incident_write
69133-
x-unstable: '**Note**: This endpoint is in Preview.
69134-
69135-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6913669136
/api/v2/incidents/{incident_id}/impacts/{impact_id}:
6913769137
delete:
6913869138
description: Delete an incident impact.
@@ -69163,9 +69163,6 @@ paths:
6916369163
operator: OR
6916469164
permissions:
6916569165
- incident_write
69166-
x-unstable: '**Note**: This endpoint is in Preview.
69167-
69168-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6916969166
/api/v2/incidents/{incident_id}/relationships/integrations:
6917069167
get:
6917169168
description: Get all integration metadata for an incident.

examples/v2/reference-tables/UpsertRows.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public static void main(String[] args) {
2424
new BatchUpsertRowsRequestDataAttributes()
2525
.values(
2626
Map.ofEntries(
27+
Map.entry("age", 25),
2728
Map.entry("example_key_value", "primary_key_value"),
2829
Map.entry("name", "row_name"))))
2930
.id("primary_key_value")

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,14 +748,12 @@ public class ApiClient {
748748
put("v2.updateDeploymentGate", false);
749749
put("v2.updateDeploymentRule", false);
750750
put("v2.createIncident", false);
751-
put("v2.createIncidentImpact", false);
752751
put("v2.createIncidentIntegration", false);
753752
put("v2.createIncidentNotificationRule", false);
754753
put("v2.createIncidentNotificationTemplate", false);
755754
put("v2.createIncidentTodo", false);
756755
put("v2.createIncidentType", false);
757756
put("v2.deleteIncident", false);
758-
put("v2.deleteIncidentImpact", false);
759757
put("v2.deleteIncidentIntegration", false);
760758
put("v2.deleteIncidentNotificationRule", false);
761759
put("v2.deleteIncidentNotificationTemplate", false);
@@ -768,7 +766,6 @@ public class ApiClient {
768766
put("v2.getIncidentTodo", false);
769767
put("v2.getIncidentType", false);
770768
put("v2.listIncidentAttachments", false);
771-
put("v2.listIncidentImpacts", false);
772769
put("v2.listIncidentIntegrations", false);
773770
put("v2.listIncidentNotificationRules", false);
774771
put("v2.listIncidentNotificationTemplates", false);

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/main/java/com/datadog/api/client/v2/model/BatchUpsertRowsRequestDataAttributes.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public BatchUpsertRowsRequestDataAttributes putValuesItem(String key, Object val
4545
}
4646

4747
/**
48-
* Key-value pairs representing row data, where keys are field names from the schema.
48+
* Key-value pairs representing row data, where keys are schema field names and values match the
49+
* corresponding column types.
4950
*
5051
* @return values
5152
*/

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

src/test/resources/com/datadog/api/client/v2/api/reference_tables.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,22 +148,22 @@ Feature: Reference Tables
148148
Scenario: Upsert rows returns "Bad Request" response
149149
Given new "UpsertRows" request
150150
And request contains "id" parameter from "REPLACE.ME"
151-
And body with value {"data": [{"attributes": {"values": {"example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]}
151+
And body with value {"data": [{"attributes": {"values": {"age": 25, "example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]}
152152
When the request is sent
153153
Then the response status is 400 Bad Request
154154

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

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

0 commit comments

Comments
 (0)