Skip to content

Commit 5a0b257

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 1dc1417 of spec repo (DataDog#3339)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 36c7ced commit 5a0b257

13 files changed

Lines changed: 584 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49873,6 +49873,51 @@ components:
4987349873
example: "/api/v2/catalog/relation?filter[from_ref]=service:service-catalog&include=entity&page[limit]=2&page[offset]=0"
4987449874
type: string
4987549875
type: object
49876+
ListRowsResponse:
49877+
description: Paginated list of reference table rows.
49878+
example:
49879+
data:
49880+
- attributes:
49881+
values:
49882+
category: tor
49883+
intention: suspicious
49884+
ip_address: 102.130.113.9
49885+
id: 102.130.113.9
49886+
type: row
49887+
links:
49888+
first: "/api/v2/reference-tables/tables/00000000-0000-0000-0000-000000000000/rows/list?page%5Blimit%5D=100"
49889+
self: "/api/v2/reference-tables/tables/00000000-0000-0000-0000-000000000000/rows/list?page%5Bcontinuation_token%5D=eyJzaWQiOjEyMzQ1LCJwayI6ImV4YW1wbGVfcGsifQ%3D%3D&page%5Blimit%5D=100"
49890+
properties:
49891+
data:
49892+
description: The rows.
49893+
items:
49894+
$ref: "#/components/schemas/TableRowResourceData"
49895+
type: array
49896+
links:
49897+
$ref: "#/components/schemas/ListRowsResponseLinks"
49898+
required:
49899+
- data
49900+
- links
49901+
type: object
49902+
ListRowsResponseLinks:
49903+
description: Pagination links for the list rows response.
49904+
properties:
49905+
first:
49906+
description: Link to the first page of results.
49907+
example: "/api/v2/reference-tables/tables/00000000-0000-0000-0000-000000000000/rows/list?page%5Blimit%5D=100"
49908+
type: string
49909+
next:
49910+
description: Link to the next page of results. Only present when more rows are available.
49911+
example: "/api/v2/reference-tables/tables/00000000-0000-0000-0000-000000000000/rows/list?page%5Bcontinuation_token%5D=eyJzaWQiOjEyMzQ1LCJwayI6ImV4YW1wbGVfcGsifQ%3D%3D&page%5Blimit%5D=100"
49912+
type: string
49913+
self:
49914+
description: Link to the current page of results.
49915+
example: "/api/v2/reference-tables/tables/00000000-0000-0000-0000-000000000000/rows/list?page%5Bcontinuation_token%5D=eyJzaWQiOjEyMzQ1LCJwayI6ImV4YW1wbGVfcGsifQ%3D%3D&page%5Blimit%5D=100"
49916+
type: string
49917+
required:
49918+
- self
49919+
- first
49920+
type: object
4987649921
ListRulesResponse:
4987749922
description: Scorecard rules response.
4987849923
properties:
@@ -144171,6 +144216,73 @@ paths:
144171144216
summary: Upsert rows
144172144217
tags:
144173144218
- Reference Tables
144219+
/api/v2/reference-tables/tables/{id}/rows/list:
144220+
get:
144221+
description: List all rows in a reference table using cursor-based pagination. Pass the `page[continuation_token]` from the previous response to fetch the next page on the same consistent snapshot. Returns 400 for tables with more than 10,000,000 rows.
144222+
operationId: ListReferenceTableRows
144223+
parameters:
144224+
- description: Unique identifier of the reference table to list rows from.
144225+
example: "00000000-0000-0000-0000-000000000000"
144226+
in: path
144227+
name: id
144228+
required: true
144229+
schema:
144230+
type: string
144231+
- description: Number of rows to return per page. Defaults to 100, maximum is 1000.
144232+
example: 100
144233+
in: query
144234+
name: page[limit]
144235+
required: false
144236+
schema:
144237+
default: 100
144238+
format: int64
144239+
maximum: 1000
144240+
minimum: 1
144241+
type: integer
144242+
- description: Opaque cursor from the previous response's next link. Pass this to retrieve the next page on the same consistent snapshot.
144243+
example: "eyJzaWQiOjEyMzQ1LCJwayI6ImV4YW1wbGVfcGsifQ=="
144244+
in: query
144245+
name: page[continuation_token]
144246+
required: false
144247+
schema:
144248+
type: string
144249+
responses:
144250+
"200":
144251+
content:
144252+
application/json:
144253+
examples:
144254+
default:
144255+
value:
144256+
data:
144257+
- attributes:
144258+
values:
144259+
category: tor
144260+
intention: suspicious
144261+
ip_address: 102.130.113.9
144262+
id: 102.130.113.9
144263+
type: row
144264+
links:
144265+
first: "/api/v2/reference-tables/tables/00000000-0000-0000-0000-000000000000/rows/list?page%5Blimit%5D=100"
144266+
next: "/api/v2/reference-tables/tables/00000000-0000-0000-0000-000000000000/rows/list?page%5Bcontinuation_token%5D=eyJzaWQiOjY5NzA0ODkwNDE4ODA3MTAzOTgsInBrIjoiMTAyLjEzMC4xMjcuMTE3In0%3D&page%5Blimit%5D=100"
144267+
self: "/api/v2/reference-tables/tables/00000000-0000-0000-0000-000000000000/rows/list?page%5Bcontinuation_token%5D=eyJzaWQiOjEyMzQ1LCJwayI6ImV4YW1wbGVfcGsifQ%3D%3D&page%5Blimit%5D=100"
144268+
schema:
144269+
$ref: "#/components/schemas/ListRowsResponse"
144270+
description: OK
144271+
"400":
144272+
$ref: "#/components/responses/BadRequestResponse"
144273+
"403":
144274+
$ref: "#/components/responses/ForbiddenResponse"
144275+
"404":
144276+
$ref: "#/components/responses/NotFoundResponse"
144277+
"429":
144278+
$ref: "#/components/responses/TooManyRequestsResponse"
144279+
security:
144280+
- apiKeyAuth: []
144281+
appKeyAuth: []
144282+
- AuthZ: []
144283+
summary: List rows
144284+
tags:
144285+
- Reference Tables
144174144286
/api/v2/reference-tables/uploads:
144175144287
post:
144176144288
description: Create a reference table upload for bulk data ingestion
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-05-15T19:32:21.293Z

cassettes/features/v2/reference_tables/List-reference-table-rows-returns-Bad-Request-response-for-invalid-limit.yml

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-05-15T19:32:23.068Z

cassettes/features/v2/reference_tables/List-reference-table-rows-returns-Not-Found-response.yml

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# List rows returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new
5+
p api_instance.list_reference_table_rows("id")

features/scenarios_model_mapping.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4354,6 +4354,11 @@
43544354
"id" => "String",
43554355
"body" => "BatchUpsertRowsRequestArray",
43564356
},
4357+
"v2.ListReferenceTableRows" => {
4358+
"id" => "String",
4359+
"page_limit" => "Integer",
4360+
"page_continuation_token" => "String",
4361+
},
43574362
"v2.CreateReferenceTableUpload" => {
43584363
"body" => "CreateUploadRequest",
43594364
},

