Skip to content

Commit de8529c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d6a9d57f of spec repo
1 parent a21394f commit de8529c

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.5",
7-
"regenerated": "2023-09-19 15:38:29.693348",
8-
"spec_repo_commit": "30c5293b"
7+
"regenerated": "2023-09-20 19:48:24.864651",
8+
"spec_repo_commit": "d6a9d57f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-09-19 15:38:29.707115",
13-
"spec_repo_commit": "30c5293b"
12+
"regenerated": "2023-09-20 19:48:24.877449",
13+
"spec_repo_commit": "d6a9d57f"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21315,6 +21315,14 @@ paths:
2131521315
schema:
2131621316
format: int64
2131721317
type: integer
21318+
- description: Test query.
21319+
in: query
21320+
name: test_query
21321+
required: false
21322+
schema:
21323+
items:
21324+
type: string
21325+
type: array
2131821326
responses:
2131921327
'200':
2132021328
content:

src/datadog_api_client/v1/api/dashboard_lists_api.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Any, Dict
6+
from typing import Any, Dict, List, Union
77

88
from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
99
from datadog_api_client.configuration import Configuration
10+
from datadog_api_client.model_utils import (
11+
UnsetType,
12+
unset,
13+
)
1014
from datadog_api_client.v1.model.dashboard_list_list_response import DashboardListListResponse
1115
from datadog_api_client.v1.model.dashboard_list import DashboardList
1216
from datadog_api_client.v1.model.dashboard_list_delete_response import DashboardListDeleteResponse
@@ -83,6 +87,12 @@ def __init__(self, api_client=None):
8387
"attribute": "list_id",
8488
"location": "path",
8589
},
90+
"test_query": {
91+
"openapi_types": ([str],),
92+
"attribute": "test_query",
93+
"location": "query",
94+
"collection_format": "multi",
95+
},
8696
},
8797
headers_map={
8898
"accept": ["application/json"],
@@ -169,18 +179,25 @@ def delete_dashboard_list(
169179
def get_dashboard_list(
170180
self,
171181
list_id: int,
182+
*,
183+
test_query: Union[List[str], UnsetType] = unset,
172184
) -> DashboardList:
173185
"""Get a dashboard list.
174186
175187
Fetch an existing dashboard list's definition.
176188
177189
:param list_id: ID of the dashboard list to fetch.
178190
:type list_id: int
191+
:param test_query: Test query.
192+
:type test_query: [str], optional
179193
:rtype: DashboardList
180194
"""
181195
kwargs: Dict[str, Any] = {}
182196
kwargs["list_id"] = list_id
183197

198+
if test_query is not unset:
199+
kwargs["test_query"] = test_query
200+
184201
return self._get_dashboard_list_endpoint.call_with_http_info(**kwargs)
185202

186203
def list_dashboard_lists(

0 commit comments

Comments
 (0)