Skip to content

Commit fa505aa

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specskarimo
authored
Regenerate client from commit 2ccd9d0a of spec repo (#1476)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: skarimo <[email protected]>
1 parent ff4a3a6 commit fa505aa

File tree

9 files changed

+10
-31
lines changed

9 files changed

+10
-31
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.4",
7-
"regenerated": "2023-05-22 14:41:04.817442",
8-
"spec_repo_commit": "f75e7820"
7+
"regenerated": "2023-05-23 13:54:25.080716",
8+
"spec_repo_commit": "2ccd9d0a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-05-22 14:41:04.834555",
13-
"spec_repo_commit": "f75e7820"
12+
"regenerated": "2023-05-23 13:54:25.093595",
13+
"spec_repo_commit": "2ccd9d0a"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2234,9 +2234,6 @@ components:
22342234
description: Query to filter the event stream with.
22352235
example: ''
22362236
type: string
2237-
show_year:
2238-
description: Option to display the year in the date column.
2239-
type: boolean
22402237
tags_execution:
22412238
description: The execution method for multi-value filters. Can be either
22422239
and or or.

examples/v1/dashboards/CreateDashboard_2634813877.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
query="example-query",
3333
tags_execution="and",
3434
event_size=WidgetEventSize.SMALL,
35-
show_year=True,
3635
),
3736
),
3837
],

src/datadog_api_client/v1/model/event_stream_widget_definition.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def openapi_types(_):
3131
return {
3232
"event_size": (WidgetEventSize,),
3333
"query": (str,),
34-
"show_year": (bool,),
3534
"tags_execution": (str,),
3635
"time": (WidgetTime,),
3736
"title": (str,),
@@ -43,7 +42,6 @@ def openapi_types(_):
4342
attribute_map = {
4443
"event_size": "event_size",
4544
"query": "query",
46-
"show_year": "show_year",
4745
"tags_execution": "tags_execution",
4846
"time": "time",
4947
"title": "title",
@@ -57,7 +55,6 @@ def __init__(
5755
query: str,
5856
type: EventStreamWidgetDefinitionType,
5957
event_size: Union[WidgetEventSize, UnsetType] = unset,
60-
show_year: Union[bool, UnsetType] = unset,
6158
tags_execution: Union[str, UnsetType] = unset,
6259
time: Union[WidgetTime, UnsetType] = unset,
6360
title: Union[str, UnsetType] = unset,
@@ -75,9 +72,6 @@ def __init__(
7572
:param query: Query to filter the event stream with.
7673
:type query: str
7774
78-
:param show_year: Option to display the year in the date column.
79-
:type show_year: bool, optional
80-
8175
:param tags_execution: The execution method for multi-value filters. Can be either and or or.
8276
:type tags_execution: str, optional
8377
@@ -98,8 +92,6 @@ def __init__(
9892
"""
9993
if event_size is not unset:
10094
kwargs["event_size"] = event_size
101-
if show_year is not unset:
102-
kwargs["show_year"] = show_year
10395
if tags_execution is not unset:
10496
kwargs["tags_execution"] = tags_execution
10597
if time is not unset:

src/datadog_api_client/v1/model/widget_definition.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ def __init__(self, **kwargs):
9090
:param query: Query to filter the event stream with.
9191
:type query: str
9292
93-
:param show_year: Option to display the year in the date column.
94-
:type show_year: bool, optional
95-
9693
:param tags_execution: The execution method for multi-value filters. Can be either and or or.
9794
:type tags_execution: str, optional
9895
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-05-19T14:24:41.183Z
1+
2022-01-06T00:50:30.857Z

tests/v1/cassettes/test_scenarios/test_create_a_new_dashboard_with_event_stream_widget.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"description":"","is_read_only":false,"layout_type":"free","notify_list":[],"template_variables":[],"title":"Test-Create_a_new_dashboard_with_event_stream_widget-1684506281","widgets":[{"definition":{"event_size":"s","query":"example-query","show_year":true,"tags_execution":"and","title":"","title_align":"left","title_size":"16","type":"event_stream"},"layout":{"height":38,"width":47,"x":0,"y":0}}]}'
3+
body: '{"description":"","is_read_only":false,"layout_type":"free","notify_list":[],"template_variables":[],"title":"Test-Create_a_new_dashboard_with_event_stream_widget-1641430230","widgets":[{"definition":{"event_size":"s","query":"example-query","tags_execution":"and","title":"","title_align":"left","title_size":"16","type":"event_stream"},"layout":{"height":38,"width":47,"x":0,"y":0}}]}'
44
headers:
55
accept:
66
- application/json
@@ -10,9 +10,7 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v1/dashboard
1111
response:
1212
body:
13-
string: '{"id":"6fx-j89-9ip","title":"Test-Create_a_new_dashboard_with_event_stream_widget-1684506281","description":"","author_handle":"[email protected]","author_name":null,"layout_type":"free","url":"/dashboard/6fx-j89-9ip/test-createanewdashboardwitheventstreamwidget-1684506281","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"event_size":"s","query":"example-query","show_year":true,"tags_execution":"and","title":"","title_align":"left","title_size":"16","type":"event_stream"},"layout":{"height":38,"width":47,"x":0,"y":0},"id":4666982916800865}],"notify_list":[],"created_at":"2023-05-19T14:24:41.495188+00:00","modified_at":"2023-05-19T14:24:41.495188+00:00","restricted_roles":[]}
14-
15-
'
13+
string: '{"notify_list":[],"description":"","restricted_roles":[],"author_name":null,"template_variables":[],"is_read_only":false,"id":"2dc-bzm-gzi","title":"Test-Create_a_new_dashboard_with_event_stream_widget-1641430230","url":"/dashboard/2dc-bzm-gzi/test-createanewdashboardwitheventstreamwidget-1641430230","created_at":"2022-01-06T00:50:31.037679+00:00","modified_at":"2022-01-06T00:50:31.037679+00:00","author_handle":"[email protected]","widgets":[{"definition":{"title_size":"16","title":"","title_align":"left","tags_execution":"and","query":"example-query","type":"event_stream","event_size":"s"},"layout":{"y":0,"width":47,"x":0,"height":38},"id":5676594590872385}],"layout_type":"free"}'
1614
headers:
1715
content-type:
1816
- application/json
@@ -25,12 +23,10 @@ interactions:
2523
accept:
2624
- application/json
2725
method: DELETE
28-
uri: https://api.datadoghq.com/api/v1/dashboard/6fx-j89-9ip
26+
uri: https://api.datadoghq.com/api/v1/dashboard/2dc-bzm-gzi
2927
response:
3028
body:
31-
string: '{"deleted_dashboard_id":"6fx-j89-9ip"}
32-
33-
'
29+
string: '{"deleted_dashboard_id":"2dc-bzm-gzi"}'
3430
headers:
3531
content-type:
3632
- application/json

tests/v1/features/dashboards.feature

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ Feature: Dashboards
277277
Then the response status is 200 OK
278278
And the response "widgets[0].definition.type" is equal to "event_stream"
279279
And the response "widgets[0].definition.query" is equal to "example-query"
280-
And the response "widgets[0].definition.show_year" is equal to true
281280

282281
@team:DataDog/dashboards-backend
283282
Scenario: Create a new dashboard with event_timeline widget

tests/v1/features/dashboards_json_payload/event_stream_widget.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"type":"event_stream",
1717
"query":"example-query",
1818
"tags_execution":"and",
19-
"event_size":"s",
20-
"show_year": true
19+
"event_size":"s"
2120
}
2221
}
2322
],

0 commit comments

Comments
 (0)