diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index acd63e70a66..528e531d42a 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. @@ -197924,7 +197926,7 @@ paths: operator: OR permissions: - synthetics_global_variable_write - /api/v2/tag-policies: + /api/v2/tag_policies: get: description: |- Retrieve all tag policies for the organization. Optionally include disabled or deleted @@ -198135,7 +198137,7 @@ paths: 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/tag-policies/{policy_id}: + /api/v2/tag_policies/{policy_id}: delete: description: |- Delete a tag policy. By default the policy is soft-deleted so it can be recovered later @@ -198395,7 +198397,7 @@ paths: 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/tag-policies/{policy_id}/score: + /api/v2/tag_policies/{policy_id}/score: get: description: |- Retrieve the compliance score for a single tag policy. The score is computed over the 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/api/TagPoliciesApi.java b/src/main/java/com/datadog/api/client/v2/api/TagPoliciesApi.java index 3cec2991fcf..cb577697978 100644 --- a/src/main/java/com/datadog/api/client/v2/api/TagPoliciesApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/TagPoliciesApi.java @@ -117,7 +117,7 @@ public ApiResponse createTagPolicyWithHttpInfo(TagPolicyCreat 400, "Missing the required parameter 'body' when calling createTagPolicy"); } // create path and map variables - String localVarPath = "/api/v2/tag-policies"; + String localVarPath = "/api/v2/tag_policies"; Map localVarHeaderParams = new HashMap(); @@ -172,7 +172,7 @@ public CompletableFuture> createTagPolicyWithHttp return result; } // create path and map variables - String localVarPath = "/api/v2/tag-policies"; + String localVarPath = "/api/v2/tag_policies"; Map localVarHeaderParams = new HashMap(); @@ -320,7 +320,7 @@ public ApiResponse deleteTagPolicyWithHttpInfo( Boolean hardDelete = parameters.hardDelete; // create path and map variables String localVarPath = - "/api/v2/tag-policies/{policy_id}" + "/api/v2/tag_policies/{policy_id}" .replaceAll("\\{" + "policy_id" + "\\}", apiClient.escapeString(policyId.toString())); List localVarQueryParams = new ArrayList(); @@ -382,7 +382,7 @@ public CompletableFuture> deleteTagPolicyWithHttpInfoAsync( Boolean hardDelete = parameters.hardDelete; // create path and map variables String localVarPath = - "/api/v2/tag-policies/{policy_id}" + "/api/v2/tag_policies/{policy_id}" .replaceAll("\\{" + "policy_id" + "\\}", apiClient.escapeString(policyId.toString())); List localVarQueryParams = new ArrayList(); @@ -565,7 +565,7 @@ public ApiResponse getTagPolicyWithHttpInfo( Long tsEnd = parameters.tsEnd; // create path and map variables String localVarPath = - "/api/v2/tag-policies/{policy_id}" + "/api/v2/tag_policies/{policy_id}" .replaceAll("\\{" + "policy_id" + "\\}", apiClient.escapeString(policyId.toString())); List localVarQueryParams = new ArrayList(); @@ -631,7 +631,7 @@ public CompletableFuture> getTagPolicyWithHttpInf Long tsEnd = parameters.tsEnd; // create path and map variables String localVarPath = - "/api/v2/tag-policies/{policy_id}" + "/api/v2/tag_policies/{policy_id}" .replaceAll("\\{" + "policy_id" + "\\}", apiClient.escapeString(policyId.toString())); List localVarQueryParams = new ArrayList(); @@ -804,7 +804,7 @@ public ApiResponse getTagPolicyScoreWithHttpInfo( Long tsEnd = parameters.tsEnd; // create path and map variables String localVarPath = - "/api/v2/tag-policies/{policy_id}/score" + "/api/v2/tag_policies/{policy_id}/score" .replaceAll("\\{" + "policy_id" + "\\}", apiClient.escapeString(policyId.toString())); List localVarQueryParams = new ArrayList(); @@ -868,7 +868,7 @@ public CompletableFuture> getTagPolicyScoreW Long tsEnd = parameters.tsEnd; // create path and map variables String localVarPath = - "/api/v2/tag-policies/{policy_id}/score" + "/api/v2/tag_policies/{policy_id}/score" .replaceAll("\\{" + "policy_id" + "\\}", apiClient.escapeString(policyId.toString())); List localVarQueryParams = new ArrayList(); @@ -1082,7 +1082,7 @@ public ApiResponse listTagPoliciesWithHttpInfo( Long tsStart = parameters.tsStart; Long tsEnd = parameters.tsEnd; // create path and map variables - String localVarPath = "/api/v2/tag-policies"; + String localVarPath = "/api/v2/tag_policies"; List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -1142,7 +1142,7 @@ public CompletableFuture> listTagPoliciesWi Long tsStart = parameters.tsStart; Long tsEnd = parameters.tsEnd; // create path and map variables - String localVarPath = "/api/v2/tag-policies"; + String localVarPath = "/api/v2/tag_policies"; List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -1259,7 +1259,7 @@ public ApiResponse updateTagPolicyWithHttpInfo( } // create path and map variables String localVarPath = - "/api/v2/tag-policies/{policy_id}" + "/api/v2/tag_policies/{policy_id}" .replaceAll("\\{" + "policy_id" + "\\}", apiClient.escapeString(policyId.toString())); Map localVarHeaderParams = new HashMap(); @@ -1326,7 +1326,7 @@ public CompletableFuture> updateTagPolicyWithHttp } // create path and map variables String localVarPath = - "/api/v2/tag-policies/{policy_id}" + "/api/v2/tag_policies/{policy_id}" .replaceAll("\\{" + "policy_id" + "\\}", apiClient.escapeString(policyId.toString())); Map localVarHeaderParams = new HashMap(); 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 */