From 85ac0c3cbf71375071eb427398b773384a0551c1 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 28 Sep 2026 13:13:39 +0000 Subject: [PATCH] Regenerate client from commit 84753a8 of spec repo --- .generator/schemas/v2/openapi.yaml | 30 ++++++++++++++++++++++ src/datadog_api_client/v2/api/ddsql_api.py | 12 +++++++++ 2 files changed, 42 insertions(+) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4363be9d31..80230bea42 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -151871,6 +151871,13 @@ paths: Submit a DDSQL statement and return either a `running` state with an opaque `query_id` for the client to poll, or a `completed` state with the column-major result set inlined when the query finishes quickly enough to be served synchronously. + + For a scoped application key, include `timeseries_query` in its scopes. + A query that does not read a data source, such as `SELECT 1`, requires no additional + data-source permissions. Queries that read data sources also require the user or + service account that owns the application key to have the corresponding data access + permissions through their roles. The `timeseries_query` permission does not grant + access to the underlying data sources. operationId: ExecuteDdsqlTabularQuery requestBody: content: @@ -151973,9 +151980,18 @@ paths: schema: $ref: "#/components/schemas/JSONAPIErrorResponse" description: Internal Server Error + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - timeseries_query summary: Execute a tabular DDSQL query tags: - DDSQL + "x-permission": + operator: OR + permissions: + - timeseries_query /api/v2/ddsql/query/tabular/fetch: post: description: |- @@ -151983,6 +151999,11 @@ paths: by a prior `ExecuteDdsqlTabularQuery` (or by a prior `FetchDdsqlTabularQuery` that returned `state: running`) and the server returns either a `running` state to poll again or a `completed` state with the column-major result set inlined. + + For a scoped application key, include `timeseries_query` in its scopes. + Fetch results as the same user and organization that submitted the query. + The user or service account that owns the application key must have the data access + permissions required by the queried data sources through their roles. operationId: FetchDdsqlTabularQuery requestBody: content: @@ -152081,9 +152102,18 @@ paths: schema: $ref: "#/components/schemas/JSONAPIErrorResponse" description: Internal Server Error + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - timeseries_query summary: Fetch the result of a DDSQL query tags: - DDSQL + "x-permission": + operator: OR + permissions: + - timeseries_query /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/datadog_api_client/v2/api/ddsql_api.py b/src/datadog_api_client/v2/api/ddsql_api.py index 087e897ce7..a38f74d087 100644 --- a/src/datadog_api_client/v2/api/ddsql_api.py +++ b/src/datadog_api_client/v2/api/ddsql_api.py @@ -75,6 +75,13 @@ def execute_ddsql_tabular_query( for the client to poll, or a ``completed`` state with the column-major result set inlined when the query finishes quickly enough to be served synchronously. + For a scoped application key, include ``timeseries_query`` in its scopes. + A query that does not read a data source, such as ``SELECT 1`` , requires no additional + data-source permissions. Queries that read data sources also require the user or + service account that owns the application key to have the corresponding data access + permissions through their roles. The ``timeseries_query`` permission does not grant + access to the underlying data sources. + :type body: DdsqlTabularQueryRequest :rtype: DdsqlTabularQueryResponse """ @@ -94,6 +101,11 @@ def fetch_ddsql_tabular_query( returned ``state: running`` ) and the server returns either a ``running`` state to poll again or a ``completed`` state with the column-major result set inlined. + For a scoped application key, include ``timeseries_query`` in its scopes. + Fetch results as the same user and organization that submitted the query. + The user or service account that owns the application key must have the data access + permissions required by the queried data sources through their roles. + :type body: DdsqlTabularQueryFetchRequest :rtype: DdsqlTabularQueryResponse """