Skip to content

Commit 49620cc

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Remove schema from 200 response for delete index (#2452)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 02c82e5 commit 49620cc

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-03-10 19:36:02.710351",
8-
"spec_repo_commit": "7d0b49f6"
7+
"regenerated": "2025-03-11 13:16:51.577468",
8+
"spec_repo_commit": "d7618fa5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-10 19:36:02.760966",
13-
"spec_repo_commit": "7d0b49f6"
12+
"regenerated": "2025-03-11 13:16:51.595864",
13+
"spec_repo_commit": "d7618fa5"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -28773,10 +28773,6 @@ paths:
2877328773
type: string
2877428774
responses:
2877528775
'200':
28776-
content:
28777-
application/json:
28778-
schema:
28779-
$ref: '#/components/schemas/LogsIndex'
2878028776
description: OK
2878128777
'403':
2878228778
content:

examples/v1/logs-indexes/DeleteLogsIndex.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
configuration = Configuration()
99
with ApiClient(configuration) as api_client:
1010
api_instance = LogsIndexesApi(api_client)
11-
response = api_instance.delete_logs_index(
11+
api_instance.delete_logs_index(
1212
name="name",
1313
)
14-
15-
print(response)

src/datadog_api_client/v1/api/logs_indexes_api.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, api_client=None):
4545

4646
self._delete_logs_index_endpoint = _Endpoint(
4747
settings={
48-
"response_type": (LogsIndex,),
48+
"response_type": None,
4949
"auth": ["apiKeyAuth", "appKeyAuth"],
5050
"endpoint_path": "/api/v1/logs/config/indexes/{name}",
5151
"operation_id": "delete_logs_index",
@@ -61,7 +61,7 @@ def __init__(self, api_client=None):
6161
},
6262
},
6363
headers_map={
64-
"accept": ["application/json"],
64+
"accept": ["*/*"],
6565
},
6666
api_client=api_client,
6767
)
@@ -187,15 +187,15 @@ def create_logs_index(
187187
def delete_logs_index(
188188
self,
189189
name: str,
190-
) -> LogsIndex:
190+
) -> None:
191191
"""Delete an index.
192192
193193
Delete an existing index from your organization. Index deletions are permanent and cannot be reverted.
194194
You cannot recreate an index with the same name as deleted ones.
195195
196196
:param name: Name of the log index.
197197
:type name: str
198-
:rtype: LogsIndex
198+
:rtype: None
199199
"""
200200
kwargs: Dict[str, Any] = {}
201201
kwargs["name"] = name

0 commit comments

Comments
 (0)