Skip to content

Commit a535773

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e563297 of spec repo
1 parent ea023e3 commit a535773

6 files changed

Lines changed: 3 additions & 116 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,13 +1314,6 @@ components:
13141314
description: A role UUID.
13151315
type: string
13161316
type: array
1317-
tabs:
1318-
description: List of tabs for organizing dashboard widgets into groups.
1319-
items:
1320-
$ref: '#/components/schemas/DashboardTab'
1321-
maxItems: 100
1322-
nullable: true
1323-
type: array
13241317
tags:
13251318
description: List of team names representing ownership of a dashboard.
13261319
items:
@@ -1591,36 +1584,6 @@ components:
15911584
description: URL of the dashboard.
15921585
type: string
15931586
type: object
1594-
DashboardTab:
1595-
description: Dashboard tab for organizing widgets.
1596-
properties:
1597-
id:
1598-
description: UUID of the tab.
1599-
example: ''
1600-
format: uuid
1601-
type: string
1602-
name:
1603-
description: Name of the tab.
1604-
example: L
1605-
maxLength: 100
1606-
minLength: 1
1607-
type: string
1608-
widget_ids:
1609-
description: List of widget IDs belonging to this tab. The backend also
1610-
accepts positional references in @N format (1-indexed) as a convenience
1611-
for Terraform and other declarative tools.
1612-
example:
1613-
- 0
1614-
items:
1615-
description: Widget ID.
1616-
format: int64
1617-
type: integer
1618-
type: array
1619-
required:
1620-
- id
1621-
- name
1622-
- widget_ids
1623-
type: object
16241587
DashboardTemplateVariable:
16251588
description: Template variable.
16261589
properties:

docs/datadog_api_client.v1.model.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -613,13 +613,6 @@ datadog\_api\_client.v1.model.dashboard\_summary\_definition module
613613
:members:
614614
:show-inheritance:
615615

616-
datadog\_api\_client.v1.model.dashboard\_tab module
617-
---------------------------------------------------
618-
619-
.. automodule:: datadog_api_client.v1.model.dashboard_tab
620-
:members:
621-
:show-inheritance:
622-
623616
datadog\_api\_client.v1.model.dashboard\_template\_variable module
624617
------------------------------------------------------------------
625618

src/datadog_api_client/v1/model/dashboard.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,13 @@
1818
if TYPE_CHECKING:
1919
from datadog_api_client.v1.model.dashboard_layout_type import DashboardLayoutType
2020
from datadog_api_client.v1.model.dashboard_reflow_type import DashboardReflowType
21-
from datadog_api_client.v1.model.dashboard_tab import DashboardTab
2221
from datadog_api_client.v1.model.dashboard_template_variable_preset import DashboardTemplateVariablePreset
2322
from datadog_api_client.v1.model.dashboard_template_variable import DashboardTemplateVariable
2423
from datadog_api_client.v1.model.widget import Widget
2524

2625

