Skip to content

Commit c85b31a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 357a756f of spec repo
1 parent 783c9e8 commit c85b31a

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
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-04-11 15:05:38.256001",
8-
"spec_repo_commit": "d209cd40"
7+
"regenerated": "2025-04-11 22:26:37.418360",
8+
"spec_repo_commit": "357a756f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-11 15:05:38.271008",
13-
"spec_repo_commit": "d209cd40"
12+
"regenerated": "2025-04-11 22:26:37.434509",
13+
"spec_repo_commit": "357a756f"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41360,8 +41360,8 @@ paths:
4136041360
description: Search for incidents matching a certain query.
4136141361
operationId: SearchIncidents
4136241362
parameters:
41363-
- $ref: '#/components/parameters/IncidentSearchIncludeQueryParameter'
4136441363
- $ref: '#/components/parameters/IncidentSearchQueryQueryParameter'
41364+
- $ref: '#/components/parameters/IncidentSearchIncludeQueryParameter'
4136541365
- $ref: '#/components/parameters/IncidentSearchSortQueryParameter'
4136641366
- $ref: '#/components/parameters/PageSize'
4136741367
- $ref: '#/components/parameters/PageOffset'

src/datadog_api_client/v2/api/incidents_api.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -510,17 +510,17 @@ def __init__(self, api_client=None):
510510
"version": "v2",
511511
},
512512
params_map={
513-
"include": {
514-
"openapi_types": (IncidentRelatedObject,),
515-
"attribute": "include",
516-
"location": "query",
517-
},
518513
"query": {
519514
"required": True,
520515
"openapi_types": (str,),
521516
"attribute": "query",
522517
"location": "query",
523518
},
519+
"include": {
520+
"openapi_types": (IncidentRelatedObject,),
521+
"attribute": "include",
522+
"location": "query",
523+
},
524524
"sort": {
525525
"openapi_types": (IncidentSearchSortOrder,),
526526
"attribute": "sort",
@@ -1123,11 +1123,11 @@ def search_incidents(
11231123
:rtype: IncidentSearchResponse
11241124
"""
11251125
kwargs: Dict[str, Any] = {}
1126+
kwargs["query"] = query
1127+
11261128
if include is not unset:
11271129
kwargs["include"] = include
11281130

1129-
kwargs["query"] = query
1130-
11311131
if sort is not unset:
11321132
kwargs["sort"] = sort
11331133

@@ -1169,11 +1169,11 @@ def search_incidents_with_pagination(
11691169
:rtype: collections.abc.Iterable[IncidentSearchResponseIncidentsData]
11701170
"""
11711171
kwargs: Dict[str, Any] = {}
1172+
kwargs["query"] = query
1173+
11721174
if include is not unset:
11731175
kwargs["include"] = include
11741176

1175-
kwargs["query"] = query
1176-
11771177
if sort is not unset:
11781178
kwargs["sort"] = sort
11791179

0 commit comments

Comments
 (0)