features/v2/reference_tables.feature

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,41 @@ Feature: Reference Tables
142142
When the request is sent
143143
Then the response status is 200 OK
144144

145+
@team:DataDog/redapl-experiences
146+
Scenario: List reference table rows returns "Bad Request" response for invalid limit
147+
Given new "ListReferenceTableRows" request
148+
And request contains "id" parameter with value "not-a-valid-uuid"
149+
When the request is sent
150+
Then the response status is 400 Bad Request
151+
152+
@team:DataDog/redapl-experiences
153+
Scenario: List reference table rows returns "Not Found" response
154+
Given new "ListReferenceTableRows" request
155+
And request contains "id" parameter with value "00000000-0000-0000-0000-000000000000"
156+
When the request is sent
157+
Then the response status is 404 Not Found
158+
159+
@generated @skip @team:DataDog/redapl-experiences
160+
Scenario: List rows returns "Bad Request" response
161+
Given new "ListReferenceTableRows" request
162+
And request contains "id" parameter from "REPLACE.ME"
163+
When the request is sent
164+
Then the response status is 400 Bad Request
165+
166+
@generated @skip @team:DataDog/redapl-experiences
167+
Scenario: List rows returns "Not Found" response
168+
Given new "ListReferenceTableRows" request
169+
And request contains "id" parameter from "REPLACE.ME"
170+
When the request is sent
171+
Then the response status is 404 Not Found
172+
173+
@generated @skip @team:DataDog/redapl-experiences
174+
Scenario: List rows returns "OK" response
175+
Given new "ListReferenceTableRows" request
176+
And request contains "id" parameter from "REPLACE.ME"
177+
When the request is sent
178+
Then the response status is 200 OK
179+
145180
@skip @team:DataDog/redapl-experiences
146181
Scenario: List tables returns "OK" response
147182
Given new "ListTables" request

features/v2/undo.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5494,6 +5494,12 @@
54945494
"type": "unsafe"
54955495
}
54965496
},
5497+
"ListReferenceTableRows": {
5498+
"tag": "Reference Tables",
5499+
"undo": {
5500+
"type": "safe"
5501+
}
5502+
},
54975503
"CreateReferenceTableUpload": {
54985504
"tag": "Reference Tables",
54995505
"undo": {

lib/datadog_api_client/inflector.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3825,6 +3825,8 @@ def overrides
38253825
"v2.list_powerpacks_response" => "ListPowerpacksResponse",
38263826
"v2.list_relation_catalog_response" => "ListRelationCatalogResponse",
38273827
"v2.list_relation_catalog_response_links" => "ListRelationCatalogResponseLinks",
3828+
"v2.list_rows_response" => "ListRowsResponse",
3829+
"v2.list_rows_response_links" => "ListRowsResponseLinks",
38283830
"v2.list_rules_response" => "ListRulesResponse",
38293831
"v2.list_rules_response_data_item" => "ListRulesResponseDataItem",
38303832
"v2.list_rules_response_links" => "ListRulesResponseLinks",

0 commit comments

Comments
 (0)