Skip to content

Commit 4846f22

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 872cf6d of spec repo
1 parent f9ba1f2 commit 4846f22

File tree

6 files changed

+72
-2
lines changed

6 files changed

+72
-2
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "d02c8a3",
3-
"generated": "2025-08-08 12:07:20.979"
2+
"spec_repo_commit": "872cf6d",
3+
"generated": "2025-08-12 14:43:31.361"
44
}

.generator/schemas/v1/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5123,6 +5123,12 @@ components:
51235123
error:
51245124
$ref: '#/components/schemas/LogsAPIError'
51255125
type: object
5126+
LogsAPILimitReachedResponse:
5127+
description: Response returned by the Logs API when the max limit has been reached.
5128+
properties:
5129+
error:
5130+
$ref: '#/components/schemas/LogsAPIError'
5131+
type: object
51265132
LogsArithmeticProcessor:
51275133
description: "Use the Arithmetic Processor to add a new attribute (without spaces
51285134
or special characters\nin the new attribute name) to a log with the result
@@ -29444,6 +29450,12 @@ paths:
2944429450
schema:
2944529451
$ref: '#/components/schemas/APIErrorResponse'
2944629452
description: Forbidden
29453+
'422':
29454+
content:
29455+
application/json:
29456+
schema:
29457+
$ref: '#/components/schemas/LogsAPILimitReachedResponse'
29458+
description: Unprocessable Entity
2944729459
'429':
2944829460
$ref: '#/components/responses/TooManyRequestsResponse'
2944929461
summary: Create an index

docs/datadog_api_client.v1.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,6 +1558,13 @@ datadog\_api\_client.v1.model.logs\_api\_error\_response module
15581558
:members:
15591559
:show-inheritance:
15601560

1561+
datadog\_api\_client.v1.model.logs\_api\_limit\_reached\_response module
1562+
------------------------------------------------------------------------
1563+
1564+
.. automodule:: datadog_api_client.v1.model.logs_api_limit_reached_response
1565+
:members:
1566+
:show-inheritance:
1567+
15611568
datadog\_api\_client.v1.model.logs\_arithmetic\_processor module
15621569
----------------------------------------------------------------
15631570

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union, TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
if TYPE_CHECKING:
17+
from datadog_api_client.v1.model.logs_api_error import LogsAPIError
18+
19+
20+
class LogsAPILimitReachedResponse(ModelNormal):
21+
@cached_property
22+
def openapi_types(_):
23+
from datadog_api_client.v1.model.logs_api_error import LogsAPIError
24+
25+
return {
26+
"error": (LogsAPIError,),
27+
}
28+
29+
attribute_map = {
30+
"error": "error",
31+
}
32+
33+
def __init__(self_, error: Union[LogsAPIError, UnsetType] = unset, **kwargs):
34+
"""
35+
Response returned by the Logs API when the max limit has been reached.
36+
37+
:param error: Error returned by the Logs API
38+
:type error: LogsAPIError, optional
39+
"""
40+
if error is not unset:
41+
kwargs["error"] = error
42+
super().__init__(kwargs)

src/datadog_api_client/v1/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@
254254
from datadog_api_client.v1.model.log_stream_widget_definition_type import LogStreamWidgetDefinitionType
255255
from datadog_api_client.v1.model.logs_api_error import LogsAPIError
256256
from datadog_api_client.v1.model.logs_api_error_response import LogsAPIErrorResponse
257+
from datadog_api_client.v1.model.logs_api_limit_reached_response import LogsAPILimitReachedResponse
257258
from datadog_api_client.v1.model.logs_arithmetic_processor import LogsArithmeticProcessor
258259
from datadog_api_client.v1.model.logs_arithmetic_processor_type import LogsArithmeticProcessorType
259260
from datadog_api_client.v1.model.logs_array_processor import LogsArrayProcessor
@@ -1326,6 +1327,7 @@
13261327
"LogStreamWidgetDefinitionType",
13271328
"LogsAPIError",
13281329
"LogsAPIErrorResponse",
1330+
"LogsAPILimitReachedResponse",
13291331
"LogsArithmeticProcessor",
13301332
"LogsArithmeticProcessorType",
13311333
"LogsArrayProcessor",

tests/v1/features/logs_indexes.feature

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ Feature: Logs Indexes
2222
When the request is sent
2323
Then the response status is 200 OK
2424

25+
@generated @skip @team:DataDog/logs-backend @team:DataDog/logs-core
26+
Scenario: Create an index returns "Unprocessable Entity" response
27+
Given new "CreateLogsIndex" request
28+
And body with value {"daily_limit": 300000000, "daily_limit_reset": {"reset_time": "14:00", "reset_utc_offset": "+02:00"}, "daily_limit_warning_threshold_percentage": 70, "exclusion_filters": [{"filter": {"query": "*", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}, "name": "main", "num_flex_logs_retention_days": 360, "num_retention_days": 15}
29+
When the request is sent
30+
Then the response status is 422 Unprocessable Entity
31+
2532
@generated @skip @team:DataDog/logs-backend @team:DataDog/logs-core
2633
Scenario: Delete an index returns "Not Found" response
2734
Given new "DeleteLogsIndex" request

0 commit comments

Comments
 (0)