Skip to content

Commit

Permalink
Regenerate client from commit d6a9d57f of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Sep 20, 2023
1 parent a21394f commit de8529c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
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.5",
"regenerated": "2023-09-19 15:38:29.693348",
"spec_repo_commit": "30c5293b"
"regenerated": "2023-09-20 19:48:24.864651",
"spec_repo_commit": "d6a9d57f"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-09-19 15:38:29.707115",
"spec_repo_commit": "30c5293b"
"regenerated": "2023-09-20 19:48:24.877449",
"spec_repo_commit": "d6a9d57f"
}
}
}
8 changes: 8 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21315,6 +21315,14 @@ paths:
schema:
format: int64
type: integer
- description: Test query.
in: query
name: test_query
required: false
schema:
items:
type: string
type: array
responses:
'200':
content:
Expand Down
19 changes: 18 additions & 1 deletion src/datadog_api_client/v1/api/dashboard_lists_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Any, Dict
from typing import Any, Dict, List, Union

from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
from datadog_api_client.configuration import Configuration
from datadog_api_client.model_utils import (
UnsetType,
unset,
)
from datadog_api_client.v1.model.dashboard_list_list_response import DashboardListListResponse
from datadog_api_client.v1.model.dashboard_list import DashboardList
from datadog_api_client.v1.model.dashboard_list_delete_response import DashboardListDeleteResponse
Expand Down Expand Up @@ -83,6 +87,12 @@ def __init__(self, api_client=None):
"attribute": "list_id",
"location": "path",
},
"test_query": {
"openapi_types": ([str],),
"attribute": "test_query",
"location": "query",
"collection_format": "multi",
},
},
headers_map={
"accept": ["application/json"],
Expand Down Expand Up @@ -169,18 +179,25 @@ def delete_dashboard_list(
def get_dashboard_list(
self,
list_id: int,
*,
test_query: Union[List[str], UnsetType] = unset,
) -> DashboardList:
"""Get a dashboard list.
Fetch an existing dashboard list's definition.
:param list_id: ID of the dashboard list to fetch.
:type list_id: int
:param test_query: Test query.
:type test_query: [str], optional
:rtype: DashboardList
"""
kwargs: Dict[str, Any] = {}
kwargs["list_id"] = list_id

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

return self._get_dashboard_list_endpoint.call_with_http_info(**kwargs)

def list_dashboard_lists(
Expand Down

0 comments on commit de8529c

Please sign in to comment.