Skip to content

Commit f7d24a3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 3d20c72 of spec repo
1 parent 0fd3833 commit f7d24a3

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6971,10 +6971,15 @@ components:
69716971
properties:
69726972
values:
69736973
additionalProperties:
6974-
x-required-field: true
6975-
description: Key-value pairs representing row data, where keys are field
6976-
names from the schema.
6974+
oneOf:
6975+
- type: string
6976+
- format: int32
6977+
maximum: 2147483647
6978+
type: integer
6979+
description: Key-value pairs representing row data, where keys are schema
6980+
field names and values match the corresponding column types.
69776981
example:
6982+
age: 25
69786983
example_key_value: primary_key_value
69796984
name: row_name
69806985
type: object
@@ -67941,6 +67946,7 @@ paths:
6794167946
- us3.datadoghq.com
6794267947
- us5.datadoghq.com
6794367948
- ap1.datadoghq.com
67949+
- ap2.datadoghq.com
6794467950
- datadoghq.eu
6794567951
- ddog-gov.com
6794667952
subdomain:

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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ public class ApiClient {
300300
"us3.datadoghq.com",
301301
"us5.datadoghq.com",
302302
"ap1.datadoghq.com",
303+
"ap2.datadoghq.com",
303304
"datadoghq.eu",
304305
"ddog-gov.com"))));
305306
put(

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/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)