Skip to content

Commit 26d7528

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7edd647 of spec repo
1 parent ec82e91 commit 26d7528

File tree

75 files changed

+5963
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+5963
-4
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 1311 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-10-01T20:51:23.877Z"
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Reference Tables/Create reference table without upload or access details returns \"Bad Request\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "b227430e09eacae9d1cd62ee343d2443",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 371,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 578,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"Test reference table without upload or access details\",\"schema\":{\"fields\":[{\"name\":\"id\",\"type\":\"STRING\"}],\"primary_keys\":[\"id\"]},\"source\":\"LOCAL_FILE\",\"table_name\":\"test_invalid_table_Test-Create_reference_table_without_upload_or_access_details_returns_Bad_Request_response-1759351883\",\"tags\":[\"test_tag\"]},\"type\":\"reference_table\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/reference-tables/tables"
39+
},
40+
"response": {
41+
"bodySize": 107,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 107,
45+
"text": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"upload_id is required for tables with 'LOCAL_FILE' source\"}]}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 670,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 400,
58+
"statusText": "Bad Request"
59+
},
60+
"startedDateTime": "2025-10-01T20:51:24.507Z",
61+
"time": 129
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}

features/v1/logs_pipelines.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ Feature: Logs Pipelines
2424
@generated @skip @team:DataDog/event-platform-experience
2525
Scenario: Create a pipeline returns "Bad Request" response
2626
Given new "CreateLogsPipeline" request
27-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
27+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar", "support_rules": "rule_name_1 foo\nrule_name_2 bar"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
2828
When the request is sent
2929
Then the response status is 400 Bad Request
3030

3131
@generated @skip @team:DataDog/event-platform-experience
3232
Scenario: Create a pipeline returns "OK" response
3333
Given new "CreateLogsPipeline" request
34-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
34+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar", "support_rules": "rule_name_1 foo\nrule_name_2 bar"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
3535
When the request is sent
3636
Then the response status is 200 OK
3737

@@ -128,15 +128,15 @@ Feature: Logs Pipelines
128128
Scenario: Update a pipeline returns "Bad Request" response
129129
Given new "UpdateLogsPipeline" request
130130
And request contains "pipeline_id" parameter from "REPLACE.ME"
131-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
131+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar", "support_rules": "rule_name_1 foo\nrule_name_2 bar"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
132132
When the request is sent
133133
Then the response status is 400 Bad Request
134134

