From 50e159929742072c800550a85b82c86ca199e670 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 28 Jul 2026 18:05:53 +0000 Subject: [PATCH] Regenerate client from commit ad5a583 of spec repo --- .generator/schemas/v2/openapi.yaml | 20 ++++++----- .../com/datadog/api/client/ApiClient.java | 2 -- .../datadog/api/client/v2/api/DdsqlApi.java | 34 ------------------- .../v2/model/DdsqlTabularQueryColumn.java | 16 +++++++-- .../api/client/v2/api/org_connections.feature | 6 ++-- .../api/client/v2/api/synthetics_setup.json | 24 +++++++++++++ 6 files changed, 51 insertions(+), 51 deletions(-) create mode 100644 src/test/resources/com/datadog/api/client/v2/api/synthetics_setup.json diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index acd63e70a66..0f274c232a0 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -31063,9 +31063,17 @@ components: type: string values: description: |- - Column values in row order. The element type matches the column's `type`; - for example a `VARCHAR` column carries strings, a `TIMESTAMP` column carries - Unix-millisecond integers. `null` is allowed for missing values. + Column values in row order, one entry per result row. The element type + follows the column's `type`. The following serialization rules should be + taken into account: + + - `BIGINT` values are encoded as JSON numbers in the signed 64-bit integer range. + - `DECIMAL` values are encoded as JSON numbers with 64-bit double precision. + - `TIMESTAMP` and `DATE` values are encoded as Unix-millisecond integers; a + `DATE` resolves to midnight UTC. + - `JSON` values are returned as a JSON-encoded string. + + `null` is allowed for any column type where a value is missing. example: - web-store - checkout @@ -135602,9 +135610,6 @@ paths: summary: Execute a tabular DDSQL query tags: - DDSQL - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/ddsql/query/tabular/fetch: post: description: |- @@ -135713,9 +135718,6 @@ paths: summary: Fetch the result of a DDSQL query tags: - DDSQL - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/deletion/data/{product}: post: description: Creates a data deletion request by providing a query and a timeframe targeting the proper data. diff --git a/src/main/java/com/datadog/api/client/ApiClient.java b/src/main/java/com/datadog/api/client/ApiClient.java index 471a474d129..2c00c9b0dcb 100644 --- a/src/main/java/com/datadog/api/client/ApiClient.java +++ b/src/main/java/com/datadog/api/client/ApiClient.java @@ -1004,8 +1004,6 @@ public class ApiClient { put("v2.getAllDatasets", false); put("v2.getDataset", false); put("v2.updateDataset", false); - put("v2.executeDdsqlTabularQuery", false); - put("v2.fetchDdsqlTabularQuery", false); put("v2.cancelDataDeletionRequest", false); put("v2.createDataDeletionRequest", false); put("v2.getDataDeletionRequests", false); diff --git a/src/main/java/com/datadog/api/client/v2/api/DdsqlApi.java b/src/main/java/com/datadog/api/client/v2/api/DdsqlApi.java index 9c5cd2e2348..5576e4dbf42 100644 --- a/src/main/java/com/datadog/api/client/v2/api/DdsqlApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/DdsqlApi.java @@ -97,13 +97,6 @@ public CompletableFuture executeDdsqlTabularQueryAsyn */ public ApiResponse executeDdsqlTabularQueryWithHttpInfo( DdsqlTabularQueryRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "executeDdsqlTabularQuery"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -146,16 +139,6 @@ public ApiResponse executeDdsqlTabularQueryWithHttpIn */ public CompletableFuture> executeDdsqlTabularQueryWithHttpInfoAsync(DdsqlTabularQueryRequest body) { - // Check if unstable operation is enabled - String operationId = "executeDdsqlTabularQuery"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -252,13 +235,6 @@ public CompletableFuture fetchDdsqlTabularQueryAsync( */ public ApiResponse fetchDdsqlTabularQueryWithHttpInfo( DdsqlTabularQueryFetchRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "fetchDdsqlTabularQuery"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -301,16 +277,6 @@ public ApiResponse fetchDdsqlTabularQueryWithHttpInfo */ public CompletableFuture> fetchDdsqlTabularQueryWithHttpInfoAsync(DdsqlTabularQueryFetchRequest body) { - // Check if unstable operation is enabled - String operationId = "fetchDdsqlTabularQuery"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = body; // verify the required parameter 'body' is set diff --git a/src/main/java/com/datadog/api/client/v2/model/DdsqlTabularQueryColumn.java b/src/main/java/com/datadog/api/client/v2/model/DdsqlTabularQueryColumn.java index 3c509ab5747..13e827f49f8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DdsqlTabularQueryColumn.java +++ b/src/main/java/com/datadog/api/client/v2/model/DdsqlTabularQueryColumn.java @@ -105,9 +105,19 @@ public DdsqlTabularQueryColumn addValuesItem(Object valuesItem) { } /** - * Column values in row order. The element type matches the column's type; for - * example a VARCHAR column carries strings, a TIMESTAMP column carries - * Unix-millisecond integers. null is allowed for missing values. + * Column values in row order, one entry per result row. The element type follows the column's + * type. The following serialization rules should be taken into account: + * + *
    + *
  • BIGINT values are encoded as JSON numbers in the signed 64-bit integer + * range. + *
  • DECIMAL values are encoded as JSON numbers with 64-bit double precision. + *
  • TIMESTAMP and DATE values are encoded as Unix-millisecond + * integers; a DATE resolves to midnight UTC. + *
  • JSON values are returned as a JSON-encoded string. + *
+ * + *

null is allowed for any column type where a value is missing. * * @return values */ diff --git a/src/test/resources/com/datadog/api/client/v2/api/org_connections.feature b/src/test/resources/com/datadog/api/client/v2/api/org_connections.feature index f829284f442..1320c514074 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/org_connections.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/org_connections.feature @@ -32,7 +32,7 @@ Feature: Org Connections When the request is sent Then the response status is 404 Not Found - @team:DataDog/access-enforcement + @synthetics-setup(org_connections_cleanup) @team:DataDog/access-enforcement Scenario: Create Org Connection returns "OK" response Given new "CreateOrgConnections" request And body with value {"data": {"type": "org_connection", "relationships": {"sink_org": {"data": {"type": "orgs", "id": "83999dcd-7f97-11f0-8de1-1ecf66f1aa85"}}}, "attributes": {"connection_types": ["logs"]}}} @@ -53,7 +53,7 @@ Feature: Org Connections When the request is sent Then the response status is 404 Not Found - @team:DataDog/access-enforcement + @synthetics-setup(org_connections_cleanup) @team:DataDog/access-enforcement Scenario: Delete Org Connection returns "OK" response Given there is a valid "org_connection" in the system And new "DeleteOrgConnections" request @@ -85,7 +85,7 @@ Feature: Org Connections When the request is sent Then the response status is 404 Not Found - @team:DataDog/access-enforcement + @synthetics-setup(org_connections_cleanup) @team:DataDog/access-enforcement Scenario: Update Org Connection returns "OK" response Given there is a valid "org_connection" in the system And new "UpdateOrgConnections" request diff --git a/src/test/resources/com/datadog/api/client/v2/api/synthetics_setup.json b/src/test/resources/com/datadog/api/client/v2/api/synthetics_setup.json new file mode 100644 index 00000000000..d3bd8bb89fe --- /dev/null +++ b/src/test/resources/com/datadog/api/client/v2/api/synthetics_setup.json @@ -0,0 +1,24 @@ +{ + "org_connections_cleanup": [ + { + "name": "remove an existing org connection for the test sink org", + "method": "GET", + "url": "https://api.{{ DD_TEST_SITE_2 }}/api/v2/org_connections", + "no_saving_response_body": false, + "headers": { + "Accept": "application/json" + }, + "extracted_values": [ + { + "name": "EXISTING_ORG_CONNECTION_DATA_ID", + "value": "$.data[?(@.relationships.source_org.data.id == '4dee724d-00cc-11ea-a77b-570c9d03c6c5' && @.relationships.sink_org.data.id == '83999dcd-7f97-11f0-8de1-1ecf66f1aa85')].id" + } + ] + }, + { + "name": "delete an existing org connection for the test sink org", + "method": "DELETE", + "url": "https://api.{{ DD_TEST_SITE_2 }}/api/v2/org_connections/{{ EXISTING_ORG_CONNECTION_DATA_ID }}" + } + ] +}