diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index b9855adfad..1530dac8cd 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -119663,6 +119663,7 @@ components: incident_write: Create, view, and manage incidents in Datadog. integrations_read: View configured integrations and their settings. logs_modify_indexes: Modify log indexes, filters, exclusion filters, and configurations. + logs_read_data: Read log data. logs_read_index_data: Read indexed log data. manage_integrations: Install, uninstall, and configure integrations. metrics_read: View custom metrics. @@ -164295,6 +164296,11 @@ paths: $ref: "#/components/responses/NotAuthorizedResponse" "429": $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - logs_read_data summary: Aggregate events tags: ["Logs"] x-codegen-request-body-name: body @@ -166177,6 +166183,11 @@ paths: $ref: "#/components/responses/NotAuthorizedResponse" "429": $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - logs_read_data summary: Search logs (POST) tags: ["Logs"] x-codegen-request-body-name: body diff --git a/src/datadog_api_client/v2/api/logs_api.py b/src/datadog_api_client/v2/api/logs_api.py index 810b2e8368..9920288323 100644 --- a/src/datadog_api_client/v2/api/logs_api.py +++ b/src/datadog_api_client/v2/api/logs_api.py @@ -39,7 +39,7 @@ def __init__(self, api_client=None): self._aggregate_logs_endpoint = _Endpoint( settings={ "response_type": (LogsAggregateResponse,), - "auth": ["apiKeyAuth", "appKeyAuth"], + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], "endpoint_path": "/api/v2/logs/analytics/aggregate", "operation_id": "aggregate_logs", "http_method": "POST", @@ -59,7 +59,7 @@ def __init__(self, api_client=None): self._list_logs_endpoint = _Endpoint( settings={ "response_type": (LogsListResponse,), - "auth": ["apiKeyAuth", "appKeyAuth"], + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], "endpoint_path": "/api/v2/logs/events/search", "operation_id": "list_logs", "http_method": "POST",