135135
@generated @skip @team:DataDog/event-platform-experience
136136
Scenario: Update a pipeline returns "OK" response
137137
Given new "UpdateLogsPipeline" request
138138
And request contains "pipeline_id" parameter from "REPLACE.ME"
139-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
139+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar", "support_rules": "rule_name_1 foo\nrule_name_2 bar"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
140140
When the request is sent
141141
Then the response status is 200 OK
142142

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
@endpoint(reference-tables) @endpoint(reference-tables-v2)
2+
Feature: Reference Tables
3+
Auto-generated tag Reference Tables
4+
5+
Background:
6+
Given a valid "apiKeyAuth" key in the system
7+
And a valid "appKeyAuth" key in the system
8+
And an instance of "ReferenceTables" API
9+
10+
@generated @skip @team:DataDog/redapl-experiences
11+
Scenario: Create reference table returns "Bad Request" response
12+
Given new "CreateReferenceTable" request
13+
And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "name", "type": "STRING"}, {"name": "account_id", "type": "STRING"}], "primary_keys": ["account_id"]}, "source": "S3", "table_name": "test_reference_table", "tags": ["test_tag"]}, "type": "reference_table"}}
14+
When the request is sent
15+
Then the response status is 400 Bad Request
16+
17+
@generated @skip @team:DataDog/redapl-experiences
18+
Scenario: Create reference table returns "Created" response
19+
Given new "CreateReferenceTable" request
20+
And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "name", "type": "STRING"}, {"name": "account_id", "type": "STRING"}], "primary_keys": ["account_id"]}, "source": "S3", "table_name": "test_reference_table", "tags": ["test_tag"]}, "type": "reference_table"}}
21+
When the request is sent
22+
Then the response status is 201 Created
23+
24+
@generated @skip @team:DataDog/redapl-experiences
25+
Scenario: Create reference table upload returns "Bad Request" response
26+
Given new "CreateReferenceTableUpload" request
27+
And body with value {"data": {"attributes": {"headers": [""], "part_count": 3, "part_size": 10000000, "table_name": ""}, "type": "upload"}}
28+
When the request is sent
29+
Then the response status is 400 Bad Request
30+
31+
@skip @team:DataDog/redapl-experiences
32+
Scenario: Create reference table upload returns "Created" response
33+
Given new "CreateReferenceTableUpload" request
34+
And body with value {"data": {"attributes": {"headers": ["id", "name", "value"], "table_name": "test_upload_table_{{ unique }}", "part_count": 1, "part_size": 1024}, "type": "upload"}}
35+
When the request is sent
36+
Then the response status is 201 Created
37+
And the response "data.type" is equal to "upload"
38+
And the response "data.attributes.table_name" is equal to "test_upload_table_{{ unique }}"
39+
40+
@skip @team:DataDog/redapl-experiences
41+
Scenario: Create reference table with upload returns "Created" response
42+
Given new "CreateReferenceTable" request
43+
And body with value {"data": {"attributes": {"description": "Test reference table created via BDD test {{ unique }}", "source": "LOCAL_FILE", "file_metadata": {"upload_id": "test-upload-id-{{ unique }}"}, "schema": {"fields": [{"name": "id", "type": "STRING"}, {"name": "name", "type": "STRING"}, {"name": "value", "type": "INT32"}], "primary_keys": ["id"]}, "table_name": "test_reference_table_{{ unique }}", "tags": ["test_tag"]}, "type": "reference_table"}}
44+
When the request is sent
45+
Then the response status is 201 Created
46+
And the response "data.type" is equal to "reference_table"
47+
And the response "data.attributes.table_name" is equal to "test_reference_table_{{ unique }}"
48+
49+
@team:DataDog/redapl-experiences
50+
Scenario: Create reference table without upload or access details returns "Bad Request" response
51+
Given new "CreateReferenceTable" request
52+
And body with value {"data": {"attributes": {"description": "Test reference table without upload or access details", "source": "LOCAL_FILE", "schema": {"fields": [{"name": "id", "type": "STRING"}], "primary_keys": ["id"]}, "table_name": "test_invalid_table_{{ unique }}", "tags": ["test_tag"]}, "type": "reference_table"}}
53+
When the request is sent
54+
Then the response status is 400 Bad Request
55+
56+
@generated @skip @team:DataDog/redapl-experiences
57+
Scenario: Delete table returns "Not Found" response
58+
Given new "DeleteTable" request
59+
And request contains "id" parameter from "REPLACE.ME"
60+
When the request is sent
61+
Then the response status is 404 Not Found
62+
63+
@generated @skip @team:DataDog/redapl-experiences
64+
Scenario: Delete table returns "OK" response
65+
Given new "DeleteTable" request
66+
And request contains "id" parameter from "REPLACE.ME"
67+
When the request is sent
68+
Then the response status is 200 OK
69+
70+
@generated @skip @team:DataDog/redapl-experiences
71+
Scenario: Get rows by id returns "Not Found" response
72+
Given new "GetRowsByID" request
73+
And request contains "row_id" parameter from "REPLACE.ME"
74+
And request contains "id" parameter from "REPLACE.ME"
75+
When the request is sent
76+
Then the response status is 404 Not Found
77+
78+
@generated @skip @team:DataDog/redapl-experiences
79+
Scenario: Get rows by id returns "Some or all requested rows were found." response
80+
Given new "GetRowsByID" request
81+
And request contains "row_id" parameter from "REPLACE.ME"
82+
And request contains "id" parameter from "REPLACE.ME"
83+
When the request is sent
84+
Then the response status is 200 Some or all requested rows were found.
85+
86+
@generated @skip @team:DataDog/redapl-experiences
87+
Scenario: Get table returns "Not Found" response
88+
Given new "GetTable" request
89+
And request contains "id" parameter from "REPLACE.ME"
90+
When the request is sent
91+
Then the response status is 404 Not Found
92+
93+
@generated @skip @team:DataDog/redapl-experiences
94+
Scenario: Get table returns "OK" response
95+
Given new "GetTable" request
96+
And request contains "id" parameter from "REPLACE.ME"
97+
When the request is sent
98+
Then the response status is 200 OK
99+
100+
@skip @team:DataDog/redapl-experiences
101+
Scenario: List tables returns "OK" response
102+
Given new "ListTables" request
103+
When the request is sent
104+
Then the response status is 200 OK
105+
And the response "data" has length 1
106+
107+
@generated @skip @team:DataDog/redapl-experiences
108+
Scenario: Update reference table returns "Bad Request" response
109+
Given new "UpdateReferenceTable" request
110+
And request contains "id" parameter from "REPLACE.ME"
111+
And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "id", "type": "INT32"}, {"name": "name", "type": "STRING"}], "primary_keys": ["id"]}, "sync_enabled": false, "tags": ["test_tag"]}, "id": "00000000-0000-0000-0000-000000000000", "type": "reference_table"}}
112+
When the request is sent
113+
Then the response status is 400 Bad Request
114+
115+
@generated @skip @team:DataDog/redapl-experiences
116+
Scenario: Update reference table returns "OK" response
117+
Given new "UpdateReferenceTable" request
118+
And request contains "id" parameter from "REPLACE.ME"
119+
And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "id", "type": "INT32"}, {"name": "name", "type": "STRING"}], "primary_keys": ["id"]}, "sync_enabled": false, "tags": ["test_tag"]}, "id": "00000000-0000-0000-0000-000000000000", "type": "reference_table"}}
120+
When the request is sent
121+
Then the response status is 200 OK

