From 7a4e504251956c5f2b6374b60d8a1e99a74076f4 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 28 May 2026 21:07:35 +0000 Subject: [PATCH] Regenerate client from commit b1161bc of spec repo --- .generator/schemas/v2/openapi.yaml | 28 +++++++++++++++++++ .../v2/logs-archives/CreateLogsArchive.rb | 8 ++++++ .../v2/logs-archives/UpdateLogsArchive.rb | 8 ++++++ features/v2/logs_archives.feature | 10 +++---- .../v2/models/logs_archive_attributes.rb | 26 ++++++++++++++++- .../logs_archive_create_request_attributes.rb | 26 ++++++++++++++++- 6 files changed, 99 insertions(+), 7 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4d59bfade193..b8785cdd870f 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -49957,10 +49957,24 @@ components: If it is set to "false", the tags will be deleted when the logs are sent to the archive. example: false type: boolean + lookup_attributes: + description: An array of attributes to use as lookup keys for the archive. + example: ["trace_id", "user_id"] + items: + description: A lookup attribute name. + type: string + type: array name: description: The archive name. example: Nginx Archive type: string + partitioning_attributes: + description: An array of attributes to use as partition keys for the archive. The attribute used most frequently for querying should be first. + example: ["service", "status"] + items: + description: A partition attribute name. + type: string + type: array query: description: The archive query/filter. Logs matching this query are included in the archive. example: source:nginx @@ -50016,10 +50030,24 @@ components: If it is set to "false", the tags will be deleted when the logs are sent to the archive. example: false type: boolean + lookup_attributes: + description: An array of attributes to use as lookup keys for the archive. + example: ["trace_id", "user_id"] + items: + description: A lookup attribute name. + type: string + type: array name: description: The archive name. example: Nginx Archive type: string + partitioning_attributes: + description: An array of attributes to use as partition keys for the archive. The attribute used most frequently for querying should be first. + example: ["service", "status"] + items: + description: A partition attribute name. + type: string + type: array query: description: The archive query/filter. Logs matching this query are included in the archive. example: source:nginx diff --git a/examples/v2/logs-archives/CreateLogsArchive.rb b/examples/v2/logs-archives/CreateLogsArchive.rb index 91dce9063744..4fdf176494c3 100644 --- a/examples/v2/logs-archives/CreateLogsArchive.rb +++ b/examples/v2/logs-archives/CreateLogsArchive.rb @@ -17,7 +17,15 @@ type: DatadogAPIClient::V2::LogsArchiveDestinationAzureType::AZURE, }), include_tags: false, + lookup_attributes: [ + "trace_id", + "user_id", + ], name: "Nginx Archive", + partitioning_attributes: [ + "service", + "status", + ], query: "source:nginx", rehydration_max_scan_size_in_gb: 100, rehydration_tags: [ diff --git a/examples/v2/logs-archives/UpdateLogsArchive.rb b/examples/v2/logs-archives/UpdateLogsArchive.rb index e4b68a52615b..4ba52ec83065 100644 --- a/examples/v2/logs-archives/UpdateLogsArchive.rb +++ b/examples/v2/logs-archives/UpdateLogsArchive.rb @@ -17,7 +17,15 @@ type: DatadogAPIClient::V2::LogsArchiveDestinationAzureType::AZURE, }), include_tags: false, + lookup_attributes: [ + "trace_id", + "user_id", + ], name: "Nginx Archive", + partitioning_attributes: [ + "service", + "status", + ], query: "source:nginx", rehydration_max_scan_size_in_gb: 100, rehydration_tags: [ diff --git a/features/v2/logs_archives.feature b/features/v2/logs_archives.feature index 4b58769df54e..752be13634fc 100644 --- a/features/v2/logs_archives.feature +++ b/features/v2/logs_archives.feature @@ -12,14 +12,14 @@ Feature: Logs Archives @generated @skip @team:DataDog/logs-backend @team:DataDog/logs-forwarding Scenario: Create an archive returns "Bad Request" response Given new "CreateLogsArchive" request - And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} + And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "lookup_attributes": ["trace_id", "user_id"], "name": "Nginx Archive", "partitioning_attributes": ["service", "status"], "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/logs-backend @team:DataDog/logs-forwarding Scenario: Create an archive returns "OK" response Given new "CreateLogsArchive" request - And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} + And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "lookup_attributes": ["trace_id", "user_id"], "name": "Nginx Archive", "partitioning_attributes": ["service", "status"], "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} When the request is sent Then the response status is 200 OK @@ -150,7 +150,7 @@ Feature: Logs Archives Scenario: Update an archive returns "Bad Request" response Given new "UpdateLogsArchive" request And request contains "archive_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} + And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "lookup_attributes": ["trace_id", "user_id"], "name": "Nginx Archive", "partitioning_attributes": ["service", "status"], "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} When the request is sent Then the response status is 400 Bad Request @@ -158,7 +158,7 @@ Feature: Logs Archives Scenario: Update an archive returns "Not found" response Given new "UpdateLogsArchive" request And request contains "archive_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} + And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "lookup_attributes": ["trace_id", "user_id"], "name": "Nginx Archive", "partitioning_attributes": ["service", "status"], "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} When the request is sent Then the response status is 404 Not found @@ -166,7 +166,7 @@ Feature: Logs Archives Scenario: Update an archive returns "OK" response Given new "UpdateLogsArchive" request And request contains "archive_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} + And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "lookup_attributes": ["trace_id", "user_id"], "name": "Nginx Archive", "partitioning_attributes": ["service", "status"], "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} When the request is sent Then the response status is 200 OK diff --git a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb index fae8383c62db..d43229c9bf33 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -31,9 +31,15 @@ class LogsArchiveAttributes # If it is set to "false", the tags will be deleted when the logs are sent to the archive. attr_accessor :include_tags + # An array of attributes to use as lookup keys for the archive. + attr_accessor :lookup_attributes + # The archive name. attr_reader :name + # An array of attributes to use as partition keys for the archive. The attribute used most frequently for querying should be first. + attr_accessor :partitioning_attributes + # The archive query/filter. Logs matching this query are included in the archive. attr_reader :query @@ -55,7 +61,9 @@ def self.attribute_map :'compression_method' => :'compression_method', :'destination' => :'destination', :'include_tags' => :'include_tags', + :'lookup_attributes' => :'lookup_attributes', :'name' => :'name', + :'partitioning_attributes' => :'partitioning_attributes', :'query' => :'query', :'rehydration_max_scan_size_in_gb' => :'rehydration_max_scan_size_in_gb', :'rehydration_tags' => :'rehydration_tags', @@ -70,7 +78,9 @@ def self.openapi_types :'compression_method' => :'LogsArchiveAttributesCompressionMethod', :'destination' => :'LogsArchiveDestination', :'include_tags' => :'Boolean', + :'lookup_attributes' => :'Array', :'name' => :'String', + :'partitioning_attributes' => :'Array', :'query' => :'String', :'rehydration_max_scan_size_in_gb' => :'Integer', :'rehydration_tags' => :'Array', @@ -117,10 +127,22 @@ def initialize(attributes = {}) self.include_tags = attributes[:'include_tags'] end + if attributes.key?(:'lookup_attributes') + if (value = attributes[:'lookup_attributes']).is_a?(Array) + self.lookup_attributes = value + end + end + if attributes.key?(:'name') self.name = attributes[:'name'] end + if attributes.key?(:'partitioning_attributes') + if (value = attributes[:'partitioning_attributes']).is_a?(Array) + self.partitioning_attributes = value + end + end + if attributes.key?(:'query') self.query = attributes[:'query'] end @@ -198,7 +220,9 @@ def ==(o) compression_method == o.compression_method && destination == o.destination && include_tags == o.include_tags && + lookup_attributes == o.lookup_attributes && name == o.name && + partitioning_attributes == o.partitioning_attributes && query == o.query && rehydration_max_scan_size_in_gb == o.rehydration_max_scan_size_in_gb && rehydration_tags == o.rehydration_tags && @@ -210,7 +234,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [compression_method, destination, include_tags, name, query, rehydration_max_scan_size_in_gb, rehydration_tags, state, additional_properties].hash + [compression_method, destination, include_tags, lookup_attributes, name, partitioning_attributes, query, rehydration_max_scan_size_in_gb, rehydration_tags, state, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb index 4cbd5ae4ddaa..477fee559acf 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb @@ -31,9 +31,15 @@ class LogsArchiveCreateRequestAttributes # If it is set to "false", the tags will be deleted when the logs are sent to the archive. attr_accessor :include_tags + # An array of attributes to use as lookup keys for the archive. + attr_accessor :lookup_attributes + # The archive name. attr_reader :name + # An array of attributes to use as partition keys for the archive. The attribute used most frequently for querying should be first. + attr_accessor :partitioning_attributes + # The archive query/filter. Logs matching this query are included in the archive. attr_reader :query @@ -52,7 +58,9 @@ def self.attribute_map :'compression_method' => :'compression_method', :'destination' => :'destination', :'include_tags' => :'include_tags', + :'lookup_attributes' => :'lookup_attributes', :'name' => :'name', + :'partitioning_attributes' => :'partitioning_attributes', :'query' => :'query', :'rehydration_max_scan_size_in_gb' => :'rehydration_max_scan_size_in_gb', :'rehydration_tags' => :'rehydration_tags' @@ -66,7 +74,9 @@ def self.openapi_types :'compression_method' => :'LogsArchiveAttributesCompressionMethod', :'destination' => :'LogsArchiveCreateRequestDestination', :'include_tags' => :'Boolean', + :'lookup_attributes' => :'Array', :'name' => :'String', + :'partitioning_attributes' => :'Array', :'query' => :'String', :'rehydration_max_scan_size_in_gb' => :'Integer', :'rehydration_tags' => :'Array' @@ -111,10 +121,22 @@ def initialize(attributes = {}) self.include_tags = attributes[:'include_tags'] end + if attributes.key?(:'lookup_attributes') + if (value = attributes[:'lookup_attributes']).is_a?(Array) + self.lookup_attributes = value + end + end + if attributes.key?(:'name') self.name = attributes[:'name'] end + if attributes.key?(:'partitioning_attributes') + if (value = attributes[:'partitioning_attributes']).is_a?(Array) + self.partitioning_attributes = value + end + end + if attributes.key?(:'query') self.query = attributes[:'query'] end @@ -199,7 +221,9 @@ def ==(o) compression_method == o.compression_method && destination == o.destination && include_tags == o.include_tags && + lookup_attributes == o.lookup_attributes && name == o.name && + partitioning_attributes == o.partitioning_attributes && query == o.query && rehydration_max_scan_size_in_gb == o.rehydration_max_scan_size_in_gb && rehydration_tags == o.rehydration_tags && @@ -210,7 +234,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [compression_method, destination, include_tags, name, query, rehydration_max_scan_size_in_gb, rehydration_tags, additional_properties].hash + [compression_method, destination, include_tags, lookup_attributes, name, partitioning_attributes, query, rehydration_max_scan_size_in_gb, rehydration_tags, additional_properties].hash end end end