Skip to content

Commit 41048b8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d60ed73 of spec repo
1 parent 3149b18 commit 41048b8

File tree

73 files changed

+8650
-0
lines changed

Some content is hidden

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

73 files changed

+8650
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 1297 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-10-01T20:51:23.877Z

cassettes/features/v2/reference_tables/Create-reference-table-without-upload-or-access-details-returns-Bad-Request-response.yml

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Create reference table returns "Created" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new
5+
6+
body = DatadogAPIClient::V2::CreateTableRequest.new({
7+
data: DatadogAPIClient::V2::CreateTableRequestData.new({
8+
attributes: DatadogAPIClient::V2::CreateTableRequestDataAttributes.new({
9+
description: "this is a cloud table generated via a cloud bucket sync",
10+
file_metadata: DatadogAPIClient::V2::CreateTableRequestDataAttributesFileMetadataCloudStorage.new({
11+
access_details: DatadogAPIClient::V2::CreateTableRequestDataAttributesFileMetadataOneOfAccessDetails.new({
12+
aws_detail: DatadogAPIClient::V2::CreateTableRequestDataAttributesFileMetadataOneOfAccessDetailsAwsDetail.new({
13+
aws_account_id: "test-account-id",
14+
aws_bucket_name: "test-bucket",
15+
file_path: "test_rt.csv",
16+
}),
17+
}),
18+
sync_enabled: true,
19+
}),
20+
schema: DatadogAPIClient::V2::CreateTableRequestDataAttributesSchema.new({
21+
fields: [
22+
DatadogAPIClient::V2::CreateTableRequestDataAttributesSchemaFieldsItems.new({
23+
name: "name",
24+
type: DatadogAPIClient::V2::ReferenceTableSchemaFieldType::STRING,
25+
}),
26+
DatadogAPIClient::V2::CreateTableRequestDataAttributesSchemaFieldsItems.new({
27+
name: "account_id",
28+
type: DatadogAPIClient::V2::ReferenceTableSchemaFieldType::STRING,
29+
}),
30+
],
31+
primary_keys: [
32+
"account_id",
33+
],
34+
}),
35+
source: DatadogAPIClient::V2::ReferenceTableCreateSourceType::S3,
36+
table_name: "test_reference_table",
37+
tags: [
38+
"test_tag",
39+
],
40+
}),
41+
type: DatadogAPIClient::V2::CreateTableRequestDataType::REFERENCE_TABLE,
42+
}),
43+
})
44+
p api_instance.create_reference_table(body)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Create reference table upload returns "Created" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new
5+
6+
body = DatadogAPIClient::V2::CreateUploadRequest.new({
7+
data: DatadogAPIClient::V2::CreateUploadRequestData.new({
8+
attributes: DatadogAPIClient::V2::CreateUploadRequestDataAttributes.new({
9+
headers: [
10+
"id",
11+
"name",
12+
"value",
13+
],
14+
table_name: "test_upload_table_Example-Reference-Table",
15+
part_count: 1,
16+
part_size: 1024,
17+
}),
18+
type: DatadogAPIClient::V2::CreateUploadRequestDataType::UPLOAD,
19+
}),
20+
})
21+
p api_instance.create_reference_table_upload(body)
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Create reference table with upload returns "Created" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new
5+
6+
body = DatadogAPIClient::V2::CreateTableRequest.new({
7+
data: DatadogAPIClient::V2::CreateTableRequestData.new({
8+
attributes: DatadogAPIClient::V2::CreateTableRequestDataAttributes.new({
9+
description: "Test reference table created via BDD test Example-Reference-Table",
10+
source: DatadogAPIClient::V2::ReferenceTableCreateSourceType::LOCAL_FILE,
11+
file_metadata: DatadogAPIClient::V2::CreateTableRequestDataAttributesFileMetadataLocalFile.new({
12+
upload_id: "test-upload-id-Example-Reference-Table",
13+
}),
14+
schema: DatadogAPIClient::V2::CreateTableRequestDataAttributesSchema.new({
15+
fields: [
16+
DatadogAPIClient::V2::CreateTableRequestDataAttributesSchemaFieldsItems.new({
17+
name: "id",
18+
type: DatadogAPIClient::V2::ReferenceTableSchemaFieldType::STRING,
19+
}),
20+
DatadogAPIClient::V2::CreateTableRequestDataAttributesSchemaFieldsItems.new({
21+
name: "name",
22+
type: DatadogAPIClient::V2::ReferenceTableSchemaFieldType::STRING,
23+
}),
24+
DatadogAPIClient::V2::CreateTableRequestDataAttributesSchemaFieldsItems.new({
25+
name: "value",
26+
type: DatadogAPIClient::V2::ReferenceTableSchemaFieldType::INT32,
27+
}),
28+
],
29+
primary_keys: [
30+
"id",
31+
],
32+
}),
33+
table_name: "test_reference_table_Example-Reference-Table",
34+
tags: [
35+
"test_tag",
36+
],
37+
}),
38+
type: DatadogAPIClient::V2::CreateTableRequestDataType::REFERENCE_TABLE,
39+
}),
40+
})
41+
p api_instance.create_reference_table(body)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete table returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new
5+
p api_instance.delete_table("id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get rows by id returns "Some or all requested rows were found." response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new
5+
p api_instance.get_rows_by_id("id", [])
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get table returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new
5+
p api_instance.get_table("id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# List tables returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new
5+
p api_instance.list_tables()

0 commit comments

Comments
 (0)