features/v2/undo.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2641,6 +2641,55 @@
26412641
"type": "idempotent"
26422642
}
26432643
},
2644+
"ListTables": {
2645+
"tag": "Reference Tables",
2646+
"undo": {
2647+
"type": "safe"
2648+
}
2649+
},
2650+
"CreateReferenceTable": {
2651+
"tag": "Reference Tables",
2652+
"undo": {
2653+
"operationId": "DeleteTable",
2654+
"parameters": [
2655+
{
2656+
"name": "id",
2657+
"source": "data.id"
2658+
}
2659+
],
2660+
"type": "unsafe"
2661+
}
2662+
},
2663+
"DeleteTable": {
2664+
"tag": "Reference Tables",
2665+
"undo": {
2666+
"type": "idempotent"
2667+
}
2668+
},
2669+
"GetTable": {
2670+
"tag": "Reference Tables",
2671+
"undo": {
2672+
"type": "safe"
2673+
}
2674+
},
2675+
"UpdateReferenceTable": {
2676+
"tag": "Reference Tables",
2677+
"undo": {
2678+
"type": "idempotent"
2679+
}
2680+
},
2681+
"GetRowsByID": {
2682+
"tag": "Reference Tables",
2683+
"undo": {
2684+
"type": "safe"
2685+
}
2686+
},
2687+
"CreateReferenceTableUpload": {
2688+
"tag": "Reference Tables",
2689+
"undo": {
2690+
"type": "idempotent"
2691+
}
2692+
},
26442693
"ListApplicationSecurityWAFCustomRules": {
26452694
"tag": "Application Security",
26462695
"undo": {

packages/datadog-api-client/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ apiInstance
410410
| PagerDuty Integration | @datadog/datadog-api-client-pager-duty-integration | [README.md](../../services/pager-duty-integration/README.md) |
411411
| Powerpack | @datadog/datadog-api-client-powerpack | [README.md](../../services/powerpack/README.md) |
412412
| Processes | @datadog/datadog-api-client-processes | [README.md](../../services/processes/README.md) |
413+
| Reference Tables | @datadog/datadog-api-client-reference-tables | [README.md](../../services/reference-tables/README.md) |
413414
| Restriction Policies | @datadog/datadog-api-client-restriction-policies | [README.md](../../services/restriction-policies/README.md) |
414415
| Roles | @datadog/datadog-api-client-roles | [README.md](../../services/roles/README.md) |
415416
| RUM | @datadog/datadog-api-client-rum | [README.md](../../services/rum/README.md) |

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7248,6 +7248,91 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
72487248
},
72497249
operationResponseType: "ProcessSummariesResponse",
72507250
},
7251+
"ReferenceTablesApi.V2.ListTables": {
7252+
limit: {
7253+
type: "number",
7254+
format: "int64",
7255+
},
7256+
offset: {
7257+
type: "number",
7258+
format: "int64",
7259+
},
7260+
sort: {
7261+
type: "ReferenceTableSortType",
7262+
format: "",
7263+
},
7264+
filterSource: {
7265+
type: "ReferenceTableSourceType",
7266+
format: "",
7267+
},
7268+
filterStatus: {
7269+
type: "string",
7270+
format: "",
7271+
},
7272+
filterTags: {
7273+
type: "string",
7274+
format: "",
7275+
},
7276+
filterTableNameExact: {
7277+
type: "string",
7278+
format: "",
7279+
},
7280+
filterTableNamePrefix: {
7281+
type: "string",
7282+
format: "",
7283+
},
7284+
operationResponseType: "TableResultV2Array",
7285+
},
7286+
"ReferenceTablesApi.V2.CreateReferenceTable": {
7287+
body: {
7288+
type: "CreateTableRequest",
7289+
format: "",
7290+
},
7291+
operationResponseType: "TableResultV2",
7292+
},
7293+
"ReferenceTablesApi.V2.GetTable": {
7294+
id: {
7295+
type: "string",
7296+
format: "",
7297+
},
7298+
operationResponseType: "TableResultV2",
7299+
},
7300+
"ReferenceTablesApi.V2.DeleteTable": {
7301+
id: {
7302+
type: "string",
7303+
format: "",
7304+
},
7305+
operationResponseType: "{}",
7306+
},
7307+
"ReferenceTablesApi.V2.UpdateReferenceTable": {
7308+
id: {
7309+
type: "string",
7310+
format: "",
7311+
},
7312+
body: {
7313+
type: "PatchTableRequest",
7314+
format: "",
7315+
},
7316+
operationResponseType: "{}",
7317+
},
7318+
"ReferenceTablesApi.V2.GetRowsByID": {
7319+
rowId: {
7320+
type: "Array<string>",
7321+
format: "",
7322+
},
7323+
id: {
7324+
type: "string",
7325+
format: "",
7326+
},
7327+
operationResponseType: "TableRowResourceArray",
7328+
},
7329+
"ReferenceTablesApi.V2.CreateReferenceTableUpload": {
7330+
body: {
7331+
type: "CreateUploadRequest",
7332+
format: "",
7333+
},
7334+
operationResponseType: "CreateUploadResponse",
7335+
},
72517336
"ApplicationSecurityApi.V2.ListApplicationSecurityWAFCustomRules": {
72527337
operationResponseType: "ApplicationSecurityWafCustomRuleListResponse",
72537338
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

0 commit comments

Comments
 (0)