Skip to content

Commit 05f954a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1b47950 of spec repo
1 parent 23e952c commit 05f954a

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 2 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
6974+
oneOf:
6975+
- type: string
6976+
- format: int32
6977+
maximum: 2147483647
6978+
type: integer
69756979
description: Key-value pairs representing row data, where keys are field
6976-
names from the schema.
6980+
names from the schema, and values match the table's 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.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
DatadogAPIClient::V2::BatchUpsertRowsRequestData.new({
99
attributes: DatadogAPIClient::V2::BatchUpsertRowsRequestDataAttributes.new({
1010
values: {
11-
example_key_value: "primary_key_value", name: "row_name",
11+
age: 25, example_key_value: "primary_key_value", name: "row_name",
1212
},
1313
}),
1414
id: "primary_key_value",

features/v2/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

lib/datadog_api_client/configuration.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ def operation_server_settings
627627
"us3.datadoghq.com",
628628
"us5.datadoghq.com",
629629
"ap1.datadoghq.com",
630+
"ap2.datadoghq.com",
630631
"datadoghq.eu",
631632
"ddog-gov.com"
632633
]

lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
2121
class BatchUpsertRowsRequestDataAttributes
2222
include BaseGenericModel
2323

24-
# Key-value pairs representing row data, where keys are field names from the schema.
24+
# Key-value pairs representing row data, where keys are field names from the schema, and values match the table's column types.
2525
attr_reader :values
2626

2727
attr_accessor :additional_properties

0 commit comments

Comments
 (0)