Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-11 15:05:38.256001",
"spec_repo_commit": "d209cd40"
"regenerated": "2025-04-11 22:26:37.418360",
"spec_repo_commit": "357a756f"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-11 15:05:38.271008",
"spec_repo_commit": "d209cd40"
"regenerated": "2025-04-11 22:26:37.434509",
"spec_repo_commit": "357a756f"
}
}
}
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41360,8 +41360,8 @@ paths:
description: Search for incidents matching a certain query.
operationId: SearchIncidents
parameters:
- $ref: '#/components/parameters/IncidentSearchIncludeQueryParameter'
- $ref: '#/components/parameters/IncidentSearchQueryQueryParameter'
- $ref: '#/components/parameters/IncidentSearchIncludeQueryParameter'
- $ref: '#/components/parameters/IncidentSearchSortQueryParameter'
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PageOffset'
Expand Down
18 changes: 9 additions & 9 deletions src/datadog_api_client/v2/api/incidents_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,17 +510,17 @@ def __init__(self, api_client=None):
"version": "v2",
},
params_map={
"include": {
"openapi_types": (IncidentRelatedObject,),
"attribute": "include",
"location": "query",
},
"query": {
"required": True,
"openapi_types": (str,),
"attribute": "query",
"location": "query",
},
"include": {
"openapi_types": (IncidentRelatedObject,),
"attribute": "include",
"location": "query",
},
"sort": {
"openapi_types": (IncidentSearchSortOrder,),
"attribute": "sort",
Expand Down Expand Up @@ -1123,11 +1123,11 @@ def search_incidents(
:rtype: IncidentSearchResponse
"""
kwargs: Dict[str, Any] = {}
kwargs["query"] = query

if include is not unset:
kwargs["include"] = include

kwargs["query"] = query

if sort is not unset:
kwargs["sort"] = sort

Expand Down Expand Up @@ -1169,11 +1169,11 @@ def search_incidents_with_pagination(
:rtype: collections.abc.Iterable[IncidentSearchResponseIncidentsData]
"""
kwargs: Dict[str, Any] = {}
kwargs["query"] = query

if include is not unset:
kwargs["include"] = include

kwargs["query"] = query

if sort is not unset:
kwargs["sort"] = sort

Expand Down