2726
class Dashboard(ModelNormal):
2827
validations = {
29-
"tabs": {
30-
"max_items": 100,
31-
},
3228
"tags": {
3329
"max_items": 5,
3430
},
@@ -38,7 +34,6 @@ class Dashboard(ModelNormal):
3834
def openapi_types(_):
3935
from datadog_api_client.v1.model.dashboard_layout_type import DashboardLayoutType
4036
from datadog_api_client.v1.model.dashboard_reflow_type import DashboardReflowType
41-
from datadog_api_client.v1.model.dashboard_tab import DashboardTab
4237
from datadog_api_client.v1.model.dashboard_template_variable_preset import DashboardTemplateVariablePreset
4338
from datadog_api_client.v1.model.dashboard_template_variable import DashboardTemplateVariable
4439
from datadog_api_client.v1.model.widget import Widget
@@ -55,7 +50,6 @@ def openapi_types(_):
5550
"notify_list": ([str], none_type),
5651
"reflow_type": (DashboardReflowType,),
5752
"restricted_roles": ([str],),
58-
"tabs": ([DashboardTab], none_type),
5953
"tags": ([str], none_type),
6054
"template_variable_presets": ([DashboardTemplateVariablePreset], none_type),
6155
"template_variables": ([DashboardTemplateVariable], none_type),
@@ -76,7 +70,6 @@ def openapi_types(_):
7670
"notify_list": "notify_list",
7771
"reflow_type": "reflow_type",
7872
"restricted_roles": "restricted_roles",
79-
"tabs": "tabs",
8073
"tags": "tags",
8174
"template_variable_presets": "template_variable_presets",
8275
"template_variables": "template_variables",
@@ -108,7 +101,6 @@ def __init__(
108101
notify_list: Union[List[str], none_type, UnsetType] = unset,
109102
reflow_type: Union[DashboardReflowType, UnsetType] = unset,
110103
restricted_roles: Union[List[str], UnsetType] = unset,
111-
tabs: Union[List[DashboardTab], none_type, UnsetType] = unset,
112104
tags: Union[List[str], none_type, UnsetType] = unset,
113105
template_variable_presets: Union[List[DashboardTemplateVariablePreset], none_type, UnsetType] = unset,
114106
template_variables: Union[List[DashboardTemplateVariable], none_type, UnsetType] = unset,
@@ -156,9 +148,6 @@ def __init__(
156148
:param restricted_roles: A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard.
157149
:type restricted_roles: [str], optional
158150
159-
:param tabs: List of tabs for organizing dashboard widgets into groups.
160-
:type tabs: [DashboardTab], none_type, optional
161-
162151
:param tags: List of team names representing ownership of a dashboard.
163152
:type tags: [str], none_type, optional
164153
@@ -197,8 +186,6 @@ def __init__(
197186
kwargs["reflow_type"] = reflow_type
198187
if restricted_roles is not unset:
199188
kwargs["restricted_roles"] = restricted_roles
200-
if tabs is not unset:
201-
kwargs["tabs"] = tabs
202189
if tags is not unset:
203190
kwargs["tags"] = tags
204191
if template_variable_presets is not unset:

src/datadog_api_client/v1/model/dashboard_tab.py

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/datadog_api_client/v1/models/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
from datadog_api_client.v1.model.dashboard_share_type import DashboardShareType
8686
from datadog_api_client.v1.model.dashboard_summary import DashboardSummary
8787
from datadog_api_client.v1.model.dashboard_summary_definition import DashboardSummaryDefinition
88-
from datadog_api_client.v1.model.dashboard_tab import DashboardTab
8988
from datadog_api_client.v1.model.dashboard_template_variable import DashboardTemplateVariable
9089
from datadog_api_client.v1.model.dashboard_template_variable_preset import DashboardTemplateVariablePreset
9190
from datadog_api_client.v1.model.dashboard_template_variable_preset_value import DashboardTemplateVariablePresetValue
@@ -1297,7 +1296,6 @@
12971296
"DashboardShareType",
12981297
"DashboardSummary",
12991298
"DashboardSummaryDefinition",
1300-
"DashboardTab",
13011299
"DashboardTemplateVariable",
13021300
"DashboardTemplateVariablePreset",
13031301
"DashboardTemplateVariablePresetValue",

tests/v1/features/dashboards.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Feature: Dashboards
9090
@generated @skip @team:DataDog/dashboards-backend
9191
Scenario: Create a new dashboard returns "Bad Request" response
9292
Given new "CreateDashboard" request
93-
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [], "reflow_type": "auto", "restricted_roles": [], "tabs": [{"id": "", "name": "L", "widget_ids": [0]}], "tags": [], "template_variable_presets": [{"template_variables": [{"values": []}]}], "template_variables": [{"available_values": ["my-host", "host1", "host2"], "default": "my-host", "defaults": ["my-host-1", "my-host-2"], "name": "host1", "prefix": "host", "type": "group"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "avg:system.cpu.user{*}"}}, "type": "hostmap"}}]}
93+
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [], "reflow_type": "auto", "restricted_roles": [], "tags": [], "template_variable_presets": [{"template_variables": [{"values": []}]}], "template_variables": [{"available_values": ["my-host", "host1", "host2"], "default": "my-host", "defaults": ["my-host-1", "my-host-2"], "name": "host1", "prefix": "host", "type": "group"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "avg:system.cpu.user{*}"}}, "type": "hostmap"}}]}
9494
When the request is sent
9595
Then the response status is 400 Bad Request
9696

@@ -1373,15 +1373,15 @@ Feature: Dashboards
13731373
Scenario: Update a dashboard returns "Bad Request" response
13741374
Given new "UpdateDashboard" request
13751375
And request contains "dashboard_id" parameter from "REPLACE.ME"
1376-
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [], "reflow_type": "auto", "restricted_roles": [], "tabs": [{"id": "", "name": "L", "widget_ids": [0]}], "tags": [], "template_variable_presets": [{"template_variables": [{"values": []}]}], "template_variables": [{"available_values": ["my-host", "host1", "host2"], "default": "my-host", "defaults": ["my-host-1", "my-host-2"], "name": "host1", "prefix": "host", "type": "group"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "avg:system.cpu.user{*}"}}, "type": "hostmap"}}]}
1376+
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [], "reflow_type": "auto", "restricted_roles": [], "tags": [], "template_variable_presets": [{"template_variables": [{"values": []}]}], "template_variables": [{"available_values": ["my-host", "host1", "host2"], "default": "my-host", "defaults": ["my-host-1", "my-host-2"], "name": "host1", "prefix": "host", "type": "group"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "avg:system.cpu.user{*}"}}, "type": "hostmap"}}]}
13771377
When the request is sent
13781378
Then the response status is 400 Bad Request
13791379

13801380
@generated @skip @team:DataDog/dashboards-backend
13811381
Scenario: Update a dashboard returns "Item Not Found" response
13821382
Given new "UpdateDashboard" request
13831383
And request contains "dashboard_id" parameter from "REPLACE.ME"
1384-
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [], "reflow_type": "auto", "restricted_roles": [], "tabs": [{"id": "", "name": "L", "widget_ids": [0]}], "tags": [], "template_variable_presets": [{"template_variables": [{"values": []}]}], "template_variables": [{"available_values": ["my-host", "host1", "host2"], "default": "my-host", "defaults": ["my-host-1", "my-host-2"], "name": "host1", "prefix": "host", "type": "group"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "avg:system.cpu.user{*}"}}, "type": "hostmap"}}]}
1384+
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [], "reflow_type": "auto", "restricted_roles": [], "tags": [], "template_variable_presets": [{"template_variables": [{"values": []}]}], "template_variables": [{"available_values": ["my-host", "host1", "host2"], "default": "my-host", "defaults": ["my-host-1", "my-host-2"], "name": "host1", "prefix": "host", "type": "group"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "avg:system.cpu.user{*}"}}, "type": "hostmap"}}]}
13851385
When the request is sent
13861386
Then the response status is 404 Item Not Found
13871387

0 commit comments

Comments
 (0)