From 8b83d90637fe05345c028c871d9be98394f2ca02 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 28 Jul 2026 19:17:40 +0000 Subject: [PATCH] Regenerate client from commit 7725b08 of spec repo --- .generator/schemas/v2/openapi.yaml | 38 ++++++++++++++----- .../com/datadog/api/client/ApiClient.java | 2 - .../api/client/v2/api/CustomerOrgApi.java | 17 +++++++++ .../datadog/api/client/v2/api/DdsqlApi.java | 34 ----------------- .../v2/model/DdsqlTabularQueryColumn.java | 16 ++++++-- .../api/client/v2/api/customer_org.feature | 5 +++ 6 files changed, 64 insertions(+), 48 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index acd63e70a66..e5891bc232f 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. @@ -166072,6 +166074,18 @@ paths: the authenticated org or the request is rejected. Successful calls disable the org and return the resulting state from the downstream service. Requires the `org_management` permission. + + **Limitations**: + + - **Organization age**: Only organizations created within the last 10 days can be disabled + through this endpoint. This restriction is a safeguard against accidentally disabling + long-running organizations. Attempting to disable an older organization returns a `403 Forbidden`. + - **Feature flag**: The feature flag `org_disable_self_service_enabled` must be enabled for the + target organization or one of its ancestor organizations. Contact + [Datadog support](https://docs.datadoghq.com/help/) to enable this for your organization. + Requests for organizations without this flag return a `403 Forbidden`. + - **Already-disabled organizations**: If the target organization is already disabled, the request + returns a `409 Conflict`. operationId: DisableCustomerOrg requestBody: content: @@ -166120,6 +166134,12 @@ paths: schema: $ref: "#/components/schemas/JSONAPIErrorResponse" description: Forbidden + "409": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Conflict "429": $ref: "#/components/responses/TooManyRequestsResponse" "500": 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/CustomerOrgApi.java b/src/main/java/com/datadog/api/client/v2/api/CustomerOrgApi.java index 5847c7305ee..66cfd459dd3 100644 --- a/src/main/java/com/datadog/api/client/v2/api/CustomerOrgApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/CustomerOrgApi.java @@ -82,6 +82,22 @@ public CompletableFuture disableCustomerOrgAsync( * resulting state from the downstream service. Requires the org_management * permission. * + *

Limitations: + * + *

+ * * @param body (required) * @return ApiResponse<CustomerOrgDisableResponse> * @throws ApiException if fails to make API call @@ -93,6 +109,7 @@ public CompletableFuture disableCustomerOrgAsync( * 400 Bad Request - * 401 Unauthorized - * 403 Forbidden - + * 409 Conflict - * 429 Too many requests - * 500 Internal Server Error - * 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/customer_org.feature b/src/test/resources/com/datadog/api/client/v2/api/customer_org.feature index 319625f6d0b..361daf2716d 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/customer_org.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/customer_org.feature @@ -17,6 +17,11 @@ Feature: Customer Org When the request is sent Then the response status is 400 Bad Request + @generated @skip @team:DataDog/org-management + Scenario: Disable the authenticated customer organization returns "Conflict" response + When the request is sent + Then the response status is 409 Conflict + @generated @skip @team:DataDog/org-management Scenario: Disable the authenticated customer organization returns "OK" response When the request is sent