Skip to content

Commit 8ff979c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e563297 of spec repo
1 parent e27844a commit 8ff979c

File tree

4 files changed

+3
-300
lines changed

4 files changed

+3
-300
lines changed

.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:

src/main/java/com/datadog/api/client/v1/model/Dashboard.java

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
Dashboard.JSON_PROPERTY_NOTIFY_LIST,
3838
Dashboard.JSON_PROPERTY_REFLOW_TYPE,
3939
Dashboard.JSON_PROPERTY_RESTRICTED_ROLES,
40-
Dashboard.JSON_PROPERTY_TABS,
4140
Dashboard.JSON_PROPERTY_TAGS,
4241
Dashboard.JSON_PROPERTY_TEMPLATE_VARIABLE_PRESETS,
4342
Dashboard.JSON_PROPERTY_TEMPLATE_VARIABLES,
@@ -82,9 +81,6 @@ public class Dashboard {
8281
public static final String JSON_PROPERTY_RESTRICTED_ROLES = "restricted_roles";
8382
private List<String> restrictedRoles = null;
8483

85-
public static final String JSON_PROPERTY_TABS = "tabs";
86-
private JsonNullable<List<DashboardTab>> tabs = JsonNullable.<List<DashboardTab>>undefined();
87-
8884
public static final String JSON_PROPERTY_TAGS = "tags";
8985
private JsonNullable<List<String>> tags = JsonNullable.<List<String>>undefined();
9086

@@ -377,49 +373,6 @@ public void setRestrictedRoles(List<String> restrictedRoles) {
377373
this.restrictedRoles = restrictedRoles;
378374
}
379375

380-
public Dashboard tabs(List<DashboardTab> tabs) {
381-
this.tabs = JsonNullable.<List<DashboardTab>>of(tabs);
382-
return this;
383-
}
384-
385-
public Dashboard addTabsItem(DashboardTab tabsItem) {
386-
if (this.tabs == null || !this.tabs.isPresent()) {
387-
this.tabs = JsonNullable.<List<DashboardTab>>of(new ArrayList<>());
388-
}
389-
try {
390-
this.tabs.get().add(tabsItem);
391-
} catch (java.util.NoSuchElementException e) {
392-
// this can never happen, as we make sure above that the value is present
393-
}
394-
return this;
395-
}
396-
397-
/**
398-
* List of tabs for organizing dashboard widgets into groups.
399-
*
400-
* @return tabs
401-
*/
402-
@jakarta.annotation.Nullable
403-
@JsonIgnore
404-
public List<DashboardTab> getTabs() {
405-
return tabs.orElse(null);
406-
}
407-
408-
@JsonProperty(JSON_PROPERTY_TABS)
409-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
410-
public JsonNullable<List<DashboardTab>> getTabs_JsonNullable() {
411-
return tabs;
412-
}
413-
414-
@JsonProperty(JSON_PROPERTY_TABS)
415-
public void setTabs_JsonNullable(JsonNullable<List<DashboardTab>> tabs) {
416-
this.tabs = tabs;
417-
}
418-
419-
public void setTabs(List<DashboardTab> tabs) {
420-
this.tabs = JsonNullable.<List<DashboardTab>>of(tabs);
421-
}
422-
423376
public Dashboard tags(List<String> tags) {
424377
this.tags = JsonNullable.<List<String>>of(tags);
425378
return this;
@@ -686,7 +639,6 @@ public boolean equals(Object o) {
686639
&& Objects.equals(this.notifyList, dashboard.notifyList)
687640
&& Objects.equals(this.reflowType, dashboard.reflowType)
688641
&& Objects.equals(this.restrictedRoles, dashboard.restrictedRoles)
689-
&& Objects.equals(this.tabs, dashboard.tabs)
690642
&& Objects.equals(this.tags, dashboard.tags)
691643
&& Objects.equals(this.templateVariablePresets, dashboard.templateVariablePresets)
692644
&& Objects.equals(this.templateVariables, dashboard.templateVariables)
@@ -710,7 +662,6 @@ public int hashCode() {
710662
notifyList,
711663
reflowType,
712664
restrictedRoles,
713-
tabs,
714665
tags,
715666
templateVariablePresets,
716667
templateVariables,
@@ -735,7 +686,6 @@ public String toString() {
735686
sb.append(" notifyList: ").append(toIndentedString(notifyList)).append("\n");
736687
sb.append(" reflowType: ").append(toIndentedString(reflowType)).append("\n");
737688
sb.append(" restrictedRoles: ").append(toIndentedString(restrictedRoles)).append("\n");
738-
sb.append(" tabs: ").append(toIndentedString(tabs)).append("\n");
739689
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
740690
sb.append(" templateVariablePresets: ")
741691
.append(toIndentedString(templateVariablePresets))

src/main/java/com/datadog/api/client/v1/model/DashboardTab.java

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

src/test/resources/com/datadog/api/client/v1/api/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)